Metamath Proof Explorer


Definition df-cdeq

Description: Define conditional equality. All the notation to the left of the <-> is fake; the parentheses and arrows are all part of the notation, which could equally well be written CondEq x y ph . On the right side is the actual implication arrow. The reason for this definition is to "flatten" the structure on the right side (whose tree structure is something like (wi (wceq (cv vx) (cv vy)) wph) ) into just (wcdeq vx vy wph). (Contributed by Mario Carneiro, 11-Aug-2016)

Ref Expression
Assertion df-cdeq
|- ( CondEq ( x = y -> ph ) <-> ( x = y -> ph ) )

Detailed syntax breakdown

Step Hyp Ref Expression
0 vx
 |-  x
1 vy
 |-  y
2 wph
 |-  ph
3 2 0 1 wcdeq
 |-  CondEq ( x = y -> ph )
4 0 cv
 |-  x
5 1 cv
 |-  y
6 4 5 wceq
 |-  x = y
7 6 2 wi
 |-  ( x = y -> ph )
8 3 7 wb
 |-  ( CondEq ( x = y -> ph ) <-> ( x = y -> ph ) )