Proof by cases


Break the domain into cases!

A proof by cases is a direct proof that proves a theorem is true by breaking its domain into a finite number of classes that are each handled separately in different mini-proofs called cases. For this kind of proof, every element in the domain must be a member of at least one of the classes. That way, the cases cover the entire domain.

Every case should be numbered and begin with "Case \(n\): " where \(n\) is the number of the case.

If the theorem you're trying to prove involves the absolute value of an expression, test it under two cases: one where the inner expression is negative, and one where it's non-negative. If the inner expression is negative, taking its absolute value will reverse its sign, and if it's non-negative, taking its absolute value will result in the same expression. The reasoning behind all this is that taking the absolute value of a number has a different effect based on if that number is negative or not, so you must consider both cases.

Also, for theorems about integers that are not explicitly stated as being even or odd, you can consider every combination of even and odd integers as separate cases. This will likely only be useful if the theorem is a statement about parity.

When two cases essentially prove the same thing, and are different only in variable names, they can be consolidated into one case "without loss of generality." (abbreviated as WLOG or w.l.o.g.) This allows you to save some time by avoiding redundant cases.

Logic & Proofs
IntegerRational numberInequalityReal numberTheoremProofStatementProof by exhaustionUniversal generalizationCounterexampleExistence proofExistential instantiationAxiomLogicTruthPropositionCompound propositionLogical operationLogical equivalenceTautologyContradictionLogic lawPredicateDomainQuantifierArgumentRule of inferenceLogical proofDirect proofProof by contrapositiveIrrational numberProof by contradictionProof by casesSummationDisjunctive normal form
Set Theory
SetElementEmpty setUniversal setSubsetPower setCartesian productStringBinary stringEmpty stringSet operationSet identitySet proof
Functions
FunctionFloor functionCeiling functionInverse function
Algorithms
AlgorithmPseudocodeCommandAsymptotic notationTime complexityAtomic operationBrute-force algorithm
Relations
RelationReflexive relationSymmetric relationTransitive relationRelation compositionEquivalence relationEquivalence class
Number Theory
Integer divisionLinear combinationDivision algorithmModular arithmeticPrime factorizationGreatest common divisorLeast common multiplePrimality testFactoring algorithmEuclid's theoremPrime number theoremEuclidean algorithm
Induction
Proof by inductionFibonacci sequenceProof by strong inductionWell-ordering principleSequenceFactorialRecursive definition
Combinatorics
Rule of productRule of sumBijection rulePermutationCombinationComplement ruleExperimentOutcomeSample spaceEventProbabilityProbability distributionUniform distributionMultisetSixfold wayInclusion-exclusion principlePigeonhole principle
Graph Theory
GraphWalkSubgraphRegular graphComplete graphEmpty graphCycle graphHypercube graphBipartite graphComponentEulerian circuitEulerian trailHamiltonian cycleHamiltonian pathTreeHuffman treeSubstringForestPath graphStarSpanning treeWeighted graphMinimum spanning treeGreedy algorithmPrim's algorithm
Recursion
RecursionRecursive algorithmCorrectness proofDivide-and-conquer algorithmSorting algorithmMerge sort