Truth table of the connectives
"Or" is inclusive. letters give rows, and two statements are equivalent when their columns agree in every row.
| , | , | ||
|---|---|---|---|
| T, T | T, T | T | T |
| T, F | F, T | F | F |
| F, T | F, T | T | F |
| F, F | F, F | T | T |
Definitions and proof techniques
Logic laws, set identities, the definitions proofs use, and how each proof method goes.
"Or" is inclusive. letters give rows, and two statements are equivalent when their columns agree in every row.
| , | , | ||
|---|---|---|---|
| T, T | T, T | T | T |
| T, F | F, T | F | F |
| F, T | F, T | T | F |
| F, F | F, F | T | T |
Applies: Always: negate each part and swap the connective.
Definition.
Careful: It is false only when is true and is false; with false it is vacuously true.
| Name | Form | Equivalent to ? |
|---|---|---|
| converse | no | |
| contrapositive | yes | |
| inverse | no (it matches the converse) | |
| negation | opposite in every row |
When , is sufficient for and is necessary for ; " only if " and " if " say the same. To prove , prove both directions.
Careful: Being even is necessary for being a multiple of 6, not sufficient.
The set matters, and here .
| Symbol | True when | False when |
|---|---|---|
| every in passes | one fails (a counterexample) | |
| at least one passes | every fails |
Applies: Swap each quantifier in place, negate the inside, and keep the set and conditions like .
Careful: A conditional inside becomes an "and", .
In , may depend on ; in , one must work for every . Over , is true and is false.
Definition.
Careful: Its negation is . Bounded is .
| Goal | Takes |
|---|---|
| prove | a general argument |
| disprove | one with |
| prove | one with |
| disprove | a general argument that every fails |
Careful: No number of examples proves a "for every" claim over an infinite set.
relates an object to a set; means and relates two sets. for every , and .
De Morgan gives and ; sizes give .
| Set | is in it when |
|---|---|
| or | |
| and | |
| and | |
| and |
To prove , let , unpack the definitions and conclude . To prove , prove both inclusions. To disprove either, give one element that breaks it.
Careful: "Let " proves one case, not the inclusion.
Applies: Finite sets. exactly when .
means is in every ; means it is in some . The open intervals have empty intersection, but the closed share 0.
| Statement | Means |
|---|---|
| is even | for some integer |
| is odd | for some integer |
| for some integer |
Careful: Use a new letter for each hypothesis; one letter for two numbers covers only equal numbers.
Assume about arbitrary objects, unpack it with definitions, do the algebra, then repack the result into the definition in , naming the integer.
Careful: Assuming , or starting from the conclusion and reaching something true, proves nothing.
Applies: The cases together cover every possibility, such as even or odd.
Careful: A missing case is a gap; " or " misses .
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.
| Assume … reach … | Proves |
|---|---|
| … | (direct) |
| … | (contrapositive) |
| … | the converse, a different claim |
| … | the inverse, a different claim |
To prove , assume exactly and derive both some and . For , assume . The classic examples are that 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.
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.
needs and . "Exactly one" needs existence plus uniqueness, if and both work then .
Careful: plus proves one direction twice.
Show the base case , then show for every , assuming for one arbitrary and deriving .
Careful: A step with no base case proves nothing; writing down instead of deriving it isn't a step.
Start where the claim starts ( from ). For divisibility, write the expression as the expression plus a visible multiple, as in .
The step must hold for every from the base case on. In the "all horses are one color" argument the step fails at . Check the smallest the step must cover first.
In the step, assume and prove , 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 and for the positive rationals.
Applies: Any integers and ; the pair , is unique.
Careful: The remainder is never negative; .
Applies: Repeat until the remainder is 0; the gcd is the last nonzero remainder.
Applies: Run Euclid backwards. has solutions exactly when .
Careful: only says the gcd divides 6; does give gcd 1.
If is prime and , then or . So every is a product of primes in exactly one way up to order.
Careful: Without "prime" it fails; but 6 divides neither.
means .
| Move | Allowed? |
|---|---|
| add, subtract, multiply both sides | yes |
| swap in a congruent number in a sum, product or base | yes |
| cancel a factor | only if |
| swap an exponent for a congruent one | no; use the cycle length |
| Property | Means, for all |
|---|---|
| reflexive | |
| symmetric | |
| antisymmetric | and |
| transitive | and |
Careful: Antisymmetric isn't "not symmetric", and symmetric plus transitive don't give reflexive.
An equivalence relation is reflexive, symmetric and transitive; its classes partition the set, and "in the same block" is an equivalence relation. Congruence mod has classes.
Definition.
Careful: To show a rule isn't well defined, find one class with two names giving two outputs. from to works exactly when .
A partial order is reflexive, antisymmetric and transitive, such as , , and on . Some pairs can't be compared. A Hasse diagram leaves out loops and shortcuts.
Careful: isn't reflexive, and on isn't antisymmetric.
gives every exactly one . is the domain, the declared codomain, and the range is what is reached.
| Property | Means | Prove it |
|---|---|---|
| injective | let , reach | |
| surjective | let , solve, check | |
| bijective | both | both halves |
Careful: The answers depend on the domain and codomain; is a bijection only on .
Applies: Both are bijections. exactly when .
Careful: The isn't an exponent; , not .
Definition.
Careful: is an equality for every only when is injective.
when some bijection exists. For infinite sets a proper subset can match the whole, as does.
Careful: One map that fails to be onto proves nothing.
, and are countable; list them so every element sits at one finite position (walk the diagonals for ).
Given any list of numbers in , build whose digit differs from digit of the th number (4 or 5). Then is missing, so and are uncountable.
Applies: Every set, finite or infinite, so there is no largest size.
If there are injections and , then . Neither map needs to be onto.
Careful: Check that each map lands in its codomain and is injective.
is the least upper bound. To prove , show is an upper bound, then that every isn't, by finding an element above it. Completeness says every nonempty set bounded above has a supremum in .
Careful: The sup may lie outside the set. isn't complete.
Scratch work finds . The proof runs forward; let , take , let , show . When solving is messy, bound the distance by something bigger that still goes to 0.
Careful: may depend on ε only, never on .
An increasing sequence bounded above converges to its supremum; a decreasing one bounded below converges to its infimum.
Careful: In it fails; has no rational limit.
Definition.
Careful: δ may depend on ε and , never on . For at 2, cap δ at 1 first, .
Applies: Always. With for each sequence, it proves that limits add.
Careful: The converse of the sum law fails; a convergent sum can have divergent parts.
Unfried · getunfried.com/formulas/proofs