HomeHome Metamath Proof Explorer < Previous   Next >
Related theorems
GIF version

Theorem ifeq2 1779
Description: Equality theorem for conditional operators.
Assertion
Ref Expression
ifeq2 (B = C → if(φ, A, B) = if(φ, A, C))

Proof of Theorem ifeq2
StepHypRef Expression
1 eleq2 1150 . . . . 5 (B = C → (xBxC))
21anbi1d 469 . . . 4 (B = C → ((xB ∧ ¬ φ) ↔ (xC ∧ ¬ φ)))
32orbi2d 466 . . 3 (B = C → (((xAφ) ∨ (xB ∧ ¬ φ)) ↔ ((xAφ) ∨ (xC ∧ ¬ φ))))
43biabdv 1183 . 2 (B = C → {x∣((xAφ) ∨ (xB ∧ ¬ φ))} = {x∣((xAφ) ∨ (xC ∧ ¬ φ))})
5 df-if 1777 . 2 if(φ, A, B) = {x∣((xAφ) ∨ (xB ∧ ¬ φ))}
6 df-if 1777 . 2 if(φ, A, C) = {x∣((xAφ) ∨ (xC ∧ ¬ φ))}
74, 5, 63eqtr4g 1147 1 (B = C → if(φ, A, B) = if(φ, A, C))
Colors of variables: wff set class
Syntax hints:  ¬ wn 1   → wi 2   ∨ wo 195   ∧ wa 196  {cab 1090   = wceq 1091   ∈ wcel 1092  ifcif 1776
This theorem is referenced by:  ifeq12 1782  oev 3122  unxpdomlem 3649
This theorem was proved from axioms:  ax-1 3  ax-2 4  ax-3 5  ax-mp 6  ax-4 673  ax-5 674  ax-6 675  ax-7 676  ax-gen 677  ax-8 798  ax-9 799  ax-10 800  ax-11 801  ax-12 802  ax-16 922  ax-17 925  ax-ext 1074
This theorem depends on definitions:  df-bi 128  df-or 197  df-an 198  df-ex 679  df-sb 853  df-clab 1093  df-cleq 1097  df-clel 1099  df-if 1777
metamath.org