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

Theorem sgnsf 33452
Description: The sign function. (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
sgnsf (𝑅𝑉𝑆:𝐵⟶{-1, 0, 1})

Proof of Theorem sgnsf
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 sgnsval.b . . 3 𝐵 = (Base‘𝑅)
2 sgnsval.0 . . 3 0 = (0g𝑅)
3 sgnsval.l . . 3 < = (lt‘𝑅)
4 sgnsval.s . . 3 𝑆 = (sgns𝑅)
51, 2, 3, 4sgnsv 33450 . 2 (𝑅𝑉𝑆 = (𝑥𝐵 ↦ if(𝑥 = 0 , 0, if( 0 < 𝑥, 1, -1))))
6 c0ex 11203 . . . . 5 0 ∈ V
76tpid2 4741 . . . 4 0 ∈ {-1, 0, 1}
8 1ex 11206 . . . . . 6 1 ∈ V
98tpid3 4744 . . . . 5 1 ∈ {-1, 0, 1}
10 negex 11458 . . . . . 6 -1 ∈ V
1110tpid1 4739 . . . . 5 -1 ∈ {-1, 0, 1}
129, 11ifcli 4540 . . . 4 if( 0 < 𝑥, 1, -1) ∈ {-1, 0, 1}
137, 12ifcli 4540 . . 3 if(𝑥 = 0 , 0, if( 0 < 𝑥, 1, -1)) ∈ {-1, 0, 1}
1413a1i 11 . 2 ((𝑅𝑉𝑥𝐵) → if(𝑥 = 0 , 0, if( 0 < 𝑥, 1, -1)) ∈ {-1, 0, 1})
155, 14fmpt3d 7115 1 (𝑅𝑉𝑆:𝐵⟶{-1, 0, 1})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 400   = wceq 1568  wcel 2150  ifcif 4492  {ctp 4598   class class class wbr 5114  wf 6536  cfv 6540  0cc0 11103  1c1 11104  -cneg 11445  Basecbs 17272  0gc0g 17495  ltcplt 18367  sgnscsgns 33448
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1823  ax-4 1837  ax-5 1938  ax-6 1995  ax-7 2036  ax-8 2152  ax-9 2160  ax-10 2183  ax-11 2199  ax-12 2220  ax-ext 2742  ax-rep 5243  ax-sep 5262  ax-nul 5274  ax-pr 5408  ax-1cn 11161  ax-icn 11162  ax-addcl 11163  ax-mulcl 11165  ax-i2m1 11171
This theorem depends on definitions:  df-bi 210  df-an 401  df-or 861  df-3or 1102  df-3an 1103  df-tru 1571  df-fal 1581  df-ex 1808  df-nf 1812  df-sb 2099  df-mo 2574  df-eu 2604  df-clab 2749  df-cleq 2762  df-clel 2845  df-nfc 2919  df-ne 2966  df-ral 3087  df-rex 3097  df-reu 3377  df-rab 3424  df-v 3464  df-sbc 3753  df-csb 3862  df-dif 3916  df-un 3918  df-in 3920  df-ss 3930  df-nul 4295  df-if 4493  df-sn 4595  df-pr 4597  df-tp 4599  df-op 4601  df-uni 4878  df-iun 4963  df-br 5115  df-opab 5179  df-mpt 5198  df-id 5560  df-xp 5671  df-rel 5672  df-cnv 5673  df-co 5674  df-dm 5675  df-rn 5676  df-res 5677  df-ima 5678  df-iota 6496  df-fun 6542  df-fn 6543  df-f 6544  df-f1 6545  df-fo 6546  df-f1o 6547  df-fv 6548  df-ov 7417  df-neg 11447  df-sgns 33449
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator