Logical equivalence, truth preserving transformations, and basic laws for rewriting propositional formulas.
Logical equivalence compares formulas by their truth values under all valuations, rather than by their written form, and it gives a precise way to say that two formulas express the same logical content.
Definition 1.17 (Logical Equivalence)
Let and be formulas. We say that and are logically equivalent if:
for every valuation .
In this case we write:
This means that no valuation can distinguish from , because whenever one is true the other is true, and whenever one is false the other is false.
Example 1.18
The formulas:
and:
are logically equivalent.
Their truth table is:
The last two columns agree in every row, and therefore:
This equivalence is one of the most useful transformations in propositional logic, because it allows implication to be eliminated in favor of negation and disjunction.
Lemma 1.19 (Equivalence by Biconditional)
For formulas and , the following are equivalent.
The formulas and are logically equivalent.
The formula:
is valid.
Proof
By definition, means that for every valuation :
By the truth rule for the biconditional:
if and only if:
Therefore and agree under every valuation if and only if is true under every valuation, which is exactly to say that is valid.
Basic Laws
The following equivalences hold for all formulas , , and , and they are used as algebraic rules for transforming formulas while preserving truth value.
Double negation:
Idempotence:
Commutativity:
Associativity:
Distributivity:
De Morgan laws:
Absorption:
Implication:
Biconditional:
Another useful form of the biconditional is:
Truth Constants
It is often convenient to use symbols for formulas that are always true or always false.
We write:
for a formula that is always true, and:
for a formula that is always false.
These constants satisfy the following laws:
Negation exchanges truth and falsehood:
Even if and are not included as primitive symbols in the language, they may be represented using ordinary formulas, for example:
and:
Example 1.20 (Rewriting a Formula)
Consider the formula:
Using the implication law:
we obtain:
Using De Morgan law:
Using double negation:
Therefore:
This equivalence says that an implication fails exactly when its antecedent is true and its consequent is false.
Definition 1.21 (Tautology, Contradiction, Contingency)
A formula is a tautology if:
for every valuation .
A formula is a contradiction if:
for every valuation .
A formula is contingent if it is neither a tautology nor a contradiction, so that it is true under at least one valuation and false under at least one valuation.
Example 1.22
The formula:
is a tautology, because every valuation makes either true or true.
The formula:
is a contradiction, because no valuation can make both and true at the same time.
The formula:
is contingent, because it is true when both and are true, but false under any valuation in which at least one of them is false.
Lemma 1.23 (Logical Equivalence is an Equivalence Relation)
Logical equivalence is reflexive, symmetric, and transitive.
Proof
Reflexivity holds because for every formula and every valuation , we have:
and therefore .
Symmetry holds because if , then for every valuation , and equality of truth values is symmetric, so for every valuation , which gives .
Transitivity holds because if and , then for every valuation we have:
and:
so by transitivity of equality:
for every valuation , and therefore .
Lemma 1.24 (Substitution of Equivalents)
Suppose that:
If is a formula context with one distinguished placeholder, then:
This means that an occurrence of a formula may be replaced by a logically equivalent formula inside any larger formula without changing the truth behavior of the larger formula.
Proof
The proof is by structural induction on the context .
If the context is only the placeholder, then:
and:
so the result follows from the assumption .
If the context has the form:
then by the induction hypothesis:
This means that and have the same truth value under every valuation, and therefore their negations also have the same truth value under every valuation, giving:
If the context has the form:
then by the induction hypothesis:
Since conjunction depends only on the truth values of its two components, replacing by does not change the truth value of the whole conjunction, and hence:
The cases for , , and are proved in the same way, using the corresponding truth rules for those connectives.
Example 1.25 (Algebraic Simplification)
Consider:
Using De Morgan law:
Using associativity and commutativity:
Since:
we get:
Finally:
Therefore: