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

Theorem sgnneg 33229
Description: Negation of the signum. (Contributed by Thierry Arnoux, 1-Oct-2018.)
Assertion
Ref Expression
sgnneg (𝐴 ∈ ℝ → (sgn‘-𝐴) = -(sgn‘𝐴))

Proof of Theorem sgnneg
StepHypRef Expression
1 recn 11150 . . . . 5 (𝐴 ∈ ℝ → 𝐴 ∈ ℂ)
21negeq0d 11513 . . . 4 (𝐴 ∈ ℝ → (𝐴 = 0 ↔ -𝐴 = 0))
32bicomd 222 . . 3 (𝐴 ∈ ℝ → (-𝐴 = 0 ↔ 𝐴 = 0))
4 eqidd 2732 . . 3 ((𝐴 ∈ ℝ ∧ -𝐴 = 0) → 0 = 0)
53necon3bbid 2977 . . . . 5 (𝐴 ∈ ℝ → (¬ -𝐴 = 0 ↔ 𝐴 ≠ 0))
65biimpa 477 . . . 4 ((𝐴 ∈ ℝ ∧ ¬ -𝐴 = 0) → 𝐴 ≠ 0)
7 lt0neg2 11671 . . . . . . . 8 (𝐴 ∈ ℝ → (0 < 𝐴 ↔ -𝐴 < 0))
87adantr 481 . . . . . . 7 ((𝐴 ∈ ℝ ∧ 𝐴 ≠ 0) → (0 < 𝐴 ↔ -𝐴 < 0))
9 id 22 . . . . . . . . . . . 12 (𝐴 ∈ ℝ → 𝐴 ∈ ℝ)
10 0red 11167 . . . . . . . . . . . 12 (𝐴 ∈ ℝ → 0 ∈ ℝ)
119, 10lttri2d 11303 . . . . . . . . . . 11 (𝐴 ∈ ℝ → (𝐴 ≠ 0 ↔ (𝐴 < 0 ∨ 0 < 𝐴)))
1211biimpa 477 . . . . . . . . . 10 ((𝐴 ∈ ℝ ∧ 𝐴 ≠ 0) → (𝐴 < 0 ∨ 0 < 𝐴))
13 ltnsym2 11263 . . . . . . . . . . . 12 ((𝐴 ∈ ℝ ∧ 0 ∈ ℝ) → ¬ (𝐴 < 0 ∧ 0 < 𝐴))
1410, 13mpdan 685 . . . . . . . . . . 11 (𝐴 ∈ ℝ → ¬ (𝐴 < 0 ∧ 0 < 𝐴))
1514adantr 481 . . . . . . . . . 10 ((𝐴 ∈ ℝ ∧ 𝐴 ≠ 0) → ¬ (𝐴 < 0 ∧ 0 < 𝐴))
1612, 15jca 512 . . . . . . . . 9 ((𝐴 ∈ ℝ ∧ 𝐴 ≠ 0) → ((𝐴 < 0 ∨ 0 < 𝐴) ∧ ¬ (𝐴 < 0 ∧ 0 < 𝐴)))
17 pm5.17 1010 . . . . . . . . 9 (((𝐴 < 0 ∨ 0 < 𝐴) ∧ ¬ (𝐴 < 0 ∧ 0 < 𝐴)) ↔ (𝐴 < 0 ↔ ¬ 0 < 𝐴))
1816, 17sylib 217 . . . . . . . 8 ((𝐴 ∈ ℝ ∧ 𝐴 ≠ 0) → (𝐴 < 0 ↔ ¬ 0 < 𝐴))
1918con2bid 354 . . . . . . 7 ((𝐴 ∈ ℝ ∧ 𝐴 ≠ 0) → (0 < 𝐴 ↔ ¬ 𝐴 < 0))
208, 19bitr3d 280 . . . . . 6 ((𝐴 ∈ ℝ ∧ 𝐴 ≠ 0) → (-𝐴 < 0 ↔ ¬ 𝐴 < 0))
2120ifbid 4514 . . . . 5 ((𝐴 ∈ ℝ ∧ 𝐴 ≠ 0) → if(-𝐴 < 0, -1, 1) = if(¬ 𝐴 < 0, -1, 1))
22 ifnot 4543 . . . . 5 if(¬ 𝐴 < 0, -1, 1) = if(𝐴 < 0, 1, -1)
2321, 22eqtrdi 2787 . . . 4 ((𝐴 ∈ ℝ ∧ 𝐴 ≠ 0) → if(-𝐴 < 0, -1, 1) = if(𝐴 < 0, 1, -1))
246, 23syldan 591 . . 3 ((𝐴 ∈ ℝ ∧ ¬ -𝐴 = 0) → if(-𝐴 < 0, -1, 1) = if(𝐴 < 0, 1, -1))
253, 4, 24ifbieq12d2 4525 . 2 (𝐴 ∈ ℝ → if(-𝐴 = 0, 0, if(-𝐴 < 0, -1, 1)) = if(𝐴 = 0, 0, if(𝐴 < 0, 1, -1)))
26 renegcl 11473 . . 3 (𝐴 ∈ ℝ → -𝐴 ∈ ℝ)
27 rexr 11210 . . 3 (-𝐴 ∈ ℝ → -𝐴 ∈ ℝ*)
28 sgnval 14985 . . 3 (-𝐴 ∈ ℝ* → (sgn‘-𝐴) = if(-𝐴 = 0, 0, if(-𝐴 < 0, -1, 1)))
2926, 27, 283syl 18 . 2 (𝐴 ∈ ℝ → (sgn‘-𝐴) = if(-𝐴 = 0, 0, if(-𝐴 < 0, -1, 1)))
30 df-neg 11397 . . . 4 -(sgn‘𝐴) = (0 − (sgn‘𝐴))
3130a1i 11 . . 3 (𝐴 ∈ ℝ → -(sgn‘𝐴) = (0 − (sgn‘𝐴)))
32 rexr 11210 . . . . 5 (𝐴 ∈ ℝ → 𝐴 ∈ ℝ*)
33 sgnval 14985 . . . . 5 (𝐴 ∈ ℝ* → (sgn‘𝐴) = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1)))
3432, 33syl 17 . . . 4 (𝐴 ∈ ℝ → (sgn‘𝐴) = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1)))
3534oveq2d 7378 . . 3 (𝐴 ∈ ℝ → (0 − (sgn‘𝐴)) = (0 − if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1))))
36 ovif2 7460 . . . . 5 (0 − if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1))) = if(𝐴 = 0, (0 − 0), (0 − if(𝐴 < 0, -1, 1)))
37 biid 260 . . . . . 6 (𝐴 = 0 ↔ 𝐴 = 0)
38 0m0e0 12282 . . . . . 6 (0 − 0) = 0
39 ovif2 7460 . . . . . . 7 (0 − if(𝐴 < 0, -1, 1)) = if(𝐴 < 0, (0 − -1), (0 − 1))
40 biid 260 . . . . . . . 8 (𝐴 < 0 ↔ 𝐴 < 0)
41 0cn 11156 . . . . . . . . . 10 0 ∈ ℂ
42 ax-1cn 11118 . . . . . . . . . 10 1 ∈ ℂ
4341, 42subnegi 11489 . . . . . . . . 9 (0 − -1) = (0 + 1)
44 0p1e1 12284 . . . . . . . . 9 (0 + 1) = 1
4543, 44eqtr2i 2760 . . . . . . . 8 1 = (0 − -1)
46 df-neg 11397 . . . . . . . 8 -1 = (0 − 1)
4740, 45, 46ifbieq12i 4518 . . . . . . 7 if(𝐴 < 0, 1, -1) = if(𝐴 < 0, (0 − -1), (0 − 1))
4839, 47eqtr4i 2762 . . . . . 6 (0 − if(𝐴 < 0, -1, 1)) = if(𝐴 < 0, 1, -1)
4937, 38, 48ifbieq12i 4518 . . . . 5 if(𝐴 = 0, (0 − 0), (0 − if(𝐴 < 0, -1, 1))) = if(𝐴 = 0, 0, if(𝐴 < 0, 1, -1))
5036, 49eqtri 2759 . . . 4 (0 − if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1))) = if(𝐴 = 0, 0, if(𝐴 < 0, 1, -1))
5150a1i 11 . . 3 (𝐴 ∈ ℝ → (0 − if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1))) = if(𝐴 = 0, 0, if(𝐴 < 0, 1, -1)))
5231, 35, 513eqtrd 2775 . 2 (𝐴 ∈ ℝ → -(sgn‘𝐴) = if(𝐴 = 0, 0, if(𝐴 < 0, 1, -1)))
5325, 29, 523eqtr4d 2781 1 (𝐴 ∈ ℝ → (sgn‘-𝐴) = -(sgn‘𝐴))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  wo 845   = wceq 1541  wcel 2106  wne 2939  ifcif 4491   class class class wbr 5110  cfv 6501  (class class class)co 7362  cr 11059  0cc0 11060  1c1 11061   + caddc 11063  *cxr 11197   < clt 11198  cmin 11394  -cneg 11395  sgncsgn 14983
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2702  ax-sep 5261  ax-nul 5268  ax-pow 5325  ax-pr 5389  ax-un 7677  ax-resscn 11117  ax-1cn 11118  ax-icn 11119  ax-addcl 11120  ax-addrcl 11121  ax-mulcl 11122  ax-mulrcl 11123  ax-mulcom 11124  ax-addass 11125  ax-mulass 11126  ax-distr 11127  ax-i2m1 11128  ax-1ne0 11129  ax-1rid 11130  ax-rnegex 11131  ax-rrecex 11132  ax-cnre 11133  ax-pre-lttri 11134  ax-pre-lttrn 11135  ax-pre-ltadd 11136
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 846  df-3or 1088  df-3an 1089  df-tru 1544  df-fal 1554  df-ex 1782  df-nf 1786  df-sb 2068  df-mo 2533  df-eu 2562  df-clab 2709  df-cleq 2723  df-clel 2809  df-nfc 2884  df-ne 2940  df-nel 3046  df-ral 3061  df-rex 3070  df-reu 3352  df-rab 3406  df-v 3448  df-sbc 3743  df-csb 3859  df-dif 3916  df-un 3918  df-in 3920  df-ss 3930  df-nul 4288  df-if 4492  df-pw 4567  df-sn 4592  df-pr 4594  df-op 4598  df-uni 4871  df-br 5111  df-opab 5173  df-mpt 5194  df-id 5536  df-po 5550  df-so 5551  df-xp 5644  df-rel 5645  df-cnv 5646  df-co 5647  df-dm 5648  df-rn 5649  df-res 5650  df-ima 5651  df-iota 6453  df-fun 6503  df-fn 6504  df-f 6505  df-f1 6506  df-fo 6507  df-f1o 6508  df-fv 6509  df-riota 7318  df-ov 7365  df-oprab 7366  df-mpo 7367  df-er 8655  df-en 8891  df-dom 8892  df-sdom 8893  df-pnf 11200  df-mnf 11201  df-xr 11202  df-ltxr 11203  df-le 11204  df-sub 11396  df-neg 11397  df-sgn 14984
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator