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 31909
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 14439 . . . . . . . . 9 (𝐴 ∈ ℝ* → (sgn‘𝐴) = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1)))
31, 2syl 17 . . . . . . . 8 (𝜑 → (sgn‘𝐴) = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1)))
43eqeq2d 2809 . . . . . . 7 (𝜑 → (0 = (sgn‘𝐴) ↔ 0 = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1))))
54pm5.32i 578 . . . . . 6 ((𝜑 ∧ 0 = (sgn‘𝐴)) ↔ (𝜑 ∧ 0 = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1))))
6 sgn3da.1 . . . . . . . . 9 ((sgn‘𝐴) = 0 → (𝜓𝜒))
76eqcoms 2806 . . . . . . . 8 (0 = (sgn‘𝐴) → (𝜓𝜒))
87bicomd 226 . . . . . . 7 (0 = (sgn‘𝐴) → (𝜒𝜓))
98adantl 485 . . . . . 6 ((𝜑 ∧ 0 = (sgn‘𝐴)) → (𝜒𝜓))
105, 9sylbir 238 . . . . 5 ((𝜑 ∧ 0 = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1))) → (𝜒𝜓))
1110expcom 417 . . . 4 (0 = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1)) → (𝜑 → (𝜒𝜓)))
1211pm5.74d 276 . . 3 (0 = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1)) → ((𝜑𝜒) ↔ (𝜑𝜓)))
133eqeq2d 2809 . . . . . . 7 (𝜑 → (if(𝐴 < 0, -1, 1) = (sgn‘𝐴) ↔ if(𝐴 < 0, -1, 1) = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1))))
1413pm5.32i 578 . . . . . 6 ((𝜑 ∧ if(𝐴 < 0, -1, 1) = (sgn‘𝐴)) ↔ (𝜑 ∧ if(𝐴 < 0, -1, 1) = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1))))
15 eqeq1 2802 . . . . . . . . 9 (-1 = if(𝐴 < 0, -1, 1) → (-1 = (sgn‘𝐴) ↔ if(𝐴 < 0, -1, 1) = (sgn‘𝐴)))
1615imbi1d 345 . . . . . . . 8 (-1 = if(𝐴 < 0, -1, 1) → ((-1 = (sgn‘𝐴) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓)) ↔ (if(𝐴 < 0, -1, 1) = (sgn‘𝐴) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓))))
17 eqeq1 2802 . . . . . . . . 9 (1 = if(𝐴 < 0, -1, 1) → (1 = (sgn‘𝐴) ↔ if(𝐴 < 0, -1, 1) = (sgn‘𝐴)))
1817imbi1d 345 . . . . . . . 8 (1 = if(𝐴 < 0, -1, 1) → ((1 = (sgn‘𝐴) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓)) ↔ (if(𝐴 < 0, -1, 1) = (sgn‘𝐴) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓))))
19 sgn3da.6 . . . . . . . . . . . . . . 15 ((𝜑𝐴 < 0) → 𝜏)
2019adantr 484 . . . . . . . . . . . . . 14 (((𝜑𝐴 < 0) ∧ (𝐴 < 0 → 𝜏)) → 𝜏)
21 simp2 1134 . . . . . . . . . . . . . . 15 (((𝜑𝐴 < 0) ∧ 𝜏𝐴 < 0) → 𝜏)
22213expia 1118 . . . . . . . . . . . . . 14 (((𝜑𝐴 < 0) ∧ 𝜏) → (𝐴 < 0 → 𝜏))
2320, 22impbida 800 . . . . . . . . . . . . 13 ((𝜑𝐴 < 0) → ((𝐴 < 0 → 𝜏) ↔ 𝜏))
24 pm3.24 406 . . . . . . . . . . . . . . . . 17 ¬ (𝐴 < 0 ∧ ¬ 𝐴 < 0)
2524pm2.21i 119 . . . . . . . . . . . . . . . 16 ((𝐴 < 0 ∧ ¬ 𝐴 < 0) → 𝜃)
2625adantl 485 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝐴 < 0 ∧ ¬ 𝐴 < 0)) → 𝜃)
2726expr 460 . . . . . . . . . . . . . 14 ((𝜑𝐴 < 0) → (¬ 𝐴 < 0 → 𝜃))
28 tbtru 1546 . . . . . . . . . . . . . 14 ((¬ 𝐴 < 0 → 𝜃) ↔ ((¬ 𝐴 < 0 → 𝜃) ↔ ⊤))
2927, 28sylib 221 . . . . . . . . . . . . 13 ((𝜑𝐴 < 0) → ((¬ 𝐴 < 0 → 𝜃) ↔ ⊤))
3023, 29anbi12d 633 . . . . . . . . . . . 12 ((𝜑𝐴 < 0) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ (𝜏 ∧ ⊤)))
31 ancom 464 . . . . . . . . . . . . 13 ((𝜏 ∧ ⊤) ↔ (⊤ ∧ 𝜏))
32 truan 1549 . . . . . . . . . . . . 13 ((⊤ ∧ 𝜏) ↔ 𝜏)
3331, 32bitri 278 . . . . . . . . . . . 12 ((𝜏 ∧ ⊤) ↔ 𝜏)
3430, 33syl6bb 290 . . . . . . . . . . 11 ((𝜑𝐴 < 0) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜏))
35343adant3 1129 . . . . . . . . . 10 ((𝜑𝐴 < 0 ∧ -1 = (sgn‘𝐴)) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜏))
36 sgn3da.3 . . . . . . . . . . . 12 ((sgn‘𝐴) = -1 → (𝜓𝜏))
3736eqcoms 2806 . . . . . . . . . . 11 (-1 = (sgn‘𝐴) → (𝜓𝜏))
38373ad2ant3 1132 . . . . . . . . . 10 ((𝜑𝐴 < 0 ∧ -1 = (sgn‘𝐴)) → (𝜓𝜏))
3935, 38bitr4d 285 . . . . . . . . 9 ((𝜑𝐴 < 0 ∧ -1 = (sgn‘𝐴)) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓))
40393expia 1118 . . . . . . . 8 ((𝜑𝐴 < 0) → (-1 = (sgn‘𝐴) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓)))
41193adant2 1128 . . . . . . . . . . . . . . 15 ((𝜑 ∧ ¬ 𝐴 < 0 ∧ 𝐴 < 0) → 𝜏)
42413expia 1118 . . . . . . . . . . . . . 14 ((𝜑 ∧ ¬ 𝐴 < 0) → (𝐴 < 0 → 𝜏))
43 tbtru 1546 . . . . . . . . . . . . . 14 ((𝐴 < 0 → 𝜏) ↔ ((𝐴 < 0 → 𝜏) ↔ ⊤))
4442, 43sylib 221 . . . . . . . . . . . . 13 ((𝜑 ∧ ¬ 𝐴 < 0) → ((𝐴 < 0 → 𝜏) ↔ ⊤))
45 pm3.35 802 . . . . . . . . . . . . . . 15 ((¬ 𝐴 < 0 ∧ (¬ 𝐴 < 0 → 𝜃)) → 𝜃)
4645adantll 713 . . . . . . . . . . . . . 14 (((𝜑 ∧ ¬ 𝐴 < 0) ∧ (¬ 𝐴 < 0 → 𝜃)) → 𝜃)
47 simp2 1134 . . . . . . . . . . . . . . 15 (((𝜑 ∧ ¬ 𝐴 < 0) ∧ 𝜃 ∧ ¬ 𝐴 < 0) → 𝜃)
48473expia 1118 . . . . . . . . . . . . . 14 (((𝜑 ∧ ¬ 𝐴 < 0) ∧ 𝜃) → (¬ 𝐴 < 0 → 𝜃))
4946, 48impbida 800 . . . . . . . . . . . . 13 ((𝜑 ∧ ¬ 𝐴 < 0) → ((¬ 𝐴 < 0 → 𝜃) ↔ 𝜃))
5044, 49anbi12d 633 . . . . . . . . . . . 12 ((𝜑 ∧ ¬ 𝐴 < 0) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ (⊤ ∧ 𝜃)))
51 truan 1549 . . . . . . . . . . . 12 ((⊤ ∧ 𝜃) ↔ 𝜃)
5250, 51syl6bb 290 . . . . . . . . . . 11 ((𝜑 ∧ ¬ 𝐴 < 0) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜃))
53523adant3 1129 . . . . . . . . . 10 ((𝜑 ∧ ¬ 𝐴 < 0 ∧ 1 = (sgn‘𝐴)) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜃))
54 sgn3da.2 . . . . . . . . . . . 12 ((sgn‘𝐴) = 1 → (𝜓𝜃))
5554eqcoms 2806 . . . . . . . . . . 11 (1 = (sgn‘𝐴) → (𝜓𝜃))
56553ad2ant3 1132 . . . . . . . . . 10 ((𝜑 ∧ ¬ 𝐴 < 0 ∧ 1 = (sgn‘𝐴)) → (𝜓𝜃))
5753, 56bitr4d 285 . . . . . . . . 9 ((𝜑 ∧ ¬ 𝐴 < 0 ∧ 1 = (sgn‘𝐴)) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓))
58573expia 1118 . . . . . . . 8 ((𝜑 ∧ ¬ 𝐴 < 0) → (1 = (sgn‘𝐴) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓)))
5916, 18, 40, 58ifbothda 4462 . . . . . . 7 (𝜑 → (if(𝐴 < 0, -1, 1) = (sgn‘𝐴) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓)))
6059imp 410 . . . . . 6 ((𝜑 ∧ if(𝐴 < 0, -1, 1) = (sgn‘𝐴)) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓))
6114, 60sylbir 238 . . . . 5 ((𝜑 ∧ if(𝐴 < 0, -1, 1) = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1))) → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓))
6261expcom 417 . . . 4 (if(𝐴 < 0, -1, 1) = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1)) → (𝜑 → (((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)) ↔ 𝜓)))
6362pm5.74d 276 . . 3 (if(𝐴 < 0, -1, 1) = if(𝐴 = 0, 0, if(𝐴 < 0, -1, 1)) → ((𝜑 → ((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃))) ↔ (𝜑𝜓)))
64 sgn3da.4 . . . . 5 ((𝜑𝐴 = 0) → 𝜒)
6564expcom 417 . . . 4 (𝐴 = 0 → (𝜑𝜒))
6665adantl 485 . . 3 ((⊤ ∧ 𝐴 = 0) → (𝜑𝜒))
6719ex 416 . . . . . . 7 (𝜑 → (𝐴 < 0 → 𝜏))
6867adantr 484 . . . . . 6 ((𝜑 ∧ ¬ 𝐴 = 0) → (𝐴 < 0 → 𝜏))
69 simp1 1133 . . . . . . . 8 ((𝜑 ∧ ¬ 𝐴 = 0 ∧ ¬ 𝐴 < 0) → 𝜑)
70 df-ne 2988 . . . . . . . . . . . 12 (𝐴 ≠ 0 ↔ ¬ 𝐴 = 0)
71 0xr 10677 . . . . . . . . . . . . 13 0 ∈ ℝ*
72 xrlttri2 12523 . . . . . . . . . . . . 13 ((𝐴 ∈ ℝ* ∧ 0 ∈ ℝ*) → (𝐴 ≠ 0 ↔ (𝐴 < 0 ∨ 0 < 𝐴)))
731, 71, 72sylancl 589 . . . . . . . . . . . 12 (𝜑 → (𝐴 ≠ 0 ↔ (𝐴 < 0 ∨ 0 < 𝐴)))
7470, 73bitr3id 288 . . . . . . . . . . 11 (𝜑 → (¬ 𝐴 = 0 ↔ (𝐴 < 0 ∨ 0 < 𝐴)))
7574biimpa 480 . . . . . . . . . 10 ((𝜑 ∧ ¬ 𝐴 = 0) → (𝐴 < 0 ∨ 0 < 𝐴))
7675ord 861 . . . . . . . . 9 ((𝜑 ∧ ¬ 𝐴 = 0) → (¬ 𝐴 < 0 → 0 < 𝐴))
77763impia 1114 . . . . . . . 8 ((𝜑 ∧ ¬ 𝐴 = 0 ∧ ¬ 𝐴 < 0) → 0 < 𝐴)
78 sgn3da.5 . . . . . . . 8 ((𝜑 ∧ 0 < 𝐴) → 𝜃)
7969, 77, 78syl2anc 587 . . . . . . 7 ((𝜑 ∧ ¬ 𝐴 = 0 ∧ ¬ 𝐴 < 0) → 𝜃)
80793expia 1118 . . . . . 6 ((𝜑 ∧ ¬ 𝐴 = 0) → (¬ 𝐴 < 0 → 𝜃))
8168, 80jca 515 . . . . 5 ((𝜑 ∧ ¬ 𝐴 = 0) → ((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃)))
8281expcom 417 . . . 4 𝐴 = 0 → (𝜑 → ((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃))))
8382adantl 485 . . 3 ((⊤ ∧ ¬ 𝐴 = 0) → (𝜑 → ((𝐴 < 0 → 𝜏) ∧ (¬ 𝐴 < 0 → 𝜃))))
8412, 63, 66, 83ifbothda 4462 . 2 (⊤ → (𝜑𝜓))
8584mptru 1545 1 (𝜑𝜓)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399  wo 844  w3a 1084   = wceq 1538  wtru 1539  wcel 2111  wne 2987  ifcif 4425   class class class wbr 5030  cfv 6324  0cc0 10526  1c1 10527  *cxr 10663   < clt 10664  -cneg 10860  sgncsgn 14437
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 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7441  ax-cnex 10582  ax-resscn 10583  ax-1cn 10584  ax-icn 10585  ax-addcl 10586  ax-addrcl 10587  ax-mulcl 10588  ax-i2m1 10594  ax-rnegex 10597  ax-cnre 10599  ax-pre-lttri 10600  ax-pre-lttrn 10601
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-nel 3092  df-ral 3111  df-rex 3112  df-rab 3115  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-nul 4244  df-if 4426  df-pw 4499  df-sn 4526  df-pr 4528  df-op 4532  df-uni 4801  df-br 5031  df-opab 5093  df-mpt 5111  df-id 5425  df-po 5438  df-so 5439  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-iota 6283  df-fun 6326  df-fn 6327  df-f 6328  df-f1 6329  df-fo 6330  df-f1o 6331  df-fv 6332  df-ov 7138  df-er 8272  df-en 8493  df-dom 8494  df-sdom 8495  df-pnf 10666  df-mnf 10667  df-xr 10668  df-ltxr 10669  df-neg 10862  df-sgn 14438
This theorem is referenced by:  sgnmul  31910  sgnsub  31912  sgnnbi  31913  sgnpbi  31914  sgn0bi  31915  sgnsgn  31916
  Copyright terms: Public domain W3C validator