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

Theorem ifbi 2375
Description: Equivalence theorem for conditional operators. (Contributed by Raph Levien, 15-Jan-2004.)
Assertion
Ref Expression
ifbi |- ((ph <-> ps) -> if(ph, A, B) = if(ps, A, B))

Proof of Theorem ifbi
StepHypRef Expression
1 dfbi3 672 . 2 |- ((ph <-> ps) <-> ((ph /\ ps) \/ (-. ph /\ -. ps)))
2 iftrue 2370 . . . 4 |- (ph -> if(ph, A, B) = A)
3 iftrue 2370 . . . . 5 |- (ps -> if(ps, A, B) = A)
43eqcomd 1483 . . . 4 |- (ps -> A = if(ps, A, B))
52, 4sylan9eq 1530 . . 3 |- ((ph /\ ps) -> if(ph, A, B) = if(ps, A, B))
6 iffalse 2371 . . . 4 |- (-. ph -> if(ph, A, B) = B)
7 iffalse 2371 . . . . 5 |- (-. ps -> if(ps, A, B) = B)
87eqcomd 1483 . . . 4 |- (-. ps -> B = if(ps, A, B))
96, 8sylan9eq 1530 . . 3 |- ((-. ph /\ -. ps) -> if(ph, A, B) = if(ps, A, B))
105, 9jaoi 341 . 2 |- (((ph /\ ps) \/ (-. ph /\ -. ps)) -> if(ph, A, B) = if(ps, A, B))
111, 10sylbi 199 1 |- ((ph <-> ps) -> if(ph, A, B) = if(ps, A, B))
Colors of variables: wff set class
Syntax hints:  -. wn 2   -> wi 3   <-> wb 146   \/ wo 222   /\ wa 223   = wceq 958  ifcif 2365
This theorem is referenced by:  ifbid 2376  ruclem15 7525
This theorem was proved from axioms:  ax-1 4  ax-2 5  ax-3 6  ax-mp 7  ax-7 964  ax-gen 965  ax-8 966  ax-10 968  ax-12 970  ax-17 973  ax-4 975  ax-5o 977  ax-6o 980  ax-9o 1125  ax-10o 1142  ax-16 1212  ax-11o 1220  ax-ext 1462
This theorem depends on definitions:  df-bi 147  df-or 224  df-an 225  df-ex 983  df-sb 1174  df-clab 1467  df-cleq 1472  df-clel 1475  df-if 2366
Copyright terms: Public domain