Propositional logic studies statements (propositions) that are either true or false and how to combine them with logical connectives.
- Syntax: propositions (P, Q, R), connectives (¬, ∧, ∨, →, ↔), parentheses.
- Semantics: a valuation assigns True/False to each atomic proposition; connectives are evaluated by truth tables.
- Well-formed formulas (WFFs): built inductively from atoms with connectives.
Tip: Think of syntax as grammar and semantics as meaning. Both matter.
Example
Atoms: P = "It rains", Q = "The ground is wet".
Formula: P → Q (If it rains, the ground is wet)
Truth table row where P = T, Q = F makes P → Q false.