Logic studies which conclusions follow from which premises, independent of what the statements are about. Its simplest layer, propositional logic, builds compound statements from simple ones with a handful of connectives, the same operations computer circuits are built from.
We will meet the connectives, evaluate formulas, and finish with translating English.
Step 1: The connectives
Each connective has a fixed truth table:
The implication p → q is true whenever p is false: a promise is only broken if its condition is met and it is not kept. So with p = F and q = F, the true formulas are p → q, p ↔ q and ¬p, while p ∧ q, p ∨ q and p ⊕ q are false. With p = T and q = F, p ∨ q and p ⊕ q are true.
Step 2: Evaluating formulas
To evaluate a compound formula, work from the innermost parentheses outward. With p = T, q = F and r = T: (p → q) ∨ r = F ∨ T = T, and (p → q) → r = F → T = T, while (p → q) ∧ r = F. Chains of ⊕ count parity: p ⊕ q ⊕ r is true exactly when an odd number of the three are true. To find an assignment that makes a formula true, work backward: (p ∧ q) ∨ (¬p ∧ r) is true when p and q are both true, or when p is false and r true.
Step 3: Translating English
Translating English into formulas starts by naming the simple statements, then reading the connective words. "And" and "but" both become ∧. "Or" is usually inclusive, ∨, unless the sentence says "but not both", which is ⊕. "If p, then q", "q if p" and "p only if q" are all p → q. "Unless" works like ∨: "I walk unless it rains" is w ∨ r. So "the market clears only if prices adjust" is c → a.