Step | Hyp | Ref
| Expression |
1 | | modfsummod.2 |
. 2
⊢ (𝜑 → ∀𝑘 ∈ 𝐴 𝐵 ∈ ℤ) |
2 | | modfsummod.n |
. 2
⊢ (𝜑 → 𝑁 ∈ ℕ) |
3 | | modfsummod.1 |
. . 3
⊢ (𝜑 → 𝐴 ∈ Fin) |
4 | | raleq 3342 |
. . . . . 6
⊢ (𝑥 = ∅ → (∀𝑘 ∈ 𝑥 𝐵 ∈ ℤ ↔ ∀𝑘 ∈ ∅ 𝐵 ∈
ℤ)) |
5 | 4 | anbi1d 630 |
. . . . 5
⊢ (𝑥 = ∅ →
((∀𝑘 ∈ 𝑥 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) ↔ (∀𝑘 ∈ ∅ 𝐵 ∈ ℤ ∧ 𝑁 ∈
ℕ))) |
6 | | sumeq1 15400 |
. . . . . . 7
⊢ (𝑥 = ∅ → Σ𝑘 ∈ 𝑥 𝐵 = Σ𝑘 ∈ ∅ 𝐵) |
7 | 6 | oveq1d 7290 |
. . . . . 6
⊢ (𝑥 = ∅ → (Σ𝑘 ∈ 𝑥 𝐵 mod 𝑁) = (Σ𝑘 ∈ ∅ 𝐵 mod 𝑁)) |
8 | | sumeq1 15400 |
. . . . . . 7
⊢ (𝑥 = ∅ → Σ𝑘 ∈ 𝑥 (𝐵 mod 𝑁) = Σ𝑘 ∈ ∅ (𝐵 mod 𝑁)) |
9 | 8 | oveq1d 7290 |
. . . . . 6
⊢ (𝑥 = ∅ → (Σ𝑘 ∈ 𝑥 (𝐵 mod 𝑁) mod 𝑁) = (Σ𝑘 ∈ ∅ (𝐵 mod 𝑁) mod 𝑁)) |
10 | 7, 9 | eqeq12d 2754 |
. . . . 5
⊢ (𝑥 = ∅ → ((Σ𝑘 ∈ 𝑥 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝑥 (𝐵 mod 𝑁) mod 𝑁) ↔ (Σ𝑘 ∈ ∅ 𝐵 mod 𝑁) = (Σ𝑘 ∈ ∅ (𝐵 mod 𝑁) mod 𝑁))) |
11 | 5, 10 | imbi12d 345 |
. . . 4
⊢ (𝑥 = ∅ →
(((∀𝑘 ∈ 𝑥 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (Σ𝑘 ∈ 𝑥 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝑥 (𝐵 mod 𝑁) mod 𝑁)) ↔ ((∀𝑘 ∈ ∅ 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (Σ𝑘 ∈ ∅ 𝐵 mod 𝑁) = (Σ𝑘 ∈ ∅ (𝐵 mod 𝑁) mod 𝑁)))) |
12 | | raleq 3342 |
. . . . . 6
⊢ (𝑥 = 𝑦 → (∀𝑘 ∈ 𝑥 𝐵 ∈ ℤ ↔ ∀𝑘 ∈ 𝑦 𝐵 ∈ ℤ)) |
13 | 12 | anbi1d 630 |
. . . . 5
⊢ (𝑥 = 𝑦 → ((∀𝑘 ∈ 𝑥 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) ↔ (∀𝑘 ∈ 𝑦 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ))) |
14 | | sumeq1 15400 |
. . . . . . 7
⊢ (𝑥 = 𝑦 → Σ𝑘 ∈ 𝑥 𝐵 = Σ𝑘 ∈ 𝑦 𝐵) |
15 | 14 | oveq1d 7290 |
. . . . . 6
⊢ (𝑥 = 𝑦 → (Σ𝑘 ∈ 𝑥 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝑦 𝐵 mod 𝑁)) |
16 | | sumeq1 15400 |
. . . . . . 7
⊢ (𝑥 = 𝑦 → Σ𝑘 ∈ 𝑥 (𝐵 mod 𝑁) = Σ𝑘 ∈ 𝑦 (𝐵 mod 𝑁)) |
17 | 16 | oveq1d 7290 |
. . . . . 6
⊢ (𝑥 = 𝑦 → (Σ𝑘 ∈ 𝑥 (𝐵 mod 𝑁) mod 𝑁) = (Σ𝑘 ∈ 𝑦 (𝐵 mod 𝑁) mod 𝑁)) |
18 | 15, 17 | eqeq12d 2754 |
. . . . 5
⊢ (𝑥 = 𝑦 → ((Σ𝑘 ∈ 𝑥 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝑥 (𝐵 mod 𝑁) mod 𝑁) ↔ (Σ𝑘 ∈ 𝑦 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝑦 (𝐵 mod 𝑁) mod 𝑁))) |
19 | 13, 18 | imbi12d 345 |
. . . 4
⊢ (𝑥 = 𝑦 → (((∀𝑘 ∈ 𝑥 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (Σ𝑘 ∈ 𝑥 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝑥 (𝐵 mod 𝑁) mod 𝑁)) ↔ ((∀𝑘 ∈ 𝑦 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (Σ𝑘 ∈ 𝑦 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝑦 (𝐵 mod 𝑁) mod 𝑁)))) |
20 | | raleq 3342 |
. . . . . 6
⊢ (𝑥 = (𝑦 ∪ {𝑧}) → (∀𝑘 ∈ 𝑥 𝐵 ∈ ℤ ↔ ∀𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 ∈ ℤ)) |
21 | 20 | anbi1d 630 |
. . . . 5
⊢ (𝑥 = (𝑦 ∪ {𝑧}) → ((∀𝑘 ∈ 𝑥 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) ↔ (∀𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ))) |
22 | | sumeq1 15400 |
. . . . . . 7
⊢ (𝑥 = (𝑦 ∪ {𝑧}) → Σ𝑘 ∈ 𝑥 𝐵 = Σ𝑘 ∈ (𝑦 ∪ {𝑧})𝐵) |
23 | 22 | oveq1d 7290 |
. . . . . 6
⊢ (𝑥 = (𝑦 ∪ {𝑧}) → (Σ𝑘 ∈ 𝑥 𝐵 mod 𝑁) = (Σ𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 mod 𝑁)) |
24 | | sumeq1 15400 |
. . . . . . 7
⊢ (𝑥 = (𝑦 ∪ {𝑧}) → Σ𝑘 ∈ 𝑥 (𝐵 mod 𝑁) = Σ𝑘 ∈ (𝑦 ∪ {𝑧})(𝐵 mod 𝑁)) |
25 | 24 | oveq1d 7290 |
. . . . . 6
⊢ (𝑥 = (𝑦 ∪ {𝑧}) → (Σ𝑘 ∈ 𝑥 (𝐵 mod 𝑁) mod 𝑁) = (Σ𝑘 ∈ (𝑦 ∪ {𝑧})(𝐵 mod 𝑁) mod 𝑁)) |
26 | 23, 25 | eqeq12d 2754 |
. . . . 5
⊢ (𝑥 = (𝑦 ∪ {𝑧}) → ((Σ𝑘 ∈ 𝑥 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝑥 (𝐵 mod 𝑁) mod 𝑁) ↔ (Σ𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 mod 𝑁) = (Σ𝑘 ∈ (𝑦 ∪ {𝑧})(𝐵 mod 𝑁) mod 𝑁))) |
27 | 21, 26 | imbi12d 345 |
. . . 4
⊢ (𝑥 = (𝑦 ∪ {𝑧}) → (((∀𝑘 ∈ 𝑥 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (Σ𝑘 ∈ 𝑥 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝑥 (𝐵 mod 𝑁) mod 𝑁)) ↔ ((∀𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (Σ𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 mod 𝑁) = (Σ𝑘 ∈ (𝑦 ∪ {𝑧})(𝐵 mod 𝑁) mod 𝑁)))) |
28 | | raleq 3342 |
. . . . . 6
⊢ (𝑥 = 𝐴 → (∀𝑘 ∈ 𝑥 𝐵 ∈ ℤ ↔ ∀𝑘 ∈ 𝐴 𝐵 ∈ ℤ)) |
29 | 28 | anbi1d 630 |
. . . . 5
⊢ (𝑥 = 𝐴 → ((∀𝑘 ∈ 𝑥 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) ↔ (∀𝑘 ∈ 𝐴 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ))) |
30 | | sumeq1 15400 |
. . . . . . 7
⊢ (𝑥 = 𝐴 → Σ𝑘 ∈ 𝑥 𝐵 = Σ𝑘 ∈ 𝐴 𝐵) |
31 | 30 | oveq1d 7290 |
. . . . . 6
⊢ (𝑥 = 𝐴 → (Σ𝑘 ∈ 𝑥 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝐴 𝐵 mod 𝑁)) |
32 | | sumeq1 15400 |
. . . . . . 7
⊢ (𝑥 = 𝐴 → Σ𝑘 ∈ 𝑥 (𝐵 mod 𝑁) = Σ𝑘 ∈ 𝐴 (𝐵 mod 𝑁)) |
33 | 32 | oveq1d 7290 |
. . . . . 6
⊢ (𝑥 = 𝐴 → (Σ𝑘 ∈ 𝑥 (𝐵 mod 𝑁) mod 𝑁) = (Σ𝑘 ∈ 𝐴 (𝐵 mod 𝑁) mod 𝑁)) |
34 | 31, 33 | eqeq12d 2754 |
. . . . 5
⊢ (𝑥 = 𝐴 → ((Σ𝑘 ∈ 𝑥 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝑥 (𝐵 mod 𝑁) mod 𝑁) ↔ (Σ𝑘 ∈ 𝐴 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝐴 (𝐵 mod 𝑁) mod 𝑁))) |
35 | 29, 34 | imbi12d 345 |
. . . 4
⊢ (𝑥 = 𝐴 → (((∀𝑘 ∈ 𝑥 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (Σ𝑘 ∈ 𝑥 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝑥 (𝐵 mod 𝑁) mod 𝑁)) ↔ ((∀𝑘 ∈ 𝐴 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (Σ𝑘 ∈ 𝐴 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝐴 (𝐵 mod 𝑁) mod 𝑁)))) |
36 | | sum0 15433 |
. . . . . . 7
⊢
Σ𝑘 ∈
∅ 𝐵 =
0 |
37 | 36 | oveq1i 7285 |
. . . . . 6
⊢
(Σ𝑘 ∈
∅ 𝐵 mod 𝑁) = (0 mod 𝑁) |
38 | | sum0 15433 |
. . . . . . . 8
⊢
Σ𝑘 ∈
∅ (𝐵 mod 𝑁) = 0 |
39 | 38 | a1i 11 |
. . . . . . 7
⊢ (𝑁 ∈ ℕ →
Σ𝑘 ∈ ∅
(𝐵 mod 𝑁) = 0) |
40 | 39 | oveq1d 7290 |
. . . . . 6
⊢ (𝑁 ∈ ℕ →
(Σ𝑘 ∈ ∅
(𝐵 mod 𝑁) mod 𝑁) = (0 mod 𝑁)) |
41 | 37, 40 | eqtr4id 2797 |
. . . . 5
⊢ (𝑁 ∈ ℕ →
(Σ𝑘 ∈ ∅
𝐵 mod 𝑁) = (Σ𝑘 ∈ ∅ (𝐵 mod 𝑁) mod 𝑁)) |
42 | 41 | adantl 482 |
. . . 4
⊢
((∀𝑘 ∈
∅ 𝐵 ∈ ℤ
∧ 𝑁 ∈ ℕ)
→ (Σ𝑘 ∈
∅ 𝐵 mod 𝑁) = (Σ𝑘 ∈ ∅ (𝐵 mod 𝑁) mod 𝑁)) |
43 | | simpll 764 |
. . . . . . . . . 10
⊢ (((𝑦 ∈ Fin ∧ (∀𝑘 ∈ 𝑦 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ)) ∧ ∀𝑘 ∈ {𝑧}𝐵 ∈ ℤ) → 𝑦 ∈ Fin) |
44 | | simplrr 775 |
. . . . . . . . . 10
⊢ (((𝑦 ∈ Fin ∧ (∀𝑘 ∈ 𝑦 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ)) ∧ ∀𝑘 ∈ {𝑧}𝐵 ∈ ℤ) → 𝑁 ∈ ℕ) |
45 | | ralun 4126 |
. . . . . . . . . . . . 13
⊢
((∀𝑘 ∈
𝑦 𝐵 ∈ ℤ ∧ ∀𝑘 ∈ {𝑧}𝐵 ∈ ℤ) → ∀𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 ∈ ℤ) |
46 | 45 | ex 413 |
. . . . . . . . . . . 12
⊢
(∀𝑘 ∈
𝑦 𝐵 ∈ ℤ → (∀𝑘 ∈ {𝑧}𝐵 ∈ ℤ → ∀𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 ∈ ℤ)) |
47 | 46 | ad2antrl 725 |
. . . . . . . . . . 11
⊢ ((𝑦 ∈ Fin ∧ (∀𝑘 ∈ 𝑦 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ)) → (∀𝑘 ∈ {𝑧}𝐵 ∈ ℤ → ∀𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 ∈ ℤ)) |
48 | 47 | imp 407 |
. . . . . . . . . 10
⊢ (((𝑦 ∈ Fin ∧ (∀𝑘 ∈ 𝑦 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ)) ∧ ∀𝑘 ∈ {𝑧}𝐵 ∈ ℤ) → ∀𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 ∈ ℤ) |
49 | | modfsummods 15505 |
. . . . . . . . . 10
⊢ ((𝑦 ∈ Fin ∧ 𝑁 ∈ ℕ ∧
∀𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 ∈ ℤ) → ((Σ𝑘 ∈ 𝑦 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝑦 (𝐵 mod 𝑁) mod 𝑁) → (Σ𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 mod 𝑁) = (Σ𝑘 ∈ (𝑦 ∪ {𝑧})(𝐵 mod 𝑁) mod 𝑁))) |
50 | 43, 44, 48, 49 | syl3anc 1370 |
. . . . . . . . 9
⊢ (((𝑦 ∈ Fin ∧ (∀𝑘 ∈ 𝑦 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ)) ∧ ∀𝑘 ∈ {𝑧}𝐵 ∈ ℤ) → ((Σ𝑘 ∈ 𝑦 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝑦 (𝐵 mod 𝑁) mod 𝑁) → (Σ𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 mod 𝑁) = (Σ𝑘 ∈ (𝑦 ∪ {𝑧})(𝐵 mod 𝑁) mod 𝑁))) |
51 | 50 | ex 413 |
. . . . . . . 8
⊢ ((𝑦 ∈ Fin ∧ (∀𝑘 ∈ 𝑦 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ)) → (∀𝑘 ∈ {𝑧}𝐵 ∈ ℤ → ((Σ𝑘 ∈ 𝑦 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝑦 (𝐵 mod 𝑁) mod 𝑁) → (Σ𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 mod 𝑁) = (Σ𝑘 ∈ (𝑦 ∪ {𝑧})(𝐵 mod 𝑁) mod 𝑁)))) |
52 | 51 | com23 86 |
. . . . . . 7
⊢ ((𝑦 ∈ Fin ∧ (∀𝑘 ∈ 𝑦 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ)) → ((Σ𝑘 ∈ 𝑦 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝑦 (𝐵 mod 𝑁) mod 𝑁) → (∀𝑘 ∈ {𝑧}𝐵 ∈ ℤ → (Σ𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 mod 𝑁) = (Σ𝑘 ∈ (𝑦 ∪ {𝑧})(𝐵 mod 𝑁) mod 𝑁)))) |
53 | 52 | ex 413 |
. . . . . 6
⊢ (𝑦 ∈ Fin →
((∀𝑘 ∈ 𝑦 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) → ((Σ𝑘 ∈ 𝑦 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝑦 (𝐵 mod 𝑁) mod 𝑁) → (∀𝑘 ∈ {𝑧}𝐵 ∈ ℤ → (Σ𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 mod 𝑁) = (Σ𝑘 ∈ (𝑦 ∪ {𝑧})(𝐵 mod 𝑁) mod 𝑁))))) |
54 | 53 | a2d 29 |
. . . . 5
⊢ (𝑦 ∈ Fin →
(((∀𝑘 ∈ 𝑦 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (Σ𝑘 ∈ 𝑦 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝑦 (𝐵 mod 𝑁) mod 𝑁)) → ((∀𝑘 ∈ 𝑦 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (∀𝑘 ∈ {𝑧}𝐵 ∈ ℤ → (Σ𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 mod 𝑁) = (Σ𝑘 ∈ (𝑦 ∪ {𝑧})(𝐵 mod 𝑁) mod 𝑁))))) |
55 | | ralunb 4125 |
. . . . . . . 8
⊢
(∀𝑘 ∈
(𝑦 ∪ {𝑧})𝐵 ∈ ℤ ↔ (∀𝑘 ∈ 𝑦 𝐵 ∈ ℤ ∧ ∀𝑘 ∈ {𝑧}𝐵 ∈ ℤ)) |
56 | 55 | anbi1i 624 |
. . . . . . 7
⊢
((∀𝑘 ∈
(𝑦 ∪ {𝑧})𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) ↔ ((∀𝑘 ∈ 𝑦 𝐵 ∈ ℤ ∧ ∀𝑘 ∈ {𝑧}𝐵 ∈ ℤ) ∧ 𝑁 ∈ ℕ)) |
57 | 56 | imbi1i 350 |
. . . . . 6
⊢
(((∀𝑘 ∈
(𝑦 ∪ {𝑧})𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (Σ𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 mod 𝑁) = (Σ𝑘 ∈ (𝑦 ∪ {𝑧})(𝐵 mod 𝑁) mod 𝑁)) ↔ (((∀𝑘 ∈ 𝑦 𝐵 ∈ ℤ ∧ ∀𝑘 ∈ {𝑧}𝐵 ∈ ℤ) ∧ 𝑁 ∈ ℕ) → (Σ𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 mod 𝑁) = (Σ𝑘 ∈ (𝑦 ∪ {𝑧})(𝐵 mod 𝑁) mod 𝑁))) |
58 | | an32 643 |
. . . . . . 7
⊢
(((∀𝑘 ∈
𝑦 𝐵 ∈ ℤ ∧ ∀𝑘 ∈ {𝑧}𝐵 ∈ ℤ) ∧ 𝑁 ∈ ℕ) ↔ ((∀𝑘 ∈ 𝑦 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) ∧ ∀𝑘 ∈ {𝑧}𝐵 ∈ ℤ)) |
59 | 58 | imbi1i 350 |
. . . . . 6
⊢
((((∀𝑘 ∈
𝑦 𝐵 ∈ ℤ ∧ ∀𝑘 ∈ {𝑧}𝐵 ∈ ℤ) ∧ 𝑁 ∈ ℕ) → (Σ𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 mod 𝑁) = (Σ𝑘 ∈ (𝑦 ∪ {𝑧})(𝐵 mod 𝑁) mod 𝑁)) ↔ (((∀𝑘 ∈ 𝑦 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) ∧ ∀𝑘 ∈ {𝑧}𝐵 ∈ ℤ) → (Σ𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 mod 𝑁) = (Σ𝑘 ∈ (𝑦 ∪ {𝑧})(𝐵 mod 𝑁) mod 𝑁))) |
60 | | impexp 451 |
. . . . . 6
⊢
((((∀𝑘 ∈
𝑦 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) ∧ ∀𝑘 ∈ {𝑧}𝐵 ∈ ℤ) → (Σ𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 mod 𝑁) = (Σ𝑘 ∈ (𝑦 ∪ {𝑧})(𝐵 mod 𝑁) mod 𝑁)) ↔ ((∀𝑘 ∈ 𝑦 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (∀𝑘 ∈ {𝑧}𝐵 ∈ ℤ → (Σ𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 mod 𝑁) = (Σ𝑘 ∈ (𝑦 ∪ {𝑧})(𝐵 mod 𝑁) mod 𝑁)))) |
61 | 57, 59, 60 | 3bitri 297 |
. . . . 5
⊢
(((∀𝑘 ∈
(𝑦 ∪ {𝑧})𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (Σ𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 mod 𝑁) = (Σ𝑘 ∈ (𝑦 ∪ {𝑧})(𝐵 mod 𝑁) mod 𝑁)) ↔ ((∀𝑘 ∈ 𝑦 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (∀𝑘 ∈ {𝑧}𝐵 ∈ ℤ → (Σ𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 mod 𝑁) = (Σ𝑘 ∈ (𝑦 ∪ {𝑧})(𝐵 mod 𝑁) mod 𝑁)))) |
62 | 54, 61 | syl6ibr 251 |
. . . 4
⊢ (𝑦 ∈ Fin →
(((∀𝑘 ∈ 𝑦 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (Σ𝑘 ∈ 𝑦 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝑦 (𝐵 mod 𝑁) mod 𝑁)) → ((∀𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (Σ𝑘 ∈ (𝑦 ∪ {𝑧})𝐵 mod 𝑁) = (Σ𝑘 ∈ (𝑦 ∪ {𝑧})(𝐵 mod 𝑁) mod 𝑁)))) |
63 | 11, 19, 27, 35, 42, 62 | findcard2 8947 |
. . 3
⊢ (𝐴 ∈ Fin →
((∀𝑘 ∈ 𝐴 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (Σ𝑘 ∈ 𝐴 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝐴 (𝐵 mod 𝑁) mod 𝑁))) |
64 | 3, 63 | syl 17 |
. 2
⊢ (𝜑 → ((∀𝑘 ∈ 𝐴 𝐵 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (Σ𝑘 ∈ 𝐴 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝐴 (𝐵 mod 𝑁) mod 𝑁))) |
65 | 1, 2, 64 | mp2and 696 |
1
⊢ (𝜑 → (Σ𝑘 ∈ 𝐴 𝐵 mod 𝑁) = (Σ𝑘 ∈ 𝐴 (𝐵 mod 𝑁) mod 𝑁)) |