![]() |
Mathbox for Thierry Arnoux |
< Previous
Next >
Nearby theorems |
|
Mirrors > Home > MPE Home > Th. List > Mathboxes > signshlen | Structured version Visualization version GIF version |
Description: Length of 𝐻, corresponding to the word 𝐹 multiplied by (𝑥 − 𝐶). (Contributed by Thierry Arnoux, 14-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)) |
signs.h | ⊢ 𝐻 = ((〈“0”〉 ++ 𝐹) ∘𝑓 − ((𝐹 ++ 〈“0”〉)∘𝑓/𝑐 · 𝐶)) |
Ref | Expression |
---|---|
signshlen | ⊢ ((𝐹 ∈ Word ℝ ∧ 𝐶 ∈ ℝ+) → (♯‘𝐻) = ((♯‘𝐹) + 1)) |
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 | signs.h | . . . 4 ⊢ 𝐻 = ((〈“0”〉 ++ 𝐹) ∘𝑓 − ((𝐹 ++ 〈“0”〉)∘𝑓/𝑐 · 𝐶)) | |
6 | 1, 2, 3, 4, 5 | signshf 31275 | . . 3 ⊢ ((𝐹 ∈ Word ℝ ∧ 𝐶 ∈ ℝ+) → 𝐻:(0..^((♯‘𝐹) + 1))⟶ℝ) |
7 | ffn 6293 | . . 3 ⊢ (𝐻:(0..^((♯‘𝐹) + 1))⟶ℝ → 𝐻 Fn (0..^((♯‘𝐹) + 1))) | |
8 | hashfn 13485 | . . 3 ⊢ (𝐻 Fn (0..^((♯‘𝐹) + 1)) → (♯‘𝐻) = (♯‘(0..^((♯‘𝐹) + 1)))) | |
9 | 6, 7, 8 | 3syl 18 | . 2 ⊢ ((𝐹 ∈ Word ℝ ∧ 𝐶 ∈ ℝ+) → (♯‘𝐻) = (♯‘(0..^((♯‘𝐹) + 1)))) |
10 | lencl 13627 | . . . . 5 ⊢ (𝐹 ∈ Word ℝ → (♯‘𝐹) ∈ ℕ0) | |
11 | 10 | adantr 474 | . . . 4 ⊢ ((𝐹 ∈ Word ℝ ∧ 𝐶 ∈ ℝ+) → (♯‘𝐹) ∈ ℕ0) |
12 | 1nn0 11665 | . . . . 5 ⊢ 1 ∈ ℕ0 | |
13 | 12 | a1i 11 | . . . 4 ⊢ ((𝐹 ∈ Word ℝ ∧ 𝐶 ∈ ℝ+) → 1 ∈ ℕ0) |
14 | 11, 13 | nn0addcld 11711 | . . 3 ⊢ ((𝐹 ∈ Word ℝ ∧ 𝐶 ∈ ℝ+) → ((♯‘𝐹) + 1) ∈ ℕ0) |
15 | hashfzo0 13537 | . . 3 ⊢ (((♯‘𝐹) + 1) ∈ ℕ0 → (♯‘(0..^((♯‘𝐹) + 1))) = ((♯‘𝐹) + 1)) | |
16 | 14, 15 | syl 17 | . 2 ⊢ ((𝐹 ∈ Word ℝ ∧ 𝐶 ∈ ℝ+) → (♯‘(0..^((♯‘𝐹) + 1))) = ((♯‘𝐹) + 1)) |
17 | 9, 16 | eqtrd 2814 | 1 ⊢ ((𝐹 ∈ Word ℝ ∧ 𝐶 ∈ ℝ+) → (♯‘𝐻) = ((♯‘𝐹) + 1)) |
Colors of variables: wff setvar class |
Syntax hints: → wi 4 ∧ wa 386 = wceq 1601 ∈ wcel 2107 ≠ wne 2969 ifcif 4307 {cpr 4400 {ctp 4402 〈cop 4404 ↦ cmpt 4967 Fn wfn 6132 ⟶wf 6133 ‘cfv 6137 (class class class)co 6924 ↦ cmpt2 6926 ∘𝑓 cof 7174 ℝcr 10273 0cc0 10274 1c1 10275 + caddc 10277 · cmul 10279 − cmin 10608 -cneg 10609 ℕ0cn0 11647 ℝ+crp 12142 ...cfz 12648 ..^cfzo 12789 ♯chash 13441 Word cword 13605 ++ cconcat 13666 〈“cs1 13691 sgncsgn 14239 Σcsu 14833 ndxcnx 16263 Basecbs 16266 +gcplusg 16349 Σg cgsu 16498 ∘𝑓/𝑐cofc 30763 |
This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1839 ax-4 1853 ax-5 1953 ax-6 2021 ax-7 2055 ax-8 2109 ax-9 2116 ax-10 2135 ax-11 2150 ax-12 2163 ax-13 2334 ax-ext 2754 ax-rep 5008 ax-sep 5019 ax-nul 5027 ax-pow 5079 ax-pr 5140 ax-un 7228 ax-cnex 10330 ax-resscn 10331 ax-1cn 10332 ax-icn 10333 ax-addcl 10334 ax-addrcl 10335 ax-mulcl 10336 ax-mulrcl 10337 ax-mulcom 10338 ax-addass 10339 ax-mulass 10340 ax-distr 10341 ax-i2m1 10342 ax-1ne0 10343 ax-1rid 10344 ax-rnegex 10345 ax-rrecex 10346 ax-cnre 10347 ax-pre-lttri 10348 ax-pre-lttrn 10349 ax-pre-ltadd 10350 ax-pre-mulgt0 10351 |
This theorem depends on definitions: df-bi 199 df-an 387 df-or 837 df-3or 1072 df-3an 1073 df-tru 1605 df-ex 1824 df-nf 1828 df-sb 2012 df-mo 2551 df-eu 2587 df-clab 2764 df-cleq 2770 df-clel 2774 df-nfc 2921 df-ne 2970 df-nel 3076 df-ral 3095 df-rex 3096 df-reu 3097 df-rab 3099 df-v 3400 df-sbc 3653 df-csb 3752 df-dif 3795 df-un 3797 df-in 3799 df-ss 3806 df-pss 3808 df-nul 4142 df-if 4308 df-pw 4381 df-sn 4399 df-pr 4401 df-tp 4403 df-op 4405 df-uni 4674 df-int 4713 df-iun 4757 df-br 4889 df-opab 4951 df-mpt 4968 df-tr 4990 df-id 5263 df-eprel 5268 df-po 5276 df-so 5277 df-fr 5316 df-we 5318 df-xp 5363 df-rel 5364 df-cnv 5365 df-co 5366 df-dm 5367 df-rn 5368 df-res 5369 df-ima 5370 df-pred 5935 df-ord 5981 df-on 5982 df-lim 5983 df-suc 5984 df-iota 6101 df-fun 6139 df-fn 6140 df-f 6141 df-f1 6142 df-fo 6143 df-f1o 6144 df-fv 6145 df-riota 6885 df-ov 6927 df-oprab 6928 df-mpt2 6929 df-of 7176 df-om 7346 df-1st 7447 df-2nd 7448 df-wrecs 7691 df-recs 7753 df-rdg 7791 df-1o 7845 df-oadd 7849 df-er 8028 df-en 8244 df-dom 8245 df-sdom 8246 df-fin 8247 df-card 9100 df-pnf 10415 df-mnf 10416 df-xr 10417 df-ltxr 10418 df-le 10419 df-sub 10610 df-neg 10611 df-nn 11380 df-n0 11648 df-z 11734 df-uz 11998 df-rp 12143 df-fz 12649 df-fzo 12790 df-hash 13442 df-word 13606 df-concat 13667 df-s1 13692 df-ofc 30764 |
This theorem is referenced by: signshnz 31278 |
Copyright terms: Public domain | W3C validator |