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 33825
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 11202 . . . . 5 (𝐴 ∈ ℝ → 𝐴 ∈ ℂ)
21negeq0d 11567 . . . 4 (𝐴 ∈ ℝ → (𝐴 = 0 ↔ -𝐴 = 0))
32bicomd 222 . . 3 (𝐴 ∈ ℝ → (-𝐴 = 0 ↔ 𝐴 = 0))
4 eqidd 2733 . . 3 ((𝐴 ∈ ℝ ∧ -𝐴 = 0) → 0 = 0)
53necon3bbid 2978 . . . . 5 (𝐴 ∈ ℝ → (¬ -𝐴 = 0 ↔ 𝐴 ≠ 0))
65biimpa 477 . . . 4 ((𝐴 ∈ ℝ ∧ ¬ -𝐴 = 0) → 𝐴 ≠ 0)
7 lt0neg2 11725 . . . . . . . 8 (𝐴 ∈ ℝ → (0 < 𝐴 ↔ -𝐴 < 0))
87adantr 481 . . . . . . 7 ((𝐴 ∈ ℝ ∧ 𝐴 ≠ 0) → (0 < 𝐴 ↔ -𝐴 < 0))
9 id 22 . . . . . . . . . . . 12 (𝐴 ∈ ℝ → 𝐴 ∈ ℝ)
10 0red 11221 . . . . . . . . . . . 12 (𝐴 ∈ ℝ → 0 ∈ ℝ)
119, 10lttri2d 11357 . . . . . . . . . . 11 (𝐴 ∈ ℝ → (𝐴 ≠ 0 ↔ (𝐴 < 0 ∨ 0 < 𝐴)))
1211biimpa 477 . . . . . . . . . 10 ((𝐴 ∈ ℝ ∧ 𝐴 ≠ 0) → (𝐴 < 0 ∨ 0 < 𝐴))
13 ltnsym2 11317 . . . . . . . . . . . 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 4551 . . . . 5 ((𝐴 ∈ ℝ ∧ 𝐴 ≠ 0) → if(-𝐴 < 0, -1, 1) = if(¬ 𝐴 < 0, -1, 1))
22 ifnot 4580 . . . . 5 if(¬ 𝐴 < 0, -1, 1) = if(𝐴 < 0, 1, -1)
2321, 22eqtrdi 2788 . . . 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 4562 . 2 (𝐴 ∈ ℝ → if(-𝐴 = 0, 0, if(-𝐴 < 0, -1, 1)) = if(𝐴 = 0, 0, if(𝐴 < 0, 1, -1)))
26 renegcl 11527 . . 3 (𝐴 ∈ ℝ → -𝐴 ∈ ℝ)
27 rexr 11264 . . 3 (-𝐴 ∈ ℝ → -𝐴 ∈ ℝ*)
28 sgnval 15039 . . 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 11451 . . . 4 -(sgn‘𝐴) = (0 − (sgn‘𝐴))
3130a1i 11 . . 3 (𝐴 ∈ ℝ → -(sgn‘𝐴) = (0 − (sgn‘𝐴)))
32 rexr 11264 . . . . 5 (𝐴 ∈ ℝ → 𝐴 ∈ ℝ*)
33 sgnval 15039 . . . . 5 (𝐴 ∈ ℝ* → (sgn‘𝐴) = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1)))
3432, 33syl 17 . . . 4 (𝐴 ∈ ℝ → (sgn‘𝐴) = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1)))
3534oveq2d 7427 . . 3 (𝐴 ∈ ℝ → (0 − (sgn‘𝐴)) = (0 − if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1))))
36 ovif2 7509 . . . . 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 12336 . . . . . 6 (0 − 0) = 0
39 ovif2 7509 . . . . . . 7 (0 − if(𝐴 < 0, -1, 1)) = if(𝐴 < 0, (0 − -1), (0 − 1))
40 biid 260 . . . . . . . 8 (𝐴 < 0 ↔ 𝐴 < 0)
41 0cn 11210 . . . . . . . . . 10 0 ∈ ℂ
42 ax-1cn 11170 . . . . . . . . . 10 1 ∈ ℂ
4341, 42subnegi 11543 . . . . . . . . 9 (0 − -1) = (0 + 1)
44 0p1e1 12338 . . . . . . . . 9 (0 + 1) = 1
4543, 44eqtr2i 2761 . . . . . . . 8 1 = (0 − -1)
46 df-neg 11451 . . . . . . . 8 -1 = (0 − 1)
4740, 45, 46ifbieq12i 4555 . . . . . . 7 if(𝐴 < 0, 1, -1) = if(𝐴 < 0, (0 − -1), (0 − 1))
4839, 47eqtr4i 2763 . . . . . 6 (0 − if(𝐴 < 0, -1, 1)) = if(𝐴 < 0, 1, -1)
4937, 38, 48ifbieq12i 4555 . . . . 5 if(𝐴 = 0, (0 − 0), (0 − if(𝐴 < 0, -1, 1))) = if(𝐴 = 0, 0, if(𝐴 < 0, 1, -1))
5036, 49eqtri 2760 . . . 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 2776 . 2 (𝐴 ∈ ℝ → -(sgn‘𝐴) = if(𝐴 = 0, 0, if(𝐴 < 0, 1, -1)))
5325, 29, 523eqtr4d 2782 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 2940  ifcif 4528   class class class wbr 5148  cfv 6543  (class class class)co 7411  cr 11111  0cc0 11112  1c1 11113   + caddc 11115  *cxr 11251   < clt 11252  cmin 11448  -cneg 11449  sgncsgn 15037
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 2703  ax-sep 5299  ax-nul 5306  ax-pow 5363  ax-pr 5427  ax-un 7727  ax-resscn 11169  ax-1cn 11170  ax-icn 11171  ax-addcl 11172  ax-addrcl 11173  ax-mulcl 11174  ax-mulrcl 11175  ax-mulcom 11176  ax-addass 11177  ax-mulass 11178  ax-distr 11179  ax-i2m1 11180  ax-1ne0 11181  ax-1rid 11182  ax-rnegex 11183  ax-rrecex 11184  ax-cnre 11185  ax-pre-lttri 11186  ax-pre-lttrn 11187  ax-pre-ltadd 11188
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 2534  df-eu 2563  df-clab 2710  df-cleq 2724  df-clel 2810  df-nfc 2885  df-ne 2941  df-nel 3047  df-ral 3062  df-rex 3071  df-reu 3377  df-rab 3433  df-v 3476  df-sbc 3778  df-csb 3894  df-dif 3951  df-un 3953  df-in 3955  df-ss 3965  df-nul 4323  df-if 4529  df-pw 4604  df-sn 4629  df-pr 4631  df-op 4635  df-uni 4909  df-br 5149  df-opab 5211  df-mpt 5232  df-id 5574  df-po 5588  df-so 5589  df-xp 5682  df-rel 5683  df-cnv 5684  df-co 5685  df-dm 5686  df-rn 5687  df-res 5688  df-ima 5689  df-iota 6495  df-fun 6545  df-fn 6546  df-f 6547  df-f1 6548  df-fo 6549  df-f1o 6550  df-fv 6551  df-riota 7367  df-ov 7414  df-oprab 7415  df-mpo 7416  df-er 8705  df-en 8942  df-dom 8943  df-sdom 8944  df-pnf 11254  df-mnf 11255  df-xr 11256  df-ltxr 11257  df-le 11258  df-sub 11450  df-neg 11451  df-sgn 15038
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator