Users' Mathboxes Mathbox for Richard Penner < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  or3or Structured version   Visualization version   GIF version

Theorem or3or 44790
Description: Decompose disjunction into three cases. (Contributed by RP, 5-Jul-2021.)
Assertion
Ref Expression
or3or ((𝜑𝜓) ↔ ((𝜑𝜓) ∨ (𝜑 ∧ ¬ 𝜓) ∨ (¬ 𝜑𝜓)))

Proof of Theorem or3or
StepHypRef Expression
1 excxor 1546 . . 3 ((𝜑𝜓) ↔ ((𝜑 ∧ ¬ 𝜓) ∨ (¬ 𝜑𝜓)))
21orbi2i 926 . 2 (((𝜑𝜓) ∨ (𝜑𝜓)) ↔ ((𝜑𝜓) ∨ ((𝜑 ∧ ¬ 𝜓) ∨ (¬ 𝜑𝜓))))
3 orc 881 . . . 4 (𝜑 → (𝜑𝜓))
4 exmid 908 . . . . 5 (𝜓 ∨ ¬ 𝜓)
5 pm3.2 475 . . . . . 6 (𝜑 → (𝜓 → (𝜑𝜓)))
6 biimp 218 . . . . . . . . . 10 ((𝜑𝜓) → (𝜑𝜓))
7 iman 407 . . . . . . . . . 10 ((𝜑𝜓) ↔ ¬ (𝜑 ∧ ¬ 𝜓))
86, 7sylib 221 . . . . . . . . 9 ((𝜑𝜓) → ¬ (𝜑 ∧ ¬ 𝜓))
98con2i 140 . . . . . . . 8 ((𝜑 ∧ ¬ 𝜓) → ¬ (𝜑𝜓))
109ex 418 . . . . . . 7 (𝜑 → (¬ 𝜓 → ¬ (𝜑𝜓)))
11 df-xor 1542 . . . . . . . 8 ((𝜑𝜓) ↔ ¬ (𝜑𝜓))
1211bicomi 227 . . . . . . 7 (¬ (𝜑𝜓) ↔ (𝜑𝜓))
1310, 12imbitrdi 254 . . . . . 6 (𝜑 → (¬ 𝜓 → (𝜑𝜓)))
145, 13orim12d 979 . . . . 5 (𝜑 → ((𝜓 ∨ ¬ 𝜓) → ((𝜑𝜓) ∨ (𝜑𝜓))))
154, 14mpi 21 . . . 4 (𝜑 → ((𝜑𝜓) ∨ (𝜑𝜓)))
163, 152thd 268 . . 3 (𝜑 → ((𝜑𝜓) ↔ ((𝜑𝜓) ∨ (𝜑𝜓))))
17 bicom 225 . . . . . . 7 ((𝜑𝜓) ↔ (𝜓𝜑))
18 bibif 374 . . . . . . 7 𝜑 → ((𝜓𝜑) ↔ ¬ 𝜓))
1917, 18bitrid 286 . . . . . 6 𝜑 → ((𝜑𝜓) ↔ ¬ 𝜓))
2019con2bid 357 . . . . 5 𝜑 → (𝜓 ↔ ¬ (𝜑𝜓)))
2120, 12bitrdi 290 . . . 4 𝜑 → (𝜓 ↔ (𝜑𝜓)))
22 biorf 950 . . . 4 𝜑 → (𝜓 ↔ (𝜑𝜓)))
23 simpl 488 . . . . 5 ((𝜑𝜓) → 𝜑)
24 biorf 950 . . . . 5 (¬ (𝜑𝜓) → ((𝜑𝜓) ↔ ((𝜑𝜓) ∨ (𝜑𝜓))))
2523, 24nsyl5 160 . . . 4 𝜑 → ((𝜑𝜓) ↔ ((𝜑𝜓) ∨ (𝜑𝜓))))
2621, 22, 253bitr3d 312 . . 3 𝜑 → ((𝜑𝜓) ↔ ((𝜑𝜓) ∨ (𝜑𝜓))))
2716, 26pm2.61i 184 . 2 ((𝜑𝜓) ↔ ((𝜑𝜓) ∨ (𝜑𝜓)))
28 3orass 1106 . 2 (((𝜑𝜓) ∨ (𝜑 ∧ ¬ 𝜓) ∨ (¬ 𝜑𝜓)) ↔ ((𝜑𝜓) ∨ ((𝜑 ∧ ¬ 𝜓) ∨ (¬ 𝜑𝜓))))
292, 27, 283bitr4i 306 1 ((𝜑𝜓) ↔ ((𝜑𝜓) ∨ (𝜑 ∧ ¬ 𝜓) ∨ (¬ 𝜑𝜓)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3  wi 4  wb 209  wa 401  wo 861  w3o 1102  wxo 1541
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-xor 1542
This theorem is used by:  uneqsn  44792
  Copyright terms: Public domain W3C validator