Introduction to Logic, Quantifiers, and Proofs
Notation and Foundational Conventions
Number Sets:
- Standard natural numbers:
- Positive integers / non-zero natural numbers:
- Integers (), rational numbers (), and real numbers () follow standard mathematical definitions.
Logical Connectives:
- Negation: ("not")
- Conjunction: ("and")
- Disjunction: ("or")
- Implication: ("implies")
- Biconditional / Equivalence: ("equivalent" or "if and only if")
Truth Values:
- True is designated by (or the binary digit ).
- False is designated by (or the binary digit ).
Quantifier Syntax:
- Universal quantification:
- Existential quantification:
- Consecutive quantifiers are separated by a comma (for example, ).
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 or ) or false (denoted or ), but not both simultaneously.
- Fundamental truth table for a proposition :
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 ().
- "All cows are brown." — A proposition because it makes a definitive universal assertion that is either true or false (it is false, ).
- "Some triangles have 5 sides." — A proposition (it is false, , 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, ).
- "Milk is white." — A proposition (it is a declarative sentence with a truth value, ).
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).
- "" — 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 . 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, ).
- "On Thursdays, van Gogh painted landscapes." — A proposition (a factual assertion that possesses an objective truth value, or ).
Taxonomy of Propositions:
- Atomic (Simple) propositions: Statements that cannot be broken down into simpler constituent propositions (e.g., ""). These are traditionally denoted by propositional variables such as , , , or , .
- Compound (Complex) propositions: Statements constructed by joining one or more atomic propositions using logical connectives.

Logical Connectives and Truth Tables
- Definition 1.1.5 (Negation):
- The negation of a proposition is the proposition , which is true when is false, and false when is true.
- Truth table for negation:
Example 1.1.6:
- Let : "11 is an even number" (which is false, ).
- Then : "11 is not an even number" is true ().
Definition 1.1.7 (Conjunction):
- The conjunction of propositions and is the proposition (" and "), which is true if both and are true, and false otherwise.
- Truth table for conjunction:
Example 1.1.8:
- Let : "2 divides 9" (false, ).
- Let : "136 is a multiple of 17" (true, , since ).
- The conjunction is false because is false.
Definition 1.1.9 (Disjunction):
- The disjunction of propositions and is the proposition (" or "), which is true if at least one of is true, and false otherwise (inclusive "or").
- Truth table for disjunction:
Example 1.1.10:
- Taking : "2 divides 9" () and : "136 is a multiple of 17" ().
- The disjunction : "2 divides 9 or 136 is a multiple of 17" is true because is true.
Definition 1.1.11 (Implication / Conditional):
- The proposition " implies ", denoted , is false only when is true and is false. In particular, if is false, the implication is vacuously true, regardless of the truth value of .
- In the conditional statement , is termed the hypothesis (or antecedent) and is termed the conclusion (or consequent).
- Truth table for implication:
Example 1.1.12 (Implications Over Real Numbers):
- Let :
- is true (since ).
- is false (counterexample: yields , but ).
- is true.
- is true.
- is true (e.g., ).
- is false (since any number less than has a square strictly greater than ).
Proposition 1.1.13 (Converse, Contrapositive, and Negation of an Implication):
- For any implication :
- Its converse is:
- Its contrapositive is:
Its negation is:
Example 1.1.14:
- Consider the implication :
- Its converse is .
- Its contrapositive is .
- Its negation is .
Definition 1.1.15 (Biconditional / Equivalence):
- The proposition (" is equivalent to " or " if and only if ") is true whenever and share identical truth values.
- It expresses that is a necessary and sufficient condition for .
- It is logically equivalent to the conjunction of two mutual implications: .
- Truth table for biconditional:
Example 1.1.16:
- For every :
- This equivalence holds because both the implication and its converse are true.
Precedence of Logical Operators and Complex Truth Tables:
- The negation connective takes precedence over all other logical connectives unless explicit parentheses mandate otherwise.
Evaluating compound statements requires systematic truth tables. For instance, analyzing :
Logical Equivalence and Fundamental Equivalences
Definition 1.1.18 (Logical Equivalence):
- Two propositions and are logically equivalent, written , 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 by constructing a comparative truth table:
| Equal? | ||||||
|---|---|---|---|---|---|---|
The fifth and sixth columns match across all four rows, proving the equivalence.
- Proposition 1.1.20 (Famous Equivalences):
Let and be arbitrary propositions. The following standard equivalences hold:
- Expressing implication as disjunction:
- Expressing implication as negated conjunction:
- De Morgan's Laws:
- Double Negation:
Predicates and Quantifiers
Definition 1.2.1 (Predicate):
- A predicate is a declarative sentence or 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.

Example: Let be the set of all humans, and let denote the predicate " is mortal". The statement "All humans are mortal" is formally transcribed as:
- Definition 1.2.3 (Universal Quantifier ):
The universal quantification of a predicate over a domain is the proposition:
It is true if is true for every element , and false if there exists at least one element in for which is false.
The symbol is read as "for all", "for every", or "for each".
- Definition 1.2.4 (Existential Quantifier ):
The existential quantification of a predicate over a domain is the proposition:
It is true if is true for at least one element , and false if is false for every element in .
The symbol is read as "there exists" or "there is at least one".
- Definition 1.2.5 (Unique Existential Quantifier ):
The unique existential quantification of a predicate over a domain is the proposition:
It is true if is true for exactly one unique element .
The symbol is read as "there exists a unique" or "there is exactly one".
- Example 1.2.6 (Evaluating Quantified Statements):
is true, because the smallest element of is , where , and for any integer , .
is true, because the smallest prime natural number is , giving , and all subsequent primes satisfy , giving .
is true, expressing the commutativity of real addition.
is true, because an explicit witness exists (e.g., satisfies ).
is true, because for any integer , its unique additive inverse is .
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:
- Operational algorithm for negating consecutive quantifiers:
- Invert every universal quantifier to an existential quantifier: .
- Keep the domain set unchanged.
- 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 .
- Step-by-step derivation:
Example 1.2.9 (Negating an Existential-Universal Statement):
- Problem: Negate .
- Step-by-step derivation:
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 , assume is true and deduce the truth of through definitions, algebraic manipulations, and established facts.
- Theorem 1.3.1: If is an even integer, then is even.
- Proof:
- Let be an even integer.
- By definition of an even integer, for some integer .
- Squaring both sides yields:
- Since , the term is an integer. Thus, is times an integer, proving is even.
- Theorem 1.3.2: If and are real numbers, then
- Proof:
- For any real numbers , the square of their difference is non-negative:
- Expanding the left-hand side yields:
- Adding to both sides of the inequality gives:
Proof by Contrapositive:
- Method: An implication is logically equivalent to its contrapositive . Proof by contrapositive proceeds by assuming (the conclusion is false) and proving (the hypothesis is false).
- Theorem 1.3.3: Let be an integer. If is even, then is even.
- Proof:
- The contrapositive to prove is: If is not even, then is not even (i.e., if is odd, then is odd).
- Assume is odd. Then for some integer .
- Squaring gives:
- Since is an integer, is an integer. Thus, is written in the form where , proving that is odd.
- Because the contrapositive is true, the original implication holds.
Proof by Contradiction (Reductio Ad Absurdum):
- Method: To prove a proposition , assume its negation is true. Follow logical steps until reaching an explicit contradiction (such as , or contradicting an axiom or known fact). Conclude that must be false, meaning must be true.
Theorem 1.3.4: There do not exist integers and with such that . In other words, is irrational.
Proof:
- Assume, for contradiction, that is rational.
- Then there exist integers with such that .
Assume without loss of generality that the fraction is irreducible, meaning and share no common factor other than (i.e., ).
Squaring both sides yields:
Multiplying by :
This shows is even. By Theorem 1.3.3, must also be even.
Since is even, for some integer .
Substituting this into gives:
This demonstrates is even. By Theorem 1.3.3, must also be even.
Since both and are even, divides both and , which contradicts the assumption that .
Therefore, the initial assumption is false, and is irrational.
Mathematical Induction
Foundational Concept:
- Mathematical induction is designed to prove statements indexed by integers, , for all .
- The domino effect analogy:
- Falling of the first domino: The base case is proven true.
- Transmission of impact: The inductive step proves that whenever any domino falls, it knocks down the subsequent domino ().
- Inevitable consequence: Every domino in the infinite chain falls ( holds for all ).
Theorem 1.3.5 (Principle of Mathematical Induction):
- Let and let be a family of statements. If:
- (Base case): is true, and
- (Inductive step): For every integer , then is true for every integer .
Theorem 1.3.6 (Sum of the First Odd Numbers):
- For every :
- Inductive pattern discovery:
- For :
- For :
- For :
- For :
- For :
- Proof by Induction:
- Let denote the statement .
- Base case ():
- Left-hand side: .
- Right-hand side: .
- Both sides equal , so holds.
- Inductive step:
- Let and assume holds: .
- We must prove : .
- Grouping the first terms and using the induction hypothesis:
- Thus holds.
- By mathematical induction, is true for all .
Theorem 1.3.7 (Sum of the First Even Numbers):
- For every :
- Proof by Induction:
- Let denote the statement .
- Base case ():
- Left-hand side: .
- Right-hand side: .
- Both sides equal , so holds.
- Inductive step:
- Let and assume holds: .
- We must prove : .
- Calculating the sum using the induction hypothesis:
- Thus holds.
- By mathematical induction, is true for all .
Theorem 1.3.8 (Geometric Sum Formula):
- Let with . Then for every :
Proof by Induction:
- Let denote the statement .
- Base case ():
- Left-hand side: .
- Right-hand side: (valid since ).
- Both sides equal , so holds.
- Inductive step:
- Let and assume holds: .
- We must prove : .
- Adding to both sides of the inductive hypothesis:
- Thus holds.
- By mathematical induction, is true for all .
Exercise 1.3.9 (Demonstrating Four Proof Methods on One Proposition):
- Proposition: Let be an integer. The sum of any two consecutive integers is odd, i.e., is odd.
- Method 1: Direct Proof:
- Algebraic simplification gives .
- Since is an integer, satisfies the explicit definition of an odd integer ( with ).
- Method 2: Proof by Contrapositive:
- Prove that if is not odd (i.e., even), then the integers cannot be consecutive.
- Suppose for some integer .
- Then , which implies , meaning .
- Since , their difference must be an integer, which contradicts .
Method 3: Proof by Contradiction:
- Assume that there exists an integer such that is even.
- Then for some .
- Rearranging gives , stating that is an even integer (divisible by ), which is a contradiction.
Method 4: Proof by Mathematical Induction (for ):
- Base case (): , which is odd.
- Inductive step: Assume for some .
- For , the sum of consecutive integers is:
- Substituting the induction hypothesis yields .
- Since , the sum is odd.
Disproof by Counterexample
Definition and Mechanism:
- A universal statement of the form is disproved by establishing the existence of a single element that satisfies the hypothesis while violating the conclusion ().
The element is called a counterexample.
Finding a single valid counterexample proves the negation , thereby entirely refuting the universally quantified claim.
Example 1.3.10 (Disproving Universal Statements via Counterexample):
- Statement:
- Evaluation: False.
- Counterexample: Consider . The integer is prime (satisfies the hypothesis), but is even (violates the conclusion). Therefore, serves as a counterexample.
- Statement:
- Evaluation: False.
- While the formula generates prime numbers for values , testing gives:
- Since has non-trivial factors ( and ), it is composite.
- Thus, is a valid counterexample, disproving the statement.