| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > ccatvalfn | Structured version Visualization version GIF version | ||
| Description: The concatenation of two words is a function over the half-open integer range having the sum of the lengths of the word as length. (Contributed by Alexander van der Vekens, 30-Mar-2018.) |
| Ref | Expression |
|---|---|
| ccatvalfn | ⊢ ((𝐴 ∈ Word 𝑉 ∧ 𝐵 ∈ Word 𝑉) → (𝐴 ++ 𝐵) Fn (0..^((♯‘𝐴) + (♯‘𝐵)))) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | ccatfval 14544 | . 2 ⊢ ((𝐴 ∈ Word 𝑉 ∧ 𝐵 ∈ Word 𝑉) → (𝐴 ++ 𝐵) = (𝑥 ∈ (0..^((♯‘𝐴) + (♯‘𝐵))) ↦ if(𝑥 ∈ (0..^(♯‘𝐴)), (𝐴‘𝑥), (𝐵‘(𝑥 − (♯‘𝐴)))))) | |
| 2 | fvex 6873 | . . . . 5 ⊢ (𝐴‘𝑥) ∈ V | |
| 3 | fvex 6873 | . . . . 5 ⊢ (𝐵‘(𝑥 − (♯‘𝐴))) ∈ V | |
| 4 | 2, 3 | ifex 4541 | . . . 4 ⊢ if(𝑥 ∈ (0..^(♯‘𝐴)), (𝐴‘𝑥), (𝐵‘(𝑥 − (♯‘𝐴)))) ∈ V |
| 5 | eqid 2730 | . . . 4 ⊢ (𝑥 ∈ (0..^((♯‘𝐴) + (♯‘𝐵))) ↦ if(𝑥 ∈ (0..^(♯‘𝐴)), (𝐴‘𝑥), (𝐵‘(𝑥 − (♯‘𝐴))))) = (𝑥 ∈ (0..^((♯‘𝐴) + (♯‘𝐵))) ↦ if(𝑥 ∈ (0..^(♯‘𝐴)), (𝐴‘𝑥), (𝐵‘(𝑥 − (♯‘𝐴))))) | |
| 6 | 4, 5 | fnmpti 6663 | . . 3 ⊢ (𝑥 ∈ (0..^((♯‘𝐴) + (♯‘𝐵))) ↦ if(𝑥 ∈ (0..^(♯‘𝐴)), (𝐴‘𝑥), (𝐵‘(𝑥 − (♯‘𝐴))))) Fn (0..^((♯‘𝐴) + (♯‘𝐵))) |
| 7 | fneq1 6611 | . . 3 ⊢ ((𝐴 ++ 𝐵) = (𝑥 ∈ (0..^((♯‘𝐴) + (♯‘𝐵))) ↦ if(𝑥 ∈ (0..^(♯‘𝐴)), (𝐴‘𝑥), (𝐵‘(𝑥 − (♯‘𝐴))))) → ((𝐴 ++ 𝐵) Fn (0..^((♯‘𝐴) + (♯‘𝐵))) ↔ (𝑥 ∈ (0..^((♯‘𝐴) + (♯‘𝐵))) ↦ if(𝑥 ∈ (0..^(♯‘𝐴)), (𝐴‘𝑥), (𝐵‘(𝑥 − (♯‘𝐴))))) Fn (0..^((♯‘𝐴) + (♯‘𝐵))))) | |
| 8 | 6, 7 | mpbiri 258 | . 2 ⊢ ((𝐴 ++ 𝐵) = (𝑥 ∈ (0..^((♯‘𝐴) + (♯‘𝐵))) ↦ if(𝑥 ∈ (0..^(♯‘𝐴)), (𝐴‘𝑥), (𝐵‘(𝑥 − (♯‘𝐴))))) → (𝐴 ++ 𝐵) Fn (0..^((♯‘𝐴) + (♯‘𝐵)))) |
| 9 | 1, 8 | syl 17 | 1 ⊢ ((𝐴 ∈ Word 𝑉 ∧ 𝐵 ∈ Word 𝑉) → (𝐴 ++ 𝐵) Fn (0..^((♯‘𝐴) + (♯‘𝐵)))) |
| Colors of variables: wff setvar class |
| Syntax hints: → wi 4 ∧ wa 395 = wceq 1540 ∈ wcel 2109 ifcif 4490 ↦ cmpt 5190 Fn wfn 6508 ‘cfv 6513 (class class class)co 7389 0cc0 11074 + caddc 11077 − cmin 11411 ..^cfzo 13621 ♯chash 14301 Word cword 14484 ++ cconcat 14541 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1795 ax-4 1809 ax-5 1910 ax-6 1967 ax-7 2008 ax-8 2111 ax-9 2119 ax-10 2142 ax-11 2158 ax-12 2178 ax-ext 2702 ax-rep 5236 ax-sep 5253 ax-nul 5263 ax-pr 5389 |
| This theorem depends on definitions: df-bi 207 df-an 396 df-or 848 df-3an 1088 df-tru 1543 df-fal 1553 df-ex 1780 df-nf 1784 df-sb 2066 df-mo 2534 df-eu 2563 df-clab 2709 df-cleq 2722 df-clel 2804 df-nfc 2879 df-ne 2927 df-ral 3046 df-rex 3055 df-reu 3357 df-rab 3409 df-v 3452 df-sbc 3756 df-csb 3865 df-dif 3919 df-un 3921 df-in 3923 df-ss 3933 df-nul 4299 df-if 4491 df-sn 4592 df-pr 4594 df-op 4598 df-uni 4874 df-iun 4959 df-br 5110 df-opab 5172 df-mpt 5191 df-id 5535 df-xp 5646 df-rel 5647 df-cnv 5648 df-co 5649 df-dm 5650 df-rn 5651 df-res 5652 df-ima 5653 df-iota 6466 df-fun 6515 df-fn 6516 df-f 6517 df-f1 6518 df-fo 6519 df-f1o 6520 df-fv 6521 df-ov 7392 df-oprab 7393 df-mpo 7394 df-concat 14542 |
| This theorem is referenced by: ccatlid 14557 ccatrid 14558 ccatrn 14560 pfxccat1 14673 pfxccatin12 14704 frlmvscadiccat 42487 |
| Copyright terms: Public domain | W3C validator |