Introduction to Logic, Quantifiers, and Proofs

Notation and Foundational Conventions

  • Number Sets:

    • Standard natural numbers: N={0,1,2,… }\mathbb{N} = \{0, 1, 2, \dots\}
    • Positive integers / non-zero natural numbers: N∗=N∖{0}={1,2,3,… }\mathbb{N}^* = \mathbb{N} \setminus \{0\} = \{1, 2, 3, \dots\}
    • Integers (Z\mathbb{Z}), rational numbers (Q\mathbb{Q}), and real numbers (R\mathbb{R}) follow standard mathematical definitions.
  • Logical Connectives:

    • Negation: ¬\neg ("not")
    • Conjunction: ∧\land ("and")
    • Disjunction: ∨\lor ("or")
    • Implication: ⇒\Rightarrow ("implies")
    • Biconditional / Equivalence: ⇔\Leftrightarrow ("equivalent" or "if and only if")
  • Truth Values:

    • True is designated by TT (or the binary digit 11).
    • False is designated by FF (or the binary digit 00).
  • Quantifier Syntax:

    • Universal quantification: ∀x∈E:P(x)\forall x \in E : P(x)
    • Existential quantification: ∃x∈E:P(x)\exists x \in E : P(x)
    • Consecutive quantifiers are separated by a comma (for example, ∀x∈R,∀y∈R:x+y=y+x\forall x \in \mathbb{R}, \forall y \in \mathbb{R} : x + y = y + x).
  • Numbering Scheme:

    • All definitions, theorems, propositions, examples, and exercises share a single sequential counter within each section (e.g., Theorem 1.3.2 represents the second numbered item of Section 1.3).

Propositional Logic

  • Definition 1.1.1 (Proposition):
    • A statement (or proposition) is a declarative sentence that is either true (denoted TT or 11) or false (denoted FF or 00), but not both simultaneously.
    • Fundamental truth table for a proposition PP:
PP
TT
FF
  • Example 1.1.2 (Sentences That Are Propositions):

    • "Socrates was a human." — A proposition because it is a declarative historical assertion that has a definite truth value (TT).
    • "All cows are brown." — A proposition because it makes a definitive universal assertion that is either true or false (it is false, FF).
    • "Some triangles have 5 sides." — A proposition (it is false, FF, because by definition triangles have 3 sides).
    • "There is life on Mars." — A proposition because it asserts an objective fact about reality that is definitively true or false, regardless of whether human science has currently confirmed it.
    • "Humans are just fish with legs." — A proposition (it is a declarative sentence with a truth value, FF).
    • "Milk is white." — A proposition (it is a declarative sentence with a truth value, TT).
  • Example 1.1.3 (Sentences That Are Not Propositions):

    • "Do you have a dog?" — Not a proposition; it is an interrogative sentence (a question) and therefore cannot be true or false.
    • "Clean your room!" — Not a proposition; it is an imperative sentence (a command/order).
    • "Some coffee mug with a mermaid on it." — Not a proposition; it is an incomplete sentence (a noun phrase lacking a main verb or predicate).
    • "2x=x+22x = x + 2" — Not a proposition; while it is a declarative mathematical sentence, its truth value cannot be determined unless a specific value is assigned to the variable xx. Without an assignment or a quantifier, it is neither true nor false.
  • Exercise 1.1.4 (Evaluating Whether Statements Are Propositions):

    • "I am a dolphin." — A proposition (it is a declarative statement that is false for any human speaker).
    • "Supercalifragilisticexpialidocious." — Not a proposition (an isolated word, not a complete sentence).
    • "Jupiter is the 5th planet from the sun." — A proposition (a declarative assertion that is true, TT).
    • "On Thursdays, van Gogh painted landscapes." — A proposition (a factual assertion that possesses an objective truth value, TT or FF).
  • Taxonomy of Propositions:

    • Atomic (Simple) propositions: Statements that cannot be broken down into simpler constituent propositions (e.g., "2+2=42 + 2 = 4"). These are traditionally denoted by propositional variables such as PP, QQ, RR, or AA, BB.
    • Compound (Complex) propositions: Statements constructed by joining one or more atomic propositions using logical connectives.

Classification diagram of propositions into atomic and compound

Logical Connectives and Truth Tables

  • Definition 1.1.5 (Negation):
    • The negation of a proposition PP is the proposition ¬P\neg P, which is true when PP is false, and false when PP is true.
  • Truth table for negation:
PP¬P\neg P
TTFF
FFTT
  • Example 1.1.6:

    • Let PP: "11 is an even number" (which is false, FF).
    • Then ¬P\neg P: "11 is not an even number" is true (TT).
  • Definition 1.1.7 (Conjunction):

    • The conjunction of propositions PP and QQ is the proposition P∧QP \land Q ("PP and QQ"), which is true if both PP and QQ are true, and false otherwise.
    • Truth table for conjunction:
PPQQP∧QP \land Q
TTTTTT
TTFFFF
FFTTFF
FFFFFF
  • Example 1.1.8:

    • Let PP: "2 divides 9" (false, FF).
    • Let QQ: "136 is a multiple of 17" (true, TT, since 17×8=13617 \times 8 = 136).
    • The conjunction P∧QP \land Q is false because PP is false.
  • Definition 1.1.9 (Disjunction):

    • The disjunction of propositions PP and QQ is the proposition P∨QP \lor Q ("PP or QQ"), which is true if at least one of P,QP, Q is true, and false otherwise (inclusive "or").
    • Truth table for disjunction:
PPQQP∨QP \lor Q
TTTTTT
TTFFTT
FFTTTT
FFFFFF
  • Example 1.1.10:

    • Taking PP: "2 divides 9" (FF) and QQ: "136 is a multiple of 17" (TT).
    • The disjunction P∨QP \lor Q: "2 divides 9 or 136 is a multiple of 17" is true because QQ is true.
  • Definition 1.1.11 (Implication / Conditional):

    • The proposition "PP implies QQ", denoted P⇒QP \Rightarrow Q, is false only when PP is true and QQ is false. In particular, if PP is false, the implication is vacuously true, regardless of the truth value of QQ.
    • In the conditional statement P⇒QP \Rightarrow Q, PP is termed the hypothesis (or antecedent) and QQ is termed the conclusion (or consequent).
    • Truth table for implication:
PPQQP⇒QP \Rightarrow Q
TTTTTT
TTFFFF
FFTTTT
FFFFTT
  • Example 1.1.12 (Implications Over Real Numbers):

    • Let x∈Rx \in \mathbb{R}:
    1. (x=3)⇒(x2=9)(x = 3) \Rightarrow (x^2 = 9) is true (since 32=93^2 = 9).
    2. (x2=9)⇒(x=3)(x^2 = 9) \Rightarrow (x = 3) is false (counterexample: x=−3x = -3 yields (−3)2=9(-3)^2 = 9, but −3≠3-3 \ne 3).
    3. (x2=9)⇒(x=−3∨x=3)(x^2 = 9) \Rightarrow (x = -3 \lor x = 3) is true.
    4. (x>3)⇒(x2>9)(x > 3) \Rightarrow (x^2 > 9) is true.
    5. (x<−3)⇒(x2>9)(x < -3) \Rightarrow (x^2 > 9) is true (e.g., (−4)2=16>9(-4)^2 = 16 > 9).
    6. (x<−3)⇒(x2<9)(x < -3) \Rightarrow (x^2 < 9) is false (since any number less than −3-3 has a square strictly greater than 99).
  • Proposition 1.1.13 (Converse, Contrapositive, and Negation of an Implication):

    • For any implication P⇒QP \Rightarrow Q:
    • Its converse is: Q⇒PQ \Rightarrow P
    • Its contrapositive is: ¬Q⇒¬P\neg Q \Rightarrow \neg P
  • Its negation is: P∧¬QP \land \neg Q

  • Example 1.1.14:

    • Consider the implication (n2 is even)⇒(n is even)(n^2 \text{ is even}) \Rightarrow (n \text{ is even}):
    1. Its converse is (n is even)⇒(n2 is even)(n \text{ is even}) \Rightarrow (n^2 \text{ is even}).
    2. Its contrapositive is (n is odd)⇒(n2 is odd)(n \text{ is odd}) \Rightarrow (n^2 \text{ is odd}).
    3. Its negation is (n2 is even)∧(n is odd)(n^2 \text{ is even}) \land (n \text{ is odd}).
  • Definition 1.1.15 (Biconditional / Equivalence):

    • The proposition P⇔QP \Leftrightarrow Q ("PP is equivalent to QQ" or "PP if and only if QQ") is true whenever PP and QQ share identical truth values.
    • It expresses that PP is a necessary and sufficient condition for QQ.
    • It is logically equivalent to the conjunction of two mutual implications: (P⇒Q)∧(Q⇒P)(P \Rightarrow Q) \land (Q \Rightarrow P).
    • Truth table for biconditional:
PPQQP⇔QP \Leftrightarrow Q
TTTTTT
TTFFFF
FFTTFF
FFFFTT
  • Example 1.1.16:

    • For every x∈Rx \in \mathbb{R}:     x2−1=0⇔(x=−1∨x=1)x^2 - 1 = 0 \Leftrightarrow (x = -1 \lor x = 1)
    • This equivalence holds because both the implication (x2−1=0)⇒(x=−1∨x=1)(x^2 - 1 = 0) \Rightarrow (x = -1 \lor x = 1) and its converse ((x=−1∨x=1)⇒(x2−1=0))((x = -1 \lor x = 1) \Rightarrow (x^2 - 1 = 0)) are true.
  • Precedence of Logical Operators and Complex Truth Tables:

    • The negation connective ¬\neg takes precedence over all other logical connectives unless explicit parentheses mandate otherwise.
  • Evaluating compound statements requires systematic truth tables. For instance, analyzing (P⇒R)∧(Q∨¬R)(P \Rightarrow R) \land (Q \lor \neg R):

PPQQRRP⇒RP \Rightarrow R¬R\neg RQ∨¬RQ \lor \neg R(P⇒R)∧(Q∨¬R)(P \Rightarrow R) \land (Q \lor \neg R)
TTTTTTTTFFTTTT
TTTTFFFFTTTTFF
TTFFTTTTFFFFFF
TTFFFFFFTTTTFF
FFTTTTTTFFTTTT
FFTTFFTTTTTTTT
FFFFTTTTFFFFFF
FFFFFFTTTTTTTT

Logical Equivalence and Fundamental Equivalences

  • Definition 1.1.18 (Logical Equivalence):

    • Two propositions PP and QQ are logically equivalent, written P≡QP \equiv Q, if they have the exact same truth table—that is, they yield identical truth values for every possible combination of truth assignments to their variables.
  • Example 1.1.19 (Proof of Biconditional Equivalence):

    • Proving that P⇔Q≡(P⇒Q)∧(Q⇒P)P \Leftrightarrow Q \equiv (P \Rightarrow Q) \land (Q \Rightarrow P) by constructing a comparative truth table:
PPQQP⇒QP \Rightarrow QQ⇒PQ \Rightarrow P(P⇒Q)∧(Q⇒P)(P \Rightarrow Q) \land (Q \Rightarrow P)P⇔QP \Leftrightarrow QEqual?
TTTTTTTTTTTT✓\checkmark
TTFFFFTTFFFF✓\checkmark
FFTTTTFFFFFF✓\checkmark
FFFFTTTTTTTT✓\checkmark
  • The fifth and sixth columns match across all four rows, proving the equivalence.

    • Proposition 1.1.20 (Famous Equivalences):
  • Let PP and QQ be arbitrary propositions. The following standard equivalences hold:

    1. Expressing implication as disjunction:        (P⇒Q)≡(¬P∨Q)(P \Rightarrow Q) \equiv (\neg P \lor Q)
  1. Expressing implication as negated conjunction:    (P⇒Q)≡¬(P∧¬Q)(P \Rightarrow Q) \equiv \neg (P \land \neg Q)
  2. De Morgan's Laws:    ¬(P∧Q)≡¬P∨¬Q\neg (P \land Q) \equiv \neg P \lor \neg Q¬(P∨Q)≡¬P∧¬Q\neg (P \lor Q) \equiv \neg P \land \neg Q
  3. Double Negation:    ¬¬P≡P\neg \neg P \equiv P

Predicates and Quantifiers

  • Definition 1.2.1 (Predicate):

    • A predicate is a declarative sentence P(x)P(x) or P(x1,x2,…,xn)P(x_1, x_2, \dots, x_n) concerning one or more variables.
    • A predicate is not a proposition on its own because its truth value depends directly upon the specific value(s) assigned to its variable(s).
  • Definition 1.2.2 (Domain):

    • The domain (or universe) of a variable is the set of all permissible values that the variable may assume within a predicate.
  • Components of Quantified Statements:

    • Quantified statements in predicate logic are built from three components: quantifiers, domains, and predicates.

Diagram showing the components of quantified statements: quantifiers, domains, and predicates

  • Example: Let SS be the set of all humans, and let M(x)M(x) denote the predicate "xx is mortal". The statement "All humans are mortal" is formally transcribed as:     ∀x∈S:M(x)\forall x \in S : M(x)

    • Definition 1.2.3 (Universal Quantifier ∀\forall):
  • The universal quantification of a predicate P(x)P(x) over a domain EE is the proposition:     ∀x∈E:P(x)\forall x \in E : P(x)

  • It is true if P(x)P(x) is true for every element x∈Ex \in E, and false if there exists at least one element in EE for which P(x)P(x) is false.

  • The symbol ∀\forall is read as "for all", "for every", or "for each".

    • Definition 1.2.4 (Existential Quantifier ∃\exists):
  • The existential quantification of a predicate P(x)P(x) over a domain EE is the proposition:     ∃x∈E:P(x)\exists x \in E : P(x)

  • It is true if P(x)P(x) is true for at least one element x∈Ex \in E, and false if P(x)P(x) is false for every element in EE.

  • The symbol ∃\exists is read as "there exists" or "there is at least one".

    • Definition 1.2.5 (Unique Existential Quantifier ∃!\exists!):
  • The unique existential quantification of a predicate P(x)P(x) over a domain EE is the proposition:     ∃!x∈E:P(x)\exists! x \in E : P(x)

  • It is true if P(x)P(x) is true for exactly one unique element x∈Ex \in E.

  • The symbol ∃!\exists! is read as "there exists a unique" or "there is exactly one".

    • Example 1.2.6 (Evaluating Quantified Statements):
  • ∀n∈N∗:n2−1≥0\forall n \in \mathbb{N}^* : n^2 - 1 \ge 0 is true, because the smallest element of N∗\mathbb{N}^* is 11, where 12−1=0≥01^2 - 1 = 0 \ge 0, and for any integer n≥2n \ge 2, n2−1>0n^2 - 1 > 0.

  • ∀p∈N:p prime⇒p2≥4\forall p \in \mathbb{N} : p \text{ prime} \Rightarrow p^2 \ge 4 is true, because the smallest prime natural number is p=2p = 2, giving 22=4≥42^2 = 4 \ge 4, and all subsequent primes satisfy p≥3p \ge 3, giving p2≥9>4p^2 \ge 9 > 4.

  • ∀x∈R,∀y∈R:x+y=y+x\forall x \in \mathbb{R}, \forall y \in \mathbb{R} : x + y = y + x is true, expressing the commutativity of real addition.

  • ∃x∈R:x2=4\exists x \in \mathbb{R} : x^2 = 4 is true, because an explicit witness exists (e.g., x=2x = 2 satisfies 22=42^2 = 4).

  • ∀x∈Z,∃!y∈Z:x+y=0\forall x \in \mathbb{Z}, \exists! y \in \mathbb{Z} : x + y = 0 is true, because for any integer xx, its unique additive inverse is y=−xy = -x.

Negation of Quantified Statements

  • Proposition 1.2.7 (Negation Rules for Quantifiers):

    • Distributing a negation across a quantifier changes the quantifier type and negates the inner predicate:     ¬(∀x∈E:P(x))≡∃x∈E:¬P(x)\neg (\forall x \in E : P(x)) \equiv \exists x \in E : \neg P(x)¬(∃x∈E:P(x))≡∀x∈E:¬P(x)\neg (\exists x \in E : P(x)) \equiv \forall x \in E : \neg P(x)
    • Operational algorithm for negating consecutive quantifiers:
    1. Invert every universal quantifier to an existential quantifier: ∀↔∃\forall \leftrightarrow \exists.
    2. Keep the domain set EE unchanged.
    3. Pass the negation operator to the right until it is applied directly to the underlying predicate.
  • Example 1.2.8 (Negating a Universal-Existential Statement):

    • Problem: Negate ∀x∈R,∃y∈R:x+y>0\forall x \in \mathbb{R}, \exists y \in \mathbb{R} : x + y > 0.
    • Step-by-step derivation:     ¬[∀x∈R,∃y∈R:x+y>0]\neg [\forall x \in \mathbb{R}, \exists y \in \mathbb{R} : x + y > 0]∃x∈R:¬[∃y∈R:x+y>0]\exists x \in \mathbb{R} : \neg [\exists y \in \mathbb{R} : x + y > 0]∃x∈R,∀y∈R:¬(x+y>0)\exists x \in \mathbb{R}, \forall y \in \mathbb{R} : \neg (x + y > 0)∃x∈R,∀y∈R:x+y≤0\exists x \in \mathbb{R}, \forall y \in \mathbb{R} : x + y \le 0
  • Example 1.2.9 (Negating an Existential-Universal Statement):

    • Problem: Negate ∃x∈R,∀y∈R:x+y>0\exists x \in \mathbb{R}, \forall y \in \mathbb{R} : x + y > 0.
    • Step-by-step derivation:     ¬[∃x∈R,∀y∈R:x+y>0]\neg [\exists x \in \mathbb{R}, \forall y \in \mathbb{R} : x + y > 0]∀x∈R:¬[∀y∈R:x+y>0]\forall x \in \mathbb{R} : \neg [\forall y \in \mathbb{R} : x + y > 0]∀x∈R,∃y∈R:¬(x+y>0)\forall x \in \mathbb{R}, \exists y \in \mathbb{R} : \neg (x + y > 0)∀x∈R,∃y∈R:x+y≤0\forall x \in \mathbb{R}, \exists y \in \mathbb{R} : x + y \le 0

Methods of Mathematical Proof

  • Principles of Formal Proof:

    • A mathematical proof is a rigorous logical deduction demonstrating that a mathematical theorem must be true under specified axioms and hypotheses.
  • Direct Proof:

    • Method: To prove P⇒QP \Rightarrow Q, assume PP is true and deduce the truth of QQ through definitions, algebraic manipulations, and established facts.
    • Theorem 1.3.1: If nn is an even integer, then n2n^2 is even.
    • Proof:
      • Let nn be an even integer.
      • By definition of an even integer, n=2kn = 2k for some integer k∈Zk \in \mathbb{Z}.
      • Squaring both sides yields:         n2=(2k)2=4k2=2(2k2)n^2 = (2k)^2 = 4k^2 = 2(2k^2)
      • Since k∈Zk \in \mathbb{Z}, the term 2k22k^2 is an integer. Thus, n2n^2 is 22 times an integer, proving n2n^2 is even.
    • Theorem 1.3.2: If xx and yy are real numbers, then     x2+y2≥2xyx^2 + y^2 \ge 2xy
    • Proof:
      • For any real numbers x,y∈Rx, y \in \mathbb{R}, the square of their difference is non-negative:         (x−y)2≥0(x - y)^2 \ge 0
      • Expanding the left-hand side yields:         x2−2xy+y2≥0x^2 - 2xy + y^2 \ge 0
      • Adding 2xy2xy to both sides of the inequality gives:         x2+y2≥2xyx^2 + y^2 \ge 2xy
  • Proof by Contrapositive:

    • Method: An implication P⇒QP \Rightarrow Q is logically equivalent to its contrapositive ¬Q⇒¬P\neg Q \Rightarrow \neg P. Proof by contrapositive proceeds by assuming ¬Q\neg Q (the conclusion is false) and proving ¬P\neg P (the hypothesis is false).
    • Theorem 1.3.3: Let nn be an integer. If n2n^2 is even, then nn is even.
    • Proof:
      • The contrapositive to prove is: If nn is not even, then n2n^2 is not even (i.e., if nn is odd, then n2n^2 is odd).
      • Assume nn is odd. Then n=2k+1n = 2k + 1 for some integer k∈Zk \in \mathbb{Z}.
      • Squaring nn gives:         n2=(2k+1)2=4k2+4k+1=2(2k2+2k)+1n^2 = (2k + 1)^2 = 4k^2 + 4k + 1 = 2(2k^2 + 2k) + 1
      • Since kk is an integer, 2k2+2k2k^2 + 2k is an integer. Thus, n2n^2 is written in the form 2m+12m + 1 where m=2k2+2km = 2k^2 + 2k, proving that n2n^2 is odd.
      • Because the contrapositive is true, the original implication holds.
  • Proof by Contradiction (Reductio Ad Absurdum):

    • Method: To prove a proposition PP, assume its negation ¬P\neg P is true. Follow logical steps until reaching an explicit contradiction (such as Q∧¬QQ \land \neg Q, or contradicting an axiom or known fact). Conclude that ¬P\neg P must be false, meaning PP must be true.
  • Theorem 1.3.4: There do not exist integers aa and bb with b≠0b \ne 0 such that 2=a/b\sqrt{2} = a/b. In other words, 2\sqrt{2} is irrational.

  • Proof:

    • Assume, for contradiction, that 2\sqrt{2} is rational.
    • Then there exist integers a,b∈Za, b \in \mathbb{Z} with b≠0b \ne 0 such that 2=a/b\sqrt{2} = a/b.
  • Assume without loss of generality that the fraction a/ba/b is irreducible, meaning aa and bb share no common factor other than 11 (i.e., gcd⁡(a,b)=1\gcd(a, b) = 1).

  • Squaring both sides yields:   2=a2b22 = \frac{a^2}{b^2}

  • Multiplying by b2b^2:   a2=2b2a^2 = 2b^2

  • This shows a2a^2 is even. By Theorem 1.3.3, aa must also be even.

  • Since aa is even, a=2ca = 2c for some integer c∈Zc \in \mathbb{Z}.

  • Substituting this into a2=2b2a^2 = 2b^2 gives:   (2c)2=2b2(2c)^2 = 2b^24c2=2b24c^2 = 2b^2b2=2c2b^2 = 2c^2

  • This demonstrates b2b^2 is even. By Theorem 1.3.3, bb must also be even.

  • Since both aa and bb are even, 22 divides both aa and bb, which contradicts the assumption that gcd⁡(a,b)=1\gcd(a, b) = 1.

  • Therefore, the initial assumption is false, and 2\sqrt{2} is irrational.

Mathematical Induction

  • Foundational Concept:

    • Mathematical induction is designed to prove statements indexed by integers, P(n)P(n), for all n≥n0n \ge n_0.
    • The domino effect analogy:
    • Falling of the first domino: The base case P(n0)P(n_0) is proven true.
    • Transmission of impact: The inductive step proves that whenever any domino falls, it knocks down the subsequent domino (P(n)⇒P(n+1)P(n) \Rightarrow P(n + 1)).
    • Inevitable consequence: Every domino in the infinite chain falls (P(n)P(n) holds for all n≥n0n \ge n_0).
  • Theorem 1.3.5 (Principle of Mathematical Induction):

    • Let n0∈Nn_0 \in \mathbb{N} and let P(n0),P(n0+1),P(n0+2),…P(n_0), P(n_0 + 1), P(n_0 + 2), \dots be a family of statements. If:
    1. (Base case): P(n0)P(n_0) is true, and
    2. (Inductive step): For every integer n≥n0:P(n)⇒P(n+1)n \ge n_0 : P(n) \Rightarrow P(n + 1),     then P(n)P(n) is true for every integer n≥n0n \ge n_0.
  • Theorem 1.3.6 (Sum of the First nn Odd Numbers):

    • For every n∈N∗n \in \mathbb{N}^*:     1+3+5+⋯+(2n−1)=∑i=1n(2i−1)=n21 + 3 + 5 + \dots + (2n - 1) = \sum_{i=1}^n (2i - 1) = n^2
    • Inductive pattern discovery:
    • For n=1n = 1: 1=121 = 1^2
    • For n=2n = 2: 1+3=4=221 + 3 = 4 = 2^2
    • For n=3n = 3: 1+3+5=9=321 + 3 + 5 = 9 = 3^2
    • For n=4n = 4: 1+3+5+7=16=421 + 3 + 5 + 7 = 16 = 4^2
    • For n=5n = 5: 1+3+5+7+9=25=521 + 3 + 5 + 7 + 9 = 25 = 5^2
    • Proof by Induction:
    • Let P(n)P(n) denote the statement ∑i=1n(2i−1)=n2\sum_{i=1}^n (2i - 1) = n^2.
    • Base case (n=1n = 1):
      • Left-hand side: 2(1)−1=12(1) - 1 = 1.
      • Right-hand side: 12=11^2 = 1.
      • Both sides equal 11, so P(1)P(1) holds.
    • Inductive step:
      • Let n∈N∗n \in \mathbb{N}^* and assume P(n)P(n) holds: 1+3+⋯+(2n−1)=n21 + 3 + \dots + (2n - 1) = n^2.
      • We must prove P(n+1)P(n + 1): 1+3+⋯+(2n−1)+[2(n+1)−1]=(n+1)21 + 3 + \dots + (2n - 1) + [2(n + 1) - 1] = (n + 1)^2.
      • Grouping the first nn terms and using the induction hypothesis:         1+3+⋯+(2n−1)+[2(n+1)−1]=n2+(2n+1)1 + 3 + \dots + (2n - 1) + [2(n + 1) - 1] = n^2 + (2n + 1)=n2+2n+1= n^2 + 2n + 1=(n+1)2= (n + 1)^2
      • Thus P(n+1)P(n + 1) holds.
    • By mathematical induction, P(n)P(n) is true for all n∈N∗n \in \mathbb{N}^*.
  • Theorem 1.3.7 (Sum of the First nn Even Numbers):

    • For every n∈N∗n \in \mathbb{N}^*:     2+4+6+⋯+2n=∑i=1n2i=n(n+1)2 + 4 + 6 + \dots + 2n = \sum_{i=1}^n 2i = n(n + 1)
    • Proof by Induction:
    • Let P(n)P(n) denote the statement ∑i=1n2i=n(n+1)\sum_{i=1}^n 2i = n(n + 1).
    • Base case (n=1n = 1):
      • Left-hand side: 2(1)=22(1) = 2.
      • Right-hand side: 1⋅(1+1)=21 \cdot (1 + 1) = 2.
      • Both sides equal 22, so P(1)P(1) holds.
    • Inductive step:
      • Let n∈N∗n \in \mathbb{N}^* and assume P(n)P(n) holds: 2+4+⋯+2n=n(n+1)2 + 4 + \dots + 2n = n(n + 1).
      • We must prove P(n+1)P(n + 1): 2+4+⋯+2n+2(n+1)=(n+1)[(n+1)+1]2 + 4 + \dots + 2n + 2(n + 1) = (n + 1)[(n + 1) + 1].
      • Calculating the sum using the induction hypothesis:         2+4+⋯+2n+2(n+1)=n(n+1)+2(n+1)2 + 4 + \dots + 2n + 2(n + 1) = n(n + 1) + 2(n + 1)=(n+1)(n+2)= (n + 1)(n + 2)=(n+1)[(n+1)+1]= (n + 1)[(n + 1) + 1]
      • Thus P(n+1)P(n + 1) holds.
    • By mathematical induction, P(n)P(n) is true for all n∈N∗n \in \mathbb{N}^*.
  • Theorem 1.3.8 (Geometric Sum Formula):

    • Let k∈Rk \in \mathbb{R} with k≠1k \ne 1. Then for every n∈Nn \in \mathbb{N}:     1+k+k2+⋯+kn=∑i=0nki=kn+1−1k−11 + k + k^2 + \dots + k^n = \sum_{i=0}^n k^i = \frac{k^{n+1} - 1}{k - 1}
  • Proof by Induction:

    • Let P(n)P(n) denote the statement ∑i=0nki=kn+1−1k−1\sum_{i=0}^n k^i = \frac{k^{n+1} - 1}{k - 1}.
    • Base case (n=0n = 0):
    • Left-hand side: k0=1k^0 = 1.
    • Right-hand side: k0+1−1k−1=k−1k−1=1\frac{k^{0+1} - 1}{k - 1} = \frac{k - 1}{k - 1} = 1 (valid since k≠1k \ne 1).
      • Both sides equal 11, so P(0)P(0) holds.
    • Inductive step:
      • Let n∈Nn \in \mathbb{N} and assume P(n)P(n) holds: 1+k+⋯+kn=kn+1−1k−11 + k + \dots + k^n = \frac{k^{n+1} - 1}{k - 1}.
      • We must prove P(n+1)P(n + 1): 1+k+⋯+kn+kn+1=kn+2−1k−11 + k + \dots + k^n + k^{n+1} = \frac{k^{n+2} - 1}{k - 1}.
      • Adding kn+1k^{n+1} to both sides of the inductive hypothesis:         1+k+⋯+kn+kn+1=kn+1−1k−1+kn+11 + k + \dots + k^n + k^{n+1} = \frac{k^{n+1} - 1}{k - 1} + k^{n+1}=kn+1−1+kn+1(k−1)k−1= \frac{k^{n+1} - 1 + k^{n+1}(k - 1)}{k - 1}=kn+1−1+kn+2−kn+1k−1= \frac{k^{n+1} - 1 + k^{n+2} - k^{n+1}}{k - 1}=kn+2−1k−1= \frac{k^{n+2} - 1}{k - 1}
      • Thus P(n+1)P(n + 1) holds.
    • By mathematical induction, P(n)P(n) is true for all n∈Nn \in \mathbb{N}.
  • Exercise 1.3.9 (Demonstrating Four Proof Methods on One Proposition):

    • Proposition: Let nn be an integer. The sum of any two consecutive integers is odd, i.e., n+(n+1)n + (n + 1) is odd.
    • Method 1: Direct Proof:
    • Algebraic simplification gives n+(n+1)=2n+1n + (n + 1) = 2n + 1.
    • Since nn is an integer, 2n+12n + 1 satisfies the explicit definition of an odd integer (2k+12k + 1 with k=n∈Zk = n \in \mathbb{Z}).
    • Method 2: Proof by Contrapositive:
    • Prove that if n+(n+1)n + (n + 1) is not odd (i.e., even), then the integers cannot be consecutive.
    • Suppose n+(n+1)=2kn + (n + 1) = 2k for some integer kk.
    • Then 2n+1=2k2n + 1 = 2k, which implies 2(k−n)=12(k - n) = 1, meaning k−n=12k - n = \frac{1}{2}.
    • Since k,n∈Zk, n \in \mathbb{Z}, their difference must be an integer, which contradicts k−n=12∉Zk - n = \frac{1}{2} \notin \mathbb{Z}.
  • Method 3: Proof by Contradiction:

    • Assume that there exists an integer nn such that n+(n+1)n + (n + 1) is even.
    • Then 2n+1=2k2n + 1 = 2k for some k∈Zk \in \mathbb{Z}.
    • Rearranging gives 1=2(k−n)1 = 2(k - n), stating that 11 is an even integer (divisible by 22), which is a contradiction.
  • Method 4: Proof by Mathematical Induction (for n∈Nn \in \mathbb{N}):

    • Base case (n=0n = 0): 0+(0+1)=10 + (0 + 1) = 1, which is odd.
    • Inductive step: Assume n+(n+1)=2k+1n + (n + 1) = 2k + 1 for some k∈Zk \in \mathbb{Z}.
    • For n+1n + 1, the sum of consecutive integers is:     (n+1)+((n+1)+1)=(n+1)+(n+2)=[n+(n+1)]+2(n + 1) + ((n + 1) + 1) = (n + 1) + (n + 2) = [n + (n + 1)] + 2
    • Substituting the induction hypothesis yields (2k+1)+2=2(k+1)+1(2k + 1) + 2 = 2(k + 1) + 1.
    • Since k+1∈Zk + 1 \in \mathbb{Z}, the sum is odd.

Disproof by Counterexample

  • Definition and Mechanism:

    • A universal statement of the form ∀x:P(x)⇒Q(x)\forall x : P(x) \Rightarrow Q(x) is disproved by establishing the existence of a single element x0x_0 that satisfies the hypothesis P(x0)P(x_0) while violating the conclusion (¬Q(x0)\neg Q(x_0)).
  • The element x0x_0 is called a counterexample.

  • Finding a single valid counterexample proves the negation ∃x0:P(x0)∧¬Q(x0)\exists x_0 : P(x_0) \land \neg Q(x_0), thereby entirely refuting the universally quantified claim.

  • Example 1.3.10 (Disproving Universal Statements via Counterexample):

    1. Statement: ∀n∈N:n prime⇒n odd\forall n \in \mathbb{N} : n \text{ prime} \Rightarrow n \text{ odd}
    • Evaluation: False.
    • Counterexample: Consider n=2n = 2. The integer 22 is prime (satisfies the hypothesis), but 22 is even (violates the conclusion). Therefore, n=2n = 2 serves as a counterexample.
    1. Statement: ∀n∈N:n2+n+41 is a prime number\forall n \in \mathbb{N} : n^2 + n + 41 \text{ is a prime number}
    • Evaluation: False.
    • While the formula generates prime numbers for values 0≤n≤390 \le n \le 39, testing n=41n = 41 gives:        412+41+41=1681+41+41=1763=41×4341^2 + 41 + 41 = 1681 + 41 + 41 = 1763 = 41 \times 43
    • Since 17631763 has non-trivial factors (4141 and 4343), it is composite.
    • Thus, n=41n = 41 is a valid counterexample, disproving the statement.