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 30867
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 891 . . 3 (𝜑 ∨ ¬ 𝜑)
2 elim2ifim.1 . . . . 5 (𝜑𝜃)
32ancli 548 . . . 4 (𝜑 → (𝜑𝜃))
4 pm4.42 1050 . . . . . 6 𝜑 ↔ ((¬ 𝜑𝜓) ∨ (¬ 𝜑 ∧ ¬ 𝜓)))
5 elim2ifim.2 . . . . . . . . . 10 ((¬ 𝜑𝜓) → 𝜏)
65ex 412 . . . . . . . . 9 𝜑 → (𝜓𝜏))
76ancld 550 . . . . . . . 8 𝜑 → (𝜓 → (𝜓𝜏)))
87imp 406 . . . . . . 7 ((¬ 𝜑𝜓) → (𝜓𝜏))
9 elim2ifim.3 . . . . . . . . . 10 ((¬ 𝜑 ∧ ¬ 𝜓) → 𝜂)
109ex 412 . . . . . . . . 9 𝜑 → (¬ 𝜓𝜂))
1110ancld 550 . . . . . . . 8 𝜑 → (¬ 𝜓 → (¬ 𝜓𝜂)))
1211imp 406 . . . . . . 7 ((¬ 𝜑 ∧ ¬ 𝜓) → (¬ 𝜓𝜂))
138, 12orim12i 905 . . . . . 6 (((¬ 𝜑𝜓) ∨ (¬ 𝜑 ∧ ¬ 𝜓)) → ((𝜓𝜏) ∨ (¬ 𝜓𝜂)))
144, 13sylbi 216 . . . . 5 𝜑 → ((𝜓𝜏) ∨ (¬ 𝜓𝜂)))
1514ancli 548 . . . 4 𝜑 → (¬ 𝜑 ∧ ((𝜓𝜏) ∨ (¬ 𝜓𝜂))))
163, 15orim12i 905 . . 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 30866 . 2 (𝜒 ↔ ((𝜑𝜃) ∨ (¬ 𝜑 ∧ ((𝜓𝜏) ∨ (¬ 𝜓𝜂)))))
2217, 21mpbir 230 1 𝜒
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wo 843   = wceq 1541  ifcif 4464
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1801  ax-4 1815  ax-5 1916  ax-6 1974  ax-7 2014  ax-8 2111  ax-9 2119  ax-ext 2710
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-ex 1786  df-sb 2071  df-clab 2717  df-cleq 2731  df-clel 2817  df-if 4465
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator