Propositional Logic
Propositional logic is the logic of combining whole statements with words such as “not,” “and,” “or,” and “if … then,” without looking inside the statements. For example, propositional logic treats “$7$ is prime” as a single unit $p$, without seeing the number $7$ or the property “is prime.”
Propositional logic is the formal system whose formulas are propositional formulas, built from propositional variables $p, q, r, \dots$ with logical connectives. The truth value of a formula is determined by a truth assignment, which gives each propositional variable the value true or false.
Examples
Worked examples
-
Value:
Only a single unit $p$, with no access to $x$ or to $x^2 \geq 0$
In propositional logic, $\forall x \, (x^2 \geq 0)$ can be represented only as a single propositional variable $p$, because propositional logic has no quantifiers and no variables for objects. -
Value:
A formula of propositional logic
$p \land \neg q$ is a formula of propositional logic, because $p \land \neg q$ combines the propositional variables $p$ and $q$ with the connectives $\land$ and $\neg$. -
The argument “All humans are mortal; Socrates is human; therefore, Socrates is mortal” UndergraduateValue:
$p, \; q \;\therefore\; r$, which is not valid
In propositional logic, the three statements of the Socrates argument are unrelated units $p$, $q$, and $r$, so the argument is not valid: the truth assignment with $p$ and $q$ true and $r$ false makes the premises true and the conclusion false.
Properties
- Propositional logic has no quantifiers and no variables for objects.
- Whether a propositional formula is a tautology can be decided by a truth table, which checks every truth assignment.
All definitions · All distinctions · All examples · Notation