Module 1

Foundations of Propositional Logic
  • Definition of a Proposition:

    • A sentence that is true or false, but not both, is a proposition.

    • True proposition example: "Oregon is a state in the United States of America."

    • False proposition example: "1+1=31 + 1 = 3."

    • Non-propositions include questions and commands.

    • Self-referential paradoxes are not propositions. For example, in the sentence "This statement is false.", it is logically impossible for the sentence to be true, and it is impossible for it to be false. Therefore, it is not a proposition.

    • Labels: Conventional notation uses lower-case letters like pp to denote propositions (for example, pp may denote "1+1=31 + 1 = 3").

  • Compound Propositions and Logical Operators:

    • Propositions may be combined or manipulated using logical operations to produce a compound proposition.

    • Let pp and qq be propositions.

    • Negation: Creates a proposition that is true when pp is false, and false when pp is true.

    • Notation: ¬p\neg p denotes "not pp".

    • Disjunction: A compound proposition that is false when both pp and qq are false, and true otherwise.

    • Notation: p∨qp \lor q denotes "pp or qq".

    • Conjunction: A compound proposition that is true when both pp and qq are true, and false otherwise.

    • Notation: p∧qp \land q denotes "pp and qq".

  • Truth Tables:

    • Truth tables display the truth value of a compound proposition based upon all possible combinations of truth values of its component propositions.

    • In a truth table, TT denotes true and FF denotes false. Using binary symbols 11 (for true) and 00 (for false) is also common.

    • Truth table for p∨qp \lor q:

    • p=Tp = T, q=T  ⟹  p∨q=Tq = T \implies p \lor q = T

    • p=Tp = T, q=F  ⟹  p∨q=Tq = F \implies p \lor q = T

    • p=Fp = F, q=T  ⟹  p∨q=Tq = T \implies p \lor q = T

    • p=Fp = F, q=F  ⟹  p∨q=Fq = F \implies p \lor q = F


Truth table for the disjunction of propositions p and q
  • Order of Operations:

    • ¬\neg is performed before ∨\lor and ∧\land.

    • By default order of operations, ¬p∨q\neg p \lor q evaluates as (¬p)∨q(\neg p) \lor q.

    • To apply negation to the disjunction p∨qp \lor q, grouping parentheses must be used: ¬(p∨q)\neg(p \lor q).

    • The precedence between ∨\lor and ∧\land is always determined explicitly by parentheses.

Conditional and Biconditional Statements
  • Conditional Statements (Implications):

    • The sentence "If pp then qq" conveys that if pp is true, qq must be true for the sentence as a whole to be true.

    • Definition: "If pp then qq" is defined to be false if pp is true while qq is false, and true otherwise.

    • Terminology:

    • Called the conditional of qq by pp or the implication of qq by pp.

    • pp is the hypothesis or antecedent.

    • qq is the conclusion or consequent.

    • Notation: p→qp \rightarrow q or p  ⟹  qp \implies q.

    • Truth table for p→qp \rightarrow q:

    • p=Tp = T, q=T  ⟹  p→q=Tq = T \implies p \rightarrow q = T

    • p=Tp = T, q=F  ⟹  p→q=Fq = F \implies p \rightarrow q = F

    • p=Fp = F, q=T  ⟹  p→q=Tq = T \implies p \rightarrow q = T

    • p=Fp = F, q=F  ⟹  p→q=Tq = F \implies p \rightarrow q = T


Truth table for the conditional proposition p implies q
  • Vacuous Truth: When p→qp \rightarrow q is true because the hypothesis pp is false (the final two rows of the truth table), it is described as vacuously true or true by default.

  • Precedence: The conditional operator →\rightarrow resides on the same level in the order of operations as ∨\lor and ∧\land.

  • Linguistic Formulations of p→qp \rightarrow q:

    • "qq if pp"

    • "qq whenever pp"

    • "pp only if qq"

    • "pp implies qq"

    • Example: "It is raining only if there are clouds in the sky" conveys the exact same conditional as "If it is raining then there are clouds in the sky."

    • Caution: "If there are clouds in the sky then it is raining" is not the same conditional statement.

  • Related Conditionals to p→qp \rightarrow q:

    • Converse: q→pq \rightarrow p

    • Inverse: ¬p→¬q\neg p \rightarrow \neg q

    • Contrapositive: ¬q→¬p\neg q \rightarrow \neg p

  • Weather Example:

    • Original statement: "If it is raining then there are clouds in the sky."

    • Converse: "If there are clouds in the sky then it is raining."

    • Contrapositive: "If there are no clouds in the sky then it is not raining."

  • Store Purchase Example:

    • Original statement: "If Jack bought beer then Jack went to the store."

    • Hypothesis (pp): Jack bought beer.

    • Conclusion (qq): Jack went to the store.

    • Original form: p→qp \rightarrow q

    • Converse (q→pq \rightarrow p): "If Jack went to the store then Jack bought beer."

    • Inverse (¬p→¬q\neg p \rightarrow \neg q): "If Jack didn't buy beer then Jack didn't go to the store."

    • Contrapositive (¬q→¬p\neg q \rightarrow \neg p): "If Jack didn't go to the store then Jack didn't buy beer."

  • Necessary and Sufficient Conditions:

    • Necessary condition: A necessary condition of pp is a condition that must be satisfied given pp is true. The conclusion of a true conditional statement is a necessary condition of the hypothesis.

    • Sufficient condition: A sufficient condition for qq is a condition that suffices to guarantee qq is true. The hypothesis of a true conditional statement is a sufficient condition for the conclusion.

    • Mathematical example: Consider the true proposition: "If xx is a non-zero whole number, then x2x^2 is a positive whole number."

    • "x2x^2 is a positive whole number" is a necessary condition of "xx is a non-zero whole number".

    • "xx is a non-zero whole number" is a sufficient condition for "x2x^2 is a positive whole number".

    • Demonstration of non-necessity: "xx is a non-zero whole number" is not a necessary condition of "x2x^2 is a positive whole number". If x=2x = \sqrt{2}, then x2=2x^2 = 2 (which is a positive whole number), even though xx is not a non-zero whole number.

  • Biconditional Propositions:

    • The sentence "pp if and only if qq" is a biconditional proposition defined by (p→q)∧(q→p)(p \rightarrow q) \land (q \rightarrow p).

    • Common abbreviation: "pp iff qq".

    • Notation: p↔qp \leftrightarrow q.

Logical Equivalences, Tautologies, and Contradictions
  • Logical Equivalence:

    • Definition: Two compound propositions PP and QQ, made up of propositions p1,…,pnp_1, \dots, p_n, are logically equivalent if PP and QQ have the same truth values for all possible combinations of truth values for propositions p1,…,pnp_1, \dots, p_n.

    • Notation: P≡QP \equiv Q.

    • Immediate equivalences:

    • Double negation: ¬(¬p)≡p\neg(\neg p) \equiv p

    • Commutativity of disjunction: p∨q≡q∨pp \lor q \equiv q \lor p

    • Commutativity of conjunction: p∧q≡q∧pp \land q \equiv q \land p

    • Equivalence of the contrapositive:

    • p→q≡¬q→¬pp \rightarrow q \equiv \neg q \rightarrow \neg p

    • De Morgan's Laws:

    • ¬(p∨q)≡¬p∧¬q\neg(p \lor q) \equiv \neg p \land \neg q

    • ¬(p∧q)≡¬p∨¬q\neg(p \land q) \equiv \neg p \lor \neg q

  • Disjunctive Equivalence and Negation of an Implication:

    • Disjunctive equivalence of the implication:

    • The only case when p→qp \rightarrow q is false is when pp is true and qq is false (which occurs when ¬p\neg p is false and qq is false).

    • This corresponds to the disjunction: p→q≡¬p∨qp \rightarrow q \equiv \neg p \lor q.

    • Negation of an implication:

    • ¬(p→q)≡¬(¬p∨q)≡p∧¬q\neg(p \rightarrow q) \equiv \neg(\neg p \lor q) \equiv p \land \neg q

    • Application to negating statements with necessary conditions:

    • Statement: "A necessary condition of Serena buying the car she wants is that Serena passes the credit check for the car loan."

    • Standard conditional form (necessary condition placed in the conclusion): "If Serena buys the car she wants then Serena passes the credit check for the car loan."

    • Symbolic setup: Let pp denote "Serena buys the car she wants" and qq denote "Serena passes the credit check for the car loan". The statement is p→qp \rightarrow q.

    • Negation calculation: ¬(p→q)≡p∧¬q\neg(p \rightarrow q) \equiv p \land \neg q.

    • Negated statement in words: "Serena buys the car she wants and Serena doesn't pass the credit check for the car loan."

  • Tautologies and Contradictions:

    • Tautology: A compound proposition that is always true regardless of what the truth values of its component propositions are.

    • Example: (p→p)∨q(p \rightarrow p) \lor q

    • Contradiction: A compound proposition that is always false regardless of what the truth values of its component propositions are.

    • Example: (p∧q)∧¬q(p \land q) \land \neg q

Quantified Logic
  • Propositional Functions (Predicates):

    • A sentence that contains a finite number of variables that becomes a proposition when specific values are substituted for the variables.

    • Domain: The set of all values that may be substituted for a given variable in a propositional function.

    • Numerical example:

    • Let P(x,y)P(x, y) be "x>yx > y" where the domain for both xx and yy is the set of whole numbers {0,1,2,… }\{0, 1, 2, \dots\}.

    • P(1,2)P(1, 2) is "1>21 > 2", which is false.

    • P(3,2)P(3, 2) is "3>23 > 2", which is true.

    • Natural language example:

    • Let P(x)P(x) be "xx is a former president of the USA" where the domain is the set of humans.

    • P(Barack Obama)P(\text{Barack Obama}) is "Barack Obama is a former president of the USA", which is true.

    • P(Tom Cruise)P(\text{Tom Cruise}) is "Tom Cruise is a former president of the USA", which is false.

  • Universally Quantified Statements:

    • Definition: The statement "for all x∈Dx \in D, P(x)P(x)" is a universally quantified statement defined as a proposition that is true if and only if P(x)P(x) is true for every xx in the domain DD.

    • Notation: ∀x∈D, P(x)\forall x \in D,\, P(x) or ∀x, P(x)\forall x,\, P(x) (when DD is implicitly understood).

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

    • Truth conditions:

    • True: Must show P(x)P(x) is true for any arbitrary choice of xx from DD.

    • False: Must produce at least one counterexample, a choice of x∈Dx \in D for which P(x)P(x) is false.

    • Evaluations over the set of real numbers (R\mathbb{R}):

    • Problem 1: Determine and justify ∀x∈R, 11+x2≤1\forall x \in \mathbb{R},\, \frac{1}{1 + x^2} \le 1.

      • Status: True.

      • Justification: Let x∈Rx \in \mathbb{R} (an arbitrary real number). Then x2≥0x^2 \ge 0. By adding one to both sides, 1+x2≥11 + x^2 \ge 1. Thus 11+x2≤1\frac{1}{1 + x^2} \le 1. Because this holds for an arbitrary real number, the proposition is true.

    • Problem 2: Determine and justify ∀x∈R, 11+x2<1\forall x \in \mathbb{R},\, \frac{1}{1 + x^2} < 1.

      • Status: False.

      • Justification: Let x=0x = 0. Then x2=0x^2 = 0. Adding one to both sides gives 1+x2=11 + x^2 = 1. Taking the reciprocal of both sides gives 11+x2=1\frac{1}{1 + x^2} = 1. This counterexample (1<11 < 1 is false) proves the proposition is false.

  • Existentially Quantified Statements:

    • Definition: The statement "there exists x∈Dx \in D such that P(x)P(x)" is an existentially quantified statement defined as a proposition that is true if and only if P(x)P(x) is true for at least one xx in the domain DD.

    • Notation: ∃x∈D, P(x)\exists x \in D,\, P(x) or ∃x, P(x)\exists x,\, P(x) (when DD is implicitly understood).

    • The symbol ∃\exists means "there exists" or "for some".

    • Truth conditions:

    • True: Must show P(x)P(x) is true for a particular witness xx from DD.

    • False: Must show P(x)P(x) is false for every choice of xx in DD.

    • Evaluations over real intervals:

    • Problem 1: Determine and justify ∃x∈R, x2<x\exists x \in \mathbb{R},\, x^2 < x.

      • Status: True.

      • Justification: Let x=0.5x = 0.5. Then (0.5)2=0.25<0.5(0.5)^2 = 0.25 < 0.5. Choosing x=0.5x = 0.5 proves the proposition.

    • Problem 2: Determine and justify ∃x∈R, (x>1→x2x+1≤12)\exists x \in \mathbb{R},\, \left(x > 1 \rightarrow \frac{x^2}{x+1} \le \frac{1}{2}\right).

      • Status: True.

      • Justification: Let x=0x = 0. The hypothesis x>1x > 1 (0>10 > 1) is false. Because the hypothesis of the implication is false, the implication is true by default (vacuously true).

    • Problem 3: Determine and justify ∃x∈(1,∞), (x2x+1≤12)\exists x \in (1,\infty),\, \left(\frac{x^2}{x+1} \le \frac{1}{2}\right).

      • Status: False.

      • Justification: Let x∈(1,∞)x \in (1,\infty), so x>1x > 1. Then x2>xx^2 > x. In particular, 2x2>2x>x+1>22x^2 > 2x > x + 1 > 2. Therefore, 2x2x+1>1\frac{2x^2}{x + 1} > 1, which is equivalent to x2x+1>12\frac{x^2}{x + 1} > \frac{1}{2}. Because x2x+1>12\frac{x^2}{x+1} > \frac{1}{2} holds for all x∈(1,∞)x \in (1,\infty), the statement x2x+1≤12\frac{x^2}{x+1} \le \frac{1}{2} is false for every element in the domain.

  • De Morgan's Laws for Quantified Logic:

    • Negation of universal quantifier: ¬(∀x, P(x))≡∃x, ¬P(x)\neg(\forall x,\, P(x)) \equiv \exists x,\, \neg P(x)

    • Negation of existential quantifier: ¬(∃x, P(x))≡∀x, ¬P(x)\neg(\exists x,\, P(x)) \equiv \forall x,\, \neg P(x)

    • Example: Consider the statement "All mammals cannot fly."

    • Symbolic setup: Let P(x)P(x) be the statement "mammal xx cannot fly". The statement is ∀x, P(x)\forall x,\, P(x).

    • Negation: ∃x, (¬P(x))\exists x,\, (\neg P(x)).

    • Interpretation: "There exists a mammal such that the mammal can fly." In common language, "Some mammals fly."

  • Linguistic Parsing of Negated Statements:

    • Statements parsed as ∃x, (¬P(x))\exists x,\, (\neg P(x)) (which is equivalent to ¬(∀x, P(x))\neg(\forall x,\, P(x))):

    • "Not all xx satisfy P(x)P(x)."

    • "Not each xx satisfies P(x)P(x)."

    • "Not every xx satisfies P(x)P(x)."

    • Statements parsed as ∀x, (¬P(x))\forall x,\, (\neg P(x)) (which is equivalent to ¬(∃x, P(x))\neg(\exists x,\, P(x))):

    • "Not any xx satisfies P(x)P(x)."

    • "No xx satisfies P(x)P(x)."

Nested Quantifiers and Advanced Applications
  • Nested Quantifier Structure and Operator Order:

    • Multiple quantifiers can be nested within a single quantified proposition.

    • Example: "For every positive real number xx there exists a positive real number yy such that xy=1xy = 1."

    • Symbolic form: ∀x∈(0,∞), ∃y∈(0,∞), xy=1\forall x \in (0,\infty),\, \exists y \in (0,\infty),\, xy = 1

    • This true proposition expresses that all positive real numbers possess reciprocals.

    • Impact of quantifier order:

    • Reversing the quantifiers produces: ∃y∈(0,∞), ∀x∈(0,∞), xy=1\exists y \in (0,\infty),\, \forall x \in (0,\infty),\, xy = 1

    • Truth value: False.

    • Reason: In ∀x, ∃y\forall x,\, \exists y, the variable yy may depend directly on xx. In ∃y, ∀x\exists y,\, \forall x, the variable yy must be chosen independently of xx. There exists no single positive real number yy that yields 11 when multiplied by any arbitrary positive real number xx.

    • Rule: Switching the order of quantifiers usually alters the meaning of the statement, even when the truth value does not change.

  • Evaluations of Nested Propositions over R\mathbb{R}:

    • Statement: ∀x∈R, ∃y∈R, x<y\forall x \in \mathbb{R},\, \exists y \in \mathbb{R},\, x < y

    • Status: True.

    • Justification: Let x∈Rx \in \mathbb{R}. Choose y=x+1y = x + 1, which is also a real number. Then x<yx < y since x<x+1x < x + 1.

    • Order reversal: ∃y∈R, ∀x∈R, x<y\exists y \in \mathbb{R},\, \forall x \in \mathbb{R},\, x < y is false (no single real number is strictly greater than every real number).

    • Statement: ∃x∈R, ∀y∈R, x2+y2=1\exists x \in \mathbb{R},\, \forall y \in \mathbb{R},\, x^2 + y^2 = 1

    • Status: False.

    • Justification: Let xx be any real number. Pick y=2y = 2. Then x2+y2=x2+4≥4x^2 + y^2 = x^2 + 4 \ge 4. Because x2+4≠1x^2 + 4 \ne 1, this shows that for all xx, the negation of ∀y, x2+y2=1\forall y,\, x^2 + y^2 = 1 is true via the counterexample y=2y = 2.

    • Order reversal: ∀y∈R, ∃x∈R, x2+y2=1\forall y \in \mathbb{R},\, \exists x \in \mathbb{R},\, x^2 + y^2 = 1 is also false (for example, selecting y=2y = 2 requires x2=−3x^2 = -3, which has no solution in R\mathbb{R}).

  • Step-by-Step Negation of Nested Quantifiers:

    • De Morgan's Laws can be applied sequentially inward through nested quantifiers:     ¬(∀x∈R, ∃y∈R, x<y)≡∃x∈R, ¬(∃y∈R, x<y)≡∃x∈R, ∀y∈R, x≥y\neg(\forall x \in \mathbb{R},\, \exists y \in \mathbb{R},\, x < y) \equiv \exists x \in \mathbb{R},\, \neg(\exists y \in \mathbb{R},\, x < y) \equiv \exists x \in \mathbb{R},\, \forall y \in \mathbb{R},\, x \ge y

  • Formal Calculus Limit Definition and Negation:

    • Definition: Let f(x)f(x) be a function from the real numbers to the real numbers, and let a,La, L be fixed real numbers. Then lim⁡x→af(x)=L\lim_{x \rightarrow a} f(x) = L is defined as: "For every ϵ>0\epsilon > 0, there exists δ>0\delta > 0 such that for all x∈Rx \in \mathbb{R}, 0<∣x−a∣<δ→∣f(x)−L∣<ϵ0 < |x - a| < \delta \rightarrow |f(x) - L| < \epsilon."

    • Symbolic setup using propositional functions:

    • P(x,δ):0<∣x−a∣<δP(x, \delta): 0 < |x - a| < \delta

    • Q(x,ϵ):∣f(x)−L∣<ϵQ(x, \epsilon): |f(x) - L| < \epsilon

    • Full symbolic expression: ∀ϵ>0, ∃δ>0, ∀x∈R, P(x,δ)→Q(x,ϵ)\forall \epsilon > 0,\, \exists \delta > 0,\, \forall x \in \mathbb{R},\, P(x, \delta) \rightarrow Q(x, \epsilon)

    • Step-by-step derivation of the negation:

    1. Negate the outer quantifiers:        ¬(∀ϵ>0, ∃δ>0, ∀x, P(x,δ)→Q(x,ϵ))≡∃ϵ>0, ∀δ>0, ∃x, ¬(P(x,δ)→Q(x,ϵ))\neg(\forall \epsilon > 0,\, \exists \delta > 0,\, \forall x,\, P(x, \delta) \rightarrow Q(x, \epsilon)) \equiv \exists \epsilon > 0,\, \forall \delta > 0,\, \exists x,\, \neg(P(x, \delta) \rightarrow Q(x, \epsilon))

    2. Substitute the disjunctive equivalence of implication (p→q≡¬p∨qp \rightarrow q \equiv \neg p \lor q):        ≡∃ϵ>0, ∀δ>0, ∃x, ¬(¬P(x,δ)∨Q(x,ϵ))\equiv \exists \epsilon > 0,\, \forall \delta > 0,\, \exists x,\, \neg(\neg P(x, \delta) \lor Q(x, \epsilon))

    3. Apply De Morgan's Law to the negation of the disjunction:        ≡∃ϵ>0, ∀δ>0, ∃x, (P(x,δ)∧¬Q(x,ϵ))\equiv \exists \epsilon > 0,\, \forall \delta > 0,\, \exists x,\, (P(x, \delta) \land \neg Q(x, \epsilon))

    • Verbal translation of the negated limit statement: "There exists ϵ>0\epsilon > 0 such that for all δ>0\delta > 0, there exists x∈Rx \in \mathbb{R} such that 0<∣x−a∣<δ0 < |x - a| < \delta and ∣f(x)−L∣≥ϵ|f(x) - L| \ge \epsilon."

    • Analytical meaning: When this negated condition holds, the limit of f(x)f(x) as x→ax \rightarrow a is not LL.