Step | Hyp | Ref
| Expression |
1 | | id 19 |
. . . . . 6
⊢ (𝐴 ∈ ℤ → 𝐴 ∈
ℤ) |
2 | | 8nn 9020 |
. . . . . . 7
⊢ 8 ∈
ℕ |
3 | 2 | a1i 9 |
. . . . . 6
⊢ (𝐴 ∈ ℤ → 8 ∈
ℕ) |
4 | 1, 3 | zmodcld 10276 |
. . . . 5
⊢ (𝐴 ∈ ℤ → (𝐴 mod 8) ∈
ℕ0) |
5 | | elprg 3595 |
. . . . 5
⊢ ((𝐴 mod 8) ∈
ℕ0 → ((𝐴 mod 8) ∈ {1, 7} ↔ ((𝐴 mod 8) = 1 ∨ (𝐴 mod 8) = 7))) |
6 | 4, 5 | syl 14 |
. . . 4
⊢ (𝐴 ∈ ℤ → ((𝐴 mod 8) ∈ {1, 7} ↔
((𝐴 mod 8) = 1 ∨ (𝐴 mod 8) = 7))) |
7 | 6 | adantr 274 |
. . 3
⊢ ((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) → ((𝐴 mod 8) ∈ {1, 7} ↔
((𝐴 mod 8) = 1 ∨ (𝐴 mod 8) = 7))) |
8 | 7 | pm5.32i 450 |
. 2
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) ∈ {1, 7}) ↔
((𝐴 ∈ ℤ ∧
𝐵 ∈ ℤ) ∧
((𝐴 mod 8) = 1 ∨ (𝐴 mod 8) = 7))) |
9 | | zq 9560 |
. . . . . . 7
⊢ (𝐴 ∈ ℤ → 𝐴 ∈
ℚ) |
10 | 9 | ad2antrr 480 |
. . . . . 6
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 1) → 𝐴 ∈
ℚ) |
11 | | 1nn 8864 |
. . . . . . . 8
⊢ 1 ∈
ℕ |
12 | | nnq 9567 |
. . . . . . . 8
⊢ (1 ∈
ℕ → 1 ∈ ℚ) |
13 | 11, 12 | ax-mp 5 |
. . . . . . 7
⊢ 1 ∈
ℚ |
14 | 13 | a1i 9 |
. . . . . 6
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 1) → 1 ∈
ℚ) |
15 | | simplr 520 |
. . . . . 6
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 1) → 𝐵 ∈
ℤ) |
16 | | nnq 9567 |
. . . . . . . 8
⊢ (8 ∈
ℕ → 8 ∈ ℚ) |
17 | 2, 16 | ax-mp 5 |
. . . . . . 7
⊢ 8 ∈
ℚ |
18 | 17 | a1i 9 |
. . . . . 6
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 1) → 8 ∈
ℚ) |
19 | | 8pos 8956 |
. . . . . . 7
⊢ 0 <
8 |
20 | 19 | a1i 9 |
. . . . . 6
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 1) → 0 <
8) |
21 | | simpr 109 |
. . . . . . 7
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 1) → (𝐴 mod 8) = 1) |
22 | | lgsdir2lem1 13529 |
. . . . . . . . 9
⊢ (((1 mod
8) = 1 ∧ (-1 mod 8) = 7) ∧ ((3 mod 8) = 3 ∧ (-3 mod 8) =
5)) |
23 | 22 | simpli 110 |
. . . . . . . 8
⊢ ((1 mod
8) = 1 ∧ (-1 mod 8) = 7) |
24 | 23 | simpli 110 |
. . . . . . 7
⊢ (1 mod 8)
= 1 |
25 | 21, 24 | eqtr4di 2216 |
. . . . . 6
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 1) → (𝐴 mod 8) = (1 mod
8)) |
26 | 10, 14, 15, 18, 20, 25 | modqmul1 10308 |
. . . . 5
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 1) → ((𝐴 · 𝐵) mod 8) = ((1 · 𝐵) mod 8)) |
27 | | zcn 9192 |
. . . . . . . 8
⊢ (𝐵 ∈ ℤ → 𝐵 ∈
ℂ) |
28 | 27 | ad2antlr 481 |
. . . . . . 7
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 1) → 𝐵 ∈
ℂ) |
29 | 28 | mulid2d 7913 |
. . . . . 6
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 1) → (1 ·
𝐵) = 𝐵) |
30 | 29 | oveq1d 5856 |
. . . . 5
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 1) → ((1 ·
𝐵) mod 8) = (𝐵 mod 8)) |
31 | 26, 30 | eqtrd 2198 |
. . . 4
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 1) → ((𝐴 · 𝐵) mod 8) = (𝐵 mod 8)) |
32 | 31 | eleq1d 2234 |
. . 3
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 1) → (((𝐴 · 𝐵) mod 8) ∈ {1, 7} ↔ (𝐵 mod 8) ∈ {1,
7})) |
33 | 9 | ad2antrr 480 |
. . . . . . 7
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 7) → 𝐴 ∈
ℚ) |
34 | | qnegcl 9570 |
. . . . . . . . 9
⊢ (1 ∈
ℚ → -1 ∈ ℚ) |
35 | 13, 34 | ax-mp 5 |
. . . . . . . 8
⊢ -1 ∈
ℚ |
36 | 35 | a1i 9 |
. . . . . . 7
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 7) → -1 ∈
ℚ) |
37 | | simplr 520 |
. . . . . . 7
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 7) → 𝐵 ∈
ℤ) |
38 | 17 | a1i 9 |
. . . . . . 7
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 7) → 8 ∈
ℚ) |
39 | 19 | a1i 9 |
. . . . . . 7
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 7) → 0 <
8) |
40 | | simpr 109 |
. . . . . . . 8
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 7) → (𝐴 mod 8) = 7) |
41 | 23 | simpri 112 |
. . . . . . . 8
⊢ (-1 mod
8) = 7 |
42 | 40, 41 | eqtr4di 2216 |
. . . . . . 7
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 7) → (𝐴 mod 8) = (-1 mod
8)) |
43 | 33, 36, 37, 38, 39, 42 | modqmul1 10308 |
. . . . . 6
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 7) → ((𝐴 · 𝐵) mod 8) = ((-1 · 𝐵) mod 8)) |
44 | 27 | ad2antlr 481 |
. . . . . . . 8
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 7) → 𝐵 ∈
ℂ) |
45 | 44 | mulm1d 8304 |
. . . . . . 7
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 7) → (-1 ·
𝐵) = -𝐵) |
46 | 45 | oveq1d 5856 |
. . . . . 6
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 7) → ((-1
· 𝐵) mod 8) =
(-𝐵 mod
8)) |
47 | 43, 46 | eqtrd 2198 |
. . . . 5
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 7) → ((𝐴 · 𝐵) mod 8) = (-𝐵 mod 8)) |
48 | 47 | eleq1d 2234 |
. . . 4
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 7) → (((𝐴 · 𝐵) mod 8) ∈ {1, 7} ↔ (-𝐵 mod 8) ∈ {1,
7})) |
49 | | znegcl 9218 |
. . . . . . . 8
⊢ (𝐵 ∈ ℤ → -𝐵 ∈
ℤ) |
50 | | oveq1 5848 |
. . . . . . . . . . 11
⊢ (𝑥 = -𝐵 → (𝑥 mod 8) = (-𝐵 mod 8)) |
51 | 50 | eleq1d 2234 |
. . . . . . . . . 10
⊢ (𝑥 = -𝐵 → ((𝑥 mod 8) ∈ {1, 7} ↔ (-𝐵 mod 8) ∈ {1,
7})) |
52 | | negeq 8087 |
. . . . . . . . . . . 12
⊢ (𝑥 = -𝐵 → -𝑥 = --𝐵) |
53 | 52 | oveq1d 5856 |
. . . . . . . . . . 11
⊢ (𝑥 = -𝐵 → (-𝑥 mod 8) = (--𝐵 mod 8)) |
54 | 53 | eleq1d 2234 |
. . . . . . . . . 10
⊢ (𝑥 = -𝐵 → ((-𝑥 mod 8) ∈ {1, 7} ↔ (--𝐵 mod 8) ∈ {1,
7})) |
55 | 51, 54 | imbi12d 233 |
. . . . . . . . 9
⊢ (𝑥 = -𝐵 → (((𝑥 mod 8) ∈ {1, 7} → (-𝑥 mod 8) ∈ {1, 7}) ↔
((-𝐵 mod 8) ∈ {1, 7}
→ (--𝐵 mod 8) ∈
{1, 7}))) |
56 | | zcn 9192 |
. . . . . . . . . . . . . . . . 17
⊢ (𝑥 ∈ ℤ → 𝑥 ∈
ℂ) |
57 | | neg1cn 8958 |
. . . . . . . . . . . . . . . . . . 19
⊢ -1 ∈
ℂ |
58 | | mulcom 7878 |
. . . . . . . . . . . . . . . . . . 19
⊢ ((𝑥 ∈ ℂ ∧ -1 ∈
ℂ) → (𝑥 ·
-1) = (-1 · 𝑥)) |
59 | 57, 58 | mpan2 422 |
. . . . . . . . . . . . . . . . . 18
⊢ (𝑥 ∈ ℂ → (𝑥 · -1) = (-1 ·
𝑥)) |
60 | | mulm1 8294 |
. . . . . . . . . . . . . . . . . 18
⊢ (𝑥 ∈ ℂ → (-1
· 𝑥) = -𝑥) |
61 | 59, 60 | eqtrd 2198 |
. . . . . . . . . . . . . . . . 17
⊢ (𝑥 ∈ ℂ → (𝑥 · -1) = -𝑥) |
62 | 56, 61 | syl 14 |
. . . . . . . . . . . . . . . 16
⊢ (𝑥 ∈ ℤ → (𝑥 · -1) = -𝑥) |
63 | 62 | adantr 274 |
. . . . . . . . . . . . . . 15
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 1) → (𝑥 · -1) = -𝑥) |
64 | 63 | oveq1d 5856 |
. . . . . . . . . . . . . 14
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 1) → ((𝑥 · -1) mod 8) = (-𝑥 mod 8)) |
65 | | zq 9560 |
. . . . . . . . . . . . . . . 16
⊢ (𝑥 ∈ ℤ → 𝑥 ∈
ℚ) |
66 | 65 | adantr 274 |
. . . . . . . . . . . . . . 15
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 1) → 𝑥 ∈
ℚ) |
67 | 13 | a1i 9 |
. . . . . . . . . . . . . . 15
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 1) → 1 ∈
ℚ) |
68 | | neg1z 9219 |
. . . . . . . . . . . . . . . 16
⊢ -1 ∈
ℤ |
69 | 68 | a1i 9 |
. . . . . . . . . . . . . . 15
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 1) → -1 ∈
ℤ) |
70 | 17 | a1i 9 |
. . . . . . . . . . . . . . 15
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 1) → 8 ∈
ℚ) |
71 | 19 | a1i 9 |
. . . . . . . . . . . . . . 15
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 1) → 0 <
8) |
72 | | simpr 109 |
. . . . . . . . . . . . . . . 16
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 1) → (𝑥 mod 8) = 1) |
73 | 72, 24 | eqtr4di 2216 |
. . . . . . . . . . . . . . 15
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 1) → (𝑥 mod 8) = (1 mod
8)) |
74 | 66, 67, 69, 70, 71, 73 | modqmul1 10308 |
. . . . . . . . . . . . . 14
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 1) → ((𝑥 · -1) mod 8) = ((1
· -1) mod 8)) |
75 | 64, 74 | eqtr3d 2200 |
. . . . . . . . . . . . 13
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 1) → (-𝑥 mod 8) = ((1 · -1) mod
8)) |
76 | 57 | mulid2i 7898 |
. . . . . . . . . . . . . . 15
⊢ (1
· -1) = -1 |
77 | 76 | oveq1i 5851 |
. . . . . . . . . . . . . 14
⊢ ((1
· -1) mod 8) = (-1 mod 8) |
78 | 77, 41 | eqtri 2186 |
. . . . . . . . . . . . 13
⊢ ((1
· -1) mod 8) = 7 |
79 | 75, 78 | eqtrdi 2214 |
. . . . . . . . . . . 12
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 1) → (-𝑥 mod 8) = 7) |
80 | 79 | ex 114 |
. . . . . . . . . . 11
⊢ (𝑥 ∈ ℤ → ((𝑥 mod 8) = 1 → (-𝑥 mod 8) = 7)) |
81 | 62 | adantr 274 |
. . . . . . . . . . . . . . 15
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 7) → (𝑥 · -1) = -𝑥) |
82 | 81 | oveq1d 5856 |
. . . . . . . . . . . . . 14
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 7) → ((𝑥 · -1) mod 8) = (-𝑥 mod 8)) |
83 | 65 | adantr 274 |
. . . . . . . . . . . . . . 15
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 7) → 𝑥 ∈
ℚ) |
84 | 35 | a1i 9 |
. . . . . . . . . . . . . . 15
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 7) → -1 ∈
ℚ) |
85 | 68 | a1i 9 |
. . . . . . . . . . . . . . 15
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 7) → -1 ∈
ℤ) |
86 | 17 | a1i 9 |
. . . . . . . . . . . . . . 15
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 7) → 8 ∈
ℚ) |
87 | 19 | a1i 9 |
. . . . . . . . . . . . . . 15
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 7) → 0 <
8) |
88 | | simpr 109 |
. . . . . . . . . . . . . . . 16
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 7) → (𝑥 mod 8) = 7) |
89 | 88, 41 | eqtr4di 2216 |
. . . . . . . . . . . . . . 15
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 7) → (𝑥 mod 8) = (-1 mod
8)) |
90 | 83, 84, 85, 86, 87, 89 | modqmul1 10308 |
. . . . . . . . . . . . . 14
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 7) → ((𝑥 · -1) mod 8) = ((-1
· -1) mod 8)) |
91 | 82, 90 | eqtr3d 2200 |
. . . . . . . . . . . . 13
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 7) → (-𝑥 mod 8) = ((-1 · -1) mod
8)) |
92 | | neg1mulneg1e1 9065 |
. . . . . . . . . . . . . . 15
⊢ (-1
· -1) = 1 |
93 | 92 | oveq1i 5851 |
. . . . . . . . . . . . . 14
⊢ ((-1
· -1) mod 8) = (1 mod 8) |
94 | 93, 24 | eqtri 2186 |
. . . . . . . . . . . . 13
⊢ ((-1
· -1) mod 8) = 1 |
95 | 91, 94 | eqtrdi 2214 |
. . . . . . . . . . . 12
⊢ ((𝑥 ∈ ℤ ∧ (𝑥 mod 8) = 7) → (-𝑥 mod 8) = 1) |
96 | 95 | ex 114 |
. . . . . . . . . . 11
⊢ (𝑥 ∈ ℤ → ((𝑥 mod 8) = 7 → (-𝑥 mod 8) = 1)) |
97 | 80, 96 | orim12d 776 |
. . . . . . . . . 10
⊢ (𝑥 ∈ ℤ → (((𝑥 mod 8) = 1 ∨ (𝑥 mod 8) = 7) → ((-𝑥 mod 8) = 7 ∨ (-𝑥 mod 8) = 1))) |
98 | | zmodcl 10275 |
. . . . . . . . . . . 12
⊢ ((𝑥 ∈ ℤ ∧ 8 ∈
ℕ) → (𝑥 mod 8)
∈ ℕ0) |
99 | 2, 98 | mpan2 422 |
. . . . . . . . . . 11
⊢ (𝑥 ∈ ℤ → (𝑥 mod 8) ∈
ℕ0) |
100 | | elprg 3595 |
. . . . . . . . . . 11
⊢ ((𝑥 mod 8) ∈
ℕ0 → ((𝑥 mod 8) ∈ {1, 7} ↔ ((𝑥 mod 8) = 1 ∨ (𝑥 mod 8) = 7))) |
101 | 99, 100 | syl 14 |
. . . . . . . . . 10
⊢ (𝑥 ∈ ℤ → ((𝑥 mod 8) ∈ {1, 7} ↔
((𝑥 mod 8) = 1 ∨ (𝑥 mod 8) = 7))) |
102 | | znegcl 9218 |
. . . . . . . . . . . . 13
⊢ (𝑥 ∈ ℤ → -𝑥 ∈
ℤ) |
103 | 2 | a1i 9 |
. . . . . . . . . . . . 13
⊢ (𝑥 ∈ ℤ → 8 ∈
ℕ) |
104 | 102, 103 | zmodcld 10276 |
. . . . . . . . . . . 12
⊢ (𝑥 ∈ ℤ → (-𝑥 mod 8) ∈
ℕ0) |
105 | | elprg 3595 |
. . . . . . . . . . . 12
⊢ ((-𝑥 mod 8) ∈
ℕ0 → ((-𝑥 mod 8) ∈ {1, 7} ↔ ((-𝑥 mod 8) = 1 ∨ (-𝑥 mod 8) = 7))) |
106 | 104, 105 | syl 14 |
. . . . . . . . . . 11
⊢ (𝑥 ∈ ℤ → ((-𝑥 mod 8) ∈ {1, 7} ↔
((-𝑥 mod 8) = 1 ∨
(-𝑥 mod 8) =
7))) |
107 | | orcom 718 |
. . . . . . . . . . 11
⊢ (((-𝑥 mod 8) = 1 ∨ (-𝑥 mod 8) = 7) ↔ ((-𝑥 mod 8) = 7 ∨ (-𝑥 mod 8) = 1)) |
108 | 106, 107 | bitrdi 195 |
. . . . . . . . . 10
⊢ (𝑥 ∈ ℤ → ((-𝑥 mod 8) ∈ {1, 7} ↔
((-𝑥 mod 8) = 7 ∨
(-𝑥 mod 8) =
1))) |
109 | 97, 101, 108 | 3imtr4d 202 |
. . . . . . . . 9
⊢ (𝑥 ∈ ℤ → ((𝑥 mod 8) ∈ {1, 7} →
(-𝑥 mod 8) ∈ {1,
7})) |
110 | 55, 109 | vtoclga 2791 |
. . . . . . . 8
⊢ (-𝐵 ∈ ℤ → ((-𝐵 mod 8) ∈ {1, 7} →
(--𝐵 mod 8) ∈ {1,
7})) |
111 | 49, 110 | syl 14 |
. . . . . . 7
⊢ (𝐵 ∈ ℤ → ((-𝐵 mod 8) ∈ {1, 7} →
(--𝐵 mod 8) ∈ {1,
7})) |
112 | 27 | negnegd 8196 |
. . . . . . . . 9
⊢ (𝐵 ∈ ℤ → --𝐵 = 𝐵) |
113 | 112 | oveq1d 5856 |
. . . . . . . 8
⊢ (𝐵 ∈ ℤ → (--𝐵 mod 8) = (𝐵 mod 8)) |
114 | 113 | eleq1d 2234 |
. . . . . . 7
⊢ (𝐵 ∈ ℤ → ((--𝐵 mod 8) ∈ {1, 7} ↔
(𝐵 mod 8) ∈ {1,
7})) |
115 | 111, 114 | sylibd 148 |
. . . . . 6
⊢ (𝐵 ∈ ℤ → ((-𝐵 mod 8) ∈ {1, 7} →
(𝐵 mod 8) ∈ {1,
7})) |
116 | | oveq1 5848 |
. . . . . . . . 9
⊢ (𝑥 = 𝐵 → (𝑥 mod 8) = (𝐵 mod 8)) |
117 | 116 | eleq1d 2234 |
. . . . . . . 8
⊢ (𝑥 = 𝐵 → ((𝑥 mod 8) ∈ {1, 7} ↔ (𝐵 mod 8) ∈ {1,
7})) |
118 | | negeq 8087 |
. . . . . . . . . 10
⊢ (𝑥 = 𝐵 → -𝑥 = -𝐵) |
119 | 118 | oveq1d 5856 |
. . . . . . . . 9
⊢ (𝑥 = 𝐵 → (-𝑥 mod 8) = (-𝐵 mod 8)) |
120 | 119 | eleq1d 2234 |
. . . . . . . 8
⊢ (𝑥 = 𝐵 → ((-𝑥 mod 8) ∈ {1, 7} ↔ (-𝐵 mod 8) ∈ {1,
7})) |
121 | 117, 120 | imbi12d 233 |
. . . . . . 7
⊢ (𝑥 = 𝐵 → (((𝑥 mod 8) ∈ {1, 7} → (-𝑥 mod 8) ∈ {1, 7}) ↔
((𝐵 mod 8) ∈ {1, 7}
→ (-𝐵 mod 8) ∈
{1, 7}))) |
122 | 121, 109 | vtoclga 2791 |
. . . . . 6
⊢ (𝐵 ∈ ℤ → ((𝐵 mod 8) ∈ {1, 7} →
(-𝐵 mod 8) ∈ {1,
7})) |
123 | 115, 122 | impbid 128 |
. . . . 5
⊢ (𝐵 ∈ ℤ → ((-𝐵 mod 8) ∈ {1, 7} ↔
(𝐵 mod 8) ∈ {1,
7})) |
124 | 123 | ad2antlr 481 |
. . . 4
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 7) → ((-𝐵 mod 8) ∈ {1, 7} ↔
(𝐵 mod 8) ∈ {1,
7})) |
125 | 48, 124 | bitrd 187 |
. . 3
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) = 7) → (((𝐴 · 𝐵) mod 8) ∈ {1, 7} ↔ (𝐵 mod 8) ∈ {1,
7})) |
126 | 32, 125 | jaodan 787 |
. 2
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ ((𝐴 mod 8) = 1 ∨ (𝐴 mod 8) = 7)) → (((𝐴 · 𝐵) mod 8) ∈ {1, 7} ↔ (𝐵 mod 8) ∈ {1,
7})) |
127 | 8, 126 | sylbi 120 |
1
⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 mod 8) ∈ {1, 7}) →
(((𝐴 · 𝐵) mod 8) ∈ {1, 7} ↔
(𝐵 mod 8) ∈ {1,
7})) |