unfried.
Streak:0 days XP:0

Definitions and proof techniques

Foundations

Logic laws, set identities, the definitions proofs use, and how each proof method goes.

50 entries in 11 units. Free to use and share.

Jump to a unit (11 units)

Unit 1 Statements and logic

Truth table of the connectives

"Or" is inclusive. n letters give 2n rows, and two statements are equivalent when their columns agree in every row.

P⁠, QP∧Q⁠, P∨QP⇒QP  ⟺  Q
T, TT, TTT
T, FF, TFF
F, TF, TTF
F, FF, FTT

Taught in Truth tables and equivalence

The conditional

Definition.

P
hypothesis
Q
conclusion

Careful: It is false only when P is true and Q is false; with P false it is vacuously true.

Taught in The conditional

Converse, contrapositive, inverse

NameFormEquivalent to P⇒Q⁠?
converseQ⇒Pno
contrapositive¬Q⇒¬Pyes
inverse¬P⇒¬Qno (it matches the converse)
negationP∧¬Qopposite in every row

Taught in Converse, contrapositive, inverse

Necessary and sufficient

When P⇒Q⁠, P is sufficient for Q and Q is necessary for P⁠; "P only if Q" and "Q if P" say the same. To prove P  ⟺  Q⁠, prove both directions.

Careful: Being even is necessary for being a multiple of 6, not sufficient.

Taught in If and only if; necessary and sufficient

Unit 2 Quantifiers

Quantifiers

The set matters, and here N={1,2,3,… }⁠.

SymbolTrue whenFalse when
∀x∈S, P(x)every x in S passesone x fails (a counterexample)
∃x∈S, P(x)at least one x passesevery x fails

Taught in For all, there exists

Negating quantifiers

x
variable
P
a property

Applies: Swap each quantifier in place, negate the inside, and keep the set and conditions like ε>0⁠.

Careful: A conditional inside becomes an "and", ¬∀x(P⇒Q)≡∃x(P∧¬Q)⁠.

Taught in Negating quantifiers

Order of quantifiers

In ∀x, ∃y⁠, y may depend on x⁠; in ∃y, ∀x⁠, one y must work for every x⁠. Over R⁠, ∀x ∃y, y>x is true and ∃y ∀x, y>x is false.

Taught in Nested quantifiers and their order

Convergence and boundedness

Definition.

ε
any positive tolerance
N
threshold, chosen from ε
n
index
an
terms
L
the limit

Careful: Its negation is ∃ε>0, ∀N, ∃n>N, ∣an−L∣≥ε⁠. Bounded is ∃M>0, ∀n, ∣an∣≤M⁠.

Taught in Definitions with quantifiers

What each goal takes

GoalTakes
prove ∀x, P(x)a general argument
disprove ∀x, P(x)one x with ¬P(x)
prove ∃x, P(x)one x with P(x)
disprove ∃x, P(x)a general argument that every x fails

Careful: No number of examples proves a "for every" claim over an infinite set.

Taught in Counterexamples

Unit 3 Sets

Elements and subsets

x∈A relates an object to a set; A⊆B means ∀x, (x∈A⇒x∈B) and relates two sets. ∅⊆A for every A⁠, and ∅≠{∅}⁠.

Taught in Subsets and set equality

Set operations

De Morgan gives A∪B‾=A‾∩B‾ and A∩B‾=A‾∪B‾⁠; sizes give ∣A∪B∣=∣A∣+∣B∣−∣A∩B∣⁠.

Setx is in it when
A∪Bx∈A or x∈B
A∩Bx∈A and x∈B
A−Bx∈A and x∉B
A‾x∈U and x∉A

Taught in Set operations

Proving set statements

To prove A⊆B⁠, let x∈A⁠, unpack the definitions and conclude x∈B⁠. To prove A=B⁠, prove both inclusions. To disprove either, give one element that breaks it.

Careful: "Let x=1" proves one case, not the inclusion.

Taught in Subsets and set equality

Indexed families

x∈⋂nAn means x is in every An⁠; x∈⋃nAn means it is in some An⁠. The open intervals (0,1n) have empty intersection, but the closed [0,1n] share 0.

Taught in Indexed families

Unit 4 Direct proof

Parity and divisibility

StatementMeans
n is evenn=2k for some integer k
n is oddn=2k+1 for some integer k
a∣bb=ak for some integer k

Careful: Use a new letter for each hypothesis; one letter for two numbers covers only equal numbers.

Taught in Direct proofs with definitions

Direct proof

Assume P about arbitrary objects, unpack it with definitions, do the algebra, then repack the result into the definition in Q⁠, naming the integer.

Careful: Assuming Q⁠, or starting from the conclusion and reaching something true, proves nothing.

Taught in Direct proofs with definitions

Proof by cases

P1,P2
the cases
Q
the conclusion

Applies: The cases together cover every possibility, such as n even or odd.

Careful: A missing case is a gap; "x≤0 or x≥1" misses 0<x<1⁠.

Taught in Proof by cases

Forward, not backward

Backward work is scratch work. The proof starts from a known fact and runs forward, and every step must hold in that direction; squaring doesn't reverse.

Taught in Don't start from the conclusion

Unit 5 Indirect proof

Proof methods

Assume … reach …Proves
P … QP⇒Q (direct)
¬Q … ¬PP⇒Q (contrapositive)
Q … Pthe converse, a different claim
¬P … ¬Qthe inverse, a different claim

Taught in Proof by contrapositive

Proof by contradiction

To prove P⁠, assume exactly ¬P and derive both some R and ¬R⁠. For P⇒Q⁠, assume P∧¬Q⁠. The classic examples are that 2 is irrational and that there are infinitely many primes.

Careful: The assumption must be exactly the negation, with no extra conditions and the right quantifier.

Taught in Contradiction: √2 is irrational

Disproof and existence

One checked counterexample that meets the hypothesis and fails the conclusion disproves a "for every" claim. One example proves "there exists", named (constructive) or shown to exist (non-constructive).

Careful: A value outside the hypothesis is not a counterexample.

Taught in Disproof and existence

Biconditionals and uniqueness

P  ⟺  Q needs P⇒Q and Q⇒P⁠. "Exactly one" needs existence plus uniqueness, if x and y both work then x=y⁠.

Careful: P⇒Q plus ¬Q⇒¬P proves one direction twice.

Taught in Biconditionals and uniqueness

Unit 6 Induction

Induction

Show the base case P(n0)⁠, then show P(k)⇒P(k+1) for every k≥n0⁠, assuming P(k) for one arbitrary k and deriving P(k+1)⁠.

Careful: A step with no base case proves nothing; writing down P(k+1) instead of deriving it isn't a step.

Taught in Weak induction

Induction for inequalities and divisibility

Start where the claim starts (2n>n2 from n=5⁠). For divisibility, write the k+1 expression as the k expression plus a visible multiple, as in 5k+1−1=5(5k−1)+4⁠.

Taught in Inequalities and divisibility

Broken inductions

The step must hold for every k from the base case on. In the "all horses are one color" argument the step fails at k=1⁠. Check the smallest k the step must cover first.

Taught in The broken induction

Strong induction and well-ordering

In the step, assume P(n0),…,P(k) and prove P(k+1)⁠, with as many base cases as the step reaches back. Well-ordering says every nonempty set of positive integers has a least element, which gives proofs by minimal counterexample.

Careful: Well-ordering fails for Z and for the positive rationals.

Taught in Strong induction and well-ordering

Unit 7 Number theory

Division algorithm

a
integer divided
b
positive divisor
q
quotient
r
remainder

Applies: Any integers a and b>0⁠; the pair q⁠, r is unique.

Careful: The remainder is never negative; −7=3⋅(−3)+2⁠.

Taught in The division algorithm

Euclidean algorithm

a,b
integers
r
remainder of a on division by b

Applies: Repeat until the remainder is 0; the gcd is the last nonzero remainder.

Taught in gcd and the Euclidean algorithm

Bézout's identity

a,b
integers, not both 0
x,y
some integers (not unique)

Applies: Run Euclid backwards. ax+by=c has solutions exactly when gcd⁡(a,b)∣c⁠.

Careful: ax+by=6 only says the gcd divides 6; ax+by=1 does give gcd 1.

Taught in Bézout's identity

Euclid's lemma and unique factorization

If p is prime and p∣ab⁠, then p∣a or p∣b⁠. So every n≥2 is a product of primes in exactly one way up to order.

Careful: Without "prime" it fails; 6∣4⋅9 but 6 divides neither.

Taught in Primes and unique factorization

Congruence rules

a≡b(modn) means n∣a−b⁠.

MoveAllowed?
add, subtract, multiply both sidesyes
swap in a congruent number in a sum, product or baseyes
cancel a factor conly if gcd⁡(c,n)=1
swap an exponent for a congruent oneno; use the cycle length

Taught in Modular arithmetic

Unit 8 Relations

Properties of relations

PropertyMeans, for all a,b,c
reflexivea R a
symmetrica R b⇒b R a
antisymmetrica R b and b R a⇒a=b
transitivea R b and b R c⇒a R c

Careful: Antisymmetric isn't "not symmetric", and symmetric plus transitive don't give reflexive.

Taught in Properties of relations

Equivalence relations and partitions

An equivalence relation is reflexive, symmetric and transitive; its classes partition the set, and "in the same block" is an equivalence relation. Congruence mod n has n classes.

Taught in Partitions

Well-defined rules on ℤₙ

Definition.

a,b
representatives
f
the rule

Careful: To show a rule isn't well defined, find one class with two names giving two outputs. [a]↦[a] from Zn to Zm works exactly when m∣n⁠.

Taught in ℤₙ and well-definedness

Partial orders

A partial order is reflexive, antisymmetric and transitive, such as ≤⁠, ⊆⁠, and ∣ on N⁠. Some pairs can't be compared. A Hasse diagram leaves out loops and shortcuts.

Careful: < isn't reflexive, and ∣ on Z isn't antisymmetric.

Taught in Partial orders

Unit 9 Functions

Function, domain, codomain, range

f ⁣:A→B gives every a∈A exactly one f(a)∈B⁠. A is the domain, B the declared codomain, and the range f(A) is what is reached.

Taught in Domain, codomain, range

Injective, surjective, bijective

PropertyMeansProve it
injectivef(a)=f(b)⇒a=blet f(a)=f(b)⁠, reach a=b
surjective∀b, ∃a, f(a)=blet b∈B⁠, solve, check a∈A
bijectivebothboth halves

Careful: The answers depend on the domain and codomain; x2 is a bijection only on [0,∞)→[0,∞)⁠.

Taught in Proving injective and surjective

Composition and inverse

f,g
bijections

Applies: Both are bijections. f−1(b)=a exactly when f(a)=b⁠.

Careful: The −1 isn't an exponent; sin⁡−1(1)=π2⁠, not 1/sin⁡1⁠.

Taught in Composition and inverses

Image and preimage

Definition.

f
function on A
S
subset of the domain
T
subset of the codomain
A
domain
a
element

Careful: S⊆f−1(f(S)) is an equality for every S only when f is injective.

Taught in Images and preimages

Unit 10 Cardinality

Same cardinality

∣A∣=∣B∣ when some bijection exists. For infinite sets a proper subset can match the whole, as n↦2n does.

Careful: One map that fails to be onto proves nothing.

Taught in Same size means a bijection

Countable sets

Z⁠, Q and N×N are countable; list them so every element sits at one finite position (walk the diagonals for Q+⁠).

Taught in Countable sets

Cantor's diagonal argument

Given any list of numbers in (0,1)⁠, build x whose digit n differs from digit n of the nth number (4 or 5). Then x is missing, so (0,1) and R are uncountable.

Taught in Cantor's diagonal argument

Cantor's theorem

A
any set
D
the set no f(a) equals
f
any map A→P(A)
a
element

Applies: Every set, finite or infinite, so there is no largest size.

Taught in Cantor's theorem

Schröder–Bernstein

If there are injections A→B and B→A⁠, then ∣A∣=∣B∣⁠. Neither map needs to be onto.

Careful: Check that each map lands in its codomain and is injective.

Taught in Schröder–Bernstein

Unit 11 Real numbers and limits

Supremum

sup⁡S is the least upper bound. To prove sup⁡S=s⁠, show s is an upper bound, then that every M<s isn't, by finding an element above it. Completeness says every nonempty set bounded above has a supremum in R⁠.

Careful: The sup may lie outside the set. Q isn't complete.

Taught in Completeness: sup and inf

ε-N proof outline

Scratch work finds N⁠. The proof runs forward; let ε>0⁠, take N=…⁠, let n>N⁠, show ∣an−L∣<ε⁠. When solving is messy, bound the distance by something bigger that still goes to 0.

Careful: N may depend on ε only, never on n⁠.

Taught in ε-N proofs

Monotone convergence theorem

An increasing sequence bounded above converges to its supremum; a decreasing one bounded below converges to its infimum.

Careful: In Q it fails; 1,1.4,1.41,… has no rational limit.

Taught in The monotone convergence theorem

ε-δ continuity

Definition.

ε
any positive tolerance
δ
closeness, chosen from ε
x
input
a
the point
f
the function

Careful: δ may depend on ε and a⁠, never on x⁠. For x2 at 2, cap δ at 1 first, δ=min⁡(1,ε/5)⁠.

Taught in ε-δ continuity

Triangle inequality and the sum law

x,y
real numbers

Applies: Always. With ε/2 for each sequence, it proves that limits add.

Careful: The converse of the sum law fails; a convergent sum can have divergent parts.

Taught in Proving a limit law