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

Theorem sgn3da 32508
Description: A conditional containing a signum is true if it is true in all three possible cases. (Contributed by Thierry Arnoux, 1-Oct-2018.)
Hypotheses
Ref Expression
sgn3da.0 (𝜑𝐴 ∈ ℝ*)
sgn3da.1 ((sgn‘𝐴) = 0 → (𝜓𝜒))
sgn3da.2 ((sgn‘𝐴) = 1 → (𝜓𝜃))
sgn3da.3 ((sgn‘𝐴) = -1 → (𝜓𝜏))
sgn3da.4 ((𝜑𝐴 = 0) → 𝜒)
sgn3da.5 ((𝜑 ∧ 0 < 𝐴) → 𝜃)
sgn3da.6 ((𝜑𝐴 < 0) → 𝜏)
Assertion
Ref Expression
sgn3da (𝜑𝜓)

Proof of Theorem sgn3da
StepHypRef Expression
1 sgn3da.0 . . . . . . . . 9 (𝜑𝐴 ∈ ℝ*)
2 sgnval 14799 . . . . . . . . 9 (𝐴 ∈ ℝ* → (sgn‘𝐴) = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1)))
31, 2syl 17 . . . . . . . 8 (𝜑 → (sgn‘𝐴) = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1)))
43eqeq2d 2749 . . . . . . 7 (𝜑 → (0 = (sgn‘𝐴) ↔ 0 = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1))))
54pm5.32i 575 . . . . . 6 ((𝜑 ∧ 0 = (sgn‘𝐴)) ↔ (𝜑 ∧ 0 = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1))))
6 sgn3da.1 . . . . . . . . 9 ((sgn‘𝐴) = 0 → (𝜓𝜒))
76eqcoms 2746 . . . . . . . 8 (0 = (sgn‘𝐴) → (𝜓𝜒))
87bicomd 222 . . . . . . 7 (0 = (sgn‘𝐴) → (𝜒𝜓))
98adantl 482 . . . . . 6 ((𝜑 ∧ 0 = (sgn‘𝐴)) → (𝜒𝜓))
105, 9sylbir 234 . . . . 5 ((𝜑 ∧ 0 = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1))) → (𝜒𝜓))
1110expcom 414 . . . 4 (0 = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1)) → (𝜑 → (𝜒𝜓)))
1211pm5.74d 272 . . 3 (0 = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1)) → ((𝜑𝜒) ↔ (𝜑𝜓)))
133eqeq2d 2749 . . . . . . 7 (𝜑 → (if(𝐴 < 0, -1, 1) = (sgn‘𝐴) ↔ if(𝐴 < 0, -1, 1) = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1))))
1413pm5.32i 575 . . . . . 6 ((𝜑 ∧ if(𝐴 < 0, -1, 1) = (sgn‘𝐴)) ↔ (𝜑 ∧ if(𝐴 < 0, -1, 1) = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1))))
15 eqeq1 2742 . . . . . . . . 9 (-1 = if(𝐴 < 0, -1, 1) → (-1 = (sgn‘𝐴) ↔ if(𝐴 < 0, -1, 1) = (sgn‘𝐴)))
1615imbi1d 342 . . . . . . . 8 (-1 = if(𝐴 < 0, -1, 1) → ((-1 = (sgn‘𝐴) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓)) ↔ (if(𝐴 < 0, -1, 1) = (sgn‘𝐴) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓))))
17 eqeq1 2742 . . . . . . . . 9 (1 = if(𝐴 < 0, -1, 1) → (1 = (sgn‘𝐴) ↔ if(𝐴 < 0, -1, 1) = (sgn‘𝐴)))
1817imbi1d 342 . . . . . . . 8 (1 = if(𝐴 < 0, -1, 1) → ((1 = (sgn‘𝐴) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓)) ↔ (if(𝐴 < 0, -1, 1) = (sgn‘𝐴) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓))))
19 sgn3da.6 . . . . . . . . . . . . . . 15 ((𝜑𝐴 < 0) → 𝜏)
2019adantr 481 . . . . . . . . . . . . . 14 (((𝜑𝐴 < 0) ∧ (𝐴 < 0 → 𝜏)) → 𝜏)
21 simp2 1136 . . . . . . . . . . . . . . 15 (((𝜑𝐴 < 0) ∧ 𝜏𝐴 < 0) → 𝜏)
22213expia 1120 . . . . . . . . . . . . . 14 (((𝜑𝐴 < 0) ∧ 𝜏) → (𝐴 < 0 → 𝜏))
2320, 22impbida 798 . . . . . . . . . . . . 13 ((𝜑𝐴 < 0) → ((𝐴 < 0 → 𝜏) ↔ 𝜏))
24 pm3.24 403 . . . . . . . . . . . . . . . . 17 ¬ (𝐴 < 0 ∧ ¬ 𝐴 < 0)
2524pm2.21i 119 . . . . . . . . . . . . . . . 16 ((𝐴 < 0 ∧ ¬ 𝐴 < 0) → 𝜃)
2625adantl 482 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝐴 < 0 ∧ ¬ 𝐴 < 0)) → 𝜃)
2726expr 457 . . . . . . . . . . . . . 14 ((𝜑𝐴 < 0) → (¬ 𝐴 < 0 → 𝜃))
28 tbtru 1547 . . . . . . . . . . . . . 14 ((¬ 𝐴 < 0 → 𝜃) ↔ ((¬ 𝐴 < 0 → 𝜃) ↔ ⊤))
2927, 28sylib 217 . . . . . . . . . . . . 13 ((𝜑𝐴 < 0) → ((¬ 𝐴 < 0 → 𝜃) ↔ ⊤))
3023, 29anbi12d 631 . . . . . . . . . . . 12 ((𝜑𝐴 < 0) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ (𝜏 ∧ ⊤)))
31 ancom 461 . . . . . . . . . . . . 13 ((𝜏 ∧ ⊤) ↔ (⊤ ∧ 𝜏))
32 truan 1550 . . . . . . . . . . . . 13 ((⊤ ∧ 𝜏) ↔ 𝜏)
3331, 32bitri 274 . . . . . . . . . . . 12 ((𝜏 ∧ ⊤) ↔ 𝜏)
3430, 33bitrdi 287 . . . . . . . . . . 11 ((𝜑𝐴 < 0) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜏))
35343adant3 1131 . . . . . . . . . 10 ((𝜑𝐴 < 0 ∧ -1 = (sgn‘𝐴)) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜏))
36 sgn3da.3 . . . . . . . . . . . 12 ((sgn‘𝐴) = -1 → (𝜓𝜏))
3736eqcoms 2746 . . . . . . . . . . 11 (-1 = (sgn‘𝐴) → (𝜓𝜏))
38373ad2ant3 1134 . . . . . . . . . 10 ((𝜑𝐴 < 0 ∧ -1 = (sgn‘𝐴)) → (𝜓𝜏))
3935, 38bitr4d 281 . . . . . . . . 9 ((𝜑𝐴 < 0 ∧ -1 = (sgn‘𝐴)) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓))
40393expia 1120 . . . . . . . 8 ((𝜑𝐴 < 0) → (-1 = (sgn‘𝐴) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓)))
41193adant2 1130 . . . . . . . . . . . . . . 15 ((𝜑 ∧ ¬ 𝐴 < 0 ∧ 𝐴 < 0) → 𝜏)
42413expia 1120 . . . . . . . . . . . . . 14 ((𝜑 ∧ ¬ 𝐴 < 0) → (𝐴 < 0 → 𝜏))
43 tbtru 1547 . . . . . . . . . . . . . 14 ((𝐴 < 0 → 𝜏) ↔ ((𝐴 < 0 → 𝜏) ↔ ⊤))
4442, 43sylib 217 . . . . . . . . . . . . 13 ((𝜑 ∧ ¬ 𝐴 < 0) → ((𝐴 < 0 → 𝜏) ↔ ⊤))
45 pm3.35 800 . . . . . . . . . . . . . . 15 ((¬ 𝐴 < 0 ∧ (¬ 𝐴 < 0 → 𝜃)) → 𝜃)
4645adantll 711 . . . . . . . . . . . . . 14 (((𝜑 ∧ ¬ 𝐴 < 0) ∧ (¬ 𝐴 < 0 → 𝜃)) → 𝜃)
47 simp2 1136 . . . . . . . . . . . . . . 15 (((𝜑 ∧ ¬ 𝐴 < 0) ∧ 𝜃 ∧ ¬ 𝐴 < 0) → 𝜃)
48473expia 1120 . . . . . . . . . . . . . 14 (((𝜑 ∧ ¬ 𝐴 < 0) ∧ 𝜃) → (¬ 𝐴 < 0 → 𝜃))
4946, 48impbida 798 . . . . . . . . . . . . 13 ((𝜑 ∧ ¬ 𝐴 < 0) → ((¬ 𝐴 < 0 → 𝜃) ↔ 𝜃))
5044, 49anbi12d 631 . . . . . . . . . . . 12 ((𝜑 ∧ ¬ 𝐴 < 0) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ (⊤ ∧ 𝜃)))
51 truan 1550 . . . . . . . . . . . 12 ((⊤ ∧ 𝜃) ↔ 𝜃)
5250, 51bitrdi 287 . . . . . . . . . . 11 ((𝜑 ∧ ¬ 𝐴 < 0) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜃))
53523adant3 1131 . . . . . . . . . 10 ((𝜑 ∧ ¬ 𝐴 < 0 ∧ 1 = (sgn‘𝐴)) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜃))
54 sgn3da.2 . . . . . . . . . . . 12 ((sgn‘𝐴) = 1 → (𝜓𝜃))
5554eqcoms 2746 . . . . . . . . . . 11 (1 = (sgn‘𝐴) → (𝜓𝜃))
56553ad2ant3 1134 . . . . . . . . . 10 ((𝜑 ∧ ¬ 𝐴 < 0 ∧ 1 = (sgn‘𝐴)) → (𝜓𝜃))
5753, 56bitr4d 281 . . . . . . . . 9 ((𝜑 ∧ ¬ 𝐴 < 0 ∧ 1 = (sgn‘𝐴)) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓))
58573expia 1120 . . . . . . . 8 ((𝜑 ∧ ¬ 𝐴 < 0) → (1 = (sgn‘𝐴) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓)))
5916, 18, 40, 58ifbothda 4497 . . . . . . 7 (𝜑 → (if(𝐴 < 0, -1, 1) = (sgn‘𝐴) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓)))
6059imp 407 . . . . . 6 ((𝜑 ∧ if(𝐴 < 0, -1, 1) = (sgn‘𝐴)) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓))
6114, 60sylbir 234 . . . . 5 ((𝜑 ∧ if(𝐴 < 0, -1, 1) = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1))) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓))
6261expcom 414 . . . 4 (if(𝐴 < 0, -1, 1) = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1)) → (𝜑 → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓)))
6362pm5.74d 272 . . 3 (if(𝐴 < 0, -1, 1) = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1)) → ((𝜑 → ((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃))) ↔ (𝜑𝜓)))
64 sgn3da.4 . . . . 5 ((𝜑𝐴 = 0) → 𝜒)
6564expcom 414 . . . 4 (𝐴 = 0 → (𝜑𝜒))
6665adantl 482 . . 3 ((⊤ ∧ 𝐴 = 0) → (𝜑𝜒))
6719ex 413 . . . . . . 7 (𝜑 → (𝐴 < 0 → 𝜏))
6867adantr 481 . . . . . 6 ((𝜑 ∧ ¬ 𝐴 = 0) → (𝐴 < 0 → 𝜏))
69 simp1 1135 . . . . . . . 8 ((𝜑 ∧ ¬ 𝐴 = 0 ∧ ¬ 𝐴 < 0) → 𝜑)
70 df-ne 2944 . . . . . . . . . . . 12 (𝐴 ≠ 0 ↔ ¬ 𝐴 = 0)
71 0xr 11022 . . . . . . . . . . . . 13 0 ∈ ℝ*
72 xrlttri2 12876 . . . . . . . . . . . . 13 ((𝐴 ∈ ℝ* ∧ 0 ∈ ℝ*) → (𝐴 ≠ 0 ↔ (𝐴 < 0 ∨ 0 < 𝐴)))
731, 71, 72sylancl 586 . . . . . . . . . . . 12 (𝜑 → (𝐴 ≠ 0 ↔ (𝐴 < 0 ∨ 0 < 𝐴)))
7470, 73bitr3id 285 . . . . . . . . . . 11 (𝜑 → (¬ 𝐴 = 0 ↔ (𝐴 < 0 ∨ 0 < 𝐴)))
7574biimpa 477 . . . . . . . . . 10 ((𝜑 ∧ ¬ 𝐴 = 0) → (𝐴 < 0 ∨ 0 < 𝐴))
7675ord 861 . . . . . . . . 9 ((𝜑 ∧ ¬ 𝐴 = 0) → (¬ 𝐴 < 0 → 0 < 𝐴))
77763impia 1116 . . . . . . . 8 ((𝜑 ∧ ¬ 𝐴 = 0 ∧ ¬ 𝐴 < 0) → 0 < 𝐴)
78 sgn3da.5 . . . . . . . 8 ((𝜑 ∧ 0 < 𝐴) → 𝜃)
7969, 77, 78syl2anc 584 . . . . . . 7 ((𝜑 ∧ ¬ 𝐴 = 0 ∧ ¬ 𝐴 < 0) → 𝜃)
80793expia 1120 . . . . . 6 ((𝜑 ∧ ¬ 𝐴 = 0) → (¬ 𝐴 < 0 → 𝜃))
8168, 80jca 512 . . . . 5 ((𝜑 ∧ ¬ 𝐴 = 0) → ((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)))
8281expcom 414 . . . 4 𝐴 = 0 → (𝜑 → ((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃))))
8382adantl 482 . . 3 ((⊤ ∧ ¬ 𝐴 = 0) → (𝜑 → ((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃))))
8412, 63, 66, 83ifbothda 4497 . 2 (⊤ → (𝜑𝜓))
8584mptru 1546 1 (𝜑𝜓)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  wo 844  w3a 1086   = wceq 1539  wtru 1540  wcel 2106  wne 2943  ifcif 4459   class class class wbr 5074  cfv 6433  0cc0 10871  1c1 10872  *cxr 11008   < clt 11009  -cneg 11206  sgncsgn 14797
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  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 2709  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7588  ax-cnex 10927  ax-resscn 10928  ax-1cn 10929  ax-icn 10930  ax-addcl 10931  ax-addrcl 10932  ax-mulcl 10933  ax-i2m1 10939  ax-rnegex 10942  ax-cnre 10944  ax-pre-lttri 10945  ax-pre-lttrn 10946
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-nel 3050  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-opab 5137  df-mpt 5158  df-id 5489  df-po 5503  df-so 5504  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-ov 7278  df-er 8498  df-en 8734  df-dom 8735  df-sdom 8736  df-pnf 11011  df-mnf 11012  df-xr 11013  df-ltxr 11014  df-neg 11208  df-sgn 14798
This theorem is referenced by:  sgnmul  32509  sgnsub  32511  sgnnbi  32512  sgnpbi  32513  sgn0bi  32514  sgnsgn  32515
  Copyright terms: Public domain W3C validator