| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > sgnrn | Structured version Visualization version GIF version | ||
| Description: The range of the signum function. (Contributed by AV, 16-Jun-2026.) (Proof shortened by TA, 21-Jun-2026.) |
| Ref | Expression |
|---|---|
| sgnrn | ⊢ ran sgn = {-1, 0, 1} |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | df-sgn 15100 | . . . . 5 ⊢ sgn = (𝑥 ∈ ℝ* ↦ if(𝑥 = 0, 0, if(𝑥 < 0, -1, 1))) | |
| 2 | 1 | fnmpt 6661 | . . . 4 ⊢ (∀𝑥 ∈ ℝ* if(𝑥 = 0, 0, if(𝑥 < 0, -1, 1)) ∈ {-1, 0, 1} → sgn Fn ℝ*) |
| 3 | sgnval 15101 | . . . . 5 ⊢ (𝑥 ∈ ℝ* → (sgn‘𝑥) = if(𝑥 = 0, 0, if(𝑥 < 0, -1, 1))) | |
| 4 | sgncl 15110 | . . . . 5 ⊢ (𝑥 ∈ ℝ* → (sgn‘𝑥) ∈ {-1, 0, 1}) | |
| 5 | 3, 4 | eqeltrrd 2863 | . . . 4 ⊢ (𝑥 ∈ ℝ* → if(𝑥 = 0, 0, if(𝑥 < 0, -1, 1)) ∈ {-1, 0, 1}) |
| 6 | 2, 5 | mprg 3082 | . . 3 ⊢ sgn Fn ℝ* |
| 7 | 4 | rgen 3078 | . . 3 ⊢ ∀𝑥 ∈ ℝ* (sgn‘𝑥) ∈ {-1, 0, 1} |
| 8 | fnfvrnss 7102 | . . 3 ⊢ ((sgn Fn ℝ* ∧ ∀𝑥 ∈ ℝ* (sgn‘𝑥) ∈ {-1, 0, 1}) → ran sgn ⊆ {-1, 0, 1}) | |
| 9 | 6, 7, 8 | mp2an 702 | . 2 ⊢ ran sgn ⊆ {-1, 0, 1} |
| 10 | sgnmnf 15108 | . . . 4 ⊢ (sgn‘-∞) = -1 | |
| 11 | mnfxr 11239 | . . . . 5 ⊢ -∞ ∈ ℝ* | |
| 12 | fnfvelrn 7061 | . . . . 5 ⊢ ((sgn Fn ℝ* ∧ -∞ ∈ ℝ*) → (sgn‘-∞) ∈ ran sgn) | |
| 13 | 6, 11, 12 | mp2an 702 | . . . 4 ⊢ (sgn‘-∞) ∈ ran sgn |
| 14 | 10, 13 | eqeltrri 2859 | . . 3 ⊢ -1 ∈ ran sgn |
| 15 | sgn0 15102 | . . . 4 ⊢ (sgn‘0) = 0 | |
| 16 | 0xr 11229 | . . . . 5 ⊢ 0 ∈ ℝ* | |
| 17 | fnfvelrn 7061 | . . . . 5 ⊢ ((sgn Fn ℝ* ∧ 0 ∈ ℝ*) → (sgn‘0) ∈ ran sgn) | |
| 18 | 6, 16, 17 | mp2an 702 | . . . 4 ⊢ (sgn‘0) ∈ ran sgn |
| 19 | 15, 18 | eqeltrri 2859 | . . 3 ⊢ 0 ∈ ran sgn |
| 20 | sgn1 15105 | . . . 4 ⊢ (sgn‘1) = 1 | |
| 21 | 1xr 11241 | . . . . 5 ⊢ 1 ∈ ℝ* | |
| 22 | fnfvelrn 7061 | . . . . 5 ⊢ ((sgn Fn ℝ* ∧ 1 ∈ ℝ*) → (sgn‘1) ∈ ran sgn) | |
| 23 | 6, 21, 22 | mp2an 702 | . . . 4 ⊢ (sgn‘1) ∈ ran sgn |
| 24 | 20, 23 | eqeltrri 2859 | . . 3 ⊢ 1 ∈ ran sgn |
| 25 | tpssi 4796 | . . 3 ⊢ ((-1 ∈ ran sgn ∧ 0 ∈ ran sgn ∧ 1 ∈ ran sgn) → {-1, 0, 1} ⊆ ran sgn) | |
| 26 | 14, 19, 24, 25 | mp3an 1482 | . 2 ⊢ {-1, 0, 1} ⊆ ran sgn |
| 27 | 9, 26 | eqssi 3952 | 1 ⊢ ran sgn = {-1, 0, 1} |
| Colors of variables: wff setvar class |
| Syntax hints: = wceq 1560 ∈ wcel 2142 ∀wral 3076 ⊆ wss 3904 ifcif 4480 {ctp 4586 class class class wbr 5100 ran crn 5648 Fn wfn 6516 ‘cfv 6521 0cc0 11073 1c1 11074 -∞cmnf 11214 ℝ*cxr 11215 < clt 11216 -cneg 11415 sgncsgn 15099 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1815 ax-4 1829 ax-5 1930 ax-6 1987 ax-7 2028 ax-8 2144 ax-9 2152 ax-10 2175 ax-11 2191 ax-12 2212 ax-ext 2734 ax-sep 5246 ax-nul 5256 ax-pow 5322 ax-pr 5390 ax-un 7718 ax-cnex 11129 ax-resscn 11130 ax-1cn 11131 ax-icn 11132 ax-addcl 11133 ax-addrcl 11134 ax-mulcl 11135 ax-mulrcl 11136 ax-mulcom 11137 ax-addass 11138 ax-mulass 11139 ax-distr 11140 ax-i2m1 11141 ax-1ne0 11142 ax-1rid 11143 ax-rnegex 11144 ax-rrecex 11145 ax-cnre 11146 ax-pre-lttri 11147 ax-pre-lttrn 11148 ax-pre-ltadd 11149 ax-pre-mulgt0 11150 |
| This theorem depends on definitions: df-bi 209 df-an 400 df-or 859 df-3or 1099 df-3an 1100 df-tru 1563 df-fal 1573 df-ex 1800 df-nf 1804 df-sb 2091 df-mo 2566 df-eu 2596 df-clab 2741 df-cleq 2754 df-clel 2837 df-nfc 2911 df-ne 2958 df-nel 3062 df-ral 3077 df-rex 3087 df-reu 3368 df-rab 3415 df-v 3456 df-sbc 3745 df-csb 3853 df-dif 3907 df-un 3909 df-in 3911 df-ss 3921 df-nul 4286 df-if 4481 df-pw 4557 df-sn 4583 df-pr 4585 df-tp 4587 df-op 4589 df-uni 4866 df-br 5101 df-opab 5163 df-mpt 5182 df-id 5542 df-po 5555 df-so 5556 df-xp 5653 df-rel 5654 df-cnv 5655 df-co 5656 df-dm 5657 df-rn 5658 df-res 5659 df-ima 5660 df-iota 6477 df-fun 6523 df-fn 6524 df-f 6525 df-f1 6526 df-fo 6527 df-f1o 6528 df-fv 6529 df-riota 7353 df-ov 7399 df-oprab 7400 df-mpo 7401 df-er 8678 df-en 8928 df-dom 8929 df-sdom 8930 df-pnf 11218 df-mnf 11219 df-xr 11220 df-ltxr 11221 df-le 11222 df-sub 11416 df-neg 11417 df-sgn 15100 |
| This theorem is referenced by: sgnfo 15112 |
| Copyright terms: Public domain | W3C validator |