Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  elim2ifim Structured version   Visualization version   GIF version

Theorem elim2ifim 28748
Description: Elimination of two conditional operators for an implication. (Contributed by Thierry Arnoux, 25-Jan-2017.)
Hypotheses
Ref Expression
elim2if.1 (if(𝜑, 𝐴, if(𝜓, 𝐵, 𝐶)) = 𝐴 → (𝜒𝜃))
elim2if.2 (if(𝜑, 𝐴, if(𝜓, 𝐵, 𝐶)) = 𝐵 → (𝜒𝜏))
elim2if.3 (if(𝜑, 𝐴, if(𝜓, 𝐵, 𝐶)) = 𝐶 → (𝜒𝜂))
elim2ifim.1 (𝜑𝜃)
elim2ifim.2 ((¬ 𝜑𝜓) → 𝜏)
elim2ifim.3 ((¬ 𝜑 ∧ ¬ 𝜓) → 𝜂)
Assertion
Ref Expression
elim2ifim 𝜒

Proof of Theorem elim2ifim
StepHypRef Expression
1 exmid 430 . . 3 (𝜑 ∨ ¬ 𝜑)
2 elim2ifim.1 . . . . 5 (𝜑𝜃)
32ancli 572 . . . 4 (𝜑 → (𝜑𝜃))
4 pm4.42 995 . . . . . 6 𝜑 ↔ ((¬ 𝜑𝜓) ∨ (¬ 𝜑 ∧ ¬ 𝜓)))
5 elim2ifim.2 . . . . . . . . . 10 ((¬ 𝜑𝜓) → 𝜏)
65ex 449 . . . . . . . . 9 𝜑 → (𝜓𝜏))
76ancld 574 . . . . . . . 8 𝜑 → (𝜓 → (𝜓𝜏)))
87imp 444 . . . . . . 7 ((¬ 𝜑𝜓) → (𝜓𝜏))
9 elim2ifim.3 . . . . . . . . . 10 ((¬ 𝜑 ∧ ¬ 𝜓) → 𝜂)
109ex 449 . . . . . . . . 9 𝜑 → (¬ 𝜓𝜂))
1110ancld 574 . . . . . . . 8 𝜑 → (¬ 𝜓 → (¬ 𝜓𝜂)))
1211imp 444 . . . . . . 7 ((¬ 𝜑 ∧ ¬ 𝜓) → (¬ 𝜓𝜂))
138, 12orim12i 537 . . . . . 6 (((¬ 𝜑𝜓) ∨ (¬ 𝜑 ∧ ¬ 𝜓)) → ((𝜓𝜏) ∨ (¬ 𝜓𝜂)))
144, 13sylbi 206 . . . . 5 𝜑 → ((𝜓𝜏) ∨ (¬ 𝜓𝜂)))
1514ancli 572 . . . 4 𝜑 → (¬ 𝜑 ∧ ((𝜓𝜏) ∨ (¬ 𝜓𝜂))))
163, 15orim12i 537 . . 3 ((𝜑 ∨ ¬ 𝜑) → ((𝜑𝜃) ∨ (¬ 𝜑 ∧ ((𝜓𝜏) ∨ (¬ 𝜓𝜂)))))
171, 16ax-mp 5 . 2 ((𝜑𝜃) ∨ (¬ 𝜑 ∧ ((𝜓𝜏) ∨ (¬ 𝜓𝜂))))
18 elim2if.1 . . 3 (if(𝜑, 𝐴, if(𝜓, 𝐵, 𝐶)) = 𝐴 → (𝜒𝜃))
19 elim2if.2 . . 3 (if(𝜑, 𝐴, if(𝜓, 𝐵, 𝐶)) = 𝐵 → (𝜒𝜏))
20 elim2if.3 . . 3 (if(𝜑, 𝐴, if(𝜓, 𝐵, 𝐶)) = 𝐶 → (𝜒𝜂))
2118, 19, 20elim2if 28747 . 2 (𝜒 ↔ ((𝜑𝜃) ∨ (¬ 𝜑 ∧ ((𝜓𝜏) ∨ (¬ 𝜓𝜂)))))
2217, 21mpbir 220 1 𝜒
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 195  wo 382  wa 383   = wceq 1475  ifcif 4036
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-clab 2597  df-cleq 2603  df-clel 2606  df-if 4037
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator