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 30312
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 552 . . . 4 (𝜑 → (𝜑𝜃))
4 pm4.42 1049 . . . . . 6 𝜑 ↔ ((¬ 𝜑𝜓) ∨ (¬ 𝜑 ∧ ¬ 𝜓)))
5 elim2ifim.2 . . . . . . . . . 10 ((¬ 𝜑𝜓) → 𝜏)
65ex 416 . . . . . . . . 9 𝜑 → (𝜓𝜏))
76ancld 554 . . . . . . . 8 𝜑 → (𝜓 → (𝜓𝜏)))
87imp 410 . . . . . . 7 ((¬ 𝜑𝜓) → (𝜓𝜏))
9 elim2ifim.3 . . . . . . . . . 10 ((¬ 𝜑 ∧ ¬ 𝜓) → 𝜂)
109ex 416 . . . . . . . . 9 𝜑 → (¬ 𝜓𝜂))
1110ancld 554 . . . . . . . 8 𝜑 → (¬ 𝜓 → (¬ 𝜓𝜂)))
1211imp 410 . . . . . . 7 ((¬ 𝜑 ∧ ¬ 𝜓) → (¬ 𝜓𝜂))
138, 12orim12i 906 . . . . . 6 (((¬ 𝜑𝜓) ∨ (¬ 𝜑 ∧ ¬ 𝜓)) → ((𝜓𝜏) ∨ (¬ 𝜓𝜂)))
144, 13sylbi 220 . . . . 5 𝜑 → ((𝜓𝜏) ∨ (¬ 𝜓𝜂)))
1514ancli 552 . . . 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 30311 . 2 (𝜒 ↔ ((𝜑𝜃) ∨ (¬ 𝜑 ∧ ((𝜓𝜏) ∨ (¬ 𝜓𝜂)))))
2217, 21mpbir 234 1 𝜒
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399  wo 844   = wceq 1538  ifcif 4425
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-ext 2770
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-ex 1782  df-sb 2070  df-clab 2777  df-cleq 2791  df-clel 2870  df-if 4426
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator