HomeHome Metamath Proof Explorer < Previous   Next >
Related theorems
GIF version

Theorem consensus 574
Description: The consensus theorem. This theorem and its dual (with ∨ and ∧ interchanged) are commonly used in computer logic design to eliminate redundant terms from Boolean expressions. Specifically, we show the term (ψχ) on the left-hand side is redundant.
Assertion
Ref Expression
consensus ((((φψ) ∨ (¬ φχ)) ∨ (ψχ)) ↔ ((φψ) ∨ (¬ φχ)))

Proof of Theorem consensus
StepHypRef Expression
1 id 9 . . 3™/SPAN> (((φψ) ∨ (¬ φχ)) → ((φψ) ∨ (¬ φχ)))
2 dedlema 569 . . . . . . 7 (φ → (ψ ↔ ((ψφ) ∨ (χ ∧ ¬ φ))))
32biimpd 135 . . . . . 6 (φ → (ψ → ((ψφ) ∨ (χ ∧ ¬ φ))))
43adantrd 308 . . . . 5 (φ → ((ψχ) → ((ψφ) ∨ (χ ∧ ¬ φ))))
5 dedlemb 570 . . . . . . 7 φ → (χ ↔ ((ψφ) ∨ (χ ∧ ¬ φ))))
65biimpd 135 . . . . . 6 φ → (χ → ((ψφ) ∨ (χ ∧ ¬ φ))))
76adantld 307 . . . . 5 φ → ((ψχ) → ((ψφ) ∨ (χ ∧ ¬ φ))))
84, 7pm2.61i 110 . . . 4 ((ψχ) → ((ψφ) ∨ (&cöi; ∧ ¬ φ)))
9 ancom 333 . . . . 5 ((ψφ) ↔ (φψ))
10 ancom 333 . . . . 5 ((χ ∧ ¬ φ) ↔ (¬ φχ))
119, 10orbi12i 216 . . . 4 (((ψφ) ∨ (χ ∧ ¬ φ)) ↔ ((φψ) ∨ (¬ φχ)))
128, 11sylib 173 . . 3 ((ψχ) → ((φψ) ∨ (¬ φχ)))
131, 12jaoi 275 . 2 ((((φψ) ∨ (¬ φχ)) ∨ (ψχ)) → ((φψ) ∨ (¬ φχ)))
14 orc 225 . 2 (((φψ) ∨ (¬ φχ)) → (((φψ) ∨ (¬ φχ)) ∨ (ψχ)))
1513, 14impbi 139 1 ((((φψ) ∨ (¬ φχ)) ∨ (ψχ)) ↔ ((φψ) ∨ (¬ φχ)))
Colors of variables: wff set class
Syntax hints:  ¬ wn 1   → wi 2   ↔ wb 127   ∨ wo 195   ∧ wa 196
This theorem was proved from axioms:  ax-1 3  ax-2 4  ax-3 5  ax-mp 6
This theorem depends on definitions:  df-bi 128  df-or 197  df-an 198
metamath.org