Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(2.11), proof of (2.7), p. 527 — if (h mod p) ∤ (gcd(f,b) mod p), every v ∈ M with deg v < e + l lies in pᵏℤ[X]

Proved
LLLFactor.Factors.claim_2_11

by mikedeng1 · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

gcdlatticep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1polynomial-factorization

Assume the setting of Sect. 2: ppp prime, k≥1k\ge1k≥1, f∈Z[X]f\in\mathbb Z[X]f∈Z[X] of degree n>0n>0n>0, hhh satisfying (2.1)–(2.4), l=deg⁡hl=\deg hl=degh, and an integer m≥lm\ge lm≥l. Let b≠0b\neq0b=0 be an element of the lattice LLL of (2.6), and let ggg be a greatest common divisor of fff and bbb in Z[X]\mathbb Z[X]Z[X] (a common divisor that every common divisor divides). Suppose that (h mod p)(h\bmod p)(hmodp) does not divide (g mod p)(g\bmod p)(gmodp) in Fp[X]\mathbb F_p[X]Fp​[X]. Put e=deg⁡ge=\deg ge=degg, m′=deg⁡bm'=\deg bm′=degb and

M={λf+μb: λ,μ∈Z[X], deg⁡λ<m′−e, deg⁡μ<n−e}.M=\{\lambda f+\mu b:\ \lambda,\mu\in\mathbb Z[X],\ \deg\lambda<m'-e,\ \deg\mu<n-e\}.M={λf+μb: λ,μ∈Z[X], degλ<m′−e, degμ<n−e}.

Then

{v∈M: deg⁡v<e+l}⊂pkZ[X],\{v\in M:\ \deg v<e+l\}\subset p^k\mathbb Z[X],{v∈M: degv<e+l}⊂pkZ[X],

that is, every coefficient of such a vvv is divisible by pkp^kpk.

This is the key step in the proof by contradiction of Proposition (2.7): combined with a determinant bound it shows that the assumption (h mod p)∤(g mod p)(h\bmod p)\nmid(g\bmod p)(hmodp)∤(gmodp) is impossible.

Formalization Note Degrees of λ,μ,v\lambda,\mu,vλ,μ,v are Mathlib's degree with values in WithBot ℕ, so λ=0\lambda=0λ=0 or μ=0\mu=0μ=0 (degree −∞-\infty−∞) is allowed, as on the page. The differences m′−em'-em′−e and n−en-en−e are natural-number differences; they are exact because ggg divides the nonzero polynomials bbb and fff. The page derives (2.11) from the Bézout relation (2.9), which itself follows from (h mod p)∤(g mod p)(h\bmod p)\nmid(g\bmod p)(hmodp)∤(gmodp) and (2.3); the Lean statement assumes the non-divisibility, not (2.9).

Preamble
import Mathlib
import Definitions.Def_LLLFactor_Factors_Setting

open Polynomial
Formal statement
namespace LLLFactor.Factors

theorem claim_2_11 {p k : ℕ} (f h : ℤ[X]) (hS : IsSetting p k f h)
    (m : ℕ) (hm : h.natDegree ≤ m)
    (b : ℤ[X]) (hbL : b ∈ latticeL p k h m) (hb0 : b ≠ 0)
    (g : ℤ[X]) (hgf : g ∣ f) (hgb : g ∣ b) (hg_gcd : ∀ d : ℤ[X], d ∣ f → d ∣ b → d ∣ g)
    (hndvd : ¬ modPk p h ∣ modPk p g) :
    ∀ lam mu' : ℤ[X],
      lam.degree < ((b.natDegree - g.natDegree : ℕ) : WithBot ℕ) →
      mu'.degree < ((f.natDegree - g.natDegree : ℕ) : WithBot ℕ) →
      (lam * f + mu' * b).degree < ((g.natDegree + h.natDegree : ℕ) : WithBot ℕ) →
      ∀ i : ℕ, ((p ^ k : ℕ) : ℤ) ∣ (lam * f + mu' * b).coeff i := by sorry

end LLLFactor.Factors
Source
Lenstra, Lenstra, Lovász, Factoring polynomials with rational coefficients, Math. Ann. 261 (1982), p. 527, (2.11) in the proof of (2.7) Proposition
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me