Proposition vs. Propositional Formula
In logic, statements are combined with logical connectives such as “and” ($\land$), “or” ($\lor$), and “not” ($\neg$). A proposition is a particular statement that is true or false, such as “$7$ is prime.” A propositional formula is a pattern, such as $p \land \neg q$, built from propositional variables that stand for propositions, and the formula has a truth value only once each variable is assigned a truth value. Substituting a proposition for each variable in a propositional formula gives a proposition.
Definitions
A proposition is a statement that is either true or false.
Examples
-
“$7$ is prime” is a proposition because it is true.
-
The statement “All humans are mortal” is a proposition, because “All humans are mortal” is either true or false.
-
The statement “Socrates is mortal” is a proposition, because “Socrates is mortal” is either true or false.
-
“$7$ is prime and $4$ is not prime” is a proposition, because the statement is true: $7$ is prime, and $4$ is not prime.
-
With $x$ ranging over $\reals$, $\forall x \, (x^2 \geq 0)$ is a proposition, because it is true.
Non-examplesThings that may be mistaken for examples of this term.
-
The numbers $5$ and $3$ are not propositions, because a number is neither true nor false. The statement “$5 > 3$” about the numbers $5$ and $3$ is a proposition, and it is true.
-
“$x > 3$” is not a proposition, because it is not true or false until $x$ is given.
-
$x^2 + 1$ is not a proposition, because it has no relation sign, so it is never true or false.
-
$p \land \neg q$ is not a proposition, because it is not true or false by itself—the truth value depends on the truth values of $p$ and $q$.
-
$p \lor \neg p$ is not a proposition, although $p \lor \neg p$ is true for every truth value of $p$: the formula is a pattern, and each substitution of a proposition for $p$, such as “$7$ is prime or $7$ is not prime,” gives a different proposition.
Worked examples
-
Value:
True if $x$ ranges over $\reals$; false if $x$ ranges over the rational numbers
$\exists x \, (x^2 = 2)$ expresses a proposition only once the set that $x$ ranges over is chosen: over $\reals$, the number $\sqrt{2}$ satisfies $x^2 = 2$, and over the rational numbers, no number does.
A propositional formula is an expression built from propositional variables $p, q, r, \dots$ using logical connectives such as $\neg$, $\land$, $\lor$, and $\implies$. It has a truth value only once each variable is assigned true or false.
Examples
-
$p \land \neg p$ is a propositional formula, because $p \land \neg p$ is built from the propositional variable $p$ with the connectives $\land$ and $\neg$.
-
$p \land \neg q$ is a propositional formula because its truth depends on the truth values of $p$ and $q$.
-
$p \lor \neg p$ is a propositional formula, because $p \lor \neg p$ is built from the propositional variable $p$ with the connectives $\lor$ and $\neg$.
Non-examplesThings that may be mistaken for examples of this term.
-
“$7$ is prime” is not a propositional formula, because it has no propositional variables.
-
“$x > 3$” is not a propositional formula, because its variable $x$ stands for a number, not for a proposition.
-
“$7$ is prime and $4$ is not prime” is not a propositional formula, because the statement contains no propositional variables; the statement is one instance of the formula $p \land \neg q$.
-
$\forall x \, (x^2 \geq 0)$ is not a propositional formula, because the formula uses the quantifier $\forall$, which propositional logic does not have.
-
$\forall x \, (x^2 \geq 0) \land \neg \exists x \, (x^2 < 0)$ is not a propositional formula, because its parts are quantified statements about numbers, not propositional variables; replacing $\forall x \, (x^2 \geq 0)$ by $p$ and $\exists x \, (x^2 < 0)$ by $q$ gives the propositional formula $p \land \neg q$.
Examples
| Example | proposition | propositional formula | Why |
|---|---|---|---|
| “$7$ is prime” | ✓ | ✗ | proposition: “$7$ is prime” is a proposition because it is true.
propositional formula: “$7$ is prime” is not a propositional formula, because it has no propositional variables.
|
| $p \land \neg q$ | ✗ | ✓ | proposition: $p \land \neg q$ is not a proposition, because it is not true or false by itself—the truth value depends on the truth values of $p$ and $q$.
propositional formula: $p \land \neg q$ is a propositional formula because its truth depends on the truth values of $p$ and $q$.
|
| “$7$ is prime and $4$ is not prime” | ✓ | ✗ | Substituting “$7$ is prime” for $p$ and “$4$ is prime” for $q$ in the formula $p \land \neg q$ gives the proposition “$7$ is prime and $4$ is not prime,” which is true. |
| The tautology $p \lor \neg p$ | ✗ | ✓ | The tautology $p \lor \neg p$ is true for every truth value of $p$, but $p \lor \neg p$ is still a formula, not a proposition, because $p \lor \neg p$ says nothing about a particular statement until $p$ is replaced. |
Notes
- A propositional formula plays the same role for propositions that an algebraic expression such as $x + 1$ plays for numbers: the formula has a value only once its variables have values.