Proofs

Part 7 of 8 · Previous: CS Notation · Index · Next: Reference

28. Proof vocabulary

TermMeaning
DefinitionIntroduces the exact meaning of an object
AxiomAssumed truth
PropositionMathematical claim
TheoremImportant claim proved from definitions/results
LemmaSupporting theorem used in a larger proof
CorollaryResult following quickly from another theorem
ConjectureClaim believed true but not proven
CounterexampleExample proving a universal claim false
InvariantProperty remaining true throughout an algorithm
Necessary conditionMust be true, but may not be sufficient
Sufficient conditionGuarantees the result, but may not be necessary
Necessary and sufficientExact condition; an iff statement
Upper boundValue the result cannot exceed
Lower boundValue the result cannot go below
Tight boundMatching upper and lower bounds
ContradictionLogical impossibility used to reject an assumption
WLOGWithout loss of generality
QED / End of proof

29. Common proof styles

Direct proof

To prove:

assume , then derive .

Proof by contradiction

To prove :

  1. assume ;
  2. derive an impossibility;
  3. conclude that must hold.

Common wording:

Suppose, for contradiction, that…

Proof by induction

Used for statements indexed by integers:

  1. Base case: prove or .
  2. Induction hypothesis: assume .
  3. Inductive step: prove .
  4. Conclude for all relevant .

Proof of equivalence

To prove:

prove both:

and:

Counterexample

To disprove:

find one such that:


30. Necessary versus sufficient

Suppose:

Then:

  • is sufficient for ;
  • is necessary for .

Example:

  • is sufficient to know ;
  • is necessary for ;
  • is not sufficient for .

An exact characterization uses:

Then both conditions are necessary and sufficient.


31. Common equation styles

Definition

Define as the sum.

Constraint

Every valid solution must satisfy this equality.

Inequality bound

Running time is bounded above by .

Optimization

Find the smallest objective value over valid choices.

Recurrence

Define the current value using smaller instances.

Set characterization

Define a set through a condition.

Case distinction

Use a different expression depending on the condition.

Chain of relations

means:


32. Punctuation inside formulas

SymbolMeaning in context
Separates expressions or means “and then”
“Such that” or introduces a type
“Such that,” divides, or conditional probability
Separates conditions
Visual spacing only
Pattern continues
Labels part of an expression
Labels part from above

The vertical bar is highly overloaded:

means divides .

means probability of given .

means all such that .