Step | Hyp | Ref
| Expression |
1 | | ccatws1cl 14321 |
. . . . 5
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → (𝐴 ++ 〈“𝐵”〉) ∈ Word 𝑋) |
2 | | wrdf 14222 |
. . . . 5
⊢ ((𝐴 ++ 〈“𝐵”〉) ∈ Word 𝑋 → (𝐴 ++ 〈“𝐵”〉):(0..^(♯‘(𝐴 ++ 〈“𝐵”〉)))⟶𝑋) |
3 | 1, 2 | syl 17 |
. . . 4
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → (𝐴 ++ 〈“𝐵”〉):(0..^(♯‘(𝐴 ++ 〈“𝐵”〉)))⟶𝑋) |
4 | | ccatws1len 14325 |
. . . . . . . 8
⊢ (𝐴 ∈ Word 𝑋 → (♯‘(𝐴 ++ 〈“𝐵”〉)) = ((♯‘𝐴) + 1)) |
5 | 4 | oveq2d 7291 |
. . . . . . 7
⊢ (𝐴 ∈ Word 𝑋 → (0..^(♯‘(𝐴 ++ 〈“𝐵”〉))) =
(0..^((♯‘𝐴) +
1))) |
6 | | lencl 14236 |
. . . . . . . . 9
⊢ (𝐴 ∈ Word 𝑋 → (♯‘𝐴) ∈
ℕ0) |
7 | | nn0uz 12620 |
. . . . . . . . 9
⊢
ℕ0 = (ℤ≥‘0) |
8 | 6, 7 | eleqtrdi 2849 |
. . . . . . . 8
⊢ (𝐴 ∈ Word 𝑋 → (♯‘𝐴) ∈
(ℤ≥‘0)) |
9 | | fzosplitsn 13495 |
. . . . . . . 8
⊢
((♯‘𝐴)
∈ (ℤ≥‘0) → (0..^((♯‘𝐴) + 1)) =
((0..^(♯‘𝐴))
∪ {(♯‘𝐴)})) |
10 | 8, 9 | syl 17 |
. . . . . . 7
⊢ (𝐴 ∈ Word 𝑋 → (0..^((♯‘𝐴) + 1)) =
((0..^(♯‘𝐴))
∪ {(♯‘𝐴)})) |
11 | 5, 10 | eqtrd 2778 |
. . . . . 6
⊢ (𝐴 ∈ Word 𝑋 → (0..^(♯‘(𝐴 ++ 〈“𝐵”〉))) =
((0..^(♯‘𝐴))
∪ {(♯‘𝐴)})) |
12 | 11 | adantr 481 |
. . . . 5
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → (0..^(♯‘(𝐴 ++ 〈“𝐵”〉))) =
((0..^(♯‘𝐴))
∪ {(♯‘𝐴)})) |
13 | 12 | feq2d 6586 |
. . . 4
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → ((𝐴 ++ 〈“𝐵”〉):(0..^(♯‘(𝐴 ++ 〈“𝐵”〉)))⟶𝑋 ↔ (𝐴 ++ 〈“𝐵”〉):((0..^(♯‘𝐴)) ∪ {(♯‘𝐴)})⟶𝑋)) |
14 | 3, 13 | mpbid 231 |
. . 3
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → (𝐴 ++ 〈“𝐵”〉):((0..^(♯‘𝐴)) ∪ {(♯‘𝐴)})⟶𝑋) |
15 | 14 | ffnd 6601 |
. 2
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → (𝐴 ++ 〈“𝐵”〉) Fn ((0..^(♯‘𝐴)) ∪ {(♯‘𝐴)})) |
16 | | wrdf 14222 |
. . . . 5
⊢ (𝐴 ∈ Word 𝑋 → 𝐴:(0..^(♯‘𝐴))⟶𝑋) |
17 | 16 | adantr 481 |
. . . 4
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → 𝐴:(0..^(♯‘𝐴))⟶𝑋) |
18 | | eqid 2738 |
. . . . . 6
⊢
{〈(♯‘𝐴), 𝐵〉} = {〈(♯‘𝐴), 𝐵〉} |
19 | | fsng 7009 |
. . . . . 6
⊢
(((♯‘𝐴)
∈ ℕ0 ∧ 𝐵 ∈ 𝑋) → ({〈(♯‘𝐴), 𝐵〉}:{(♯‘𝐴)}⟶{𝐵} ↔ {〈(♯‘𝐴), 𝐵〉} = {〈(♯‘𝐴), 𝐵〉})) |
20 | 18, 19 | mpbiri 257 |
. . . . 5
⊢
(((♯‘𝐴)
∈ ℕ0 ∧ 𝐵 ∈ 𝑋) → {〈(♯‘𝐴), 𝐵〉}:{(♯‘𝐴)}⟶{𝐵}) |
21 | 6, 20 | sylan 580 |
. . . 4
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → {〈(♯‘𝐴), 𝐵〉}:{(♯‘𝐴)}⟶{𝐵}) |
22 | | fzodisjsn 13425 |
. . . . 5
⊢
((0..^(♯‘𝐴)) ∩ {(♯‘𝐴)}) = ∅ |
23 | 22 | a1i 11 |
. . . 4
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → ((0..^(♯‘𝐴)) ∩ {(♯‘𝐴)}) = ∅) |
24 | | fun 6636 |
. . . 4
⊢ (((𝐴:(0..^(♯‘𝐴))⟶𝑋 ∧ {〈(♯‘𝐴), 𝐵〉}:{(♯‘𝐴)}⟶{𝐵}) ∧ ((0..^(♯‘𝐴)) ∩ {(♯‘𝐴)}) = ∅) → (𝐴 ∪
{〈(♯‘𝐴),
𝐵〉}):((0..^(♯‘𝐴)) ∪ {(♯‘𝐴)})⟶(𝑋 ∪ {𝐵})) |
25 | 17, 21, 23, 24 | syl21anc 835 |
. . 3
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → (𝐴 ∪ {〈(♯‘𝐴), 𝐵〉}):((0..^(♯‘𝐴)) ∪ {(♯‘𝐴)})⟶(𝑋 ∪ {𝐵})) |
26 | 25 | ffnd 6601 |
. 2
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → (𝐴 ∪ {〈(♯‘𝐴), 𝐵〉}) Fn ((0..^(♯‘𝐴)) ∪ {(♯‘𝐴)})) |
27 | | elun 4083 |
. . 3
⊢ (𝑥 ∈
((0..^(♯‘𝐴))
∪ {(♯‘𝐴)})
↔ (𝑥 ∈
(0..^(♯‘𝐴))
∨ 𝑥 ∈
{(♯‘𝐴)})) |
28 | | ccats1val1 14332 |
. . . . . 6
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝑥 ∈ (0..^(♯‘𝐴))) → ((𝐴 ++ 〈“𝐵”〉)‘𝑥) = (𝐴‘𝑥)) |
29 | 28 | adantlr 712 |
. . . . 5
⊢ (((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) ∧ 𝑥 ∈ (0..^(♯‘𝐴))) → ((𝐴 ++ 〈“𝐵”〉)‘𝑥) = (𝐴‘𝑥)) |
30 | | simpr 485 |
. . . . . . . 8
⊢ (((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) ∧ 𝑥 ∈ (0..^(♯‘𝐴))) → 𝑥 ∈ (0..^(♯‘𝐴))) |
31 | | fzonel 13401 |
. . . . . . . 8
⊢ ¬
(♯‘𝐴) ∈
(0..^(♯‘𝐴)) |
32 | | nelne2 3042 |
. . . . . . . 8
⊢ ((𝑥 ∈
(0..^(♯‘𝐴))
∧ ¬ (♯‘𝐴) ∈ (0..^(♯‘𝐴))) → 𝑥 ≠ (♯‘𝐴)) |
33 | 30, 31, 32 | sylancl 586 |
. . . . . . 7
⊢ (((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) ∧ 𝑥 ∈ (0..^(♯‘𝐴))) → 𝑥 ≠ (♯‘𝐴)) |
34 | 33 | necomd 2999 |
. . . . . 6
⊢ (((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) ∧ 𝑥 ∈ (0..^(♯‘𝐴))) → (♯‘𝐴) ≠ 𝑥) |
35 | | fvunsn 7051 |
. . . . . 6
⊢
((♯‘𝐴)
≠ 𝑥 → ((𝐴 ∪
{〈(♯‘𝐴),
𝐵〉})‘𝑥) = (𝐴‘𝑥)) |
36 | 34, 35 | syl 17 |
. . . . 5
⊢ (((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) ∧ 𝑥 ∈ (0..^(♯‘𝐴))) → ((𝐴 ∪ {〈(♯‘𝐴), 𝐵〉})‘𝑥) = (𝐴‘𝑥)) |
37 | 29, 36 | eqtr4d 2781 |
. . . 4
⊢ (((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) ∧ 𝑥 ∈ (0..^(♯‘𝐴))) → ((𝐴 ++ 〈“𝐵”〉)‘𝑥) = ((𝐴 ∪ {〈(♯‘𝐴), 𝐵〉})‘𝑥)) |
38 | | fvexd 6789 |
. . . . . . . 8
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → (♯‘𝐴) ∈ V) |
39 | | simpr 485 |
. . . . . . . 8
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → 𝐵 ∈ 𝑋) |
40 | 17 | fdmd 6611 |
. . . . . . . . . 10
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → dom 𝐴 = (0..^(♯‘𝐴))) |
41 | 40 | eleq2d 2824 |
. . . . . . . . 9
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → ((♯‘𝐴) ∈ dom 𝐴 ↔ (♯‘𝐴) ∈ (0..^(♯‘𝐴)))) |
42 | 31, 41 | mtbiri 327 |
. . . . . . . 8
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → ¬ (♯‘𝐴) ∈ dom 𝐴) |
43 | | fsnunfv 7059 |
. . . . . . . 8
⊢
(((♯‘𝐴)
∈ V ∧ 𝐵 ∈
𝑋 ∧ ¬
(♯‘𝐴) ∈
dom 𝐴) → ((𝐴 ∪
{〈(♯‘𝐴),
𝐵〉})‘(♯‘𝐴)) = 𝐵) |
44 | 38, 39, 42, 43 | syl3anc 1370 |
. . . . . . 7
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → ((𝐴 ∪ {〈(♯‘𝐴), 𝐵〉})‘(♯‘𝐴)) = 𝐵) |
45 | | simpl 483 |
. . . . . . . . 9
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → 𝐴 ∈ Word 𝑋) |
46 | | s1cl 14307 |
. . . . . . . . . 10
⊢ (𝐵 ∈ 𝑋 → 〈“𝐵”〉 ∈ Word 𝑋) |
47 | 46 | adantl 482 |
. . . . . . . . 9
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → 〈“𝐵”〉 ∈ Word 𝑋) |
48 | | s1len 14311 |
. . . . . . . . . . . 12
⊢
(♯‘〈“𝐵”〉) = 1 |
49 | | 1nn 11984 |
. . . . . . . . . . . 12
⊢ 1 ∈
ℕ |
50 | 48, 49 | eqeltri 2835 |
. . . . . . . . . . 11
⊢
(♯‘〈“𝐵”〉) ∈
ℕ |
51 | | lbfzo0 13427 |
. . . . . . . . . . 11
⊢ (0 ∈
(0..^(♯‘〈“𝐵”〉)) ↔
(♯‘〈“𝐵”〉) ∈
ℕ) |
52 | 50, 51 | mpbir 230 |
. . . . . . . . . 10
⊢ 0 ∈
(0..^(♯‘〈“𝐵”〉)) |
53 | 52 | a1i 11 |
. . . . . . . . 9
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → 0 ∈
(0..^(♯‘〈“𝐵”〉))) |
54 | | ccatval3 14284 |
. . . . . . . . 9
⊢ ((𝐴 ∈ Word 𝑋 ∧ 〈“𝐵”〉 ∈ Word 𝑋 ∧ 0 ∈
(0..^(♯‘〈“𝐵”〉))) → ((𝐴 ++ 〈“𝐵”〉)‘(0 +
(♯‘𝐴))) =
(〈“𝐵”〉‘0)) |
55 | 45, 47, 53, 54 | syl3anc 1370 |
. . . . . . . 8
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → ((𝐴 ++ 〈“𝐵”〉)‘(0 +
(♯‘𝐴))) =
(〈“𝐵”〉‘0)) |
56 | | s1fv 14315 |
. . . . . . . . 9
⊢ (𝐵 ∈ 𝑋 → (〈“𝐵”〉‘0) = 𝐵) |
57 | 56 | adantl 482 |
. . . . . . . 8
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → (〈“𝐵”〉‘0) = 𝐵) |
58 | 55, 57 | eqtrd 2778 |
. . . . . . 7
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → ((𝐴 ++ 〈“𝐵”〉)‘(0 +
(♯‘𝐴))) = 𝐵) |
59 | 6 | adantr 481 |
. . . . . . . . . 10
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → (♯‘𝐴) ∈
ℕ0) |
60 | 59 | nn0cnd 12295 |
. . . . . . . . 9
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → (♯‘𝐴) ∈ ℂ) |
61 | 60 | addid2d 11176 |
. . . . . . . 8
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → (0 + (♯‘𝐴)) = (♯‘𝐴)) |
62 | 61 | fveq2d 6778 |
. . . . . . 7
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → ((𝐴 ++ 〈“𝐵”〉)‘(0 +
(♯‘𝐴))) =
((𝐴 ++ 〈“𝐵”〉)‘(♯‘𝐴))) |
63 | 44, 58, 62 | 3eqtr2rd 2785 |
. . . . . 6
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → ((𝐴 ++ 〈“𝐵”〉)‘(♯‘𝐴)) = ((𝐴 ∪ {〈(♯‘𝐴), 𝐵〉})‘(♯‘𝐴))) |
64 | | elsni 4578 |
. . . . . . . 8
⊢ (𝑥 ∈ {(♯‘𝐴)} → 𝑥 = (♯‘𝐴)) |
65 | 64 | fveq2d 6778 |
. . . . . . 7
⊢ (𝑥 ∈ {(♯‘𝐴)} → ((𝐴 ++ 〈“𝐵”〉)‘𝑥) = ((𝐴 ++ 〈“𝐵”〉)‘(♯‘𝐴))) |
66 | 64 | fveq2d 6778 |
. . . . . . 7
⊢ (𝑥 ∈ {(♯‘𝐴)} → ((𝐴 ∪ {〈(♯‘𝐴), 𝐵〉})‘𝑥) = ((𝐴 ∪ {〈(♯‘𝐴), 𝐵〉})‘(♯‘𝐴))) |
67 | 65, 66 | eqeq12d 2754 |
. . . . . 6
⊢ (𝑥 ∈ {(♯‘𝐴)} → (((𝐴 ++ 〈“𝐵”〉)‘𝑥) = ((𝐴 ∪ {〈(♯‘𝐴), 𝐵〉})‘𝑥) ↔ ((𝐴 ++ 〈“𝐵”〉)‘(♯‘𝐴)) = ((𝐴 ∪ {〈(♯‘𝐴), 𝐵〉})‘(♯‘𝐴)))) |
68 | 63, 67 | syl5ibrcom 246 |
. . . . 5
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → (𝑥 ∈ {(♯‘𝐴)} → ((𝐴 ++ 〈“𝐵”〉)‘𝑥) = ((𝐴 ∪ {〈(♯‘𝐴), 𝐵〉})‘𝑥))) |
69 | 68 | imp 407 |
. . . 4
⊢ (((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) ∧ 𝑥 ∈ {(♯‘𝐴)}) → ((𝐴 ++ 〈“𝐵”〉)‘𝑥) = ((𝐴 ∪ {〈(♯‘𝐴), 𝐵〉})‘𝑥)) |
70 | 37, 69 | jaodan 955 |
. . 3
⊢ (((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) ∧ (𝑥 ∈ (0..^(♯‘𝐴)) ∨ 𝑥 ∈ {(♯‘𝐴)})) → ((𝐴 ++ 〈“𝐵”〉)‘𝑥) = ((𝐴 ∪ {〈(♯‘𝐴), 𝐵〉})‘𝑥)) |
71 | 27, 70 | sylan2b 594 |
. 2
⊢ (((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) ∧ 𝑥 ∈ ((0..^(♯‘𝐴)) ∪ {(♯‘𝐴)})) → ((𝐴 ++ 〈“𝐵”〉)‘𝑥) = ((𝐴 ∪ {〈(♯‘𝐴), 𝐵〉})‘𝑥)) |
72 | 15, 26, 71 | eqfnfvd 6912 |
1
⊢ ((𝐴 ∈ Word 𝑋 ∧ 𝐵 ∈ 𝑋) → (𝐴 ++ 〈“𝐵”〉) = (𝐴 ∪ {〈(♯‘𝐴), 𝐵〉})) |