Propositional Logic Notes
Fundamentals of Propositions
- Definition of a Proposition: A proposition is a declarative sentence that is either true (T) or false (F).
- 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=1
- 0+0=2
- Examples that are Not Propositions:
- Sit down!
- What time is it?
- x+1=2
- x+y=z
Propositional Variables and Logical Connectives
- Propositional Variables: Standard letters used to represent propositions, such as p, q, r, s, etc.
- Constant Truth Values:
- The proposition that is always true is denoted by T.
- The proposition that is always false is denoted by F.
- Compound Propositions: Expressions constructed by combining propositional variables using logical connectives.
- Summary of Logical Connectives:
- Negation: ¬
- Conjunction: ∧
- Disjunction: ∨
- Implication: →
- Biconditional: ↔
Negation
- Definition: The negation of a proposition p is denoted by ¬p and represents the statement "It is not the case that p".
- Truth Table for Negation:
| p | ¬p |
|---|
| T | F |
| F | T |
- Example 1:
- If p denotes "The earth is round.", then ¬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 32GB of memory"
- Negation: "It is not the case that Vandana's smartphone has at least 32GB of memory."
- Alternative expressions: "Vandana's smartphone does not have at least 32GB of memory" or "Vandana's smartphone has less than 32GB of memory."
Conjunction
- Definition: The conjunction of propositions p and q is denoted by p∧q and represents the statement "p and q".
- Truth Table for Conjunction:
| p | q | p∧q |
|---|
| T | T | T |
| T | F | F |
| F | T | F |
| F | F | F |
- Example 1:
- Let p denote "I am at home."
- Let q denote "It is raining."
- Conjunction (p∧q): "I am at home and it is raining."
- Example 2 (Rebecca's PC):
- Let p be "Rebecca's PC has more than 16GB free hard disk space"
- Let q be "The processor in Rebecca's PC runs faster than 1GHz."
- Conjunction (p∧q): "Rebecca's PC has more than 16GB free hard disk space, and the processor in Rebecca's PC runs faster than 1GHz."
- Simplified phrasing: "Rebecca's PC has more than 16GB free hard disk space, and its processor runs faster than 1GHz."
Disjunction
- Definition: The disjunction of propositions p and q is denoted by p∨q and represents the statement "p or q".
- Truth Table for Disjunction:
| p | q | p∨q |
|---|
| T | T | T |
| T | F | T |
| F | T | T |
| F | F | F |
- Example 1:
- Let p denote "I am at home."
- Let q denote "It is raining."
- Disjunction (p∨q): "I am at home or it is raining."
- Example 2 (Rebecca's PC):
- Let p be "Rebecca's PC has more than 16GB free hard disk space"
- Let q be "The processor in Rebecca's PC runs faster than 1GHz."
- Disjunction (p∨q): "Rebecca's PC has at least 16GB free hard disk space, or the processor in Rebecca's PC runs faster than 1GHz."
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∨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⊕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 (⊕):
| p | q | p⊕q |
|---|
| T | T | F |
| T | F | T |
| F | T | T |
| F | F | F |
Conditional Statements (Implication)
- Definition: If p and q are propositions, p→q is a conditional statement or implication, read as "if p, then q".
- p is called the hypothesis, antecedent, or premise.
- q is called the conclusion or consequence.
- Truth Table for Implication:
| p | q | p→q |
|---|
| T | T | T |
| T | F | F |
| F | T | T |
| F | F | T |
- Basic Example:
- If p denotes "I am at home." and q denotes "It is raining.", then p→q denotes "If I am at home then it is raining."
- Logical Meaning vs. Ordinary Usage:
- The truth value of p→q depends strictly on the truth values of p and q, 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=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% on the final, then you will get an A."
- The obligation is broken only when p is true and q is false (elected but taxes not lowered; gets 100% but does not receive an A).
- Equivalent English Expressions for p→q:
- if p, then q
- if p, q
- q unless ¬p
- q if p
- q whenever p
- q follows from p
- p implies q
- p only if q
- q when p
- p is sufficient for q
- q is necessary for p
- a necessary condition for p is q
- a sufficient condition for q is p
- Example (Maria's Job):
- Let p be "Maria learns discrete mathematics"
- Let q be "Maria will find a good job."
- Expression of p→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."
- Definitions for Variations of p→q:
- Converse: q→p
- Contrapositive: ¬q→¬p
- Inverse: ¬p→¬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 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 p and q are propositions, the biconditional proposition p↔q is read as "p if and only if q".
- Truth Table for Biconditional:
| p | q | p↔q |
|---|
| T | T | T |
| T | F | F |
| F | T | F |
| F | F | T |
- Basic Example:
- If p denotes "I am at home." and q denotes "It is raining."
- p↔q denotes "I am at home if and only if it is raining."
- Alternative English Expressions:
- p is necessary and sufficient for q
- if p then q, and conversely
- p if q
- Example (Flight Ticket):
- Let p be "You can take the flight"
- Let q be "You buy a ticket."
- p↔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).