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 35282
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 6912 . . . 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 35281 . . . . 5 (((𝐸 ∈ (Word ℝ ∖ {∅}) ∧ (𝐸‘0) ≠ 0) ∧ 𝐴 ∈ ℝ) → (𝑉‘(𝐸 ++ ⟨“𝐴”⟩)) = ((𝑉‘𝐸) + if((((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) < 0, 1, 0)))
113, 4, 5, 10syl21anc 851 . . . 4 (𝜑 → (𝑉‘(𝐸 ++ ⟨“𝐴”⟩)) = ((𝑉‘𝐸) + if((((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) < 0, 1, 0)))
122, 11eqtrd 2798 . . 3 (𝜑 → (𝑉‘𝐹) = ((𝑉‘𝐸) + if((((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) < 0, 1, 0)))
1312adantr 486 . 2 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (𝑉‘𝐹) = ((𝑉‘𝐸) + if((((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) < 0, 1, 0)))
14 0red 11338 . . . . 5 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 0 ∈ ℝ)
153adantr 486 . . . . . . . . 9 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 𝐸 ∈ (Word ℝ ∖ {∅}))
1615eldifad 4054 . . . . . . . 8 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 𝐸 ∈ Word ℝ)
176, 7, 8, 9signstf 35265 . . . . . . . 8 (𝐸 ∈ Word ℝ → (𝑇‘𝐸) ∈ Word ℝ)
18 wrdf 14690 . . . . . . . 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 14706 . . . . . . . . 9 ((𝐸 ∈ Word ℝ ∧ 𝐸 ≠ ∅) → (♯‘𝐸) ∈ ℕ)
24 fzo0end 13920 . . . . . . . . 9 ((♯‘𝐸) ∈ ℕ → ((♯‘𝐸) − 1) ∈ (0..^(♯‘𝐸)))
2522, 23, 243syl 19 . . . . . . . 8 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → ((♯‘𝐸) − 1) ∈ (0..^(♯‘𝐸)))
266, 7, 8, 9signstlen 35266 . . . . . . . . . 10 (𝐸 ∈ Word ℝ → (♯‘(𝑇‘𝐸)) = (♯‘𝐸))
2716, 26syl 18 . . . . . . . . 9 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (♯‘(𝑇‘𝐸)) = (♯‘𝐸))
2827oveq2d 7459 . . . . . . . 8 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (0..^(♯‘(𝑇‘𝐸))) = (0..^(♯‘𝐸)))
2925, 28eleqtrrd 2867 . . . . . . 7 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → ((♯‘𝐸) − 1) ∈ (0..^(♯‘(𝑇‘𝐸))))
3019, 29ffvelcdmd 7109 . . . . . 6 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → ((𝑇‘𝐸)‘((♯‘𝐸) − 1)) ∈ ℝ)
315adantr 486 . . . . . 6 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 𝐴 ∈ ℝ)
3230, 31remulcld 11366 . . . . 5 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) ∈ ℝ)
33 simpr 490 . . . . . . 7 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 0 < (𝐴 · 𝐵))
34 signsvt.b . . . . . . . . . . 11 𝐵 = ((𝑇‘𝐸)‘(𝑁 − 1))
35 signsvf.n . . . . . . . . . . . . 13 𝑁 = (♯‘𝐸)
3635oveq1i 7453 . . . . . . . . . . . 12 (𝑁 − 1) = ((♯‘𝐸) − 1)
3736fveq2i 6911 . . . . . . . . . . 11 ((𝑇‘𝐸)‘(𝑁 − 1)) = ((𝑇‘𝐸)‘((♯‘𝐸) − 1))
3834, 37eqtri 2786 . . . . . . . . . 10 𝐵 = ((𝑇‘𝐸)‘((♯‘𝐸) − 1))
3938, 30eqeltrid 2868 . . . . . . . . 9 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 𝐵 ∈ ℝ)
4039recnd 11364 . . . . . . . 8 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 𝐵 ∈ ℂ)
4131recnd 11364 . . . . . . . 8 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 𝐴 ∈ ℂ)
4240, 41mulcomd 11357 . . . . . . 7 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (𝐵 · 𝐴) = (𝐴 · 𝐵))
4333, 42breqtrrd 5136 . . . . . 6 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 0 < (𝐵 · 𝐴))
4438oveq1i 7453 . . . . . 6 (𝐵 · 𝐴) = (((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴)
4543, 44breqtrdi 5149 . . . . 5 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 0 < (((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴))
4614, 32, 45ltnsymd 11486 . . . 4 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → ¬ (((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) < 0)
4746iffalsed 4496 . . 3 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → if((((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) < 0, 1, 0) = 0)
4847oveq2d 7459 . 2 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → ((𝑉‘𝐸) + if((((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) < 0, 1, 0)) = ((𝑉‘𝐸) + 0))
496, 7, 8, 9signsvvf 35278 . . . . . 6 𝑉:Word ℝ⟶ℕ0
5049a1i 11 . . . . 5 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 𝑉:Word ℝ⟶ℕ0)
5150, 16ffvelcdmd 7109 . . . 4 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (𝑉‘𝐸) ∈ ℕ0)
5251nn0cnd 12696 . . 3 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (𝑉‘𝐸) ∈ ℂ)
5352addridd 11537 . 2 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → ((𝑉‘𝐸) + 0) = (𝑉‘𝐸))
5413, 48, 533eqtrd 2802 1 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (𝑉‘𝐹) = (𝑉‘𝐸))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1570   ∈ wcel 2147   ≠ wne 2959   ∖ cdif 4048  ∅c0 4281  ifcif 4485  {csn 4588  {cpr 4590  {ctp 4592  ⟨cop 4838   class class class wbr 5106   ↦ cmpt 5189  ⟶wf 6554  ‘cfv 6558  (class class class)co 7443   ∈ cmpo 7445  ℝcr 11226  0cc0 11227  1c1 11228   + caddc 11230   · cmul 11232   < clt 11370   − cmin 11568   -cneg 11569  ℕcn 12362  ℕ0cn0 12633  ...cfz 13666  ..^cfzo 13815  ♯chash 14501  Word cword 14685   ++ cconcat 14742  ⟨“cs1 14769  sgncsgn 15268  Σcsu 15882  ndxcnx 17400  Basecbs 17416  +gcplusg 17457   Σg cgsu 17640
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-rep 5235  ax-sep 5252  ax-nul 5263  ax-pow 5331  ax-pr 5395  ax-un 7775  ax-inf2 9669  ax-cnex 11283  ax-resscn 11284  ax-1cn 11285  ax-icn 11286  ax-addcl 11287  ax-addrcl 11288  ax-mulcl 11289  ax-mulrcl 11290  ax-mulcom 11291  ax-addass 11292  ax-mulass 11293  ax-distr 11294  ax-i2m1 11295  ax-1ne0 11296  ax-1rid 11297  ax-rnegex 11298  ax-rrecex 11299  ax-cnre 11300  ax-pre-lttri 11301  ax-pre-lttrn 11302  ax-pre-ltadd 11303  ax-pre-mulgt0 11304  ax-pre-sup 11305
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 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-nel 3066  df-ral 3081  df-rex 3091  df-rmo 3369  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-tp 4593  df-op 4839  df-uni 4871  df-int 4911  df-iun 4956  df-br 5107  df-opab 5171  df-mpt 5190  df-tr 5216  df-id 5550  df-eprel 5555  df-po 5563  df-so 5564  df-fr 5608  df-se 5609  df-we 5610  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-pred 6322  df-ord 6383  df-on 6384  df-lim 6385  df-suc 6386  df-iota 6512  df-fun 6560  df-fn 6561  df-f 6562  df-f1 6563  df-fo 6564  df-f1o 6565  df-fv 6566  df-isom 6567  df-riota 7400  df-ov 7446  df-oprab 7447  df-mpo 7448  df-om 7902  df-1st 8025  df-2nd 8026  df-supp 8205  df-frecs 8327  df-wrecs 8358  df-recs 8407  df-rdg 8446  df-1o 8504  df-er 8745  df-en 9002  df-dom 9003  df-sdom 9004  df-fin 9005  df-sup 9461  df-oi 9531  df-card 10047  df-pnf 11372  df-mnf 11373  df-xr 11374  df-ltxr 11375  df-le 11376  df-sub 11570  df-neg 11571  df-div 12001  df-nn 12363  df-2 12432  df-3 12433  df-n0 12634  df-xnn0 12707  df-z 12721  df-uz 12993  df-rp 13148  df-fz 13667  df-fzo 13816  df-seq 14172  df-exp 14232  df-hash 14502  df-word 14686  df-lsw 14735  df-concat 14743  df-s1 14770  df-substr 14817  df-pfx 14849  df-sgn 15269  df-cj 15295  df-re 15296  df-im 15297  df-sqrt 15431  df-abs 15432  df-clim 15684  df-sum 15883  df-struct 17354  df-slot 17389  df-ndx 17401  df-base 17417  df-plusg 17470  df-0g 17641  df-gsum 17642  df-mgm 18845  df-sgrp 18937  df-mnd 18953  df-mulg 19307  df-cntz 19561
This theorem is used by:  signsvfpn  35284
  Copyright terms: Public domain W3C validator