Proof of Theorem lgsqr
Step | Hyp | Ref
| Expression |
1 | | eldifi 4057 |
. . . . . . . . . . 11
⊢ (𝑃 ∈ (ℙ ∖ {2})
→ 𝑃 ∈
ℙ) |
2 | 1 | adantl 481 |
. . . . . . . . . 10
⊢ ((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
→ 𝑃 ∈
ℙ) |
3 | | prmz 16308 |
. . . . . . . . . 10
⊢ (𝑃 ∈ ℙ → 𝑃 ∈
ℤ) |
4 | 2, 3 | syl 17 |
. . . . . . . . 9
⊢ ((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
→ 𝑃 ∈
ℤ) |
5 | | simpl 482 |
. . . . . . . . 9
⊢ ((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
→ 𝐴 ∈
ℤ) |
6 | 4, 5 | gcdcomd 16149 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
→ (𝑃 gcd 𝐴) = (𝐴 gcd 𝑃)) |
7 | 6 | eqeq1d 2740 |
. . . . . . 7
⊢ ((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
→ ((𝑃 gcd 𝐴) = 1 ↔ (𝐴 gcd 𝑃) = 1)) |
8 | | coprm 16344 |
. . . . . . . 8
⊢ ((𝑃 ∈ ℙ ∧ 𝐴 ∈ ℤ) → (¬
𝑃 ∥ 𝐴 ↔ (𝑃 gcd 𝐴) = 1)) |
9 | 2, 5, 8 | syl2anc 583 |
. . . . . . 7
⊢ ((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
→ (¬ 𝑃 ∥
𝐴 ↔ (𝑃 gcd 𝐴) = 1)) |
10 | | lgsne0 26388 |
. . . . . . . 8
⊢ ((𝐴 ∈ ℤ ∧ 𝑃 ∈ ℤ) → ((𝐴 /L 𝑃) ≠ 0 ↔ (𝐴 gcd 𝑃) = 1)) |
11 | 5, 4, 10 | syl2anc 583 |
. . . . . . 7
⊢ ((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
→ ((𝐴
/L 𝑃)
≠ 0 ↔ (𝐴 gcd 𝑃) = 1)) |
12 | 7, 9, 11 | 3bitr4d 310 |
. . . . . 6
⊢ ((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
→ (¬ 𝑃 ∥
𝐴 ↔ (𝐴 /L 𝑃) ≠ 0)) |
13 | 12 | necon4bbid 2984 |
. . . . 5
⊢ ((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
→ (𝑃 ∥ 𝐴 ↔ (𝐴 /L 𝑃) = 0)) |
14 | | 0ne1 11974 |
. . . . . 6
⊢ 0 ≠
1 |
15 | | neeq1 3005 |
. . . . . 6
⊢ ((𝐴 /L 𝑃) = 0 → ((𝐴 /L 𝑃) ≠ 1 ↔ 0 ≠ 1)) |
16 | 14, 15 | mpbiri 257 |
. . . . 5
⊢ ((𝐴 /L 𝑃) = 0 → (𝐴 /L 𝑃) ≠ 1) |
17 | 13, 16 | syl6bi 252 |
. . . 4
⊢ ((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
→ (𝑃 ∥ 𝐴 → (𝐴 /L 𝑃) ≠ 1)) |
18 | 17 | necon2bd 2958 |
. . 3
⊢ ((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
→ ((𝐴
/L 𝑃) = 1
→ ¬ 𝑃 ∥
𝐴)) |
19 | | lgsqrlem5 26403 |
. . . 4
⊢ ((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2})
∧ (𝐴
/L 𝑃) =
1) → ∃𝑥 ∈
ℤ 𝑃 ∥ ((𝑥↑2) − 𝐴)) |
20 | 19 | 3expia 1119 |
. . 3
⊢ ((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
→ ((𝐴
/L 𝑃) = 1
→ ∃𝑥 ∈
ℤ 𝑃 ∥ ((𝑥↑2) − 𝐴))) |
21 | 18, 20 | jcad 512 |
. 2
⊢ ((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
→ ((𝐴
/L 𝑃) = 1
→ (¬ 𝑃 ∥
𝐴 ∧ ∃𝑥 ∈ ℤ 𝑃 ∥ ((𝑥↑2) − 𝐴)))) |
22 | | simprl 767 |
. . . . . . . 8
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → 𝑥 ∈ ℤ) |
23 | 22 | zred 12355 |
. . . . . . 7
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → 𝑥 ∈ ℝ) |
24 | | absresq 14942 |
. . . . . . 7
⊢ (𝑥 ∈ ℝ →
((abs‘𝑥)↑2) =
(𝑥↑2)) |
25 | 23, 24 | syl 17 |
. . . . . 6
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → ((abs‘𝑥)↑2) = (𝑥↑2)) |
26 | 25 | oveq1d 7270 |
. . . . 5
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → (((abs‘𝑥)↑2) /L 𝑃) = ((𝑥↑2) /L 𝑃)) |
27 | | simplr 765 |
. . . . . . . . . . 11
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → ¬ 𝑃 ∥ 𝐴) |
28 | 1 | ad3antlr 727 |
. . . . . . . . . . . . 13
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → 𝑃 ∈ ℙ) |
29 | 28, 3 | syl 17 |
. . . . . . . . . . . 12
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → 𝑃 ∈ ℤ) |
30 | | zsqcl 13776 |
. . . . . . . . . . . . 13
⊢ (𝑥 ∈ ℤ → (𝑥↑2) ∈
ℤ) |
31 | 22, 30 | syl 17 |
. . . . . . . . . . . 12
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → (𝑥↑2) ∈ ℤ) |
32 | | simplll 771 |
. . . . . . . . . . . 12
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → 𝐴 ∈ ℤ) |
33 | | simprr 769 |
. . . . . . . . . . . 12
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → 𝑃 ∥ ((𝑥↑2) − 𝐴)) |
34 | | dvdssub2 15938 |
. . . . . . . . . . . 12
⊢ (((𝑃 ∈ ℤ ∧ (𝑥↑2) ∈ ℤ ∧
𝐴 ∈ ℤ) ∧
𝑃 ∥ ((𝑥↑2) − 𝐴)) → (𝑃 ∥ (𝑥↑2) ↔ 𝑃 ∥ 𝐴)) |
35 | 29, 31, 32, 33, 34 | syl31anc 1371 |
. . . . . . . . . . 11
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → (𝑃 ∥ (𝑥↑2) ↔ 𝑃 ∥ 𝐴)) |
36 | 27, 35 | mtbird 324 |
. . . . . . . . . 10
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → ¬ 𝑃 ∥ (𝑥↑2)) |
37 | | 2nn 11976 |
. . . . . . . . . . . 12
⊢ 2 ∈
ℕ |
38 | 37 | a1i 11 |
. . . . . . . . . . 11
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → 2 ∈
ℕ) |
39 | | prmdvdsexp 16348 |
. . . . . . . . . . 11
⊢ ((𝑃 ∈ ℙ ∧ 𝑥 ∈ ℤ ∧ 2 ∈
ℕ) → (𝑃 ∥
(𝑥↑2) ↔ 𝑃 ∥ 𝑥)) |
40 | 28, 22, 38, 39 | syl3anc 1369 |
. . . . . . . . . 10
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → (𝑃 ∥ (𝑥↑2) ↔ 𝑃 ∥ 𝑥)) |
41 | 36, 40 | mtbid 323 |
. . . . . . . . 9
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → ¬ 𝑃 ∥ 𝑥) |
42 | | dvds0 15909 |
. . . . . . . . . . . 12
⊢ (𝑃 ∈ ℤ → 𝑃 ∥ 0) |
43 | 29, 42 | syl 17 |
. . . . . . . . . . 11
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → 𝑃 ∥ 0) |
44 | | breq2 5074 |
. . . . . . . . . . 11
⊢ (𝑥 = 0 → (𝑃 ∥ 𝑥 ↔ 𝑃 ∥ 0)) |
45 | 43, 44 | syl5ibrcom 246 |
. . . . . . . . . 10
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → (𝑥 = 0 → 𝑃 ∥ 𝑥)) |
46 | 45 | necon3bd 2956 |
. . . . . . . . 9
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → (¬ 𝑃 ∥ 𝑥 → 𝑥 ≠ 0)) |
47 | 41, 46 | mpd 15 |
. . . . . . . 8
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → 𝑥 ≠ 0) |
48 | | nnabscl 14965 |
. . . . . . . 8
⊢ ((𝑥 ∈ ℤ ∧ 𝑥 ≠ 0) → (abs‘𝑥) ∈
ℕ) |
49 | 22, 47, 48 | syl2anc 583 |
. . . . . . 7
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → (abs‘𝑥) ∈ ℕ) |
50 | 49 | nnzd 12354 |
. . . . . 6
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → (abs‘𝑥) ∈ ℤ) |
51 | 49 | nnne0d 11953 |
. . . . . 6
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → (abs‘𝑥) ≠ 0) |
52 | 50, 29 | gcdcomd 16149 |
. . . . . . 7
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → ((abs‘𝑥) gcd 𝑃) = (𝑃 gcd (abs‘𝑥))) |
53 | | dvdsabsb 15913 |
. . . . . . . . . 10
⊢ ((𝑃 ∈ ℤ ∧ 𝑥 ∈ ℤ) → (𝑃 ∥ 𝑥 ↔ 𝑃 ∥ (abs‘𝑥))) |
54 | 29, 22, 53 | syl2anc 583 |
. . . . . . . . 9
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → (𝑃 ∥ 𝑥 ↔ 𝑃 ∥ (abs‘𝑥))) |
55 | 41, 54 | mtbid 323 |
. . . . . . . 8
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → ¬ 𝑃 ∥ (abs‘𝑥)) |
56 | | coprm 16344 |
. . . . . . . . 9
⊢ ((𝑃 ∈ ℙ ∧
(abs‘𝑥) ∈
ℤ) → (¬ 𝑃
∥ (abs‘𝑥)
↔ (𝑃 gcd
(abs‘𝑥)) =
1)) |
57 | 28, 50, 56 | syl2anc 583 |
. . . . . . . 8
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → (¬ 𝑃 ∥ (abs‘𝑥) ↔ (𝑃 gcd (abs‘𝑥)) = 1)) |
58 | 55, 57 | mpbid 231 |
. . . . . . 7
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → (𝑃 gcd (abs‘𝑥)) = 1) |
59 | 52, 58 | eqtrd 2778 |
. . . . . 6
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → ((abs‘𝑥) gcd 𝑃) = 1) |
60 | | lgssq 26390 |
. . . . . 6
⊢
((((abs‘𝑥)
∈ ℤ ∧ (abs‘𝑥) ≠ 0) ∧ 𝑃 ∈ ℤ ∧ ((abs‘𝑥) gcd 𝑃) = 1) → (((abs‘𝑥)↑2) /L
𝑃) = 1) |
61 | 50, 51, 29, 59, 60 | syl211anc 1374 |
. . . . 5
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → (((abs‘𝑥)↑2) /L 𝑃) = 1) |
62 | | prmnn 16307 |
. . . . . . . . . 10
⊢ (𝑃 ∈ ℙ → 𝑃 ∈
ℕ) |
63 | 28, 62 | syl 17 |
. . . . . . . . 9
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → 𝑃 ∈ ℕ) |
64 | | moddvds 15902 |
. . . . . . . . 9
⊢ ((𝑃 ∈ ℕ ∧ (𝑥↑2) ∈ ℤ ∧
𝐴 ∈ ℤ) →
(((𝑥↑2) mod 𝑃) = (𝐴 mod 𝑃) ↔ 𝑃 ∥ ((𝑥↑2) − 𝐴))) |
65 | 63, 31, 32, 64 | syl3anc 1369 |
. . . . . . . 8
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → (((𝑥↑2) mod 𝑃) = (𝐴 mod 𝑃) ↔ 𝑃 ∥ ((𝑥↑2) − 𝐴))) |
66 | 33, 65 | mpbird 256 |
. . . . . . 7
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → ((𝑥↑2) mod 𝑃) = (𝐴 mod 𝑃)) |
67 | 66 | oveq1d 7270 |
. . . . . 6
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → (((𝑥↑2) mod 𝑃) /L 𝑃) = ((𝐴 mod 𝑃) /L 𝑃)) |
68 | | eldifsni 4720 |
. . . . . . . . . 10
⊢ (𝑃 ∈ (ℙ ∖ {2})
→ 𝑃 ≠
2) |
69 | 68 | ad3antlr 727 |
. . . . . . . . 9
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → 𝑃 ≠ 2) |
70 | 69 | necomd 2998 |
. . . . . . . 8
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → 2 ≠ 𝑃) |
71 | | 2z 12282 |
. . . . . . . . . 10
⊢ 2 ∈
ℤ |
72 | | uzid 12526 |
. . . . . . . . . 10
⊢ (2 ∈
ℤ → 2 ∈ (ℤ≥‘2)) |
73 | 71, 72 | ax-mp 5 |
. . . . . . . . 9
⊢ 2 ∈
(ℤ≥‘2) |
74 | | dvdsprm 16336 |
. . . . . . . . . 10
⊢ ((2
∈ (ℤ≥‘2) ∧ 𝑃 ∈ ℙ) → (2 ∥ 𝑃 ↔ 2 = 𝑃)) |
75 | 74 | necon3bbid 2980 |
. . . . . . . . 9
⊢ ((2
∈ (ℤ≥‘2) ∧ 𝑃 ∈ ℙ) → (¬ 2 ∥
𝑃 ↔ 2 ≠ 𝑃)) |
76 | 73, 28, 75 | sylancr 586 |
. . . . . . . 8
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → (¬ 2 ∥ 𝑃 ↔ 2 ≠ 𝑃)) |
77 | 70, 76 | mpbird 256 |
. . . . . . 7
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → ¬ 2 ∥ 𝑃) |
78 | | lgsmod 26376 |
. . . . . . 7
⊢ (((𝑥↑2) ∈ ℤ ∧
𝑃 ∈ ℕ ∧
¬ 2 ∥ 𝑃) →
(((𝑥↑2) mod 𝑃) /L 𝑃) = ((𝑥↑2) /L 𝑃)) |
79 | 31, 63, 77, 78 | syl3anc 1369 |
. . . . . 6
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → (((𝑥↑2) mod 𝑃) /L 𝑃) = ((𝑥↑2) /L 𝑃)) |
80 | | lgsmod 26376 |
. . . . . . 7
⊢ ((𝐴 ∈ ℤ ∧ 𝑃 ∈ ℕ ∧ ¬ 2
∥ 𝑃) → ((𝐴 mod 𝑃) /L 𝑃) = (𝐴 /L 𝑃)) |
81 | 32, 63, 77, 80 | syl3anc 1369 |
. . . . . 6
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → ((𝐴 mod 𝑃) /L 𝑃) = (𝐴 /L 𝑃)) |
82 | 67, 79, 81 | 3eqtr3d 2786 |
. . . . 5
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → ((𝑥↑2) /L 𝑃) = (𝐴 /L 𝑃)) |
83 | 26, 61, 82 | 3eqtr3rd 2787 |
. . . 4
⊢ ((((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) ∧ (𝑥 ∈ ℤ ∧ 𝑃 ∥ ((𝑥↑2) − 𝐴))) → (𝐴 /L 𝑃) = 1) |
84 | 83 | rexlimdvaa 3213 |
. . 3
⊢ (((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
∧ ¬ 𝑃 ∥ 𝐴) → (∃𝑥 ∈ ℤ 𝑃 ∥ ((𝑥↑2) − 𝐴) → (𝐴 /L 𝑃) = 1)) |
85 | 84 | expimpd 453 |
. 2
⊢ ((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
→ ((¬ 𝑃 ∥
𝐴 ∧ ∃𝑥 ∈ ℤ 𝑃 ∥ ((𝑥↑2) − 𝐴)) → (𝐴 /L 𝑃) = 1)) |
86 | 21, 85 | impbid 211 |
1
⊢ ((𝐴 ∈ ℤ ∧ 𝑃 ∈ (ℙ ∖ {2}))
→ ((𝐴
/L 𝑃) = 1
↔ (¬ 𝑃 ∥
𝐴 ∧ ∃𝑥 ∈ ℤ 𝑃 ∥ ((𝑥↑2) − 𝐴)))) |