| Mathbox for Thierry Arnoux |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > Mathboxes > signstf | Structured version Visualization version GIF version | ||
| Description: The zero skipping sign word is a word. (Contributed by Thierry Arnoux, 8-Oct-2018.) |
| 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)) |
| Ref | Expression |
|---|---|
| signstf | ⊢ (𝐹 ∈ Word ℝ → (𝑇‘𝐹) ∈ Word ℝ) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | signsv.p | . . . 4 ⊢ ⨣ = (𝑎 ∈ {-1, 0, 1}, 𝑏 ∈ {-1, 0, 1} ↦ if(𝑏 = 0, 𝑎, 𝑏)) | |
| 2 | signsv.w | . . . 4 ⊢ 𝑊 = {〈(Base‘ndx), {-1, 0, 1}〉, 〈(+g‘ndx), ⨣ 〉} | |
| 3 | signsv.t | . . . 4 ⊢ 𝑇 = (𝑓 ∈ Word ℝ ↦ (𝑛 ∈ (0..^(♯‘𝑓)) ↦ (𝑊 Σg (𝑖 ∈ (0...𝑛) ↦ (sgn‘(𝑓‘𝑖)))))) | |
| 4 | signsv.v | . . . 4 ⊢ 𝑉 = (𝑓 ∈ Word ℝ ↦ Σ𝑗 ∈ (1..^(♯‘𝑓))if(((𝑇‘𝑓)‘𝑗) ≠ ((𝑇‘𝑓)‘(𝑗 − 1)), 1, 0)) | |
| 5 | 1, 2, 3, 4 | signstfv 34974 | . . 3 ⊢ (𝐹 ∈ Word ℝ → (𝑇‘𝐹) = (𝑛 ∈ (0..^(♯‘𝐹)) ↦ (𝑊 Σg (𝑖 ∈ (0...𝑛) ↦ (sgn‘(𝐹‘𝑖)))))) |
| 6 | neg1rr 12215 | . . . . 5 ⊢ -1 ∈ ℝ | |
| 7 | 0re 11221 | . . . . 5 ⊢ 0 ∈ ℝ | |
| 8 | 1re 11219 | . . . . 5 ⊢ 1 ∈ ℝ | |
| 9 | tpssi 4805 | . . . . 5 ⊢ ((-1 ∈ ℝ ∧ 0 ∈ ℝ ∧ 1 ∈ ℝ) → {-1, 0, 1} ⊆ ℝ) | |
| 10 | 6, 7, 8, 9 | mp3an 1490 | . . . 4 ⊢ {-1, 0, 1} ⊆ ℝ |
| 11 | 1, 2 | signswbase 34965 | . . . . 5 ⊢ {-1, 0, 1} = (Base‘𝑊) |
| 12 | 1, 2 | signswmnd 34968 | . . . . . 6 ⊢ 𝑊 ∈ Mnd |
| 13 | 12 | a1i 11 | . . . . 5 ⊢ ((𝐹 ∈ Word ℝ ∧ 𝑛 ∈ (0..^(♯‘𝐹))) → 𝑊 ∈ Mnd) |
| 14 | fzo0ssnn0 13787 | . . . . . . . 8 ⊢ (0..^(♯‘𝐹)) ⊆ ℕ0 | |
| 15 | nn0uz 12911 | . . . . . . . 8 ⊢ ℕ0 = (ℤ≥‘0) | |
| 16 | 14, 15 | sseqtri 3986 | . . . . . . 7 ⊢ (0..^(♯‘𝐹)) ⊆ (ℤ≥‘0) |
| 17 | 16 | a1i 11 | . . . . . 6 ⊢ (𝐹 ∈ Word ℝ → (0..^(♯‘𝐹)) ⊆ (ℤ≥‘0)) |
| 18 | 17 | sselda 3938 | . . . . 5 ⊢ ((𝐹 ∈ Word ℝ ∧ 𝑛 ∈ (0..^(♯‘𝐹))) → 𝑛 ∈ (ℤ≥‘0)) |
| 19 | wrdf 14568 | . . . . . . . . 9 ⊢ (𝐹 ∈ Word ℝ → 𝐹:(0..^(♯‘𝐹))⟶ℝ) | |
| 20 | 19 | ad2antrr 739 | . . . . . . . 8 ⊢ (((𝐹 ∈ Word ℝ ∧ 𝑛 ∈ (0..^(♯‘𝐹))) ∧ 𝑖 ∈ (0...𝑛)) → 𝐹:(0..^(♯‘𝐹))⟶ℝ) |
| 21 | fzssfzo 34953 | . . . . . . . . . 10 ⊢ (𝑛 ∈ (0..^(♯‘𝐹)) → (0...𝑛) ⊆ (0..^(♯‘𝐹))) | |
| 22 | 21 | adantl 487 | . . . . . . . . 9 ⊢ ((𝐹 ∈ Word ℝ ∧ 𝑛 ∈ (0..^(♯‘𝐹))) → (0...𝑛) ⊆ (0..^(♯‘𝐹))) |
| 23 | 22 | sselda 3938 | . . . . . . . 8 ⊢ (((𝐹 ∈ Word ℝ ∧ 𝑛 ∈ (0..^(♯‘𝐹))) ∧ 𝑖 ∈ (0...𝑛)) → 𝑖 ∈ (0..^(♯‘𝐹))) |
| 24 | 20, 23 | ffvelcdmd 7084 | . . . . . . 7 ⊢ (((𝐹 ∈ Word ℝ ∧ 𝑛 ∈ (0..^(♯‘𝐹))) ∧ 𝑖 ∈ (0...𝑛)) → (𝐹‘𝑖) ∈ ℝ) |
| 25 | 24 | rexrd 11270 | . . . . . 6 ⊢ (((𝐹 ∈ Word ℝ ∧ 𝑛 ∈ (0..^(♯‘𝐹))) ∧ 𝑖 ∈ (0...𝑛)) → (𝐹‘𝑖) ∈ ℝ*) |
| 26 | sgncl 15153 | . . . . . 6 ⊢ ((𝐹‘𝑖) ∈ ℝ* → (sgn‘(𝐹‘𝑖)) ∈ {-1, 0, 1}) | |
| 27 | 25, 26 | syl 18 | . . . . 5 ⊢ (((𝐹 ∈ Word ℝ ∧ 𝑛 ∈ (0..^(♯‘𝐹))) ∧ 𝑖 ∈ (0...𝑛)) → (sgn‘(𝐹‘𝑖)) ∈ {-1, 0, 1}) |
| 28 | 11, 13, 18, 27 | gsumncl 34954 | . . . 4 ⊢ ((𝐹 ∈ Word ℝ ∧ 𝑛 ∈ (0..^(♯‘𝐹))) → (𝑊 Σg (𝑖 ∈ (0...𝑛) ↦ (sgn‘(𝐹‘𝑖)))) ∈ {-1, 0, 1}) |
| 29 | 10, 28 | sselid 3936 | . . 3 ⊢ ((𝐹 ∈ Word ℝ ∧ 𝑛 ∈ (0..^(♯‘𝐹))) → (𝑊 Σg (𝑖 ∈ (0...𝑛) ↦ (sgn‘(𝐹‘𝑖)))) ∈ ℝ) |
| 30 | 5, 29 | fmpt3d 7115 | . 2 ⊢ (𝐹 ∈ Word ℝ → (𝑇‘𝐹):(0..^(♯‘𝐹))⟶ℝ) |
| 31 | iswrdi 14567 | . 2 ⊢ ((𝑇‘𝐹):(0..^(♯‘𝐹))⟶ℝ → (𝑇‘𝐹) ∈ Word ℝ) | |
| 32 | 30, 31 | syl 18 | 1 ⊢ (𝐹 ∈ Word ℝ → (𝑇‘𝐹) ∈ Word ℝ) |
| Colors of variables: wff setvar class |
| This proof depends on syntax axioms: → wi 4 ∧ wa 401 = wceq 1570 ∈ wcel 2146 ≠ wne 2960 ⊆ wss 3906 ifcif 4489 {cpr 4593 {ctp 4595 〈cop 4597 ↦ cmpt 5194 ⟶wf 6536 ‘cfv 6540 (class class class)co 7416 ∈ cmpo 7418 ℝcr 11110 0cc0 11111 1c1 11112 ℝ*cxr 11253 − cmin 11452 -cneg 11453 ℕ0cn0 12515 ℤ≥cuz 12873 ...cfz 13546 ..^cfzo 13694 ♯chash 14379 Word cword 14563 sgncsgn 15142 Σcsu 15756 ndxcnx 17270 Basecbs 17286 +gcplusg 17327 Σg cgsu 17510 Mndcmnd 18813 |
| 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 2148 ax-9 2156 ax-10 2179 ax-11 2195 ax-12 2216 ax-ext 2737 ax-rep 5240 ax-sep 5259 ax-nul 5271 ax-pow 5338 ax-pr 5406 ax-un 7738 ax-cnex 11167 ax-resscn 11168 ax-1cn 11169 ax-icn 11170 ax-addcl 11171 ax-addrcl 11172 ax-mulcl 11173 ax-mulrcl 11174 ax-mulcom 11175 ax-addass 11176 ax-mulass 11177 ax-distr 11178 ax-i2m1 11179 ax-1ne0 11180 ax-1rid 11181 ax-rnegex 11182 ax-rrecex 11183 ax-cnre 11184 ax-pre-lttri 11185 ax-pre-lttrn 11186 ax-pre-ltadd 11187 ax-pre-mulgt0 11188 |
| 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 2569 df-eu 2599 df-clab 2744 df-cleq 2757 df-clel 2840 df-nfc 2914 df-ne 2961 df-nel 3067 df-ral 3082 df-rex 3092 df-rmo 3371 df-reu 3372 df-rab 3419 df-v 3459 df-sbc 3747 df-csb 3855 df-dif 3909 df-un 3911 df-in 3913 df-ss 3923 df-pss 3926 df-nul 4287 df-if 4490 df-pw 4566 df-sn 4592 df-pr 4594 df-tp 4596 df-op 4598 df-uni 4875 df-int 4915 df-iun 4960 df-br 5112 df-opab 5176 df-mpt 5195 df-tr 5221 df-id 5558 df-eprel 5563 df-po 5571 df-so 5572 df-fr 5616 df-we 5618 df-xp 5669 df-rel 5670 df-cnv 5671 df-co 5672 df-dm 5673 df-rn 5674 df-res 5675 df-ima 5676 df-pred 6306 df-ord 6367 df-on 6368 df-lim 6369 df-suc 6370 df-iota 6496 df-fun 6542 df-fn 6543 df-f 6544 df-f1 6545 df-fo 6546 df-f1o 6547 df-fv 6548 df-riota 7373 df-ov 7419 df-oprab 7420 df-mpo 7421 df-om 7865 df-1st 7988 df-2nd 7989 df-frecs 8280 df-wrecs 8311 df-recs 8360 df-rdg 8399 df-1o 8455 df-er 8696 df-en 8946 df-dom 8947 df-sdom 8948 df-fin 8949 df-card 9937 df-pnf 11256 df-mnf 11257 df-xr 11258 df-ltxr 11259 df-le 11260 df-sub 11454 df-neg 11455 df-nn 12245 df-2 12314 df-n0 12516 df-z 12603 df-uz 12874 df-fz 13547 df-fzo 13695 df-seq 14051 df-hash 14380 df-word 14564 df-sgn 15143 df-struct 17224 df-slot 17259 df-ndx 17271 df-base 17287 df-plusg 17340 df-0g 17511 df-gsum 17512 df-mgm 18715 df-sgrp 18798 df-mnd 18814 |
| This theorem is used by: signstres 34986 signsvtp 34994 signsvtn 34995 |
| Copyright terms: Public domain | W3C validator |