Users' Mathboxes Mathbox for Steve Rodriguez < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  nanorxor Structured version   Visualization version   GIF version

Theorem nanorxor 40630
Description: 'nand' is equivalent to the equivalence of inclusive and exclusive or. (Contributed by Steve Rodriguez, 28-Feb-2020.)
Assertion
Ref Expression
nanorxor ((𝜑𝜓) ↔ ((𝜑𝜓) ↔ (𝜑𝜓)))

Proof of Theorem nanorxor
StepHypRef Expression
1 df-nan 1481 . 2 ((𝜑𝜓) ↔ ¬ (𝜑𝜓))
2 xor2 1506 . . . 4 ((𝜑𝜓) ↔ ((𝜑𝜓) ∧ ¬ (𝜑𝜓)))
32rbaibr 540 . . 3 (¬ (𝜑𝜓) → ((𝜑𝜓) ↔ (𝜑𝜓)))
42bibi2i 340 . . . 4 (((𝜑𝜓) ↔ (𝜑𝜓)) ↔ ((𝜑𝜓) ↔ ((𝜑𝜓) ∧ ¬ (𝜑𝜓))))
5 pm4.71 560 . . . . 5 (((𝜑𝜓) → ¬ (𝜑𝜓)) ↔ ((𝜑𝜓) ↔ ((𝜑𝜓) ∧ ¬ (𝜑𝜓))))
6 simpl 485 . . . . . . . 8 ((𝜑𝜓) → 𝜑)
76orcd 869 . . . . . . 7 ((𝜑𝜓) → (𝜑𝜓))
87con3i 157 . . . . . 6 (¬ (𝜑𝜓) → ¬ (𝜑𝜓))
9 id 22 . . . . . 6 (¬ (𝜑𝜓) → ¬ (𝜑𝜓))
108, 9ja 188 . . . . 5 (((𝜑𝜓) → ¬ (𝜑𝜓)) → ¬ (𝜑𝜓))
115, 10sylbir 237 . . . 4 (((𝜑𝜓) ↔ ((𝜑𝜓) ∧ ¬ (𝜑𝜓))) → ¬ (𝜑𝜓))
124, 11sylbi 219 . . 3 (((𝜑𝜓) ↔ (𝜑𝜓)) → ¬ (𝜑𝜓))
133, 12impbii 211 . 2 (¬ (𝜑𝜓) ↔ ((𝜑𝜓) ↔ (𝜑𝜓)))
141, 13bitri 277 1 ((𝜑𝜓) ↔ ((𝜑𝜓) ↔ (𝜑𝜓)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 398  wo 843  wnan 1480  wxo 1500
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-nan 1481  df-xor 1501
This theorem is referenced by:  undisjrab  40631
  Copyright terms: Public domain W3C validator