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 37339
Description: Decompose disjunction into three cases. (Contributed by RP, 5-Jul-2021.)
Assertion
Ref Expression
or3or ((𝜑𝜓) ↔ ((𝜑𝜓) ∨ (𝜑 ∧ ¬ 𝜓) ∨ (¬ 𝜑𝜓)))

Proof of Theorem or3or
StepHypRef Expression
1 excxor 1461 . . 3 ((𝜑𝜓) ↔ ((𝜑 ∧ ¬ 𝜓) ∨ (¬ 𝜑𝜓)))
21orbi2i 540 . 2 (((𝜑𝜓) ∨ (𝜑𝜓)) ↔ ((𝜑𝜓) ∨ ((𝜑 ∧ ¬ 𝜓) ∨ (¬ 𝜑𝜓))))
3 orc 399 . . . 4 (𝜑 → (𝜑𝜓))
4 exmid 430 . . . . 5 (𝜓 ∨ ¬ 𝜓)
5 pm3.2 462 . . . . . 6 (𝜑 → (𝜓 → (𝜑𝜓)))
6 biimp 204 . . . . . . . . . 10 ((𝜑𝜓) → (𝜑𝜓))
7 iman 439 . . . . . . . . . 10 ((𝜑𝜓) ↔ ¬ (𝜑 ∧ ¬ 𝜓))
86, 7sylib 207 . . . . . . . . 9 ((𝜑𝜓) → ¬ (𝜑 ∧ ¬ 𝜓))
98con2i 133 . . . . . . . 8 ((𝜑 ∧ ¬ 𝜓) → ¬ (𝜑𝜓))
109ex 449 . . . . . . 7 (𝜑 → (¬ 𝜓 → ¬ (𝜑𝜓)))
11 df-xor 1457 . . . . . . . 8 ((𝜑𝜓) ↔ ¬ (𝜑𝜓))
1211bicomi 213 . . . . . . 7 (¬ (𝜑𝜓) ↔ (𝜑𝜓))
1310, 12syl6ib 240 . . . . . 6 (𝜑 → (¬ 𝜓 → (𝜑𝜓)))
145, 13orim12d 879 . . . . 5 (𝜑 → ((𝜓 ∨ ¬ 𝜓) → ((𝜑𝜓) ∨ (𝜑𝜓))))
154, 14mpi 20 . . . 4 (𝜑 → ((𝜑𝜓) ∨ (𝜑𝜓)))
163, 152thd 254 . . 3 (𝜑 → ((𝜑𝜓) ↔ ((𝜑𝜓) ∨ (𝜑𝜓))))
17 bicom 211 . . . . . . 7 ((𝜑𝜓) ↔ (𝜓𝜑))
18 bibif 360 . . . . . . 7 𝜑 → ((𝜓𝜑) ↔ ¬ 𝜓))
1917, 18syl5bb 271 . . . . . 6 𝜑 → ((𝜑𝜓) ↔ ¬ 𝜓))
2019con2bid 343 . . . . 5 𝜑 → (𝜓 ↔ ¬ (𝜑𝜓)))
2120, 12syl6bb 275 . . . 4 𝜑 → (𝜓 ↔ (𝜑𝜓)))
22 biorf 419 . . . 4 𝜑 → (𝜓 ↔ (𝜑𝜓)))
23 simpl 472 . . . . . 6 ((𝜑𝜓) → 𝜑)
2423con3i 149 . . . . 5 𝜑 → ¬ (𝜑𝜓))
25 biorf 419 . . . . 5 (¬ (𝜑𝜓) → ((𝜑𝜓) ↔ ((𝜑𝜓) ∨ (𝜑𝜓))))
2624, 25syl 17 . . . 4 𝜑 → ((𝜑𝜓) ↔ ((𝜑𝜓) ∨ (𝜑𝜓))))
2721, 22, 263bitr3d 297 . . 3 𝜑 → ((𝜑𝜓) ↔ ((𝜑𝜓) ∨ (𝜑𝜓))))
2816, 27pm2.61i 175 . 2 ((𝜑𝜓) ↔ ((𝜑𝜓) ∨ (𝜑𝜓)))
29 3orass 1034 . 2 (((𝜑𝜓) ∨ (𝜑 ∧ ¬ 𝜓) ∨ (¬ 𝜑𝜓)) ↔ ((𝜑𝜓) ∨ ((𝜑 ∧ ¬ 𝜓) ∨ (¬ 𝜑𝜓))))
302, 28, 293bitr4i 291 1 ((𝜑𝜓) ↔ ((𝜑𝜓) ∨ (𝜑 ∧ ¬ 𝜓) ∨ (¬ 𝜑𝜓)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 195  wo 382  wa 383  w3o 1030  wxo 1456
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 196  df-or 384  df-an 385  df-3or 1032  df-xor 1457
This theorem is referenced by:  uneqsn  37341
  Copyright terms: Public domain W3C validator