Logic and Induction Flashcards

Foundations and Key Concepts of Mathematics

  • Historical Perspective:

    • Simon Stevin (17th century) defined mathematics using the Dutch term wisconst, which translates to the "art of the certain" ("kunst van het gewisse").
  • Core Building Blocks of Mathematics:

    • Axioms: Statements accepted as foundational truths without proof.
    • Example: Every natural number nn has a successor.
    • Definitions: Formal and precise descriptions of concepts or mathematical terms.
    • Example: A natural number pp is defined as a prime number if it cannot be expressed as the product of two numbers that are both unequal to pp.
    • Theorems: Mathematical assertions and results derived logically from previously established axioms, definitions, and theorems.
    • Example: The square of an odd number is always an odd number.
    • Proofs: Rigorous logical derivations of a theorem starting from axioms, definitions, and prior theorems.

Proof Structure: Direct Proof Example

  • Theorem Statement:

    • If kk is an odd integer, then k2k^2 is also an odd integer.
  • Definition of an Odd Integer:

    • An integer xx is defined as odd if there exists an integer nn such that x=2n+1x = 2n + 1
  • Step-by-Step Direct Proof:

    • Let kk be an arbitrary odd integer.
    • Objective: Prove that k2k^2 is an odd integer.
    • Apply the definition of an odd integer to kk:
    • There exists an integer nn such that k=2n+1k = 2n + 1
    • Square both sides of the equality:
    • k2=(2n+1)2=4n2+4n+1k^2 = (2n + 1)^2 = 4n^2 + 4n + 1
    • Factor out 22 from the quadratic and linear terms:
    • k2=2(2n2+2n)+1k^2 = 2(2n^2 + 2n) + 1
    • Define m=2n2+2nm = 2n^2 + 2n. Since nn is an integer, mm is also an integer (mZm \in \mathbb{Z}).
    • Substitute mm back into the equation:
    • k2=2m+1k^2 = 2m + 1
    • By definition, any integer expressed in the form 2m+12m + 1 (where mZm \in \mathbb{Z}) is odd.
    • Conclusion: k2k^2 is odd.

Propositional Logic and Compound Statements

  • Definition of Logical Statements:

    • Logical reasoning is built upon assertions or statements (propositions) that possess a definite truth value, meaning they can be evaluated unambiguously as either true (TT) or false (FF).
  • Propositional Variables:

    • Statements are symbolized using proposition letters such as PP, QQ, and RR:
    • PP: "my hair is blue"
    • QQ: "3 is a prime number"
    • RR: "all birds can fly"
  • Compound Propositions:

    • Basic statements can be combined using logical operators to form compound statements:
    • Negation ("Not PP"): "my hair is not blue"
    • Conjunction ("PP and QQ"): "my hair is blue and 3 is a prime number"
    • Implication ("If QQ, then RR"): "if 3 is a prime number, then all birds can fly"

Logical Connectives and Truth Tables

  • Logical Connectives Overview:

    • Negation: ¬P\neg P (read as "not PP")
    • Conjunction: PQP \land Q (read as "PP and QQ")
    • Disjunction: PQP \lor Q (read as "PP or QQ")
    • Implication: PQP \Rightarrow Q (read as "if PP, then QQ")
    • Equivalence: PQP \Leftrightarrow Q (read as "PP if and only if QQ")
  • Truth Table for Negation (¬P\neg P):

    • When PP is TT, ¬P\neg P is FF.
    • When PP is FF, ¬P\neg P is TT.
  • Truth Table for Conjunction (PQP \land Q):

    • P=TP = T, Q=T    PQ=TQ = T \implies P \land Q = T
    • P=TP = T, Q=F    PQ=FQ = F \implies P \land Q = F
    • P=FP = F, Q=T    PQ=FQ = T \implies P \land Q = F
    • P=FP = F, Q=F    PQ=FQ = F \implies P \land Q = F
    • Rule: Conjunction is true if and only if both statements PP and QQ are true.
  • Truth Table for Disjunction (PQP \lor Q):

    • P=TP = T, Q=T    PQ=TQ = T \implies P \lor Q = T
    • P=TP = T, Q=F    PQ=TQ = F \implies P \lor Q = T
    • P=FP = F, Q=T    PQ=TQ = T \implies P \lor Q = T
    • P=FP = F, Q=F    PQ=FQ = F \implies P \lor Q = F
    • Rule: Disjunction is true if at least one of the constituent statements is true.

Truth Table Analysis: Implication and Equivalence

  • Evaluation of Material Implication (PQP \Rightarrow Q):

    • "If 2 is even, then 3 is odd": True (TTT \Rightarrow T evaluates to TT).
    • "If 2 is even, then 3 is even": False (TFT \Rightarrow F evaluates to FF).
    • "If 2 is odd, then 3 is odd": True (FTF \Rightarrow T evaluates to TT).
    • "If 2 is odd, then 3 is even": True (FFF \Rightarrow F evaluates to TT).
  • Complete Truth Table for Implication (PQP \Rightarrow Q):

    • P=TP = T, Q=T    PQ=TQ = T \implies P \Rightarrow Q = T
    • P=TP = T, Q=F    PQ=FQ = F \implies P \Rightarrow Q = F
    • P=FP = F, Q=T    PQ=TQ = T \implies P \Rightarrow Q = T
    • P=FP = F, Q=F    PQ=TQ = F \implies P \Rightarrow Q = T
    • Key Property: An implication PQP \Rightarrow Q is false if and only if the premise PP is true and the conclusion QQ is false. If the premise PP is false, the implication is vacuously true regardless of QQ
  • Complete Truth Table for Equivalence (PQP \Leftrightarrow Q):

    • P=TP = T, Q=T    PQ=TQ = T \implies P \Leftrightarrow Q = T
    • P=TP = T, Q=F    PQ=FQ = F \implies P \Leftrightarrow Q = F
    • P=FP = F, Q=T    PQ=FQ = T \implies P \Leftrightarrow Q = F
    • P=FP = F, Q=F    PQ=TQ = F \implies P \Leftrightarrow Q = T
    • Key Property: Equivalence is true when both statements share the exact same truth value.

Multi-Variable Truth Table Construction

  • Constructing the Truth Table for (PQ)R(P \land Q) \Rightarrow R
    • Total number of truth rows for 3 propositions: 23=82^3 = 8 rows.
    • Complete truth values:
    • Row 1: P=TP = T, Q=TQ = T, R=T    PQ=T    (PQ)R=TR = T \implies P \land Q = T \implies (P \land Q) \Rightarrow R = T
    • Row 2: P=TP = T, Q=TQ = T, R=F    PQ=T    (PQ)R=FR = F \implies P \land Q = T \implies (P \land Q) \Rightarrow R = F
    • Row 3: P=TP = T, Q=FQ = F, R=T    PQ=F    (PQ)R=TR = T \implies P \land Q = F \implies (P \land Q) \Rightarrow R = T
    • Row 4: P=TP = T, Q=FQ = F, R=F    PQ=F    (PQ)R=TR = F \implies P \land Q = F \implies (P \land Q) \Rightarrow R = T
    • Row 5: P=FP = F, Q=TQ = T, R=T    PQ=F    (PQ)R=TR = T \implies P \land Q = F \implies (P \land Q) \Rightarrow R = T
    • Row 6: P=FP = F, Q=TQ = T, R=F    PQ=F    (PQ)R=TR = F \implies P \land Q = F \implies (P \land Q) \Rightarrow R = T
    • Row 7: P=FP = F, Q=FQ = F, R=T    PQ=F    (PQ)R=TR = T \implies P \land Q = F \implies (P \land Q) \Rightarrow R = T
    • Row 8: P=FP = F, Q=FQ = F, R=F    PQ=F    (PQ)R=TR = F \implies P \land Q = F \implies (P \land Q) \Rightarrow R = T

Logical Equivalence Analysis

  • Definition of Logical Equivalence:

    • Two logical formulas are defined as logically equivalent if and only if they yield identical truth values for every possible combination of truth values of their constituent propositional variables.
  • Equivalence Proof Exercise: Comparing (PQ)(QP)(P \Rightarrow Q) \land (Q \Rightarrow P) and PQP \Leftrightarrow Q

    • Row 1 (P=TP = T, Q=TQ = T
    • PQ=TP \Rightarrow Q = T
    • QP=TQ \Rightarrow P = T
    • (PQ)(QP)=T(P \Rightarrow Q) \land (Q \Rightarrow P) = T
    • PQ=TP \Leftrightarrow Q = T
    • Row 2 (P=TP = T, Q=FQ = F
    • PQ=FP \Rightarrow Q = F
    • QP=TQ \Rightarrow P = T
    • (PQ)(QP)=F(P \Rightarrow Q) \land (Q \Rightarrow P) = F
    • PQ=FP \Leftrightarrow Q = F
    • Row 3 (P=FP = F, Q=TQ = T
    • PQ=TP \Rightarrow Q = T
    • QP=FQ \Rightarrow P = F
    • (PQ)(QP)=F(P \Rightarrow Q) \land (Q \Rightarrow P) = F
    • PQ=FP \Leftrightarrow Q = F
    • Row 4 (P=FP = F, Q=FQ = F
    • PQ=TP \Rightarrow Q = T
    • QP=TQ \Rightarrow P = T
    • (PQ)(QP)=T(P \Rightarrow Q) \land (Q \Rightarrow P) = T
    • PQ=TP \Leftrightarrow Q = T
    • Conclusion: Because the final columns for (PQ)(QP)(P \Rightarrow Q) \land (Q \Rightarrow P) and PQP \Leftrightarrow Q are identical in all 4 rows (T,F,F,TT, F, F, T), the two formulas are logically equivalent.

Set Theory and Standard Number Sets

  • Fundamentals of Sets:

    • A set is defined as an unordered collection of distinct objects.
    • Example: Set Z={cow,pig,elephant}Z = \{\text{cow}, \text{pig}, \text{elephant}\}.
    • Objects within a set are called elements.
    • Membership Notation: cowZ\text{cow} \in Z denotes that "cow is an element of set ZZ".
  • Standard Sets of Numbers:

    • Empty Set: ={}\emptyset = \{\} (contains no elements).
    • Set of Natural Numbers: N={1,2,3,}\mathbb{N} = \{1, 2, 3, \dots\}
    • Set of Integers: Z={,2,1,0,1,2,}\mathbb{Z} = \{\dots, -2, -1, 0, 1, 2, \dots\}
    • Set of Rational Numbers: Q={pq:p,qZ and q0}\mathbb{Q} = \left\{\frac{p}{q} : p, q \in \mathbb{Z} \text{ and } q \neq 0\right\}
    • Set of Real Numbers: R\mathbb{R}
    • Closed Interval: [a,b]={xR:axb}[a, b] = \{x \in \mathbb{R} : a \le x \le b\}

Quantifiers and Predicate Logic

  • Logical Quantifiers:

    • Universal Quantifier (\forall): Symbolizes "for all" or "for every".
    • Existential Quantifier (\exists): Symbolizes "there exists at least one".
  • Formalizing Expressions with Quantifiers:

    • Statement: "There exists a number greater than 3"
    • Formal expression: n,n>3\exists n, n > 3
    • Statement: "Every natural number is positive"
    • Formal expression: n,(nNn>0)\forall n, (n \in \mathbb{N} \Rightarrow n > 0)
  • Importance of Universe of Discourse (Context):

    • The truth value of quantified statements depends strictly on the set or universe of discourse being considered.
    • Example: The statement n,n>3\exists n, n > 3 is true in the universe of real numbers R\mathbb{R}, but false in the restricted universe of the closed interval [0,1][0, 1].

Truth Evaluation of Quantified Statements

  • Example 1: nN,n+1>n\forall n \in \mathbb{N}, n + 1 > n

    • Status: True (TT). Adding 1 to any natural number always yields a strictly larger number.
  • Example 2: xQ,x21=0\forall x \in \mathbb{Q}, x^2 - 1 = 0

    • Status: False (FF).
    • Counterexample: Choose x=12Qx = \frac{1}{2} \in \mathbb{Q}. Then (12)21=141=340\left(\frac{1}{2}\right)^2 - 1 = \frac{1}{4} - 1 = -\frac{3}{4} \neq 0
  • Example 3: x,yR,x2+y20\forall x, y \in \mathbb{R}, x^2 + y^2 \ge 0

    • Status: True (TT). The square of any real number is non-negative, so the sum of two squares is always greater than or equal to zero.
  • Example 4: xZ,x21=0\exists x \in \mathbb{Z}, x^2 - 1 = 0

    • Status: True (TT).
    • Example: Choose x=1Zx = 1 \in \mathbb{Z}, which satisfies 121=01^2 - 1 = 0
  • Example 5: nN,n2=2\exists n \in \mathbb{N}, n^2 = 2

    • Status: False (FF). The square root of 2 (2\sqrt{2}) is irrational and thus not a natural number (2N\sqrt{2} \notin \mathbb{N}).

Proofs by Mathematical Induction

  • Principle of Mathematical Induction (Principe van Volledige Inductie):
    • To prove that a statement P(n)P(n) holds for all natural numbers nNn \in \mathbb{N}, it is necessary and sufficient to demonstrate two essential steps:
    1. Base Step: Show that the statement holds for n=1n = 1 (i.e., P(1)P(1) is true).
    2. Inductive Step: Show that if the statement holds for an arbitrary natural number nn (i.e., assuming P(n)P(n) is true), then it must also hold for n+1n + 1 (i.e., P(n+1)P(n+1) is true).
    • Visual Conceptual Model:
    • Induction acts like a chain reaction or set of falling dominoes, propagating truth from 123nn+11 \to 2 \to 3 \to \dots \to n \to n+1 \to \dots

Sequential transition diagram representing the principle of mathematical induction from n to n plus 1

Induction Proof Example 1: Sum of Natural Numbers

  • Claim: For all nNn \in \mathbb{N}, statement P(n)P(n) holds:

    • 1+2++n=n(n+1)21 + 2 + \dots + n = \frac{n(n+1)}{2}
  • Step-by-Step Proof:

    • Base Step (n=1n = 1):
    • Left-hand side: 11
    • Right-hand side: 1×(1+1)2=1×22=1\frac{1 \times (1 + 1)}{2} = \frac{1 \times 2}{2} = 1
    • Both sides are equal. Therefore, P(1)P(1) holds.
    • Induction Hypothesis (IH):
    • Assume P(n)P(n) holds for an arbitrary nNn \in \mathbb{N}.
    • 1+2++n=n(n+1)21 + 2 + \dots + n = \frac{n(n+1)}{2}
    • Inductive Step:
    • Prove P(n+1)P(n+1) holds:
    • 1+2++n+(n+1)1 + 2 + \dots + n + (n + 1)
    • Substitute the Induction Hypothesis for the sum of the first nn terms:
    • =n(n+1)2+(n+1)= \frac{n(n+1)}{2} + (n + 1)
    • Find a common denominator:
    • =n2+n2+2(n+1)2= \frac{n^2 + n}{2} + \frac{2(n + 1)}{2}
    • =n2+n+2n+22= \frac{n^2 + n + 2n + 2}{2}
    • Combine terms in the numerator:
    • =n2+3n+22= \frac{n^2 + 3n + 2}{2}
    • Factor the quadratic expression in the numerator:
    • =(n+1)(n+2)2= \frac{(n + 1)(n + 2)}{2}
    • Notice that this expression matches the formula for n+1n + 1: (n+1)((n+1)+1)2\frac{(n+1)((n+1)+1)}{2}.
    • Conclusion:
    • By the Principle of Mathematical Induction, P(n)P(n) holds for all nNn \in \mathbb{N}.

Induction Proof Example 2: Divisibility Proof

  • Claim: Prove that 23n12^{3n} - 1 is divisible by 77 for all nNn \in \mathbb{N}.

  • Step-by-Step Proof:

    • Base Step (n=1n = 1):
    • Evaluate for n=1n = 1:
    • 23×11=231=81=72^{3 \times 1} - 1 = 2^3 - 1 = 8 - 1 = 7
    • Since 77 is divisible by 77, the statement holds for n=1n = 1.
    • Induction Hypothesis (IH):
    • Assume that 23n12^{3n} - 1 is divisible by 77 for an arbitrary nNn \in \mathbb{N}.
    • By definition of divisibility, there exists an integer kZk \in \mathbb{Z} such that:
    • 23n1=7k    23n=7k+12^{3n} - 1 = 7k \implies 2^{3n} = 7k + 1
    • Inductive Step:
    • Prove that 23(n+1)12^{3(n+1)} - 1 is divisible by 77:
    • 23(n+1)1=23n+312^{3(n+1)} - 1 = 2^{3n + 3} - 1
    • Use exponent laws to separate 232^3:
    • =23n×231=8×23n1= 2^{3n} \times 2^3 - 1 = 8 \times 2^{3n} - 1
    • Substitute the Induction Hypothesis (23n=7k+12^{3n} = 7k + 1):
    • =8×(7k+1)1= 8 \times (7k + 1) - 1
    • Expand the expression:
    • =56k+81=56k+7= 56k + 8 - 1 = 56k + 7
    • Factor out 77:
    • =7×(8k+1)= 7 \times (8k + 1)
    • Define m=8k+1m = 8k + 1. Since kZk \in \mathbb{Z}, mZm \in \mathbb{Z}.
    • Thus, 23(n+1)1=7m2^{3(n+1)} - 1 = 7m, which is a multiple of 77
    • Conclusion:
    • The claim holds for n+1n + 1. By the Principle of Mathematical Induction, 23n12^{3n} - 1 is divisible by 77 for all nNn \in \mathbb{N}.

Set Theory Foundations and Russell's Paradox

  • Definition of Russell's Paradox:

    • Consider the set SS defined as the set of all sets that are not elements of themselves:
    • S={K:K is a set and KK}S = \{K : K \text{ is a set and } K \notin K\}
  • Logical Analysis of Set Membership:

    • Evaluate whether SSS \in S:
    • Case 1: Assume SSS \in S.
      • By the defining condition of SS, any element KSK \in S must satisfy KKK \notin K. Therefore, SSS \notin S. This is a direct contradiction!
    • Case 2: Assume SSS \notin S.
      • By the defining condition of SS, any set KK that satisfies KKK \notin K must belong to SS. Therefore, SSS \in S. This is also a direct contradiction!
  • Mathematical Implications:

    • Neither case is logically possible.
    • Conclusion: The set SS cannot exist under naive set theory. Not every arbitrary collection or logical rule forms a valid mathematical set.