| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > sgnval | Structured version Visualization version GIF version | ||
| Description: Value of the signum function. (Contributed by David A. Wheeler, 15-May-2015.) |
| Ref | Expression |
|---|---|
| sgnval | ⊢ (𝐴 ∈ ℝ* → (sgn‘𝐴) = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1))) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | eqeq1 2767 | . . 3 ⊢ (𝑥 = 𝐴 → (𝑥 = 0 ↔ 𝐴 = 0)) | |
| 2 | breq1 5113 | . . . 4 ⊢ (𝑥 = 𝐴 → (𝑥 < 0 ↔ 𝐴 < 0)) | |
| 3 | 2 | ifbid 4512 | . . 3 ⊢ (𝑥 = 𝐴 → if(𝑥 < 0, -1, 1) = if(𝐴 < 0, -1, 1)) |
| 4 | 1, 3 | ifbieq2d 4515 | . 2 ⊢ (𝑥 = 𝐴 → if(𝑥 = 0, 0, if(𝑥 < 0, -1, 1)) = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1))) |
| 5 | df-sgn 15126 | . 2 ⊢ sgn = (𝑥 ∈ ℝ* ↦ if(𝑥 = 0, 0, if(𝑥 < 0, -1, 1))) | |
| 6 | c0ex 11201 | . . 3 ⊢ 0 ∈ V | |
| 7 | negex 11456 | . . . 4 ⊢ -1 ∈ V | |
| 8 | 1ex 11204 | . . . 4 ⊢ 1 ∈ V | |
| 9 | 7, 8 | ifex 4539 | . . 3 ⊢ if(𝐴 < 0, -1, 1) ∈ V |
| 10 | 6, 9 | ifex 4539 | . 2 ⊢ if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1)) ∈ V |
| 11 | 4, 5, 10 | fvmpt 6991 | 1 ⊢ (𝐴 ∈ ℝ* → (sgn‘𝐴) = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1))) |
| Colors of variables: wff setvar class |
| Syntax hints: → wi 4 = wceq 1570 ∈ wcel 2143 ifcif 4488 class class class wbr 5110 ‘cfv 6538 0cc0 11101 1c1 11102 ℝ*cxr 11243 < clt 11244 -cneg 11443 sgncsgn 15125 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1825 ax-4 1839 ax-5 1940 ax-6 1997 ax-7 2038 ax-8 2145 ax-9 2153 ax-10 2176 ax-11 2192 ax-12 2213 ax-ext 2735 ax-sep 5258 ax-nul 5270 ax-pr 5406 ax-1cn 11159 ax-icn 11160 ax-addcl 11161 ax-mulcl 11163 ax-i2m1 11169 |
| This theorem depends on definitions: df-bi 210 df-an 401 df-or 861 df-3an 1105 df-tru 1573 df-fal 1583 df-ex 1810 df-nf 1814 df-sb 2097 df-mo 2567 df-eu 2597 df-clab 2742 df-cleq 2755 df-clel 2838 df-nfc 2912 df-ne 2959 df-ral 3080 df-rex 3090 df-rab 3417 df-v 3457 df-dif 3909 df-un 3911 df-in 3913 df-ss 3923 df-nul 4288 df-if 4489 df-sn 4591 df-pr 4593 df-op 4597 df-uni 4874 df-br 5111 df-opab 5175 df-mpt 5194 df-id 5558 df-xp 5669 df-rel 5670 df-cnv 5671 df-co 5672 df-dm 5673 df-iota 6494 df-fun 6540 df-fv 6546 df-ov 7415 df-neg 11445 df-sgn 15126 |
| This theorem is referenced by: sgn0 15128 sgnp 15129 sgnn 15133 sgnrn 15137 sgnneg 15139 sgn3da 15140 reabssgn 44342 |
| Copyright terms: Public domain | W3C validator |