Truth Assignment
High school
Consider a statement built from letters $p, q, r, \dots$ that each stand for a whole statement, such as $p \land \neg q$ (“$p$ and not $q$”). A truth assignment gives each of the letters the value true or the value false.
Undergraduate (propositional logic)
Consider a set $V$ of propositional variables. A truth assignment on $V$ is a function
\[v : V \to \setdef{\text{true}, \text{false}}.\]Examples
Non-examplesThings that may be mistaken for examples of this term.
-
The truth table of $p \land \neg q$ is not a truth assignment, because the truth table lists all four truth assignments on $p$ and $q$, one in each row, together with the truth value of $p \land \neg q$ under each one. A single truth assignment is one row of the table, such as $p$ true and $q$ false.
Properties
- Each truth assignment $v$ on $V$ extends to a unique function $\bar{v}$ that gives each propositional formula with variables in $V$ a truth value, by the truth tables of the logical connectives. For example, $\bar{v}(p \land \neg q)$ is true if and only if $v(p)$ is true and $v(q)$ is false.
- A formula with $n$ propositional variables has $2^n$ truth assignments to its variables, one for each row of its truth table.
- A propositional formula is a tautology if every truth assignment makes the formula true, and the formula is satisfiable if some truth assignment makes the formula true.
- An argument in propositional logic is valid if every truth assignment that makes all of the premises true also makes the conclusion true.
- In propositional logic, a truth assignment plays the role that an interpretation plays in first-order logic: a truth assignment gives each propositional formula a truth value, and an interpretation gives each first-order sentence a truth value.
Notes
Some logic books call a truth assignment a valuation or an interpretation of the propositional variables.
A truth assignment gives truth values to variables that stand for whole statements. Giving a value to a variable that stands for an object, such as $x = 5$ in $x > 3$, is a different kind of assignment, used for predicates and first-order formulas.
All definitions · All distinctions · All examples · Notation