Propositional Logic
From a well-formed sentence to a truth value
In classical propositional logic, a proposition is a declarative claim that is true or false. A truth assignment supplies values for simple claims in a compound expression, and its grouping determines how those values combine. Uncertainty about a real event does not create a third truth value.
What can be represented?
An atom represents a whole proposition, such as “The archive is locked.” That claim has a truth value even when we do not know whether the archive is locked. “Lock the archive” is a command, so it cannot be an atom as written.
An open sentence, such as “x is positive,” depends on an unspecified value of x. Supplying a value can make it a closed claim; a suitable quantifier can also close it in predicate logic. Keep this separate from a closed claim whose truth is merely unknown to you.
Build, then evaluate
Syntax gives the formation rules for a well-formed formula. Atoms are formulas; if F and G are formulas, then ¬F, (F∧G), (F∨G), and (F→G) are formulas. Parentheses fix scope: p∧(q∨r) and (p∧q)∨r have different parse structures, although they use the same atoms and connectives.
- Negation, ¬F, reverses the value of F.
- Conjunction, F∧G, is true only when both parts are true.
- Inclusive disjunction, F∨G, is true when at least one part is true.
- A material conditional, F→G, is false only when F is true and G is false.
Semantics applies these rules to assigned values, working from inner groups outward. Evaluating a formula is different from proving it, and a true conditional alone does not establish causation between its claims.
Worked example
Suppose s=T, t=F, and u=F. In (s∧¬t)→u, first ¬t=T, then s∧¬t=T, so the outer conditional is T→F=F. If only s changes to F, the antecedent becomes F and the same conditional becomes F→F=T.
Each conclusion follows from the stated assignment and grouping, not from guessing what the letters mean. Changing one assigned value can change the whole formula while leaving its syntax untouched.
Treat p and q as propositional atoms. Which string is a well-formed formula under the usual rules for ¬, ∧, and ∨?
Let p=T, q=F, and r=F. What is the truth value of (p→q)∨(¬q∧r)?