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

Theorem signsvtp 35195
Description: Adding a letter of the same sign as the highest coefficient does not change the sign. (Contributed by Thierry Arnoux, 12-Oct-2018.)
Hypotheses
Ref Expression
signsv.p ⨣ = (𝑎 ∈ {-1, 0, 1}, 𝑏 ∈ {-1, 0, 1} ↦ if(𝑏 = 0, 𝑎, 𝑏))
signsv.w 𝑊 = {⟨(Base‘ndx), {-1, 0, 1}⟩, ⟨(+g‘ndx), ⨣ ⟩}
signsv.t 𝑇 = (𝑓 ∈ Word ℝ ↦ (𝑛 ∈ (0..^(♯‘𝑓)) ↦ (𝑊 Σg (𝑖 ∈ (0...𝑛) ↦ (sgn‘(𝑓‘𝑖))))))
signsv.v 𝑉 = (𝑓 ∈ Word ℝ ↦ Σ𝑗 ∈ (1..^(♯‘𝑓))if(((𝑇‘𝑓)‘𝑗) ≠ ((𝑇‘𝑓)‘(𝑗 − 1)), 1, 0))
signsvf.e (𝜑 → 𝐸 ∈ (Word ℝ ∖ {∅}))
signsvf.0 (𝜑 → (𝐸‘0) ≠ 0)
signsvf.f (𝜑 → 𝐹 = (𝐸 ++ ⟨“𝐴”⟩))
signsvf.a (𝜑 → 𝐴 ∈ ℝ)
signsvf.n 𝑁 = (♯‘𝐸)
signsvt.b 𝐵 = ((𝑇‘𝐸)‘(𝑁 − 1))
Assertion
Ref Expression
signsvtp ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (𝑉‘𝐹) = (𝑉‘𝐸))
Distinct variable groups:   𝑎,𝑏, ⨣   𝑓,𝑖,𝑛,𝐹   𝑓,𝑊,𝑖,𝑛   𝑓,𝑎,𝑖,𝑗,𝑏,𝑛,𝐴   𝐸,𝑎,𝑏,𝑓,𝑖,𝑗,𝑛   𝑇,𝑎,𝑏,𝑓,𝑗,𝑛
Allowed substitution hints:   𝜑(𝑓, 𝑖, 𝑗, 𝑛, 𝑎, 𝑏)   𝐵(𝑓, 𝑖, 𝑗, 𝑛, 𝑎, 𝑏)   ⨣ (𝑓, 𝑖, 𝑗, 𝑛)   𝑇(𝑖)   𝐹(𝑗, 𝑎, 𝑏)   𝑁(𝑓, 𝑖, 𝑗, 𝑛, 𝑎, 𝑏)   𝑉(𝑓, 𝑖, 𝑗, 𝑛, 𝑎, 𝑏)   𝑊(𝑗, 𝑎, 𝑏)

Proof of Theorem signsvtp
StepHypRef Expression
1 signsvf.f . . . . 5 (𝜑 → 𝐹 = (𝐸 ++ ⟨“𝐴”⟩))
21fveq2d 6881 . . . 4 (𝜑 → (𝑉‘𝐹) = (𝑉‘(𝐸 ++ ⟨“𝐴”⟩)))
3 signsvf.e . . . . 5 (𝜑 → 𝐸 ∈ (Word ℝ ∖ {∅}))
4 signsvf.0 . . . . 5 (𝜑 → (𝐸‘0) ≠ 0)
5 signsvf.a . . . . 5 (𝜑 → 𝐴 ∈ ℝ)
6 signsv.p . . . . . 6 ⨣ = (𝑎 ∈ {-1, 0, 1}, 𝑏 ∈ {-1, 0, 1} ↦ if(𝑏 = 0, 𝑎, 𝑏))
7 signsv.w . . . . . 6 𝑊 = {⟨(Base‘ndx), {-1, 0, 1}⟩, ⟨(+g‘ndx), ⨣ ⟩}
8 signsv.t . . . . . 6 𝑇 = (𝑓 ∈ Word ℝ ↦ (𝑛 ∈ (0..^(♯‘𝑓)) ↦ (𝑊 Σg (𝑖 ∈ (0...𝑛) ↦ (sgn‘(𝑓‘𝑖))))))
9 signsv.v . . . . . 6 𝑉 = (𝑓 ∈ Word ℝ ↦ Σ𝑗 ∈ (1..^(♯‘𝑓))if(((𝑇‘𝑓)‘𝑗) ≠ ((𝑇‘𝑓)‘(𝑗 − 1)), 1, 0))
106, 7, 8, 9signsvfn 35194 . . . . 5 (((𝐸 ∈ (Word ℝ ∖ {∅}) ∧ (𝐸‘0) ≠ 0) ∧ 𝐴 ∈ ℝ) → (𝑉‘(𝐸 ++ ⟨“𝐴”⟩)) = ((𝑉‘𝐸) + if((((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) < 0, 1, 0)))
113, 4, 5, 10syl21anc 851 . . . 4 (𝜑 → (𝑉‘(𝐸 ++ ⟨“𝐴”⟩)) = ((𝑉‘𝐸) + if((((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) < 0, 1, 0)))
122, 11eqtrd 2796 . . 3 (𝜑 → (𝑉‘𝐹) = ((𝑉‘𝐸) + if((((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) < 0, 1, 0)))
1312adantr 486 . 2 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (𝑉‘𝐹) = ((𝑉‘𝐸) + if((((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) < 0, 1, 0)))
14 0red 11292 . . . . 5 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 0 ∈ ℝ)
153adantr 486 . . . . . . . . 9 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 𝐸 ∈ (Word ℝ ∖ {∅}))
1615eldifad 3911 . . . . . . . 8 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 𝐸 ∈ Word ℝ)
176, 7, 8, 9signstf 35178 . . . . . . . 8 (𝐸 ∈ Word ℝ → (𝑇‘𝐸) ∈ Word ℝ)
18 wrdf 14643 . . . . . . . 8 ((𝑇‘𝐸) ∈ Word ℝ → (𝑇‘𝐸):(0..^(♯‘(𝑇‘𝐸)))⟶ℝ)
1916, 17, 183syl 19 . . . . . . 7 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (𝑇‘𝐸):(0..^(♯‘(𝑇‘𝐸)))⟶ℝ)
20 eldifsn 4748 . . . . . . . . . . 11 (𝐸 ∈ (Word ℝ ∖ {∅}) ↔ (𝐸 ∈ Word ℝ ∧ 𝐸 ≠ ∅))
213, 20sylib 221 . . . . . . . . . 10 (𝜑 → (𝐸 ∈ Word ℝ ∧ 𝐸 ≠ ∅))
2221adantr 486 . . . . . . . . 9 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (𝐸 ∈ Word ℝ ∧ 𝐸 ≠ ∅))
23 lennncl 14659 . . . . . . . . 9 ((𝐸 ∈ Word ℝ ∧ 𝐸 ≠ ∅) → (♯‘𝐸) ∈ ℕ)
24 fzo0end 13873 . . . . . . . . 9 ((♯‘𝐸) ∈ ℕ → ((♯‘𝐸) − 1) ∈ (0..^(♯‘𝐸)))
2522, 23, 243syl 19 . . . . . . . 8 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → ((♯‘𝐸) − 1) ∈ (0..^(♯‘𝐸)))
266, 7, 8, 9signstlen 35179 . . . . . . . . . 10 (𝐸 ∈ Word ℝ → (♯‘(𝑇‘𝐸)) = (♯‘𝐸))
2716, 26syl 18 . . . . . . . . 9 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (♯‘(𝑇‘𝐸)) = (♯‘𝐸))
2827oveq2d 7428 . . . . . . . 8 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (0..^(♯‘(𝑇‘𝐸))) = (0..^(♯‘𝐸)))
2925, 28eleqtrrd 2864 . . . . . . 7 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → ((♯‘𝐸) − 1) ∈ (0..^(♯‘(𝑇‘𝐸))))
3019, 29ffvelcdmd 7077 . . . . . 6 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → ((𝑇‘𝐸)‘((♯‘𝐸) − 1)) ∈ ℝ)
315adantr 486 . . . . . 6 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 𝐴 ∈ ℝ)
3230, 31remulcld 11320 . . . . 5 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) ∈ ℝ)
33 simpr 490 . . . . . . 7 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 0 < (𝐴 · 𝐵))
34 signsvt.b . . . . . . . . . . 11 𝐵 = ((𝑇‘𝐸)‘(𝑁 − 1))
35 signsvf.n . . . . . . . . . . . . 13 𝑁 = (♯‘𝐸)
3635oveq1i 7422 . . . . . . . . . . . 12 (𝑁 − 1) = ((♯‘𝐸) − 1)
3736fveq2i 6880 . . . . . . . . . . 11 ((𝑇‘𝐸)‘(𝑁 − 1)) = ((𝑇‘𝐸)‘((♯‘𝐸) − 1))
3834, 37eqtri 2784 . . . . . . . . . 10 𝐵 = ((𝑇‘𝐸)‘((♯‘𝐸) − 1))
3938, 30eqeltrid 2865 . . . . . . . . 9 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 𝐵 ∈ ℝ)
4039recnd 11318 . . . . . . . 8 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 𝐵 ∈ ℂ)
4131recnd 11318 . . . . . . . 8 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 𝐴 ∈ ℂ)
4240, 41mulcomd 11311 . . . . . . 7 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (𝐵 · 𝐴) = (𝐴 · 𝐵))
4333, 42breqtrrd 5133 . . . . . 6 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 0 < (𝐵 · 𝐴))
4438oveq1i 7422 . . . . . 6 (𝐵 · 𝐴) = (((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴)
4543, 44breqtrdi 5146 . . . . 5 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 0 < (((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴))
4614, 32, 45ltnsymd 11440 . . . 4 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → ¬ (((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) < 0)
4746iffalsed 4493 . . 3 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → if((((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) < 0, 1, 0) = 0)
4847oveq2d 7428 . 2 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → ((𝑉‘𝐸) + if((((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) < 0, 1, 0)) = ((𝑉‘𝐸) + 0))
496, 7, 8, 9signsvvf 35191 . . . . . 6 𝑉:Word ℝ⟶ℕ0
5049a1i 11 . . . . 5 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 𝑉:Word ℝ⟶ℕ0)
5150, 16ffvelcdmd 7077 . . . 4 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (𝑉‘𝐸) ∈ ℕ0)
5251nn0cnd 12650 . . 3 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (𝑉‘𝐸) ∈ ℂ)
5352addridd 11491 . 2 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → ((𝑉‘𝐸) + 0) = (𝑉‘𝐸))
5413, 48, 533eqtrd 2800 1 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (𝑉‘𝐹) = (𝑉‘𝐸))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1570   ∈ wcel 2145   ≠ wne 2956   ∖ cdif 3896  ∅c0 4279  ifcif 4482  {csn 4584  {cpr 4586  {ctp 4588  ⟨cop 4590   class class class wbr 5103   ↦ cmpt 5186  ⟶wf 6527  ‘cfv 6531  (class class class)co 7412   ∈ cmpo 7414  ℝcr 11180  0cc0 11181  1c1 11182   + caddc 11184   · cmul 11186   < clt 11324   − cmin 11522  -cneg 11523  ℕcn 12316  ℕ0cn0 12587  ...cfz 13620  ..^cfzo 13768  ♯chash 14454  Word cword 14638   ++ cconcat 14695  ⟨“cs1 14722  sgncsgn 15219  Σcsu 15833  ndxcnx 17351  Basecbs 17367  +gcplusg 17408   Σg cgsu 17591
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-rep 5232  ax-sep 5249  ax-nul 5260  ax-pow 5327  ax-pr 5391  ax-un 7740  ax-inf2 9626  ax-cnex 11237  ax-resscn 11238  ax-1cn 11239  ax-icn 11240  ax-addcl 11241  ax-addrcl 11242  ax-mulcl 11243  ax-mulrcl 11244  ax-mulcom 11245  ax-addass 11246  ax-mulass 11247  ax-distr 11248  ax-i2m1 11249  ax-1ne0 11250  ax-1rid 11251  ax-rnegex 11252  ax-rrecex 11253  ax-cnre 11254  ax-pre-lttri 11255  ax-pre-lttrn 11256  ax-pre-ltadd 11257  ax-pre-mulgt0 11258  ax-pre-sup 11259
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-nel 3063  df-ral 3078  df-rex 3088  df-rmo 3366  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-pss 3919  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-tp 4589  df-op 4591  df-uni 4868  df-int 4908  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-tr 5213  df-id 5546  df-eprel 5551  df-po 5559  df-so 5560  df-fr 5604  df-se 5605  df-we 5606  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-pred 6297  df-ord 6358  df-on 6359  df-lim 6360  df-suc 6361  df-iota 6487  df-fun 6533  df-fn 6534  df-f 6535  df-f1 6536  df-fo 6537  df-f1o 6538  df-fv 6539  df-isom 6540  df-riota 7369  df-ov 7415  df-oprab 7416  df-mpo 7417  df-om 7867  df-1st 7990  df-2nd 7991  df-supp 8162  df-frecs 8283  df-wrecs 8314  df-recs 8363  df-rdg 8402  df-1o 8460  df-er 8701  df-en 8958  df-dom 8959  df-sdom 8960  df-fin 8961  df-sup 9418  df-oi 9488  df-card 10001  df-pnf 11326  df-mnf 11327  df-xr 11328  df-ltxr 11329  df-le 11330  df-sub 11524  df-neg 11525  df-div 11955  df-nn 12317  df-2 12386  df-3 12387  df-n0 12588  df-xnn0 12661  df-z 12675  df-uz 12947  df-rp 13102  df-fz 13621  df-fzo 13769  df-seq 14125  df-exp 14185  df-hash 14455  df-word 14639  df-lsw 14688  df-concat 14696  df-s1 14723  df-substr 14769  df-pfx 14801  df-sgn 15220  df-cj 15246  df-re 15247  df-im 15248  df-sqrt 15382  df-abs 15383  df-clim 15635  df-sum 15834  df-struct 17305  df-slot 17340  df-ndx 17352  df-base 17368  df-plusg 17421  df-0g 17592  df-gsum 17593  df-mgm 18796  df-sgrp 18888  df-mnd 18904  df-mulg 19258  df-cntz 19511
This theorem is used by:  signsvfpn  35197
  Copyright terms: Public domain W3C validator