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 35340
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 6930 . . . 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 35339 . . . . 5 (((𝐸 ∈ (Word ℝ ∖ {∅}) ∧ (𝐸‘0) ≠ 0) ∧ 𝐴 ∈ ℝ) → (𝑉‘(𝐸 ++ ⟨“𝐴”⟩)) = ((𝑉‘𝐸) + if((((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) < 0, 1, 0)))
113, 4, 5, 10syl21anc 851 . . . 4 (𝜑 → (𝑉‘(𝐸 ++ ⟨“𝐴”⟩)) = ((𝑉‘𝐸) + if((((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) < 0, 1, 0)))
122, 11eqtrd 2804 . . 3 (𝜑 → (𝑉‘𝐹) = ((𝑉‘𝐸) + if((((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) < 0, 1, 0)))
1312adantr 486 . 2 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (𝑉‘𝐹) = ((𝑉‘𝐸) + if((((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) < 0, 1, 0)))
14 0red 11360 . . . . 5 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 0 ∈ ℝ)
153adantr 486 . . . . . . . . 9 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 𝐸 ∈ (Word ℝ ∖ {∅}))
1615eldifad 4056 . . . . . . . 8 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 𝐸 ∈ Word ℝ)
176, 7, 8, 9signstf 35323 . . . . . . . 8 (𝐸 ∈ Word ℝ → (𝑇‘𝐸) ∈ Word ℝ)
18 wrdf 14714 . . . . . . . 8 ((𝑇‘𝐸) ∈ Word ℝ → (𝑇‘𝐸):(0..^(♯‘(𝑇‘𝐸)))⟶ℝ)
1916, 17, 183syl 19 . . . . . . 7 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (𝑇‘𝐸):(0..^(♯‘(𝑇‘𝐸)))⟶ℝ)
20 eldifsn 4753 . . . . . . . . . . 11 (𝐸 ∈ (Word ℝ ∖ {∅}) ↔ (𝐸 ∈ Word ℝ ∧ 𝐸 ≠ ∅))
213, 20sylib 221 . . . . . . . . . 10 (𝜑 → (𝐸 ∈ Word ℝ ∧ 𝐸 ≠ ∅))
2221adantr 486 . . . . . . . . 9 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (𝐸 ∈ Word ℝ ∧ 𝐸 ≠ ∅))
23 lennncl 14730 . . . . . . . . 9 ((𝐸 ∈ Word ℝ ∧ 𝐸 ≠ ∅) → (♯‘𝐸) ∈ ℕ)
24 fzo0end 13943 . . . . . . . . 9 ((♯‘𝐸) ∈ ℕ → ((♯‘𝐸) − 1) ∈ (0..^(♯‘𝐸)))
2522, 23, 243syl 19 . . . . . . . 8 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → ((♯‘𝐸) − 1) ∈ (0..^(♯‘𝐸)))
266, 7, 8, 9signstlen 35324 . . . . . . . . . 10 (𝐸 ∈ Word ℝ → (♯‘(𝑇‘𝐸)) = (♯‘𝐸))
2716, 26syl 18 . . . . . . . . 9 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (♯‘(𝑇‘𝐸)) = (♯‘𝐸))
2827oveq2d 7477 . . . . . . . 8 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (0..^(♯‘(𝑇‘𝐸))) = (0..^(♯‘𝐸)))
2925, 28eleqtrrd 2873 . . . . . . 7 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → ((♯‘𝐸) − 1) ∈ (0..^(♯‘(𝑇‘𝐸))))
3019, 29ffvelcdmd 7127 . . . . . 6 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → ((𝑇‘𝐸)‘((♯‘𝐸) − 1)) ∈ ℝ)
315adantr 486 . . . . . 6 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 𝐴 ∈ ℝ)
3230, 31remulcld 11388 . . . . 5 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) ∈ ℝ)
33 simpr 490 . . . . . . 7 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 0 < (𝐴 · 𝐵))
34 signsvt.b . . . . . . . . . . 11 𝐵 = ((𝑇‘𝐸)‘(𝑁 − 1))
35 signsvf.n . . . . . . . . . . . . 13 𝑁 = (♯‘𝐸)
3635oveq1i 7471 . . . . . . . . . . . 12 (𝑁 − 1) = ((♯‘𝐸) − 1)
3736fveq2i 6929 . . . . . . . . . . 11 ((𝑇‘𝐸)‘(𝑁 − 1)) = ((𝑇‘𝐸)‘((♯‘𝐸) − 1))
3834, 37eqtri 2792 . . . . . . . . . 10 𝐵 = ((𝑇‘𝐸)‘((♯‘𝐸) − 1))
3938, 30eqeltrid 2874 . . . . . . . . 9 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 𝐵 ∈ ℝ)
4039recnd 11386 . . . . . . . 8 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 𝐵 ∈ ℂ)
4131recnd 11386 . . . . . . . 8 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 𝐴 ∈ ℂ)
4240, 41mulcomd 11379 . . . . . . 7 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (𝐵 · 𝐴) = (𝐴 · 𝐵))
4333, 42breqtrrd 5142 . . . . . 6 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 0 < (𝐵 · 𝐴))
4438oveq1i 7471 . . . . . 6 (𝐵 · 𝐴) = (((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴)
4543, 44breqtrdi 5155 . . . . 5 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 0 < (((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴))
4614, 32, 45ltnsymd 11508 . . . 4 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → ¬ (((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) < 0)
4746iffalsed 4498 . . 3 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → if((((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) < 0, 1, 0) = 0)
4847oveq2d 7477 . 2 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → ((𝑉‘𝐸) + if((((𝑇‘𝐸)‘((♯‘𝐸) − 1)) · 𝐴) < 0, 1, 0)) = ((𝑉‘𝐸) + 0))
496, 7, 8, 9signsvvf 35336 . . . . . 6 𝑉:Word ℝ⟶ℕ0
5049a1i 11 . . . . 5 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → 𝑉:Word ℝ⟶ℕ0)
5150, 16ffvelcdmd 7127 . . . 4 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (𝑉‘𝐸) ∈ ℕ0)
5251nn0cnd 12719 . . 3 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (𝑉‘𝐸) ∈ ℂ)
5352addridd 11559 . 2 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → ((𝑉‘𝐸) + 0) = (𝑉‘𝐸))
5413, 48, 533eqtrd 2808 1 ((𝜑 ∧ 0 < (𝐴 · 𝐵)) → (𝑉‘𝐹) = (𝑉‘𝐸))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1572   ∈ wcel 2151   ≠ wne 2965   ∖ cdif 4050  ∅c0 4283  ifcif 4487  {csn 4590  {cpr 4592  {ctp 4594  ⟨cop 4843   class class class wbr 5111   ↦ cmpt 5195  ⟶wf 6569  ‘cfv 6573  (class class class)co 7461   ∈ cmpo 7463  ℝcr 11248  0cc0 11249  1c1 11250   + caddc 11252   · cmul 11254   < clt 11392   − cmin 11590   -cneg 11591  ℕcn 12385  ℕ0cn0 12656  ...cfz 13689  ..^cfzo 13838  ♯chash 14525  Word cword 14709   ++ cconcat 14766  ⟨“cs1 14793  sgncsgn 15292  Σcsu 15907  ndxcnx 17428  Basecbs 17444  +gcplusg 17485   Σg cgsu 17678
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-10 2184  ax-11 2201  ax-12 2220  ax-ext 2741  ax-rep 5241  ax-sep 5258  ax-nul 5269  ax-pow 5337  ax-pr 5401  ax-un 7793  ax-inf2 9689  ax-cnex 11305  ax-resscn 11306  ax-1cn 11307  ax-icn 11308  ax-addcl 11309  ax-addrcl 11310  ax-mulcl 11311  ax-mulrcl 11312  ax-mulcom 11313  ax-addass 11314  ax-mulass 11315  ax-distr 11316  ax-i2m1 11317  ax-1ne0 11318  ax-1rid 11319  ax-rnegex 11320  ax-rrecex 11321  ax-cnre 11322  ax-pre-lttri 11323  ax-pre-lttrn 11324  ax-pre-ltadd 11325  ax-pre-mulgt0 11326  ax-pre-sup 11327
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2105  df-mo 2571  df-eu 2601  df-clab 2748  df-cleq 2761  df-clel 2845  df-nfc 2919  df-ne 2966  df-nel 3072  df-ral 3087  df-rex 3097  df-rmo 3371  df-reu 3372  df-rab 3419  df-v 3458  df-sbc 3745  df-csb 3854  df-ss 3903  df-pss 4019  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284  df-if 4488  df-pw 4564  df-sn 4591  df-pr 4593  df-tp 4595  df-op 4844  df-uni 4876  df-int 4916  df-iun 4961  df-br 5112  df-opab 5177  df-mpt 5196  df-tr 5222  df-id 5556  df-eprel 5561  df-po 5569  df-so 5570  df-fr 5614  df-se 5615  df-we 5616  df-xp 5667  df-rel 5668  df-cnv 5669  df-co 5670  df-dm 5671  df-rn 5672  df-res 5673  df-ima 5674  df-pred 6337  df-ord 6398  df-on 6399  df-lim 6400  df-suc 6401  df-iota 6527  df-fun 6575  df-fn 6576  df-f 6577  df-f1 6578  df-fo 6579  df-f1o 6580  df-fv 6581  df-isom 6582  df-riota 7418  df-ov 7464  df-oprab 7465  df-mpo 7466  df-om 7922  df-1st 8045  df-2nd 8046  df-supp 8225  df-frecs 8347  df-wrecs 8378  df-recs 8427  df-rdg 8466  df-1o 8524  df-er 8765  df-en 9022  df-dom 9023  df-sdom 9024  df-fin 9025  df-sup 9481  df-oi 9551  df-card 10067  df-pnf 11394  df-mnf 11395  df-xr 11396  df-ltxr 11397  df-le 11398  df-sub 11592  df-neg 11593  df-div 12024  df-nn 12386  df-2 12455  df-3 12456  df-n0 12657  df-xnn0 12730  df-z 12744  df-uz 13016  df-rp 13171  df-fz 13690  df-fzo 13839  df-seq 14195  df-exp 14255  df-hash 14526  df-word 14710  df-lsw 14759  df-concat 14767  df-s1 14794  df-substr 14841  df-pfx 14873  df-sgn 15293  df-cj 15319  df-re 15320  df-im 15321  df-sqrt 15455  df-abs 15456  df-clim 15709  df-sum 15908  df-struct 17382  df-slot 17417  df-ndx 17429  df-base 17445  df-plusg 17499  df-0g 17679  df-gsum 17680  df-mgm 18883  df-sgrp 18975  df-mnd 18991  df-mulg 19345  df-cntz 19599
This theorem is used by:  signsvfpn  35342
  Copyright terms: Public domain W3C validator