Sets and Logic · Siblings

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

proposition

Elementary

A proposition is a statement that is either true or false.

Examples
Non-examples
Things 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.

propositional formula

Undergraduate (logic)

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-examples
Things that may be mistaken for examples of this term.

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.

See also

All distinctions · All definitions · Notation