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 38504
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 1448 . 2 ((𝜑𝜓) ↔ ¬ (𝜑𝜓))
2 xor2 1470 . . . 4 ((𝜑𝜓) ↔ ((𝜑𝜓) ∧ ¬ (𝜑𝜓)))
32rbaibr 946 . . 3 (¬ (𝜑𝜓) → ((𝜑𝜓) ↔ (𝜑𝜓)))
42bibi2i 327 . . . 4 (((𝜑𝜓) ↔ (𝜑𝜓)) ↔ ((𝜑𝜓) ↔ ((𝜑𝜓) ∧ ¬ (𝜑𝜓))))
5 pm4.71 662 . . . . 5 (((𝜑𝜓) → ¬ (𝜑𝜓)) ↔ ((𝜑𝜓) ↔ ((𝜑𝜓) ∧ ¬ (𝜑𝜓))))
6 simpl 473 . . . . . . . 8 ((𝜑𝜓) → 𝜑)
76orcd 407 . . . . . . 7 ((𝜑𝜓) → (𝜑𝜓))
87con3i 150 . . . . . 6 (¬ (𝜑𝜓) → ¬ (𝜑𝜓))
9 id 22 . . . . . 6 (¬ (𝜑𝜓) → ¬ (𝜑𝜓))
108, 9ja 173 . . . . 5 (((𝜑𝜓) → ¬ (𝜑𝜓)) → ¬ (𝜑𝜓))
115, 10sylbir 225 . . . 4 (((𝜑𝜓) ↔ ((𝜑𝜓) ∧ ¬ (𝜑𝜓))) → ¬ (𝜑𝜓))
124, 11sylbi 207 . . 3 (((𝜑𝜓) ↔ (𝜑𝜓)) → ¬ (𝜑𝜓))
133, 12impbii 199 . 2 (¬ (𝜑𝜓) ↔ ((𝜑𝜓) ↔ (𝜑𝜓)))
141, 13bitri 264 1 ((𝜑𝜓) ↔ ((𝜑𝜓) ↔ (𝜑𝜓)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 196  wo 383  wa 384  wnan 1447  wxo 1464
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 197  df-or 385  df-an 386  df-nan 1448  df-xor 1465
This theorem is referenced by:  undisjrab  38505
  Copyright terms: Public domain W3C validator