Users' Mathboxes Mathbox for Wolf Lammen < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  wl-2xor Structured version   Visualization version   GIF version

Theorem wl-2xor 35654
Description: In the recursive scheme

"(n+1)-xor" ↔ if-(𝜑, ¬ "n-xor" , "n-xor" )

we set n = 1 to formally arrive at an expression for "2-xor". It is based on "1-xor", that is known to be equivalent to its only input (see wl-1xor 35653). (Contributed by Wolf Lammen, 11-May-2024.)

Assertion
Ref Expression
wl-2xor (if-(𝜑, ¬ 𝜓, 𝜓) ↔ (𝜑𝜓))

Proof of Theorem wl-2xor
StepHypRef Expression
1 ifpdfbi 1068 . 2 ((¬ 𝜑𝜓) ↔ if-(¬ 𝜑, 𝜓, ¬ 𝜓))
2 df-xor 1507 . . 3 ((𝜑𝜓) ↔ ¬ (𝜑𝜓))
3 nbbn 385 . . 3 ((¬ 𝜑𝜓) ↔ ¬ (𝜑𝜓))
42, 3bitr4i 277 . 2 ((𝜑𝜓) ↔ (¬ 𝜑𝜓))
5 ifpn 1071 . 2 (if-(𝜑, ¬ 𝜓, 𝜓) ↔ if-(¬ 𝜑, 𝜓, ¬ 𝜓))
61, 4, 53bitr4ri 304 1 (if-(𝜑, ¬ 𝜓, 𝜓) ↔ (𝜑𝜓))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wb 205  if-wif 1060  wxo 1506
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 206  df-an 397  df-or 845  df-ifp 1061  df-xor 1507
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator