Metamath Proof Explorer


Theorem sgnsval

Description: The sign value. (Contributed by Thierry Arnoux, 9-Sep-2018)

Ref Expression
Hypotheses sgnsval.b B=BaseR
sgnsval.0 0˙=0R
sgnsval.l <˙=<R
sgnsval.s S=sgnsR
Assertion sgnsval RVXBSX=ifX=0˙0if0˙<˙X11

Proof

Step Hyp Ref Expression
1 sgnsval.b B=BaseR
2 sgnsval.0 0˙=0R
3 sgnsval.l <˙=<R
4 sgnsval.s S=sgnsR
5 1 2 3 4 sgnsv RVS=xBifx=0˙0if0˙<˙x11
6 5 adantr RVXBS=xBifx=0˙0if0˙<˙x11
7 eqeq1 x=Xx=0˙X=0˙
8 breq2 x=X0˙<˙x0˙<˙X
9 8 ifbid x=Xif0˙<˙x11=if0˙<˙X11
10 7 9 ifbieq2d x=Xifx=0˙0if0˙<˙x11=ifX=0˙0if0˙<˙X11
11 10 adantl RVXBx=Xifx=0˙0if0˙<˙x11=ifX=0˙0if0˙<˙X11
12 simpr RVXBXB
13 c0ex 0V
14 13 a1i RVXBX=0˙0V
15 1ex 1V
16 15 a1i RVXB¬X=0˙0˙<˙X1V
17 negex 1V
18 17 a1i RVXB¬X=0˙¬0˙<˙X1V
19 16 18 ifclda RVXB¬X=0˙if0˙<˙X11V
20 14 19 ifclda RVXBifX=0˙0if0˙<˙X11V
21 6 11 12 20 fvmptd RVXBSX=ifX=0˙0if0˙<˙X11