Proof of Theorem mulgmodid
Step | Hyp | Ref
| Expression |
1 | | zre 12253 |
. . . . . 6
⊢ (𝑁 ∈ ℤ → 𝑁 ∈
ℝ) |
2 | | nnrp 12670 |
. . . . . 6
⊢ (𝑀 ∈ ℕ → 𝑀 ∈
ℝ+) |
3 | | modval 13519 |
. . . . . 6
⊢ ((𝑁 ∈ ℝ ∧ 𝑀 ∈ ℝ+)
→ (𝑁 mod 𝑀) = (𝑁 − (𝑀 · (⌊‘(𝑁 / 𝑀))))) |
4 | 1, 2, 3 | syl2an 595 |
. . . . 5
⊢ ((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) → (𝑁 mod 𝑀) = (𝑁 − (𝑀 · (⌊‘(𝑁 / 𝑀))))) |
5 | 4 | 3ad2ant2 1132 |
. . . 4
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) → (𝑁 mod 𝑀) = (𝑁 − (𝑀 · (⌊‘(𝑁 / 𝑀))))) |
6 | 5 | oveq1d 7270 |
. . 3
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) → ((𝑁 mod 𝑀) · 𝑋) = ((𝑁 − (𝑀 · (⌊‘(𝑁 / 𝑀)))) · 𝑋)) |
7 | | zcn 12254 |
. . . . . . 7
⊢ (𝑁 ∈ ℤ → 𝑁 ∈
ℂ) |
8 | 7 | adantr 480 |
. . . . . 6
⊢ ((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) → 𝑁 ∈
ℂ) |
9 | | nnz 12272 |
. . . . . . . . 9
⊢ (𝑀 ∈ ℕ → 𝑀 ∈
ℤ) |
10 | 9 | adantl 481 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) → 𝑀 ∈
ℤ) |
11 | | nnre 11910 |
. . . . . . . . . . 11
⊢ (𝑀 ∈ ℕ → 𝑀 ∈
ℝ) |
12 | | nnne0 11937 |
. . . . . . . . . . 11
⊢ (𝑀 ∈ ℕ → 𝑀 ≠ 0) |
13 | | redivcl 11624 |
. . . . . . . . . . 11
⊢ ((𝑁 ∈ ℝ ∧ 𝑀 ∈ ℝ ∧ 𝑀 ≠ 0) → (𝑁 / 𝑀) ∈ ℝ) |
14 | 1, 11, 12, 13 | syl3an 1158 |
. . . . . . . . . 10
⊢ ((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ ∧ 𝑀 ∈ ℕ) → (𝑁 / 𝑀) ∈ ℝ) |
15 | 14 | 3anidm23 1419 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) → (𝑁 / 𝑀) ∈ ℝ) |
16 | 15 | flcld 13446 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) →
(⌊‘(𝑁 / 𝑀)) ∈
ℤ) |
17 | 10, 16 | zmulcld 12361 |
. . . . . . 7
⊢ ((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) → (𝑀 · (⌊‘(𝑁 / 𝑀))) ∈ ℤ) |
18 | 17 | zcnd 12356 |
. . . . . 6
⊢ ((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) → (𝑀 · (⌊‘(𝑁 / 𝑀))) ∈ ℂ) |
19 | 8, 18 | negsubd 11268 |
. . . . 5
⊢ ((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) → (𝑁 + -(𝑀 · (⌊‘(𝑁 / 𝑀)))) = (𝑁 − (𝑀 · (⌊‘(𝑁 / 𝑀))))) |
20 | 19 | 3ad2ant2 1132 |
. . . 4
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) → (𝑁 + -(𝑀 · (⌊‘(𝑁 / 𝑀)))) = (𝑁 − (𝑀 · (⌊‘(𝑁 / 𝑀))))) |
21 | 20 | oveq1d 7270 |
. . 3
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) → ((𝑁 + -(𝑀 · (⌊‘(𝑁 / 𝑀)))) · 𝑋) = ((𝑁 − (𝑀 · (⌊‘(𝑁 / 𝑀)))) · 𝑋)) |
22 | | simp1 1134 |
. . . 4
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) → 𝐺 ∈ Grp) |
23 | | simpl 482 |
. . . . 5
⊢ ((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) → 𝑁 ∈
ℤ) |
24 | 23 | 3ad2ant2 1132 |
. . . 4
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) → 𝑁 ∈
ℤ) |
25 | 10 | 3ad2ant2 1132 |
. . . . . 6
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) → 𝑀 ∈
ℤ) |
26 | 16 | 3ad2ant2 1132 |
. . . . . 6
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) →
(⌊‘(𝑁 / 𝑀)) ∈
ℤ) |
27 | 25, 26 | zmulcld 12361 |
. . . . 5
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) → (𝑀 · (⌊‘(𝑁 / 𝑀))) ∈ ℤ) |
28 | 27 | znegcld 12357 |
. . . 4
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) → -(𝑀 · (⌊‘(𝑁 / 𝑀))) ∈ ℤ) |
29 | | simpl 482 |
. . . . 5
⊢ ((𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 ) → 𝑋 ∈ 𝐵) |
30 | 29 | 3ad2ant3 1133 |
. . . 4
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) → 𝑋 ∈ 𝐵) |
31 | | mulgmodid.b |
. . . . 5
⊢ 𝐵 = (Base‘𝐺) |
32 | | mulgmodid.t |
. . . . 5
⊢ · =
(.g‘𝐺) |
33 | | eqid 2738 |
. . . . 5
⊢
(+g‘𝐺) = (+g‘𝐺) |
34 | 31, 32, 33 | mulgdir 18650 |
. . . 4
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ -(𝑀 · (⌊‘(𝑁 / 𝑀))) ∈ ℤ ∧ 𝑋 ∈ 𝐵)) → ((𝑁 + -(𝑀 · (⌊‘(𝑁 / 𝑀)))) · 𝑋) = ((𝑁 · 𝑋)(+g‘𝐺)(-(𝑀 · (⌊‘(𝑁 / 𝑀))) · 𝑋))) |
35 | 22, 24, 28, 30, 34 | syl13anc 1370 |
. . 3
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) → ((𝑁 + -(𝑀 · (⌊‘(𝑁 / 𝑀)))) · 𝑋) = ((𝑁 · 𝑋)(+g‘𝐺)(-(𝑀 · (⌊‘(𝑁 / 𝑀))) · 𝑋))) |
36 | 6, 21, 35 | 3eqtr2d 2784 |
. 2
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) → ((𝑁 mod 𝑀) · 𝑋) = ((𝑁 · 𝑋)(+g‘𝐺)(-(𝑀 · (⌊‘(𝑁 / 𝑀))) · 𝑋))) |
37 | | nncn 11911 |
. . . . . . . 8
⊢ (𝑀 ∈ ℕ → 𝑀 ∈
ℂ) |
38 | 37 | adantl 481 |
. . . . . . 7
⊢ ((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) → 𝑀 ∈
ℂ) |
39 | 16 | zcnd 12356 |
. . . . . . 7
⊢ ((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) →
(⌊‘(𝑁 / 𝑀)) ∈
ℂ) |
40 | 38, 39 | mulneg2d 11359 |
. . . . . 6
⊢ ((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) → (𝑀 · -(⌊‘(𝑁 / 𝑀))) = -(𝑀 · (⌊‘(𝑁 / 𝑀)))) |
41 | 40 | 3ad2ant2 1132 |
. . . . 5
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) → (𝑀 · -(⌊‘(𝑁 / 𝑀))) = -(𝑀 · (⌊‘(𝑁 / 𝑀)))) |
42 | 41 | oveq1d 7270 |
. . . 4
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) → ((𝑀 · -(⌊‘(𝑁 / 𝑀))) · 𝑋) = (-(𝑀 · (⌊‘(𝑁 / 𝑀))) · 𝑋)) |
43 | 15 | 3ad2ant2 1132 |
. . . . . . . 8
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) → (𝑁 / 𝑀) ∈ ℝ) |
44 | 43 | flcld 13446 |
. . . . . . 7
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) →
(⌊‘(𝑁 / 𝑀)) ∈
ℤ) |
45 | 44 | znegcld 12357 |
. . . . . 6
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) →
-(⌊‘(𝑁 / 𝑀)) ∈
ℤ) |
46 | 31, 32 | mulgassr 18656 |
. . . . . 6
⊢ ((𝐺 ∈ Grp ∧
(-(⌊‘(𝑁 / 𝑀)) ∈ ℤ ∧ 𝑀 ∈ ℤ ∧ 𝑋 ∈ 𝐵)) → ((𝑀 · -(⌊‘(𝑁 / 𝑀))) · 𝑋) = (-(⌊‘(𝑁 / 𝑀)) · (𝑀 · 𝑋))) |
47 | 22, 45, 25, 30, 46 | syl13anc 1370 |
. . . . 5
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) → ((𝑀 · -(⌊‘(𝑁 / 𝑀))) · 𝑋) = (-(⌊‘(𝑁 / 𝑀)) · (𝑀 · 𝑋))) |
48 | | oveq2 7263 |
. . . . . . 7
⊢ ((𝑀 · 𝑋) = 0 →
(-(⌊‘(𝑁 / 𝑀)) · (𝑀 · 𝑋)) = (-(⌊‘(𝑁 / 𝑀)) · 0 )) |
49 | 48 | adantl 481 |
. . . . . 6
⊢ ((𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 ) →
(-(⌊‘(𝑁 / 𝑀)) · (𝑀 · 𝑋)) = (-(⌊‘(𝑁 / 𝑀)) · 0 )) |
50 | 49 | 3ad2ant3 1133 |
. . . . 5
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) →
(-(⌊‘(𝑁 / 𝑀)) · (𝑀 · 𝑋)) = (-(⌊‘(𝑁 / 𝑀)) · 0 )) |
51 | | mulgmodid.o |
. . . . . . 7
⊢ 0 =
(0g‘𝐺) |
52 | 31, 32, 51 | mulgz 18646 |
. . . . . 6
⊢ ((𝐺 ∈ Grp ∧
-(⌊‘(𝑁 / 𝑀)) ∈ ℤ) →
(-(⌊‘(𝑁 / 𝑀)) · 0 ) = 0 ) |
53 | 22, 45, 52 | syl2anc 583 |
. . . . 5
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) →
(-(⌊‘(𝑁 / 𝑀)) · 0 ) = 0 ) |
54 | 47, 50, 53 | 3eqtrd 2782 |
. . . 4
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) → ((𝑀 · -(⌊‘(𝑁 / 𝑀))) · 𝑋) = 0 ) |
55 | 42, 54 | eqtr3d 2780 |
. . 3
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) → (-(𝑀 · (⌊‘(𝑁 / 𝑀))) · 𝑋) = 0 ) |
56 | 55 | oveq2d 7271 |
. 2
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) → ((𝑁 · 𝑋)(+g‘𝐺)(-(𝑀 · (⌊‘(𝑁 / 𝑀))) · 𝑋)) = ((𝑁 · 𝑋)(+g‘𝐺) 0 )) |
57 | | id 22 |
. . . 4
⊢ (𝐺 ∈ Grp → 𝐺 ∈ Grp) |
58 | 31, 32 | mulgcl 18636 |
. . . 4
⊢ ((𝐺 ∈ Grp ∧ 𝑁 ∈ ℤ ∧ 𝑋 ∈ 𝐵) → (𝑁 · 𝑋) ∈ 𝐵) |
59 | 57, 23, 29, 58 | syl3an 1158 |
. . 3
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) → (𝑁 · 𝑋) ∈ 𝐵) |
60 | 31, 33, 51 | grprid 18525 |
. . 3
⊢ ((𝐺 ∈ Grp ∧ (𝑁 · 𝑋) ∈ 𝐵) → ((𝑁 · 𝑋)(+g‘𝐺) 0 ) = (𝑁 · 𝑋)) |
61 | 22, 59, 60 | syl2anc 583 |
. 2
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) → ((𝑁 · 𝑋)(+g‘𝐺) 0 ) = (𝑁 · 𝑋)) |
62 | 36, 56, 61 | 3eqtrd 2782 |
1
⊢ ((𝐺 ∈ Grp ∧ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℕ) ∧ (𝑋 ∈ 𝐵 ∧ (𝑀 · 𝑋) = 0 )) → ((𝑁 mod 𝑀) · 𝑋) = (𝑁 · 𝑋)) |