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

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

Proof of Theorem ifval
StepHypRef Expression
1 eqif 4346 . 2 (𝐴 = if(𝜑, 𝐵, 𝐶) ↔ ((𝜑𝐴 = 𝐵) ∨ (¬ 𝜑𝐴 = 𝐶)))
2 cases2 1031 . 2 (((𝜑𝐴 = 𝐵) ∨ (¬ 𝜑𝐴 = 𝐶)) ↔ ((𝜑𝐴 = 𝐵) ∧ (¬ 𝜑𝐴 = 𝐶)))
31, 2bitri 267 1 (𝐴 = if(𝜑, 𝐵, 𝐶) ↔ ((𝜑𝐴 = 𝐵) ∧ (¬ 𝜑𝐴 = 𝐶)))
 Colors of variables: wff setvar class Syntax hints:  ¬ wn 3   → wi 4   ↔ wb 198   ∧ wa 386   ∨ wo 836   = wceq 1601  ifcif 4306 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1839  ax-4 1853  ax-5 1953  ax-6 2021  ax-7 2054  ax-9 2115  ax-10 2134  ax-12 2162  ax-ext 2753 This theorem depends on definitions:  df-bi 199  df-an 387  df-or 837  df-tru 1605  df-ex 1824  df-nf 1828  df-sb 2012  df-clab 2763  df-cleq 2769  df-clel 2773  df-if 4307 This theorem is referenced by:  dfiota4  6127  bj-projval  33570
 Copyright terms: Public domain W3C validator