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

Theorem signstf0 34562
Description: Sign of a single letter word. (Contributed by Thierry Arnoux, 8-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))
Assertion
Ref Expression
signstf0 (𝐾 ∈ ℝ → (𝑇‘⟨“𝐾”⟩) = ⟨“(sgn‘𝐾)”⟩)
Distinct variable groups:   𝑎,𝑏,   𝑓,𝑖,𝑛,𝑊   𝑓,𝐾,𝑖,𝑛
Allowed substitution hints:   (𝑓,𝑖,𝑗,𝑛)   𝑇(𝑓,𝑖,𝑗,𝑛,𝑎,𝑏)   𝐾(𝑗,𝑎,𝑏)   𝑉(𝑓,𝑖,𝑗,𝑛,𝑎,𝑏)   𝑊(𝑗,𝑎,𝑏)

Proof of Theorem signstf0
StepHypRef Expression
1 s1len 14641 . . . . . 6 (♯‘⟨“𝐾”⟩) = 1
21oveq2i 7442 . . . . 5 (0..^(♯‘⟨“𝐾”⟩)) = (0..^1)
3 fzo01 13783 . . . . 5 (0..^1) = {0}
42, 3eqtri 2763 . . . 4 (0..^(♯‘⟨“𝐾”⟩)) = {0}
54a1i 11 . . 3 (𝐾 ∈ ℝ → (0..^(♯‘⟨“𝐾”⟩)) = {0})
6 simpr 484 . . . . . 6 ((𝐾 ∈ ℝ ∧ 𝑛 ∈ (0..^(♯‘⟨“𝐾”⟩))) → 𝑛 ∈ (0..^(♯‘⟨“𝐾”⟩)))
76, 4eleqtrdi 2849 . . . . 5 ((𝐾 ∈ ℝ ∧ 𝑛 ∈ (0..^(♯‘⟨“𝐾”⟩))) → 𝑛 ∈ {0})
8 velsn 4647 . . . . 5 (𝑛 ∈ {0} ↔ 𝑛 = 0)
97, 8sylib 218 . . . 4 ((𝐾 ∈ ℝ ∧ 𝑛 ∈ (0..^(♯‘⟨“𝐾”⟩))) → 𝑛 = 0)
10 oveq2 7439 . . . . . . . . 9 (𝑛 = 0 → (0...𝑛) = (0...0))
11 0z 12622 . . . . . . . . . 10 0 ∈ ℤ
12 fzsn 13603 . . . . . . . . . 10 (0 ∈ ℤ → (0...0) = {0})
1311, 12ax-mp 5 . . . . . . . . 9 (0...0) = {0}
1410, 13eqtrdi 2791 . . . . . . . 8 (𝑛 = 0 → (0...𝑛) = {0})
1514mpteq1d 5243 . . . . . . 7 (𝑛 = 0 → (𝑖 ∈ (0...𝑛) ↦ (sgn‘(⟨“𝐾”⟩‘𝑖))) = (𝑖 ∈ {0} ↦ (sgn‘(⟨“𝐾”⟩‘𝑖))))
1615oveq2d 7447 . . . . . 6 (𝑛 = 0 → (𝑊 Σg (𝑖 ∈ (0...𝑛) ↦ (sgn‘(⟨“𝐾”⟩‘𝑖)))) = (𝑊 Σg (𝑖 ∈ {0} ↦ (sgn‘(⟨“𝐾”⟩‘𝑖)))))
1716adantl 481 . . . . 5 ((𝐾 ∈ ℝ ∧ 𝑛 = 0) → (𝑊 Σg (𝑖 ∈ (0...𝑛) ↦ (sgn‘(⟨“𝐾”⟩‘𝑖)))) = (𝑊 Σg (𝑖 ∈ {0} ↦ (sgn‘(⟨“𝐾”⟩‘𝑖)))))
18 signsv.p . . . . . . . . 9 = (𝑎 ∈ {-1, 0, 1}, 𝑏 ∈ {-1, 0, 1} ↦ if(𝑏 = 0, 𝑎, 𝑏))
19 signsv.w . . . . . . . . 9 𝑊 = {⟨(Base‘ndx), {-1, 0, 1}⟩, ⟨(+g‘ndx), ⟩}
2018, 19signswmnd 34551 . . . . . . . 8 𝑊 ∈ Mnd
2120a1i 11 . . . . . . 7 (𝐾 ∈ ℝ → 𝑊 ∈ Mnd)
22 0re 11261 . . . . . . . 8 0 ∈ ℝ
2322a1i 11 . . . . . . 7 (𝐾 ∈ ℝ → 0 ∈ ℝ)
24 s1fv 14645 . . . . . . . . . 10 (𝐾 ∈ ℝ → (⟨“𝐾”⟩‘0) = 𝐾)
25 id 22 . . . . . . . . . 10 (𝐾 ∈ ℝ → 𝐾 ∈ ℝ)
2624, 25eqeltrd 2839 . . . . . . . . 9 (𝐾 ∈ ℝ → (⟨“𝐾”⟩‘0) ∈ ℝ)
2726rexrd 11309 . . . . . . . 8 (𝐾 ∈ ℝ → (⟨“𝐾”⟩‘0) ∈ ℝ*)
28 sgncl 34520 . . . . . . . 8 ((⟨“𝐾”⟩‘0) ∈ ℝ* → (sgn‘(⟨“𝐾”⟩‘0)) ∈ {-1, 0, 1})
2927, 28syl 17 . . . . . . 7 (𝐾 ∈ ℝ → (sgn‘(⟨“𝐾”⟩‘0)) ∈ {-1, 0, 1})
3018, 19signswbase 34548 . . . . . . . 8 {-1, 0, 1} = (Base‘𝑊)
31 2fveq3 6912 . . . . . . . 8 (𝑖 = 0 → (sgn‘(⟨“𝐾”⟩‘𝑖)) = (sgn‘(⟨“𝐾”⟩‘0)))
3230, 31gsumsn 19987 . . . . . . 7 ((𝑊 ∈ Mnd ∧ 0 ∈ ℝ ∧ (sgn‘(⟨“𝐾”⟩‘0)) ∈ {-1, 0, 1}) → (𝑊 Σg (𝑖 ∈ {0} ↦ (sgn‘(⟨“𝐾”⟩‘𝑖)))) = (sgn‘(⟨“𝐾”⟩‘0)))
3321, 23, 29, 32syl3anc 1370 . . . . . 6 (𝐾 ∈ ℝ → (𝑊 Σg (𝑖 ∈ {0} ↦ (sgn‘(⟨“𝐾”⟩‘𝑖)))) = (sgn‘(⟨“𝐾”⟩‘0)))
3433adantr 480 . . . . 5 ((𝐾 ∈ ℝ ∧ 𝑛 = 0) → (𝑊 Σg (𝑖 ∈ {0} ↦ (sgn‘(⟨“𝐾”⟩‘𝑖)))) = (sgn‘(⟨“𝐾”⟩‘0)))
3524fveq2d 6911 . . . . . 6 (𝐾 ∈ ℝ → (sgn‘(⟨“𝐾”⟩‘0)) = (sgn‘𝐾))
3635adantr 480 . . . . 5 ((𝐾 ∈ ℝ ∧ 𝑛 = 0) → (sgn‘(⟨“𝐾”⟩‘0)) = (sgn‘𝐾))
3717, 34, 363eqtrd 2779 . . . 4 ((𝐾 ∈ ℝ ∧ 𝑛 = 0) → (𝑊 Σg (𝑖 ∈ (0...𝑛) ↦ (sgn‘(⟨“𝐾”⟩‘𝑖)))) = (sgn‘𝐾))
389, 37syldan 591 . . 3 ((𝐾 ∈ ℝ ∧ 𝑛 ∈ (0..^(♯‘⟨“𝐾”⟩))) → (𝑊 Σg (𝑖 ∈ (0...𝑛) ↦ (sgn‘(⟨“𝐾”⟩‘𝑖)))) = (sgn‘𝐾))
395, 38mpteq12dva 5237 . 2 (𝐾 ∈ ℝ → (𝑛 ∈ (0..^(♯‘⟨“𝐾”⟩)) ↦ (𝑊 Σg (𝑖 ∈ (0...𝑛) ↦ (sgn‘(⟨“𝐾”⟩‘𝑖))))) = (𝑛 ∈ {0} ↦ (sgn‘𝐾)))
40 s1cl 14637 . . 3 (𝐾 ∈ ℝ → ⟨“𝐾”⟩ ∈ Word ℝ)
41 signsv.t . . . 4 𝑇 = (𝑓 ∈ Word ℝ ↦ (𝑛 ∈ (0..^(♯‘𝑓)) ↦ (𝑊 Σg (𝑖 ∈ (0...𝑛) ↦ (sgn‘(𝑓𝑖))))))
42 signsv.v . . . 4 𝑉 = (𝑓 ∈ Word ℝ ↦ Σ𝑗 ∈ (1..^(♯‘𝑓))if(((𝑇𝑓)‘𝑗) ≠ ((𝑇𝑓)‘(𝑗 − 1)), 1, 0))
4318, 19, 41, 42signstfv 34557 . . 3 (⟨“𝐾”⟩ ∈ Word ℝ → (𝑇‘⟨“𝐾”⟩) = (𝑛 ∈ (0..^(♯‘⟨“𝐾”⟩)) ↦ (𝑊 Σg (𝑖 ∈ (0...𝑛) ↦ (sgn‘(⟨“𝐾”⟩‘𝑖))))))
4440, 43syl 17 . 2 (𝐾 ∈ ℝ → (𝑇‘⟨“𝐾”⟩) = (𝑛 ∈ (0..^(♯‘⟨“𝐾”⟩)) ↦ (𝑊 Σg (𝑖 ∈ (0...𝑛) ↦ (sgn‘(⟨“𝐾”⟩‘𝑖))))))
45 sgnclre 34521 . . . 4 (𝐾 ∈ ℝ → (sgn‘𝐾) ∈ ℝ)
46 s1val 14633 . . . 4 ((sgn‘𝐾) ∈ ℝ → ⟨“(sgn‘𝐾)”⟩ = {⟨0, (sgn‘𝐾)⟩})
4745, 46syl 17 . . 3 (𝐾 ∈ ℝ → ⟨“(sgn‘𝐾)”⟩ = {⟨0, (sgn‘𝐾)⟩})
48 fmptsn 7187 . . . 4 ((0 ∈ ℝ ∧ (sgn‘𝐾) ∈ ℝ) → {⟨0, (sgn‘𝐾)⟩} = (𝑛 ∈ {0} ↦ (sgn‘𝐾)))
4922, 45, 48sylancr 587 . . 3 (𝐾 ∈ ℝ → {⟨0, (sgn‘𝐾)⟩} = (𝑛 ∈ {0} ↦ (sgn‘𝐾)))
5047, 49eqtrd 2775 . 2 (𝐾 ∈ ℝ → ⟨“(sgn‘𝐾)”⟩ = (𝑛 ∈ {0} ↦ (sgn‘𝐾)))
5139, 44, 503eqtr4d 2785 1 (𝐾 ∈ ℝ → (𝑇‘⟨“𝐾”⟩) = ⟨“(sgn‘𝐾)”⟩)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395   = wceq 1537  wcel 2106  wne 2938  ifcif 4531  {csn 4631  {cpr 4633  {ctp 4635  cop 4637  cmpt 5231  cfv 6563  (class class class)co 7431  cmpo 7433  cr 11152  0cc0 11153  1c1 11154  *cxr 11292  cmin 11490  -cneg 11491  cz 12611  ...cfz 13544  ..^cfzo 13691  chash 14366  Word cword 14549  ⟨“cs1 14630  sgncsgn 15122  Σcsu 15719  ndxcnx 17227  Basecbs 17245  +gcplusg 17298   Σg cgsu 17487  Mndcmnd 18760
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1908  ax-6 1965  ax-7 2005  ax-8 2108  ax-9 2116  ax-10 2139  ax-11 2155  ax-12 2175  ax-ext 2706  ax-rep 5285  ax-sep 5302  ax-nul 5312  ax-pow 5371  ax-pr 5438  ax-un 7754  ax-cnex 11209  ax-resscn 11210  ax-1cn 11211  ax-icn 11212  ax-addcl 11213  ax-addrcl 11214  ax-mulcl 11215  ax-mulrcl 11216  ax-mulcom 11217  ax-addass 11218  ax-mulass 11219  ax-distr 11220  ax-i2m1 11221  ax-1ne0 11222  ax-1rid 11223  ax-rnegex 11224  ax-rrecex 11225  ax-cnre 11226  ax-pre-lttri 11227  ax-pre-lttrn 11228  ax-pre-ltadd 11229  ax-pre-mulgt0 11230
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 848  df-3or 1087  df-3an 1088  df-tru 1540  df-fal 1550  df-ex 1777  df-nf 1781  df-sb 2063  df-mo 2538  df-eu 2567  df-clab 2713  df-cleq 2727  df-clel 2814  df-nfc 2890  df-ne 2939  df-nel 3045  df-ral 3060  df-rex 3069  df-rmo 3378  df-reu 3379  df-rab 3434  df-v 3480  df-sbc 3792  df-csb 3909  df-dif 3966  df-un 3968  df-in 3970  df-ss 3980  df-pss 3983  df-nul 4340  df-if 4532  df-pw 4607  df-sn 4632  df-pr 4634  df-tp 4636  df-op 4638  df-uni 4913  df-int 4952  df-iun 4998  df-br 5149  df-opab 5211  df-mpt 5232  df-tr 5266  df-id 5583  df-eprel 5589  df-po 5597  df-so 5598  df-fr 5641  df-se 5642  df-we 5643  df-xp 5695  df-rel 5696  df-cnv 5697  df-co 5698  df-dm 5699  df-rn 5700  df-res 5701  df-ima 5702  df-pred 6323  df-ord 6389  df-on 6390  df-lim 6391  df-suc 6392  df-iota 6516  df-fun 6565  df-fn 6566  df-f 6567  df-f1 6568  df-fo 6569  df-f1o 6570  df-fv 6571  df-isom 6572  df-riota 7388  df-ov 7434  df-oprab 7435  df-mpo 7436  df-om 7888  df-1st 8013  df-2nd 8014  df-supp 8185  df-frecs 8305  df-wrecs 8336  df-recs 8410  df-rdg 8449  df-1o 8505  df-er 8744  df-en 8985  df-dom 8986  df-sdom 8987  df-fin 8988  df-oi 9548  df-card 9977  df-pnf 11295  df-mnf 11296  df-xr 11297  df-ltxr 11298  df-le 11299  df-sub 11492  df-neg 11493  df-nn 12265  df-2 12327  df-n0 12525  df-z 12612  df-uz 12877  df-fz 13545  df-fzo 13692  df-seq 14040  df-hash 14367  df-word 14550  df-s1 14631  df-sgn 15123  df-struct 17181  df-slot 17216  df-ndx 17228  df-base 17246  df-plusg 17311  df-0g 17488  df-gsum 17489  df-mgm 18666  df-sgrp 18745  df-mnd 18761  df-mulg 19099  df-cntz 19348
This theorem is referenced by:  signsvtn0  34564  signstfvneq0  34566
  Copyright terms: Public domain W3C validator