Propositional Logic Notes

Fundamentals of Propositions

  • Definition of a Proposition: A proposition is a declarative sentence that is either true (TT) or false (FF).
  • Examples of Propositions:
    • The Moon is made of green cheese.
    • Trenton is the capital of New Jersey.
    • Toronto is the capital of Canada.
    • 1+0=11 + 0 = 1
    • 0+0=20 + 0 = 2
  • Examples that are Not Propositions:
    • Sit down!
    • What time is it?
    • x+1=2x + 1 = 2
    • x+y=zx + y = z

Propositional Variables and Logical Connectives

  • Propositional Variables: Standard letters used to represent propositions, such as pp, qq, rr, ss, etc.
  • Constant Truth Values:
    • The proposition that is always true is denoted by TT.
    • The proposition that is always false is denoted by FF.
  • Compound Propositions: Expressions constructed by combining propositional variables using logical connectives.
  • Summary of Logical Connectives:
    • Negation: ¬\neg
    • Conjunction: ∧\wedge
    • Disjunction: ∨\vee
    • Implication: →\rightarrow
    • Biconditional: ↔\leftrightarrow

Negation

  • Definition: The negation of a proposition pp is denoted by ¬p\neg p and represents the statement "It is not the case that pp".
  • Truth Table for Negation:
pp¬p\neg p
TTFF
FFTT
  • Example 1:
    • If pp denotes "The earth is round.", then ¬p\neg p denotes "It is not the case that the earth is round," or more simply, "The earth is not round."
  • Example 2 (Michael's PC):
    • Original proposition: "Michael's PC runs Linux"
    • Negation: "It is not the case that Michael's PC runs Linux."
    • Simplified negation: "Michael's PC does not run Linux."
  • Example 3 (Vandana's Smartphone):
    • Original proposition: "Vandana's smartphone has at least 32 GB32\,\text{GB} of memory"
    • Negation: "It is not the case that Vandana's smartphone has at least 32 GB32\,\text{GB} of memory."
    • Alternative expressions: "Vandana's smartphone does not have at least 32 GB32\,\text{GB} of memory" or "Vandana's smartphone has less than 32 GB32\,\text{GB} of memory."

Conjunction

  • Definition: The conjunction of propositions pp and qq is denoted by p∧qp \wedge q and represents the statement "pp and qq".
  • Truth Table for Conjunction:
ppqqp∧qp \wedge q
TTTTTT
TTFFFF
FFTTFF
FFFFFF
  • Example 1:
    • Let pp denote "I am at home."
    • Let qq denote "It is raining."
    • Conjunction (p∧qp \wedge q): "I am at home and it is raining."
  • Example 2 (Rebecca's PC):
    • Let pp be "Rebecca's PC has more than 16 GB16\,\text{GB} free hard disk space"
    • Let qq be "The processor in Rebecca's PC runs faster than 1 GHz1\,\text{GHz}."
    • Conjunction (p∧qp \wedge q): "Rebecca's PC has more than 16 GB16\,\text{GB} free hard disk space, and the processor in Rebecca's PC runs faster than 1 GHz1\,\text{GHz}."
    • Simplified phrasing: "Rebecca's PC has more than 16 GB16\,\text{GB} free hard disk space, and its processor runs faster than 1 GHz1\,\text{GHz}."

Disjunction

  • Definition: The disjunction of propositions pp and qq is denoted by p∨qp \vee q and represents the statement "pp or qq".
  • Truth Table for Disjunction:
ppqqp∨qp \vee q
TTTTTT
TTFFTT
FFTTTT
FFFFFF
  • Example 1:
    • Let pp denote "I am at home."
    • Let qq denote "It is raining."
    • Disjunction (p∨qp \vee q): "I am at home or it is raining."
  • Example 2 (Rebecca's PC):
    • Let pp be "Rebecca's PC has more than 16 GB16\,\text{GB} free hard disk space"
    • Let qq be "The processor in Rebecca's PC runs faster than 1 GHz1\,\text{GHz}."
    • Disjunction (p∨qp \vee q): "Rebecca's PC has at least 16 GB16\,\text{GB} free hard disk space, or the processor in Rebecca's PC runs faster than 1 GHz1\,\text{GHz}."

Inclusive Or vs. Exclusive Or in English

  • Inclusive Or (Disjunction):
    • Meaning: Either one or both propositions must be true for the compound statement to be true.
    • Symbol: p∨qp \vee q
    • Example: "Students who have taken CS202 or Math120 may take this class." (Assumes students need one prerequisite, but taking both is allowed).
  • Exclusive Or (Xor):
    • Meaning: Exactly one of the propositions must be true, but not both.
    • Symbol: p⊕qp \oplus q
    • Example: "Soup or salad comes with this entrée." (Expectation is that one cannot receive both soup and salad).
    • Truth Table for Exclusive Or (⊕\oplus):
ppqqp⊕qp \oplus q
TTTTFF
TTFFTT
FFTTTT
FFFFFF

Conditional Statements (Implication)

  • Definition: If pp and qq are propositions, p→qp \rightarrow q is a conditional statement or implication, read as "if pp, then qq".
    • pp is called the hypothesis, antecedent, or premise.
    • qq is called the conclusion or consequence.
  • Truth Table for Implication:
ppqqp→qp \rightarrow q
TTTTTT
TTFFFF
FFTTTT
FFFFTT
  • Basic Example:
    • If pp denotes "I am at home." and qq denotes "It is raining.", then p→qp \rightarrow q denotes "If I am at home then it is raining."
  • Logical Meaning vs. Ordinary Usage:
    • The truth value of p→qp \rightarrow q depends strictly on the truth values of pp and qq, requiring no causal link or conceptual connection between antecedent and consequent.
    • Examples of logically valid implications that are unusual in ordinary speech:
      • "If the moon is made of green cheese, then I have more money than Bill Gates."
      • "If the moon is made of green cheese then I'm on welfare."
      • "If 1+1=31 + 1 = 3, then your grandma wears combat boots."
  • Contract/Obligation Analogy:
    • Implication can be evaluated as an obligation or pledge.
    • Example Statements: "If I am elected, then I will lower taxes." or "If you get 100%100\% on the final, then you will get an A."
    • The obligation is broken only when pp is true and qq is false (elected but taxes not lowered; gets 100%100\% but does not receive an A).
  • Equivalent English Expressions for p→qp \rightarrow q:
    • if pp, then qq
    • if pp, qq
    • qq unless ¬p\neg p
    • qq if pp
    • qq whenever pp
    • qq follows from pp
    • pp implies qq
    • pp only if qq
    • qq when pp
    • pp is sufficient for qq
    • qq is necessary for pp
    • a necessary condition for pp is qq
    • a sufficient condition for qq is pp
  • Example (Maria's Job):
    • Let pp be "Maria learns discrete mathematics"
    • Let qq be "Maria will find a good job."
    • Expression of p→qp \rightarrow q in English:
      • "If Maria learns discrete mathematics, then she will find a good job."
      • "Maria will find a good job when she learns discrete mathematics."
      • "Maria will find a good job unless she does not learn discrete mathematics."

Formations of Conditional Statements: Converse, Contrapositive, and Inverse

  • Definitions for Variations of p→qp \rightarrow q:
    • Converse: q→pq \rightarrow p
    • Contrapositive: ¬q→¬p\neg q \rightarrow \neg p
    • Inverse: ¬p→¬q\neg p \rightarrow \neg q
  • Example 1:
    • Original Statement: "If it is raining then I do not go to town."
    • Converse: "If I do not go to town, then it is raining."
    • Inverse: "If it is not raining, then I will go to town."
    • Contrapositive: "If I go to town, then it is not raining."
  • Example 2:
    • Original Statement: "The home team wins whenever it is raining."
    • Rewritten as standard conditional (q whenever pq \text{ whenever } p): "If it is raining, then the home team wins."
    • Converse: "If the home team wins, then it is raining."
    • Inverse: "If it is not raining, then the home team does not win."
    • Contrapositive: "If the home team does not win, then it is not raining."

Biconditional Statements

  • Definition: If pp and qq are propositions, the biconditional proposition p↔qp \leftrightarrow q is read as "pp if and only if qq".
  • Truth Table for Biconditional:
ppqqp↔qp \leftrightarrow q
TTTTTT
TTFFFF
FFTTFF
FFFFTT
  • Basic Example:
    • If pp denotes "I am at home." and qq denotes "It is raining."
    • p↔qp \leftrightarrow q denotes "I am at home if and only if it is raining."
  • Alternative English Expressions:
    • pp is necessary and sufficient for qq
    • if pp then qq, and conversely
    • pp if qq
  • Example (Flight Ticket):
    • Let pp be "You can take the flight"
    • Let qq be "You buy a ticket."
    • p↔qp \leftrightarrow q in English: "You can take the flight if and only if you buy a ticket."

Construction of Truth Tables for Compound Propositions

  • Rows Requirement: A row must be created for every possible combination of truth values for the atomic propositions.
  • Columns Requirement:
    • A column for each atomic proposition.
    • A column for the truth value of each expression/sub-expression that occurs in the compound proposition as it is built up.
    • A column for the full compound proposition (typically placed at the far right).