Skip to content Skip to navigation

Connexions

You are here: Home » Content » Propositional Logic: equivalences

Navigation

Content Actions

  • Download module PDF
  • Add to ...
    Add the module to:
    • My Favorites
    • A lens
    • An external social bookmarking service
    • My Favorites (What is 'My Favorites'?)
      'My Favorites' is a special kind of lens which you can use to bookmark modules and collections directly in Connexions. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need a Connexions account to use 'My Favorites'.
    • A lens (What is a lens?)

      Definition of a lens

      Lenses

      A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

      What is in a lens?

      Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

      Who can create a lens?

      Any individual Connexions member, a community, or a respected organization.

    • External bookmarks
  • E-mail the authors

Recently Viewed

This feature requires Javascript to be enabled.

Propositional Logic: equivalences

Module by: Ian Barland, John Greiner, Phokion Kolaitis, Moshe Vardi, Matthias Felleisen

Summary: How to use identities to determine whether two propositional formulas are equivalent.

Propositional Equivalences

What are the roots of x3-4x x 3 4 x ? Well, in high-school algebra you learned how to deal with such numeric formulas:

  x3-4x x 3 4 x  
== xx2-4 x x 2 4 factor out xx
== xx-2x+2 x x 2 x 2 The identity a2-b2=a+ba-b a 2 b 2 a b a b with aa being xx, and bb being 2.

This last expression happens to be useful since it is in a form which lets us read off the roots 0, +2, -2. The rules of algebra tell us that these three different formulas are all equivalent. In fact, our very definition of two formulas being equivalent is that for any value of xx the two formulas return the same value. We are distinguishing between syntax (the expression itself, as data), and semantics (what the expression means). Usually, when presented with syntax, one is supposed to bypass that and focus on its meaning (e.g., reading a textbook). However, in logic and post-modern literature alike, we are actually studying the interplay between syntax and semantics. The general gist is that in each step, you rewrite subparts of your formula according to certain rules (“replacing equals with equals”).

Well, we can use a similar set of rules about rewriting formulas with equivalent ones, to answer the questions of whether two formulas are equal, or whether a formula is a tautology. George Boole was the first to realize that true and false are just values in the way that numbers are, and he first codified the rules for manipulating them; thus Boolean algebra is named in his honor.

aside:

The term “algebra” comes from the values true, false and operators , having some very specific properties similar to those of numbers with ×, +.

Figure 1: George Boole (1815-1864)
Figure 1 (boole.png)

Again, each individual step consists of rewriting a formula according to certain rules. So, just what are the rules for manipulating Boolean values? We'll start with an example.

Example 1

1afalsebtrue a b  
2falsebtrue b Dominance of false over
3btruefalse b Commutativity of
4btrueb Identity element for is false
5bbIdentity element for is true

Thus we have a series of equivalent formulas, with each step justified by citing a propositional equivalence. By and large, the equivalences are rather mundane. A couple are surprisingly handy; take a moment to consider DeMorgan's laws.

¬φψ¬φ¬ψ φ ψ φ ψ ¬φψ¬φ¬ψ φ ψ φ ψ

(Try φφ being “Leprechauns are green”, and ψψ being “Morgana Le Fay likes gold”. Do these laws make sense, for each of the four possible truth assignments?) Augustus DeMorgan was also an important figure in the formalization of logic.

Figure 2: Augustus DeMorgan (1806-1871)
Figure 2 (demorgan.jpg)

Here is another example. For a statement φψφψ, the contrapositive of that formula is ¬ψ¬φ ψ φ . We can show that a formula is equivalent to its contrapositive:

Example 2

Contrapositive

1φψ φ ψ  
2¬φψ φ ψ Definition of
3ψ¬φ ψ φ Commutativity of
4¬¬ψ¬φ ψ φ Double Complementation
5¬ψ¬φ ψ φ Definition of

Don't confuse the contrapositive of a statement with the converse of a formula: The converse of φψφψ is the formula ψφψφ; in general a formula is not equivalent to its converse!

This next example is actually a proof of one of the laws from the given list, using (only) others from the list.

Example 3

Absorption of

1φψψ φ ψ ψ  
2φψψtrue φ ψ ψ Identity of
3ψφψtrue ψ φ ψ Commutativity of
4ψφtrue ψ φ Distributivity of over
5ψtrueψ Dominance of
6ψψIdentity of

Exercise 1

Show that the “Absorption of ” equivalence holds, given the other equivalences. I.e., show abbb a b b b .

Solution 1

1abb a b b  
2abbfalse a b b Identity of
3babfalse b a b Commutativity of
4bafalse b a Distributivity of over
5bfalseb Dominance of
6bbIdentity of

Compared to proofs using truth tables, Boolean algebra gives us much shorter proofs. But, determining which equivalence to use in the next step of a proof can be difficult. In this case, compare the solution for this exercise to the previous absorption proof. These two proofs have a special dual relationship described in the next section.

Exercise 2

Show that the modus ponens rule, aabb a a b b always holds. I.e., show that it is a tautology, and thus equivalent to true.

Solution 2

1aabb a a b b  
2a¬abb a a b b Definition of
3a¬aabb a a a b b Distributivity of over
4falseabb a b b Complement
5abfalseb a b b Commutativity of
6abb a b b Identity of
7¬abb a b b Definition of
8¬a¬bb a b b DeMorgan's law
9¬a¬bb a b b Associativity of
10¬ab¬b a b b Commutativity of
11¬atrue a Complement
12trueDominance of

So, what would it mean to use Boolean algebra as reasoning for WaterWorld? That is, if you wanted to show that G-safeG-safe was true, how would you do that using Boolean algebra? As with truth-tables, we would take the conjunction of all the WaterWorld domain axioms (call it ρρ), and the board's observed state (ψψ). We would then want to show that asserting G-safeG-safe was already equivalent to the rules-and-observed-state: ρψρψG-safe ρ ψ ρ ψ G-safe .

Duals (optional)

Duals: a symmetry between , mediated by ¬¬.

Looking at the provided propositional equivalences, you should notice a strong similarity between those for and those for . Take any equivalence, swap s and s, swap trues and falses, and you'll have another equivalence! For instance, there are two flavors of DeMorgan's law, which are just duals of each other:

¬φψ¬φ¬ψ φ ψ φ ψ ¬φψ¬φ¬ψ φ ψ φ ψ

aside:

In terms of circuit diagrams, we can change each AND gate to an OR gate and add negation-bubbles to each gate's inputs and outputs. The principle of duality asserts that this operation yields an equivalent circuit.

The idea of duality is more general than this. For example, polyhedra have a natural dual of interchanging the role of vertices and faces.

Comments, questions, feedback, criticisms?

Send feedback