Step | Hyp | Ref
| Expression |
1 | | repswlen 14417 |
. . . . . 6
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) →
(♯‘(𝑆 repeatS
𝑁)) = 𝑁) |
2 | 1 | 3adant3 1130 |
. . . . 5
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ (♯‘(𝑆
repeatS 𝑁)) = 𝑁) |
3 | | repswlen 14417 |
. . . . . 6
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑀 ∈ ℕ0) →
(♯‘(𝑆 repeatS
𝑀)) = 𝑀) |
4 | 3 | 3adant2 1129 |
. . . . 5
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ (♯‘(𝑆
repeatS 𝑀)) = 𝑀) |
5 | 2, 4 | oveq12d 7273 |
. . . 4
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ ((♯‘(𝑆
repeatS 𝑁)) +
(♯‘(𝑆 repeatS
𝑀))) = (𝑁 + 𝑀)) |
6 | 5 | oveq2d 7271 |
. . 3
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ (0..^((♯‘(𝑆 repeatS 𝑁)) + (♯‘(𝑆 repeatS 𝑀)))) = (0..^(𝑁 + 𝑀))) |
7 | | simp1 1134 |
. . . . . . . 8
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ 𝑆 ∈ 𝑉) |
8 | 7 | adantr 480 |
. . . . . . 7
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
∧ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁)))) → 𝑆 ∈ 𝑉) |
9 | | simpl2 1190 |
. . . . . . 7
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
∧ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁)))) → 𝑁 ∈
ℕ0) |
10 | 2 | oveq2d 7271 |
. . . . . . . . 9
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ (0..^(♯‘(𝑆 repeatS 𝑁))) = (0..^𝑁)) |
11 | 10 | eleq2d 2824 |
. . . . . . . 8
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ (𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁))) ↔ 𝑥 ∈ (0..^𝑁))) |
12 | 11 | biimpa 476 |
. . . . . . 7
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
∧ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁)))) → 𝑥 ∈ (0..^𝑁)) |
13 | 8, 9, 12 | 3jca 1126 |
. . . . . 6
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
∧ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁)))) → (𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑥 ∈ (0..^𝑁))) |
14 | 13 | adantlr 711 |
. . . . 5
⊢ ((((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
∧ 𝑥 ∈
(0..^((♯‘(𝑆
repeatS 𝑁)) +
(♯‘(𝑆 repeatS
𝑀))))) ∧ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁)))) → (𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑥 ∈ (0..^𝑁))) |
15 | | repswsymb 14415 |
. . . . 5
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑥 ∈ (0..^𝑁)) → ((𝑆 repeatS 𝑁)‘𝑥) = 𝑆) |
16 | 14, 15 | syl 17 |
. . . 4
⊢ ((((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
∧ 𝑥 ∈
(0..^((♯‘(𝑆
repeatS 𝑁)) +
(♯‘(𝑆 repeatS
𝑀))))) ∧ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁)))) →
((𝑆 repeatS 𝑁)‘𝑥) = 𝑆) |
17 | 7 | ad2antrr 722 |
. . . . 5
⊢ ((((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
∧ 𝑥 ∈
(0..^((♯‘(𝑆
repeatS 𝑁)) +
(♯‘(𝑆 repeatS
𝑀))))) ∧ ¬ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁)))) → 𝑆 ∈ 𝑉) |
18 | | simpll3 1212 |
. . . . 5
⊢ ((((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
∧ 𝑥 ∈
(0..^((♯‘(𝑆
repeatS 𝑁)) +
(♯‘(𝑆 repeatS
𝑀))))) ∧ ¬ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁)))) → 𝑀 ∈
ℕ0) |
19 | 2, 4 | jca 511 |
. . . . . . 7
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ ((♯‘(𝑆
repeatS 𝑁)) = 𝑁 ∧ (♯‘(𝑆 repeatS 𝑀)) = 𝑀)) |
20 | | simpr 484 |
. . . . . . . . . . . 12
⊢ (((𝑁 ∈ ℕ0
∧ 𝑀 ∈
ℕ0) ∧ 𝑥 ∈ (0..^(𝑁 + 𝑀))) → 𝑥 ∈ (0..^(𝑁 + 𝑀))) |
21 | 20 | anim1i 614 |
. . . . . . . . . . 11
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑀 ∈
ℕ0) ∧ 𝑥 ∈ (0..^(𝑁 + 𝑀))) ∧ ¬ 𝑥 ∈ (0..^𝑁)) → (𝑥 ∈ (0..^(𝑁 + 𝑀)) ∧ ¬ 𝑥 ∈ (0..^𝑁))) |
22 | | nn0z 12273 |
. . . . . . . . . . . . 13
⊢ (𝑁 ∈ ℕ0
→ 𝑁 ∈
ℤ) |
23 | | nn0z 12273 |
. . . . . . . . . . . . 13
⊢ (𝑀 ∈ ℕ0
→ 𝑀 ∈
ℤ) |
24 | 22, 23 | anim12i 612 |
. . . . . . . . . . . 12
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈
ℕ0) → (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℤ)) |
25 | 24 | ad2antrr 722 |
. . . . . . . . . . 11
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑀 ∈
ℕ0) ∧ 𝑥 ∈ (0..^(𝑁 + 𝑀))) ∧ ¬ 𝑥 ∈ (0..^𝑁)) → (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℤ)) |
26 | | fzocatel 13379 |
. . . . . . . . . . 11
⊢ (((𝑥 ∈ (0..^(𝑁 + 𝑀)) ∧ ¬ 𝑥 ∈ (0..^𝑁)) ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℤ)) → (𝑥 − 𝑁) ∈ (0..^𝑀)) |
27 | 21, 25, 26 | syl2anc 583 |
. . . . . . . . . 10
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑀 ∈
ℕ0) ∧ 𝑥 ∈ (0..^(𝑁 + 𝑀))) ∧ ¬ 𝑥 ∈ (0..^𝑁)) → (𝑥 − 𝑁) ∈ (0..^𝑀)) |
28 | 27 | exp31 419 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈
ℕ0) → (𝑥 ∈ (0..^(𝑁 + 𝑀)) → (¬ 𝑥 ∈ (0..^𝑁) → (𝑥 − 𝑁) ∈ (0..^𝑀)))) |
29 | 28 | 3adant1 1128 |
. . . . . . . 8
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ (𝑥 ∈
(0..^(𝑁 + 𝑀)) → (¬ 𝑥 ∈ (0..^𝑁) → (𝑥 − 𝑁) ∈ (0..^𝑀)))) |
30 | | oveq12 7264 |
. . . . . . . . . . 11
⊢
(((♯‘(𝑆
repeatS 𝑁)) = 𝑁 ∧ (♯‘(𝑆 repeatS 𝑀)) = 𝑀) → ((♯‘(𝑆 repeatS 𝑁)) + (♯‘(𝑆 repeatS 𝑀))) = (𝑁 + 𝑀)) |
31 | 30 | oveq2d 7271 |
. . . . . . . . . 10
⊢
(((♯‘(𝑆
repeatS 𝑁)) = 𝑁 ∧ (♯‘(𝑆 repeatS 𝑀)) = 𝑀) → (0..^((♯‘(𝑆 repeatS 𝑁)) + (♯‘(𝑆 repeatS 𝑀)))) = (0..^(𝑁 + 𝑀))) |
32 | 31 | eleq2d 2824 |
. . . . . . . . 9
⊢
(((♯‘(𝑆
repeatS 𝑁)) = 𝑁 ∧ (♯‘(𝑆 repeatS 𝑀)) = 𝑀) → (𝑥 ∈ (0..^((♯‘(𝑆 repeatS 𝑁)) + (♯‘(𝑆 repeatS 𝑀)))) ↔ 𝑥 ∈ (0..^(𝑁 + 𝑀)))) |
33 | | oveq2 7263 |
. . . . . . . . . . . . 13
⊢
((♯‘(𝑆
repeatS 𝑁)) = 𝑁 →
(0..^(♯‘(𝑆
repeatS 𝑁))) = (0..^𝑁)) |
34 | 33 | eleq2d 2824 |
. . . . . . . . . . . 12
⊢
((♯‘(𝑆
repeatS 𝑁)) = 𝑁 → (𝑥 ∈ (0..^(♯‘(𝑆 repeatS 𝑁))) ↔ 𝑥 ∈ (0..^𝑁))) |
35 | 34 | notbid 317 |
. . . . . . . . . . 11
⊢
((♯‘(𝑆
repeatS 𝑁)) = 𝑁 → (¬ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁))) ↔ ¬
𝑥 ∈ (0..^𝑁))) |
36 | 35 | adantr 480 |
. . . . . . . . . 10
⊢
(((♯‘(𝑆
repeatS 𝑁)) = 𝑁 ∧ (♯‘(𝑆 repeatS 𝑀)) = 𝑀) → (¬ 𝑥 ∈ (0..^(♯‘(𝑆 repeatS 𝑁))) ↔ ¬ 𝑥 ∈ (0..^𝑁))) |
37 | | oveq2 7263 |
. . . . . . . . . . . 12
⊢
((♯‘(𝑆
repeatS 𝑁)) = 𝑁 → (𝑥 − (♯‘(𝑆 repeatS 𝑁))) = (𝑥 − 𝑁)) |
38 | 37 | eleq1d 2823 |
. . . . . . . . . . 11
⊢
((♯‘(𝑆
repeatS 𝑁)) = 𝑁 → ((𝑥 − (♯‘(𝑆 repeatS 𝑁))) ∈ (0..^𝑀) ↔ (𝑥 − 𝑁) ∈ (0..^𝑀))) |
39 | 38 | adantr 480 |
. . . . . . . . . 10
⊢
(((♯‘(𝑆
repeatS 𝑁)) = 𝑁 ∧ (♯‘(𝑆 repeatS 𝑀)) = 𝑀) → ((𝑥 − (♯‘(𝑆 repeatS 𝑁))) ∈ (0..^𝑀) ↔ (𝑥 − 𝑁) ∈ (0..^𝑀))) |
40 | 36, 39 | imbi12d 344 |
. . . . . . . . 9
⊢
(((♯‘(𝑆
repeatS 𝑁)) = 𝑁 ∧ (♯‘(𝑆 repeatS 𝑀)) = 𝑀) → ((¬ 𝑥 ∈ (0..^(♯‘(𝑆 repeatS 𝑁))) → (𝑥 − (♯‘(𝑆 repeatS 𝑁))) ∈ (0..^𝑀)) ↔ (¬ 𝑥 ∈ (0..^𝑁) → (𝑥 − 𝑁) ∈ (0..^𝑀)))) |
41 | 32, 40 | imbi12d 344 |
. . . . . . . 8
⊢
(((♯‘(𝑆
repeatS 𝑁)) = 𝑁 ∧ (♯‘(𝑆 repeatS 𝑀)) = 𝑀) → ((𝑥 ∈ (0..^((♯‘(𝑆 repeatS 𝑁)) + (♯‘(𝑆 repeatS 𝑀)))) → (¬ 𝑥 ∈ (0..^(♯‘(𝑆 repeatS 𝑁))) → (𝑥 − (♯‘(𝑆 repeatS 𝑁))) ∈ (0..^𝑀))) ↔ (𝑥 ∈ (0..^(𝑁 + 𝑀)) → (¬ 𝑥 ∈ (0..^𝑁) → (𝑥 − 𝑁) ∈ (0..^𝑀))))) |
42 | 29, 41 | syl5ibr 245 |
. . . . . . 7
⊢
(((♯‘(𝑆
repeatS 𝑁)) = 𝑁 ∧ (♯‘(𝑆 repeatS 𝑀)) = 𝑀) → ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ (𝑥 ∈
(0..^((♯‘(𝑆
repeatS 𝑁)) +
(♯‘(𝑆 repeatS
𝑀)))) → (¬ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁))) → (𝑥 − (♯‘(𝑆 repeatS 𝑁))) ∈ (0..^𝑀))))) |
43 | 19, 42 | mpcom 38 |
. . . . . 6
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ (𝑥 ∈
(0..^((♯‘(𝑆
repeatS 𝑁)) +
(♯‘(𝑆 repeatS
𝑀)))) → (¬ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁))) → (𝑥 − (♯‘(𝑆 repeatS 𝑁))) ∈ (0..^𝑀)))) |
44 | 43 | imp31 417 |
. . . . 5
⊢ ((((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
∧ 𝑥 ∈
(0..^((♯‘(𝑆
repeatS 𝑁)) +
(♯‘(𝑆 repeatS
𝑀))))) ∧ ¬ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁)))) → (𝑥 − (♯‘(𝑆 repeatS 𝑁))) ∈ (0..^𝑀)) |
45 | | repswsymb 14415 |
. . . . 5
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑀 ∈ ℕ0 ∧ (𝑥 − (♯‘(𝑆 repeatS 𝑁))) ∈ (0..^𝑀)) → ((𝑆 repeatS 𝑀)‘(𝑥 − (♯‘(𝑆 repeatS 𝑁)))) = 𝑆) |
46 | 17, 18, 44, 45 | syl3anc 1369 |
. . . 4
⊢ ((((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
∧ 𝑥 ∈
(0..^((♯‘(𝑆
repeatS 𝑁)) +
(♯‘(𝑆 repeatS
𝑀))))) ∧ ¬ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁)))) →
((𝑆 repeatS 𝑀)‘(𝑥 − (♯‘(𝑆 repeatS 𝑁)))) = 𝑆) |
47 | 16, 46 | ifeqda 4492 |
. . 3
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
∧ 𝑥 ∈
(0..^((♯‘(𝑆
repeatS 𝑁)) +
(♯‘(𝑆 repeatS
𝑀))))) → if(𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁))), ((𝑆 repeatS 𝑁)‘𝑥), ((𝑆 repeatS 𝑀)‘(𝑥 − (♯‘(𝑆 repeatS 𝑁))))) = 𝑆) |
48 | 6, 47 | mpteq12dva 5159 |
. 2
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ (𝑥 ∈
(0..^((♯‘(𝑆
repeatS 𝑁)) +
(♯‘(𝑆 repeatS
𝑀)))) ↦ if(𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁))), ((𝑆 repeatS 𝑁)‘𝑥), ((𝑆 repeatS 𝑀)‘(𝑥 − (♯‘(𝑆 repeatS 𝑁)))))) = (𝑥 ∈ (0..^(𝑁 + 𝑀)) ↦ 𝑆)) |
49 | | ovex 7288 |
. . . 4
⊢ (𝑆 repeatS 𝑁) ∈ V |
50 | | ovex 7288 |
. . . 4
⊢ (𝑆 repeatS 𝑀) ∈ V |
51 | 49, 50 | pm3.2i 470 |
. . 3
⊢ ((𝑆 repeatS 𝑁) ∈ V ∧ (𝑆 repeatS 𝑀) ∈ V) |
52 | | ccatfval 14204 |
. . 3
⊢ (((𝑆 repeatS 𝑁) ∈ V ∧ (𝑆 repeatS 𝑀) ∈ V) → ((𝑆 repeatS 𝑁) ++ (𝑆 repeatS 𝑀)) = (𝑥 ∈ (0..^((♯‘(𝑆 repeatS 𝑁)) + (♯‘(𝑆 repeatS 𝑀)))) ↦ if(𝑥 ∈ (0..^(♯‘(𝑆 repeatS 𝑁))), ((𝑆 repeatS 𝑁)‘𝑥), ((𝑆 repeatS 𝑀)‘(𝑥 − (♯‘(𝑆 repeatS 𝑁))))))) |
53 | 51, 52 | mp1i 13 |
. 2
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ ((𝑆 repeatS 𝑁) ++ (𝑆 repeatS 𝑀)) = (𝑥 ∈ (0..^((♯‘(𝑆 repeatS 𝑁)) + (♯‘(𝑆 repeatS 𝑀)))) ↦ if(𝑥 ∈ (0..^(♯‘(𝑆 repeatS 𝑁))), ((𝑆 repeatS 𝑁)‘𝑥), ((𝑆 repeatS 𝑀)‘(𝑥 − (♯‘(𝑆 repeatS 𝑁))))))) |
54 | | nn0addcl 12198 |
. . . 4
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈
ℕ0) → (𝑁 + 𝑀) ∈
ℕ0) |
55 | 54 | 3adant1 1128 |
. . 3
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ (𝑁 + 𝑀) ∈
ℕ0) |
56 | | reps 14411 |
. . 3
⊢ ((𝑆 ∈ 𝑉 ∧ (𝑁 + 𝑀) ∈ ℕ0) → (𝑆 repeatS (𝑁 + 𝑀)) = (𝑥 ∈ (0..^(𝑁 + 𝑀)) ↦ 𝑆)) |
57 | 7, 55, 56 | syl2anc 583 |
. 2
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ (𝑆 repeatS (𝑁 + 𝑀)) = (𝑥 ∈ (0..^(𝑁 + 𝑀)) ↦ 𝑆)) |
58 | 48, 53, 57 | 3eqtr4d 2788 |
1
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ ((𝑆 repeatS 𝑁) ++ (𝑆 repeatS 𝑀)) = (𝑆 repeatS (𝑁 + 𝑀))) |