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 30888
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 892 . . 3 (𝜑 ∨ ¬ 𝜑)
2 elim2ifim.1 . . . . 5 (𝜑𝜃)
32ancli 549 . . . 4 (𝜑 → (𝜑𝜃))
4 pm4.42 1051 . . . . . 6 𝜑 ↔ ((¬ 𝜑𝜓) ∨ (¬ 𝜑 ∧ ¬ 𝜓)))
5 elim2ifim.2 . . . . . . . . . 10 ((¬ 𝜑𝜓) → 𝜏)
65ex 413 . . . . . . . . 9 𝜑 → (𝜓𝜏))
76ancld 551 . . . . . . . 8 𝜑 → (𝜓 → (𝜓𝜏)))
87imp 407 . . . . . . 7 ((¬ 𝜑𝜓) → (𝜓𝜏))
9 elim2ifim.3 . . . . . . . . . 10 ((¬ 𝜑 ∧ ¬ 𝜓) → 𝜂)
109ex 413 . . . . . . . . 9 𝜑 → (¬ 𝜓𝜂))
1110ancld 551 . . . . . . . 8 𝜑 → (¬ 𝜓 → (¬ 𝜓𝜂)))
1211imp 407 . . . . . . 7 ((¬ 𝜑 ∧ ¬ 𝜓) → (¬ 𝜓𝜂))
138, 12orim12i 906 . . . . . 6 (((¬ 𝜑𝜓) ∨ (¬ 𝜑 ∧ ¬ 𝜓)) → ((𝜓𝜏) ∨ (¬ 𝜓𝜂)))
144, 13sylbi 216 . . . . 5 𝜑 → ((𝜓𝜏) ∨ (¬ 𝜓𝜂)))
1514ancli 549 . . . 4 𝜑 → (¬ 𝜑 ∧ ((𝜓𝜏) ∨ (¬ 𝜓𝜂))))
163, 15orim12i 906 . . 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 30887 . 2 (𝜒 ↔ ((𝜑𝜃) ∨ (¬ 𝜑 ∧ ((𝜓𝜏) ∨ (¬ 𝜓𝜂)))))
2217, 21mpbir 230 1 𝜒
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  wo 844   = wceq 1539  ifcif 4459
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-ex 1783  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  df-if 4460
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator