Step | Hyp | Ref
| Expression |
1 | | repswlen 14489 |
. . . . . 6
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) →
(♯‘(𝑆 repeatS
𝑁)) = 𝑁) |
2 | 1 | 3adant3 1131 |
. . . . 5
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ (♯‘(𝑆
repeatS 𝑁)) = 𝑁) |
3 | | repswlen 14489 |
. . . . . 6
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑀 ∈ ℕ0) →
(♯‘(𝑆 repeatS
𝑀)) = 𝑀) |
4 | 3 | 3adant2 1130 |
. . . . 5
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ (♯‘(𝑆
repeatS 𝑀)) = 𝑀) |
5 | 2, 4 | oveq12d 7293 |
. . . 4
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ ((♯‘(𝑆
repeatS 𝑁)) +
(♯‘(𝑆 repeatS
𝑀))) = (𝑁 + 𝑀)) |
6 | 5 | oveq2d 7291 |
. . 3
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ (0..^((♯‘(𝑆 repeatS 𝑁)) + (♯‘(𝑆 repeatS 𝑀)))) = (0..^(𝑁 + 𝑀))) |
7 | | simp1 1135 |
. . . . . . . 8
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ 𝑆 ∈ 𝑉) |
8 | 7 | adantr 481 |
. . . . . . 7
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
∧ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁)))) → 𝑆 ∈ 𝑉) |
9 | | simpl2 1191 |
. . . . . . 7
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
∧ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁)))) → 𝑁 ∈
ℕ0) |
10 | 2 | oveq2d 7291 |
. . . . . . . . 9
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ (0..^(♯‘(𝑆 repeatS 𝑁))) = (0..^𝑁)) |
11 | 10 | eleq2d 2824 |
. . . . . . . 8
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ (𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁))) ↔ 𝑥 ∈ (0..^𝑁))) |
12 | 11 | biimpa 477 |
. . . . . . 7
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
∧ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁)))) → 𝑥 ∈ (0..^𝑁)) |
13 | 8, 9, 12 | 3jca 1127 |
. . . . . 6
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
∧ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁)))) → (𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑥 ∈ (0..^𝑁))) |
14 | 13 | adantlr 712 |
. . . . 5
⊢ ((((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
∧ 𝑥 ∈
(0..^((♯‘(𝑆
repeatS 𝑁)) +
(♯‘(𝑆 repeatS
𝑀))))) ∧ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁)))) → (𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑥 ∈ (0..^𝑁))) |
15 | | repswsymb 14487 |
. . . . 5
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑥 ∈ (0..^𝑁)) → ((𝑆 repeatS 𝑁)‘𝑥) = 𝑆) |
16 | 14, 15 | syl 17 |
. . . 4
⊢ ((((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
∧ 𝑥 ∈
(0..^((♯‘(𝑆
repeatS 𝑁)) +
(♯‘(𝑆 repeatS
𝑀))))) ∧ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁)))) →
((𝑆 repeatS 𝑁)‘𝑥) = 𝑆) |
17 | 7 | ad2antrr 723 |
. . . . 5
⊢ ((((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
∧ 𝑥 ∈
(0..^((♯‘(𝑆
repeatS 𝑁)) +
(♯‘(𝑆 repeatS
𝑀))))) ∧ ¬ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁)))) → 𝑆 ∈ 𝑉) |
18 | | simpll3 1213 |
. . . . 5
⊢ ((((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
∧ 𝑥 ∈
(0..^((♯‘(𝑆
repeatS 𝑁)) +
(♯‘(𝑆 repeatS
𝑀))))) ∧ ¬ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁)))) → 𝑀 ∈
ℕ0) |
19 | 2, 4 | jca 512 |
. . . . . . 7
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ ((♯‘(𝑆
repeatS 𝑁)) = 𝑁 ∧ (♯‘(𝑆 repeatS 𝑀)) = 𝑀)) |
20 | | simpr 485 |
. . . . . . . . . . . 12
⊢ (((𝑁 ∈ ℕ0
∧ 𝑀 ∈
ℕ0) ∧ 𝑥 ∈ (0..^(𝑁 + 𝑀))) → 𝑥 ∈ (0..^(𝑁 + 𝑀))) |
21 | 20 | anim1i 615 |
. . . . . . . . . . 11
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑀 ∈
ℕ0) ∧ 𝑥 ∈ (0..^(𝑁 + 𝑀))) ∧ ¬ 𝑥 ∈ (0..^𝑁)) → (𝑥 ∈ (0..^(𝑁 + 𝑀)) ∧ ¬ 𝑥 ∈ (0..^𝑁))) |
22 | | nn0z 12343 |
. . . . . . . . . . . . 13
⊢ (𝑁 ∈ ℕ0
→ 𝑁 ∈
ℤ) |
23 | | nn0z 12343 |
. . . . . . . . . . . . 13
⊢ (𝑀 ∈ ℕ0
→ 𝑀 ∈
ℤ) |
24 | 22, 23 | anim12i 613 |
. . . . . . . . . . . 12
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈
ℕ0) → (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℤ)) |
25 | 24 | ad2antrr 723 |
. . . . . . . . . . 11
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑀 ∈
ℕ0) ∧ 𝑥 ∈ (0..^(𝑁 + 𝑀))) ∧ ¬ 𝑥 ∈ (0..^𝑁)) → (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℤ)) |
26 | | fzocatel 13451 |
. . . . . . . . . . 11
⊢ (((𝑥 ∈ (0..^(𝑁 + 𝑀)) ∧ ¬ 𝑥 ∈ (0..^𝑁)) ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℤ)) → (𝑥 − 𝑁) ∈ (0..^𝑀)) |
27 | 21, 25, 26 | syl2anc 584 |
. . . . . . . . . 10
⊢ ((((𝑁 ∈ ℕ0
∧ 𝑀 ∈
ℕ0) ∧ 𝑥 ∈ (0..^(𝑁 + 𝑀))) ∧ ¬ 𝑥 ∈ (0..^𝑁)) → (𝑥 − 𝑁) ∈ (0..^𝑀)) |
28 | 27 | exp31 420 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈
ℕ0) → (𝑥 ∈ (0..^(𝑁 + 𝑀)) → (¬ 𝑥 ∈ (0..^𝑁) → (𝑥 − 𝑁) ∈ (0..^𝑀)))) |
29 | 28 | 3adant1 1129 |
. . . . . . . 8
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ (𝑥 ∈
(0..^(𝑁 + 𝑀)) → (¬ 𝑥 ∈ (0..^𝑁) → (𝑥 − 𝑁) ∈ (0..^𝑀)))) |
30 | | oveq12 7284 |
. . . . . . . . . . 11
⊢
(((♯‘(𝑆
repeatS 𝑁)) = 𝑁 ∧ (♯‘(𝑆 repeatS 𝑀)) = 𝑀) → ((♯‘(𝑆 repeatS 𝑁)) + (♯‘(𝑆 repeatS 𝑀))) = (𝑁 + 𝑀)) |
31 | 30 | oveq2d 7291 |
. . . . . . . . . 10
⊢
(((♯‘(𝑆
repeatS 𝑁)) = 𝑁 ∧ (♯‘(𝑆 repeatS 𝑀)) = 𝑀) → (0..^((♯‘(𝑆 repeatS 𝑁)) + (♯‘(𝑆 repeatS 𝑀)))) = (0..^(𝑁 + 𝑀))) |
32 | 31 | eleq2d 2824 |
. . . . . . . . 9
⊢
(((♯‘(𝑆
repeatS 𝑁)) = 𝑁 ∧ (♯‘(𝑆 repeatS 𝑀)) = 𝑀) → (𝑥 ∈ (0..^((♯‘(𝑆 repeatS 𝑁)) + (♯‘(𝑆 repeatS 𝑀)))) ↔ 𝑥 ∈ (0..^(𝑁 + 𝑀)))) |
33 | | oveq2 7283 |
. . . . . . . . . . . . 13
⊢
((♯‘(𝑆
repeatS 𝑁)) = 𝑁 →
(0..^(♯‘(𝑆
repeatS 𝑁))) = (0..^𝑁)) |
34 | 33 | eleq2d 2824 |
. . . . . . . . . . . 12
⊢
((♯‘(𝑆
repeatS 𝑁)) = 𝑁 → (𝑥 ∈ (0..^(♯‘(𝑆 repeatS 𝑁))) ↔ 𝑥 ∈ (0..^𝑁))) |
35 | 34 | notbid 318 |
. . . . . . . . . . 11
⊢
((♯‘(𝑆
repeatS 𝑁)) = 𝑁 → (¬ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁))) ↔ ¬
𝑥 ∈ (0..^𝑁))) |
36 | 35 | adantr 481 |
. . . . . . . . . 10
⊢
(((♯‘(𝑆
repeatS 𝑁)) = 𝑁 ∧ (♯‘(𝑆 repeatS 𝑀)) = 𝑀) → (¬ 𝑥 ∈ (0..^(♯‘(𝑆 repeatS 𝑁))) ↔ ¬ 𝑥 ∈ (0..^𝑁))) |
37 | | oveq2 7283 |
. . . . . . . . . . . 12
⊢
((♯‘(𝑆
repeatS 𝑁)) = 𝑁 → (𝑥 − (♯‘(𝑆 repeatS 𝑁))) = (𝑥 − 𝑁)) |
38 | 37 | eleq1d 2823 |
. . . . . . . . . . 11
⊢
((♯‘(𝑆
repeatS 𝑁)) = 𝑁 → ((𝑥 − (♯‘(𝑆 repeatS 𝑁))) ∈ (0..^𝑀) ↔ (𝑥 − 𝑁) ∈ (0..^𝑀))) |
39 | 38 | adantr 481 |
. . . . . . . . . 10
⊢
(((♯‘(𝑆
repeatS 𝑁)) = 𝑁 ∧ (♯‘(𝑆 repeatS 𝑀)) = 𝑀) → ((𝑥 − (♯‘(𝑆 repeatS 𝑁))) ∈ (0..^𝑀) ↔ (𝑥 − 𝑁) ∈ (0..^𝑀))) |
40 | 36, 39 | imbi12d 345 |
. . . . . . . . 9
⊢
(((♯‘(𝑆
repeatS 𝑁)) = 𝑁 ∧ (♯‘(𝑆 repeatS 𝑀)) = 𝑀) → ((¬ 𝑥 ∈ (0..^(♯‘(𝑆 repeatS 𝑁))) → (𝑥 − (♯‘(𝑆 repeatS 𝑁))) ∈ (0..^𝑀)) ↔ (¬ 𝑥 ∈ (0..^𝑁) → (𝑥 − 𝑁) ∈ (0..^𝑀)))) |
41 | 32, 40 | imbi12d 345 |
. . . . . . . 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 418 |
. . . . 5
⊢ ((((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
∧ 𝑥 ∈
(0..^((♯‘(𝑆
repeatS 𝑁)) +
(♯‘(𝑆 repeatS
𝑀))))) ∧ ¬ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁)))) → (𝑥 − (♯‘(𝑆 repeatS 𝑁))) ∈ (0..^𝑀)) |
45 | | repswsymb 14487 |
. . . . 5
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑀 ∈ ℕ0 ∧ (𝑥 − (♯‘(𝑆 repeatS 𝑁))) ∈ (0..^𝑀)) → ((𝑆 repeatS 𝑀)‘(𝑥 − (♯‘(𝑆 repeatS 𝑁)))) = 𝑆) |
46 | 17, 18, 44, 45 | syl3anc 1370 |
. . . 4
⊢ ((((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
∧ 𝑥 ∈
(0..^((♯‘(𝑆
repeatS 𝑁)) +
(♯‘(𝑆 repeatS
𝑀))))) ∧ ¬ 𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁)))) →
((𝑆 repeatS 𝑀)‘(𝑥 − (♯‘(𝑆 repeatS 𝑁)))) = 𝑆) |
47 | 16, 46 | ifeqda 4495 |
. . 3
⊢ (((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
∧ 𝑥 ∈
(0..^((♯‘(𝑆
repeatS 𝑁)) +
(♯‘(𝑆 repeatS
𝑀))))) → if(𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁))), ((𝑆 repeatS 𝑁)‘𝑥), ((𝑆 repeatS 𝑀)‘(𝑥 − (♯‘(𝑆 repeatS 𝑁))))) = 𝑆) |
48 | 6, 47 | mpteq12dva 5163 |
. 2
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ (𝑥 ∈
(0..^((♯‘(𝑆
repeatS 𝑁)) +
(♯‘(𝑆 repeatS
𝑀)))) ↦ if(𝑥 ∈
(0..^(♯‘(𝑆
repeatS 𝑁))), ((𝑆 repeatS 𝑁)‘𝑥), ((𝑆 repeatS 𝑀)‘(𝑥 − (♯‘(𝑆 repeatS 𝑁)))))) = (𝑥 ∈ (0..^(𝑁 + 𝑀)) ↦ 𝑆)) |
49 | | ovex 7308 |
. . . 4
⊢ (𝑆 repeatS 𝑁) ∈ V |
50 | | ovex 7308 |
. . . 4
⊢ (𝑆 repeatS 𝑀) ∈ V |
51 | 49, 50 | pm3.2i 471 |
. . 3
⊢ ((𝑆 repeatS 𝑁) ∈ V ∧ (𝑆 repeatS 𝑀) ∈ V) |
52 | | ccatfval 14276 |
. . 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 12268 |
. . . 4
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈
ℕ0) → (𝑁 + 𝑀) ∈
ℕ0) |
55 | 54 | 3adant1 1129 |
. . 3
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ (𝑁 + 𝑀) ∈
ℕ0) |
56 | | reps 14483 |
. . 3
⊢ ((𝑆 ∈ 𝑉 ∧ (𝑁 + 𝑀) ∈ ℕ0) → (𝑆 repeatS (𝑁 + 𝑀)) = (𝑥 ∈ (0..^(𝑁 + 𝑀)) ↦ 𝑆)) |
57 | 7, 55, 56 | syl2anc 584 |
. 2
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ (𝑆 repeatS (𝑁 + 𝑀)) = (𝑥 ∈ (0..^(𝑁 + 𝑀)) ↦ 𝑆)) |
58 | 48, 53, 57 | 3eqtr4d 2788 |
1
⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑀 ∈ ℕ0)
→ ((𝑆 repeatS 𝑁) ++ (𝑆 repeatS 𝑀)) = (𝑆 repeatS (𝑁 + 𝑀))) |