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

Theorem ifval 4466
Description: Another expression of the value of the if predicate, analogous to eqif 4465. See also the more specialized iftrue 4431 and iffalse 4434. (Contributed by BJ, 6-Apr-2019.)
Assertion
Ref Expression
ifval (𝐴 = if(𝜑, 𝐵, 𝐶) ↔ ((𝜑𝐴 = 𝐵) ∧ (¬ 𝜑𝐴 = 𝐶)))

Proof of Theorem ifval
StepHypRef Expression
1 eqif 4465 . 2 (𝐴 = if(𝜑, 𝐵, 𝐶) ↔ ((𝜑𝐴 = 𝐵) ∨ (¬ 𝜑𝐴 = 𝐶)))
2 cases2 1043 . 2 (((𝜑𝐴 = 𝐵) ∨ (¬ 𝜑𝐴 = 𝐶)) ↔ ((𝜑𝐴 = 𝐵) ∧ (¬ 𝜑𝐴 = 𝐶)))
31, 2bitri 278 1 (𝐴 = if(𝜑, 𝐵, 𝐶) ↔ ((𝜑𝐴 = 𝐵) ∧ (¬ 𝜑𝐴 = 𝐶)))
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:  dfiota4  6316  bj-projval  34432
  Copyright terms: Public domain W3C validator