A Comprehensive Study Guide to Mathematical Logic and Proof

Foundations of Mathematical Reasoning

  • Nature of Mathematics: High school mathematics primarily focuses on solving equations and numerical computations. College-level mathematics expands to sets, functions, and diverse abstract objects.

  • Deductive Reasoning: This is the foundation of all mathematical proof. It involves justifying conclusions based on assumed premises. An argument is considered valid if it is impossible for the premises to be true without the conclusion being true as well.

  • Prime Numbers: An integer greater than 1 is prime if it cannot be written as the product of two smaller positive integers.

  • Conjectures and Counterexamples: A conjecture is a mathematical guess based on patterns. A single counterexample—an instance where the hypothesis holds but the conclusion fails—disproves a conjecture. For example, the conjecture that 2n12^n - 1 is prime for all prime nn fails at n=11n = 11, as 2111=2047=23×892^{11} - 1 = 2047 = 23 \times 89.

Number Theory Principles and Classic Proofs

  • Mersenne Primes: Prime numbers of the form 2n12^n - 1. As of April 2005, the largest known prime was the Mersenne prime 225,964,95112^{25,964,951} - 1.

  • Perfect Numbers: A positive integer nn where the sum of all positive divisors smaller than nn equals nn (e.g., 6 and 28).

  • Euclid’s Theorem on Primes: There are infinitely many prime numbers. The proof assumes a finite list p1,p2,...,pnp_1, p_2, ..., p_n, constructs m=(p1×p2×...×pn)+1m = (p_1 \times p_2 \times ... \times p_n) + 1, and shows mm must have a prime factor not in the original list.

  • Consecutive Non-Primes: For any positive integer nn, there exists a sequence of nn consecutive integers containing no primes. One such sequence begins with x=(n+1)!+2x = (n + 1)! + 2, as every term x+ix + i (for 0in10 \le i \le n - 1) is divisible by i+2i + 2.

Sentential Logic and Statement Connectivity

  • Statement Symbols: Letters (P,Q,RP, Q, R) represent unambiguous statements that are either true or false.

  • Connectives:

    • Negation (¬\neg): "Not P." ¬P\neg P is true if PP is false.

    • Conjunction (\land): "P and Q." True only if both are true.

    • Disjunction (\lor): "P or Q." Mathematically, this is the inclusive or (one, the other, or both).

    • Conditional (\rightarrow): "If P, then Q." PP is the antecedent, and QQ is the consequent.

    • Biconditional (\leftrightarrow): "P if and only if Q," or "P iff Q."

  • Logical Form: Deductive validity depends on the structure (form) of the argument rather than the specific subject matter.

Truth Tables and Logical Equivalences

  • Truth Values: Labels of True (TT) or False (FF) assigned to statements.

  • Truth Table for Conditional (PQP \rightarrow Q):

    • TT=TT \rightarrow T = T

    • TF=FT \rightarrow F = F

    • FT=TF \rightarrow T = T

    • FF=TF \rightarrow F = T

  • Tautology: A formula that is true under every possible truth assignment (e.g., P¬PP \lor \neg P).

  • Contradiction: A formula that is false under every assignment (e.g., P¬PP \land \neg P).

  • Equivalent Formulas: Formulas with identical truth tables. Key laws include:

    • DeMorgan’s Laws: ¬(PQ)    ¬P¬Q\neg(P \land Q) \iff \neg P \lor \neg Q and ¬(PQ)    ¬P¬Q\neg(P \lor Q) \iff \neg P \land \neg Q.

    • Commutative Laws: PQ    QPP \land Q \iff Q \land P.

    • Associative Laws: P(QR)    (PQ)RP \lor (Q \lor R) \iff (P \lor Q) \lor R.

    • Distributive Laws: P(QR)    (PQ)(PR)P \land (Q \lor R) \iff (P \land Q) \lor (P \land R).

    • Contrapositive Law: PQ    ¬Q¬PP \rightarrow Q \iff \neg Q \rightarrow \neg P.

Variables, Sets, and Elementhood Tests

  • Variables: Letters used to represent objects. P(x)P(x) denotes a statement about variable xx.

  • Sets: A collection of objects (elements).

    • Elementhood (\in): xAx \in A means xx is an element of set AA.

    • Set-Builder Notation: {xP(x)}\{x \mid P(x)\} defines a set by an elementhood test. Any xx making P(x)P(x) true is an element.

  • Bound vs. Free Variables: In \{x \mid x^2 < 9\}, xx is a bound variable (dummy variable); it does not stand for a specific object. Variables standing for specific objects are free.

  • Truth Set: For any statement P(x)P(x), its truth set is the set of all values for which the statement is true: {xP(x)}\{x \mid P(x)\}.

  • Common Universes:

    • R\mathbb{R}: Real numbers.

    • Q\mathbb{Q}: Rational numbers.

    • Z\mathbb{Z}: Integers.

    • N\mathbb{N}: Natural numbers (0,1,2,...0, 1, 2, ...).

    • \emptyset: The empty set (no elements).

Set Theory Operations

  • Intersection (\cap): AB={xxAxB}A \cap B = \{x \mid x \in A \land x \in B\}.

  • Union (\cup): AB={xxAxB}A \cup B = \{x \mid x \in A \lor x \in B\}.

  • Difference (\setminus): AB={xxAxB}A \setminus B = \{x \mid x \in A \land x \notin B\}.

  • Symmetric Difference (\triangle): AB=(AB)(BA)A \triangle B = (A \setminus B) \cup (B \setminus A). Elements in exactly one of the sets.

  • Subsets (\subseteq): AB    x(xAxB)A \subseteq B \iff \forall x(x \in A \rightarrow x \in B).

  • Disjoint Sets: Sets with an empty intersection (AB=A \cap B = \emptyset).

  • Venn Diagrams: Visual tools representing set relations within a universe UU.

Quantificational Logic

  • Universal Quantifier (\forall): "For all." xP(x)\forall x P(x) means P(x)P(x) stays true for every value in the universe.

  • Existential Quantifier (\exists): "There exists." xP(x)\exists x P(x) means there is at least one value for which P(x)P(x) is true.

  • Quantifier Negation Laws:

    • ¬xP(x)    x¬P(x)\neg \forall x P(x) \iff \exists x \neg P(x).

    • ¬xP(x)    x¬P(x)\neg \exists x P(x) \iff \forall x \neg P(x).

  • Unique Existence (!\exists!): "There exists exactly one." !xP(x)    x(P(x)y(P(y)y=x))\exists! x P(x) \iff \exists x (P(x) \land \forall y (P(y) \rightarrow y = x)).

  • Bounded Quantifiers: Quantifiers restricted to a set, e.g., xAP(x)\forall x \in A P(x), which means x(xAP(x))\forall x (x \in A \rightarrow P(x)).

Higher-Order Set Operations

  • Indexed Families: A collection of sets {AiiI}\{A_i \mid i \in I\} where each index ii corresponds to a set AiA_i.

  • Power Set (P(A)\mathcal{P}(A)): The set of all subsets of AA. If AA has nn elements, P(A)\mathcal{P}(A) has 2n2^n elements.

  • Union of a Family (F\cup F): F={xAF(xA)}\cup F = \{x \mid \exists A \in F (x \in A)\}.

  • Intersection of a Family (F\cap F): F={xAF(xA)}\cap F = \{x \mid \forall A \in F (x \in A)\}.

Proof Strategies and Structured Proving

  • Givens and Goals: The basic workflow of a proof. Givens are assumed true; the goal is what must be demonstrated.

  • Strategy for PQP \rightarrow Q: Assume PP, prove QQ. Alternatively, use the contrapositive: Assume ¬Q\neg Q, prove ¬P\neg P.

  • Strategy for ¬P\neg P: Use Proof by Contradiction: Assume PP, derive an impossible statement (a contradiction), thus proving PP is false.

  • Strategy for xP(x)\forall x P(x): Let xx be an arbitrary object and prove P(x)P(x).

  • Strategy for xP(x)\exists x P(x): Find a specific value for xx and verify that P(x)P(x) holds.

  • Existence and Uniqueness: Prove existence of xx such that P(x)P(x), then assume two such objects yy and zz exist and prove y=zy = z.

  • Proof by Cases: If given PQP \lor Q, prove the goal twice—once assuming PP and once assuming QQ.

Relations and Orderings

  • Ordered Pairs: (a,b)(a, b) where order matters. (a,b)=(c,d)    a=cb=d(a, b) = (c, d) \iff a = c \land b = d.

  • Cartesian Product: A×B={(a,b)aAbB}A \times B = \{(a, b) \mid a \in A \land b \in B\}.

  • Relation: Any set of ordered pairs RA×BR \subseteq A \times B. If A=BA = B, it is a "relation on A."

  • Domain and Range:

    • Dom(R): {aAbB((a,b)R)}\{a \in A \mid \exists b \in B ((a, b) \in R)\}.

    • Ran(R): {bBaA((a,b)R)}\{b \in B \mid \exists a \in A ((a, b) \in R)\}.

  • Properties of Relations (on set A):

    • Reflexive: xA(xRx)\forall x \in A(xRx).

    • Symmetric: x,yA(xRyyRx)\forall x, y \in A(xRy \rightarrow yRx).

    • Transitive: x,y,zA((xRyyRz)xRz)\forall x, y, z \in A((xRy \land yRz) \rightarrow xRz).

    • Antisymmetric: x,yA((xRyyRx)x=y)\forall x, y \in A((xRy \land yRx) \rightarrow x = y).

  • Equivalence Relation: A relation that is reflexive, symmetric, and transitive. It divides a set into equivalence classes ([x]R={yAyRx}[x]_R = \{y \in A \mid yRx\}), which form a partition of the set (pairwise disjoint nonempty subsets whose union is the set).

  • Partial Order: A relation that is reflexive, antisymmetric, and transitive.

  • Total Order: A partial order where every pair of elements is comparable (xRyyRxxRy \lor yRx).

Function Theory

  • Function Definition: A relation fA×Bf \subseteq A \times B is a function (f:ABf: A \rightarrow B) if aA!bB((a,b)f)\forall a \in A \exists! b \in B ((a, b) \in f).

  • One-to-One (Injective): a1,a2A(f(a1)=f(a2)a1=a2)\forall a_1, a_2 \in A(f(a_1) = f(a_2) \rightarrow a_1 = a_2). Distinct inputs yield distinct outputs.

  • Onto (Surjective): bBaA(f(a)=b)\forall b \in B \exists a \in A(f(a) = b). The range equals the codomain.

  • Bijection: A function both one-to-one and onto. Also called a one-to-one correspondence.

  • Inverse Function: If ff is a bijection, f1f^{-1} is a function from BB to AA where f1(b)=a    f(a)=bf^{-1}(b) = a \iff f(a) = b.

  • Composition: (gf)(x)=g(f(x))(g \circ f)(x) = g(f(x)).

Mathematical Induction

  • Principle of Induction: To prove nNP(n)\forall n \in \mathbb{N} P(n):

    1. Base Case: Prove P(0)P(0).

    2. Induction Step: Prove nN(P(n)P(n+1))\forall n \in \mathbb{N} (P(n) \rightarrow P(n+1)).

  • Strong Induction: To prove nNP(n)\forall n \in \mathbb{N} P(n), prove that if P(k)P(k) holds for all k < n, then P(n)P(n) holds.

  • Well-Ordering Principle: Every nonempty set of natural numbers contains a smallest element.

  • Recursive Definitions: Defining a function by its value at base cases and providing a rule to determine higher values from smaller ones (e.g., Factorials: 0!=10! = 1, (n+1)!=(n+1)×n!(n+1)! = (n+1) \times n!; Fibonacci Sequence: F0=0,F1=1,Fn=Fn1+Fn2F_0 = 0, F_1 = 1, F_n = F_{n-1} + F_{n-2}).

Infinity and Set Cardinality

  • Equinumerosity (ABA \sim B): Two sets have the same size if there exists a bijection between them.

  • Countable Sets: Sets equinumerous to a subset of Z+\mathbb{Z}^+. Includes all finite sets and denumerable sets (like Z\mathbb{Z} and Q\mathbb{Q}).

  • Uncountable Sets: Sets that are not countable (e.g., R\mathbb{R} and P(Z+)\mathcal{P}(\mathbb{Z}^+)).

  • Cantor’s Diagonal Argument: Used to prove P(Z+)\mathcal{P}(\mathbb{Z}^+) is uncountable by showing that any list of subsets must miss at least one set D={nZ+nf(n)}D = \{n \in \mathbb{Z}^+ \mid n \notin f(n)\}.

  • Cantor–Schröder–Bernstein Theorem: If ABA \preceq B (one-to-one function from AA to BB) and BAB \preceq A (one-to-one function from BB to AA), then ABA \sim B.

  • Continuum Hypothesis: The conjecture (neither provable nor disprovable in standard set theory) that there is no cardinality strictly between denumerable infinity and the cardinality of the real numbers.