Glossary.

Absolute value

∣x∣|x|

∣x∣=x|x| = x if x≥0x \ge 0, and ∣x∣=−x|x| = -x if x<0x < 0.

Absolute value →

Arbitrary element

An element you assume nothing about except what is given. It stands for every element at once.

Proving ∃ and ∀ →

Base case

The first case of an induction, usually n=1n = 1. It starts the chain.

The domino idea →

Bézout’s identity

If gcd⁡(a,b)=d\gcd(a, b) = d, then a⋅x+b⋅y=da\cdot x + b\cdot y = d for some integers xx, yy.

Bézout’s identity →

Big-O

O(g(n))O(g(n))

f(n)=O(g(n))f(n) = O(g(n)) means f(n)≤c⋅g(n)f(n) \le c\cdot g(n) for all n≥Nn \ge N, for some constants cc, NN.

Big-O →

Cases

∨\lor

Splitting a claim into possibilities that together cover everything, then proving each one.

Splitting into cases →

Combination

(nk)\binom{n}{k}

A choice of kk objects from nn where order does not matter. (nk)=n!/(k!(n−k)!)\binom{n}{k} = n!/(k!(n-k)!).

Combinations →

Conclusion

The “then” part of an implication, the thing you want to show.

If … then … →

Congruence

a≡b(modn)a \equiv b \pmod{n}

a≡b(modn)a \equiv b \pmod{n} means n∣(a−b)n \mid (a - b).

Congruences →

Contradiction

⊥\bot

A statement and its negation holding together, which is impossible. In a proof by contradiction you assume the opposite of the claim and derive one.

Assume the opposite →

Contrapositive

¬Q⇒¬P\lnot Q \Rightarrow \lnot P

The contrapositive of P⇒QP \Rightarrow Q says exactly the same thing. Proving one proves the other.

The contrapositive →

Converse

Q⇒PQ \Rightarrow P

The converse of P⇒QP \Rightarrow Q swaps the two parts. It can be false when the original is true.

The contrapositive →

Counterexample

One case that makes a “for all” claim false.

n=1n = 1 disproves “n2>nn^2 > n for every integer nn”.

Counterexamples →

De Morgan’s laws

¬(P∧Q)≡¬P∨¬Q\lnot (P \land Q) \equiv \lnot P \lor \lnot Q and ¬(P∨Q)≡¬P∧¬Q\lnot (P \lor Q) \equiv \lnot P \land \lnot Q. Negating “and” gives “or”, and the other way round.

Equivalent statements →

Degree

The degree of a vertex is the number of edges that meet it.

Graph basics →

Division algorithm

For integers aa and b>0b > 0 there are unique integers qq, rr with a=b⋅q+ra = b\cdot q + r and 0≤r<b0 \le r < b.

The division algorithm →

Equivalence class

[a][a]

The set of all elements related to aa. The classes of an equivalence relation partition the set.

Equivalence classes →

Equivalent statements

P≡QP \equiv Q

Two statements with the same truth value in every row of a truth table.

Equivalent statements →

Greatest common divisor

gcd⁡(a,b)\gcd(a, b)

The largest integer that divides both aa and bb. Euclid’s algorithm computes it with repeated division.

Greatest common divisors →

If and only if

P⇔QP \Leftrightarrow Q

P⇒QP \Rightarrow Q and Q⇒PQ \Rightarrow P together. Prove it by proving both directions.

If and only if →

Implication

P⇒QP \Rightarrow Q

“If PP then QQ”. It is false only when PP is true and QQ is false.

If nn is even, then n+2n + 2 is even.

If … then … →

Induction

n⇒n+1n \Rightarrow n + 1

Prove a base case, then prove that if the claim holds for kk it holds for k+1k + 1. Then it holds for every nn from the base case on.

The domino idea →

Inductive hypothesis

In the inductive step, the assumption that the claim holds for kk.

The domino idea →

Injective

A function ff is injective if f(a)=f(b)f(a) = f(b) implies a=ba = b. Different inputs give different outputs.

Injective and surjective →

Limit of a sequence

a(n)→La(n) \to L

For every ε>0ε > 0 there is NN such that ∣a(n)−L∣<ε|a(n) - L| < ε for all n≥Nn \ge N.

The definition of a limit →

Loop invariant

A statement that is true before a loop and after every iteration. Prove initialization, maintenance and termination.

Loop invariants →

Negating quantifiers

¬∀xP(x)≡∃x¬P(x)\lnot \forall x P(x) \equiv \exists x \lnot P(x) and ¬∃xP(x)≡∀x¬P(x)\lnot \exists x P(x) \equiv \forall x \lnot P(x). Flip each quantifier and negate what remains.

Negating quantified statements →

Negation of an implication

P∧¬QP \land \lnot Q

¬(P⇒Q)≡P∧¬Q\lnot (P \Rightarrow Q) \equiv P \land \lnot Q. An implication fails exactly when the hypothesis holds and the conclusion does not.

Negating an implication →

Omega and Theta

ΩΩ, ΘΘ

f=Ω(g)f = Ω(g) is a lower bound, and f=Θ(g)f = Θ(g) means both O(g)O(g) and Ω(g)Ω(g) hold.

Θ and Ω →

QED

■\blacksquare

Marks the end of a proof. From the Latin for “which was to be shown”.

Even plus even →

Quantifier

∀∃\forall \exists

∀\forall means “for all”. ∃\exists means “there exists”.

Reading ∀ and ∃ →

Set equality

A=BA = B

A=BA = B means A⊆BA \subseteq B and B⊆AB \subseteq A.

Subsets →

Statement

A sentence that is definitely true or definitely false, never both.

“77 is an even number” is a statement. It is false.

What is a statement? →

Strong induction

P(1)…P(k)P(1) \ldots P(k)

Assume P(1)P(1), …\ldots, P(k)P(k) are all true, and prove P(k+1)P(k + 1).

Strong induction →

Structural induction

Induction that follows the recursive definition of an object: prove the base case, then that building bigger objects keeps the property.

Recursive structures →

Subset

A⊆BA \subseteq B

Every element of A is an element of B.

Subsets →

Surjective

A function ff: A→BA \to B is surjective if every b∈Bb \in B equals f(a)f(a) for some a∈Aa \in A.

Injective and surjective →

Tree

A connected graph with no cycles. A tree with nn vertices has n−1n - 1 edges.

Paths and trees →

Triangle inequality

∣x+y∣≤∣x∣+∣y∣|x + y| \le |x| + |y| for all real xx, yy.

Limits of sums →

Truth table

A table listing the truth value of a compound statement for every combination of truth values of its parts. With nn statements there are 2n2^n rows.

Truth tables →

Uniqueness

∃!\exists !

“There exists exactly one.” Prove existence by example, and uniqueness by assuming two examples are equal.

Exactly one →

Vacuous truth

An implication whose hypothesis is false is true, whatever the conclusion says.

If 2=32 = 3, then the moon is cheese.

If … then … →