Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  sgnsval Structured version   Visualization version   GIF version

Theorem sgnsval 32320
Description: The sign value. (Contributed by Thierry Arnoux, 9-Sep-2018.)
Hypotheses
Ref Expression
sgnsval.b 𝐵 = (Base‘𝑅)
sgnsval.0 0 = (0g𝑅)
sgnsval.l < = (lt‘𝑅)
sgnsval.s 𝑆 = (sgns𝑅)
Assertion
Ref Expression
sgnsval ((𝑅𝑉𝑋𝐵) → (𝑆𝑋) = if(𝑋 = 0 , 0, if( 0 < 𝑋, 1, -1)))

Proof of Theorem sgnsval
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 sgnsval.b . . . 4 𝐵 = (Base‘𝑅)
2 sgnsval.0 . . . 4 0 = (0g𝑅)
3 sgnsval.l . . . 4 < = (lt‘𝑅)
4 sgnsval.s . . . 4 𝑆 = (sgns𝑅)
51, 2, 3, 4sgnsv 32319 . . 3 (𝑅𝑉𝑆 = (𝑥𝐵 ↦ if(𝑥 = 0 , 0, if( 0 < 𝑥, 1, -1))))
65adantr 482 . 2 ((𝑅𝑉𝑋𝐵) → 𝑆 = (𝑥𝐵 ↦ if(𝑥 = 0 , 0, if( 0 < 𝑥, 1, -1))))
7 eqeq1 2737 . . . 4 (𝑥 = 𝑋 → (𝑥 = 0𝑋 = 0 ))
8 breq2 5153 . . . . 5 (𝑥 = 𝑋 → ( 0 < 𝑥0 < 𝑋))
98ifbid 4552 . . . 4 (𝑥 = 𝑋 → if( 0 < 𝑥, 1, -1) = if( 0 < 𝑋, 1, -1))
107, 9ifbieq2d 4555 . . 3 (𝑥 = 𝑋 → if(𝑥 = 0 , 0, if( 0 < 𝑥, 1, -1)) = if(𝑋 = 0 , 0, if( 0 < 𝑋, 1, -1)))
1110adantl 483 . 2 (((𝑅𝑉𝑋𝐵) ∧ 𝑥 = 𝑋) → if(𝑥 = 0 , 0, if( 0 < 𝑥, 1, -1)) = if(𝑋 = 0 , 0, if( 0 < 𝑋, 1, -1)))
12 simpr 486 . 2 ((𝑅𝑉𝑋𝐵) → 𝑋𝐵)
13 c0ex 11208 . . . 4 0 ∈ V
1413a1i 11 . . 3 (((𝑅𝑉𝑋𝐵) ∧ 𝑋 = 0 ) → 0 ∈ V)
15 1ex 11210 . . . . 5 1 ∈ V
1615a1i 11 . . . 4 ((((𝑅𝑉𝑋𝐵) ∧ ¬ 𝑋 = 0 ) ∧ 0 < 𝑋) → 1 ∈ V)
17 negex 11458 . . . . 5 -1 ∈ V
1817a1i 11 . . . 4 ((((𝑅𝑉𝑋𝐵) ∧ ¬ 𝑋 = 0 ) ∧ ¬ 0 < 𝑋) → -1 ∈ V)
1916, 18ifclda 4564 . . 3 (((𝑅𝑉𝑋𝐵) ∧ ¬ 𝑋 = 0 ) → if( 0 < 𝑋, 1, -1) ∈ V)
2014, 19ifclda 4564 . 2 ((𝑅𝑉𝑋𝐵) → if(𝑋 = 0 , 0, if( 0 < 𝑋, 1, -1)) ∈ V)
216, 11, 12, 20fvmptd 7006 1 ((𝑅𝑉𝑋𝐵) → (𝑆𝑋) = if(𝑋 = 0 , 0, if( 0 < 𝑋, 1, -1)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 397   = wceq 1542  wcel 2107  Vcvv 3475  ifcif 4529   class class class wbr 5149  cmpt 5232  cfv 6544  0cc0 11110  1c1 11111  -cneg 11445  Basecbs 17144  0gc0g 17385  ltcplt 18261  sgnscsgns 32317
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-10 2138  ax-11 2155  ax-12 2172  ax-ext 2704  ax-rep 5286  ax-sep 5300  ax-nul 5307  ax-pr 5428  ax-1cn 11168  ax-icn 11169  ax-addcl 11170  ax-mulcl 11172  ax-i2m1 11178
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 847  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1783  df-nf 1787  df-sb 2069  df-mo 2535  df-eu 2564  df-clab 2711  df-cleq 2725  df-clel 2811  df-nfc 2886  df-ne 2942  df-ral 3063  df-rex 3072  df-reu 3378  df-rab 3434  df-v 3477  df-sbc 3779  df-csb 3895  df-dif 3952  df-un 3954  df-in 3956  df-ss 3966  df-nul 4324  df-if 4530  df-sn 4630  df-pr 4632  df-op 4636  df-uni 4910  df-iun 5000  df-br 5150  df-opab 5212  df-mpt 5233  df-id 5575  df-xp 5683  df-rel 5684  df-cnv 5685  df-co 5686  df-dm 5687  df-rn 5688  df-res 5689  df-ima 5690  df-iota 6496  df-fun 6546  df-fn 6547  df-f 6548  df-f1 6549  df-fo 6550  df-f1o 6551  df-fv 6552  df-ov 7412  df-neg 11447  df-sgns 32318
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator