MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  elimif Structured version   Visualization version   GIF version

Theorem elimif 4525
Description: Elimination of a conditional operator contained in a wff 𝜓. (Contributed by NM, 15-Feb-2005.) (Proof shortened by NM, 25-Apr-2019.)
Hypotheses
Ref Expression
elimif.1 (if(𝜑, 𝐴, 𝐵) = 𝐴 → (𝜓 ↔ 𝜒))
elimif.2 (if(𝜑, 𝐴, 𝐵) = 𝐵 → (𝜓 ↔ 𝜃))
Assertion
Ref Expression
elimif (𝜓 ↔ ((𝜑 ∧ 𝜒) ∨ (¬ 𝜑 ∧ 𝜃)))

Proof of Theorem elimif
StepHypRef Expression
1 iftrue 4493 . . 3 (𝜑 → if(𝜑, 𝐴, 𝐵) = 𝐴)
2 elimif.1 . . 3 (if(𝜑, 𝐴, 𝐵) = 𝐴 → (𝜓 ↔ 𝜒))
31, 2syl 18 . 2 (𝜑 → (𝜓 ↔ 𝜒))
4 iffalse 4496 . . 3 (¬ 𝜑 → if(𝜑, 𝐴, 𝐵) = 𝐵)
5 elimif.2 . . 3 (if(𝜑, 𝐴, 𝐵) = 𝐵 → (𝜓 ↔ 𝜃))
64, 5syl 18 . 2 (¬ 𝜑 → (𝜓 ↔ 𝜃))
73, 6cases 1059 1 (𝜓 ↔ ((𝜑 ∧ 𝜒) ∨ (¬ 𝜑 ∧ 𝜃)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 401   ∨ wo 861   = wceq 1572  ifcif 4487
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-ext 2741
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-ex 1815  df-sb 2105  df-clab 2748  df-cleq 2761  df-clel 2845  df-if 4488
This theorem is used by:  eqif  4529  elif  4531  ifel  4532  ftc1anclem5  38909  clsk1indlem2  45386
  Copyright terms: Public domain W3C validator