Metamath Proof Explorer


Theorem lgsqrlem5

Description: Lemma for lgsqr . (Contributed by Mario Carneiro, 15-Jun-2015)

Ref Expression
Assertion lgsqrlem5 ⊢ A ∈ ℤ ∧ P ∈ ℙ ∖ 2 ∧ A / L P = 1 → ∃ x ∈ ℤ P ∥ x 2 − A

Proof

Step Hyp Ref Expression
1 eqid ⊢ ℤ/Pℤ = ℤ/Pℤ
2 eqid ⊢ Poly 1 ⁡ ℤ/Pℤ = Poly 1 ⁡ ℤ/Pℤ
3 eqid ⊢ Base Poly 1 ⁡ ℤ/Pℤ = Base Poly 1 ⁡ ℤ/Pℤ
4 eqid ⊢ deg 1 ⁡ ℤ/Pℤ = deg 1 ⁡ ℤ/Pℤ
5 eqid ⊢ eval 1 ⁡ ℤ/Pℤ = eval 1 ⁡ ℤ/Pℤ
6 eqid ⊢ ⋅ mulGrp Poly 1 ⁡ ℤ/Pℤ = ⋅ mulGrp Poly 1 ⁡ ℤ/Pℤ
7 eqid ⊢ var 1 ⁡ ℤ/Pℤ = var 1 ⁡ ℤ/Pℤ
8 eqid ⊢ - Poly 1 ⁡ ℤ/Pℤ = - Poly 1 ⁡ ℤ/Pℤ
9 eqid ⊢ 1 Poly 1 ⁡ ℤ/Pℤ = 1 Poly 1 ⁡ ℤ/Pℤ
10 eqid ⊢ P − 1 2 ⋅ mulGrp Poly 1 ⁡ ℤ/Pℤ var 1 ⁡ ℤ/Pℤ - Poly 1 ⁡ ℤ/Pℤ 1 Poly 1 ⁡ ℤ/Pℤ = P − 1 2 ⋅ mulGrp Poly 1 ⁡ ℤ/Pℤ var 1 ⁡ ℤ/Pℤ - Poly 1 ⁡ ℤ/Pℤ 1 Poly 1 ⁡ ℤ/Pℤ
11 eqid ⊢ ℤRHom ⁡ ℤ/Pℤ = ℤRHom ⁡ ℤ/Pℤ
12 simp2 ⊢ A ∈ ℤ ∧ P ∈ ℙ ∖ 2 ∧ A / L P = 1 → P ∈ ℙ ∖ 2
13 eqid ⊢ y ∈ 1 … P − 1 2 ⟼ ℤRHom ⁡ ℤ/Pℤ ⁡ y 2 = y ∈ 1 … P − 1 2 ⟼ ℤRHom ⁡ ℤ/Pℤ ⁡ y 2
14 simp1 ⊢ A ∈ ℤ ∧ P ∈ ℙ ∖ 2 ∧ A / L P = 1 → A ∈ ℤ
15 simp3 ⊢ A ∈ ℤ ∧ P ∈ ℙ ∖ 2 ∧ A / L P = 1 → A / L P = 1
16 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 lgsqrlem4 ⊢ A ∈ ℤ ∧ P ∈ ℙ ∖ 2 ∧ A / L P = 1 → ∃ x ∈ ℤ P ∥ x 2 − A