Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(2.16) Proposition, p. 528 — if t is the largest j with |b_j| < (p^{kl}/|f|^m)^{1/n}, then deg h₀ = m + 1 − t and h₀ = gcd(b₁, …, b_t)

Proved
LLLFactor.Factors.prop_2_16

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

irreducible-factorlattice-basis-reductionlllp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1polynomial-factorization

Let the notation and the hypotheses be as in Proposition (2.13): ppp prime, k≥1k\ge1k≥1, f∈Z[X]f\in\mathbb Z[X]f∈Z[X] of degree n>0n>0n>0, h∈Z[X]h\in\mathbb Z[X]h∈Z[X] satisfying (2.1)–(2.4) with l=deg⁡hl=\deg hl=degh, h0h_0h0​ the irreducible factor of fff of (2.5), an integer m≥lm\ge lm≥l, a reduced basis b1,…,bm+1b_1,\dots,b_{m+1}b1​,…,bm+1​ for the lattice LLL of (2.6), and

(2.14)pkl>2mn/2(2mm)n/2∣f∣m+n.\text{(2.14)}\qquad p^{kl}>2^{mn/2}\binom{2m}{m}^{n/2}|f|^{m+n}.(2.14)pkl>2mn/2(m2m​)n/2∣f∣m+n.

Assume in addition that there is an index j∈{1,…,m+1}j\in\{1,\dots,m+1\}j∈{1,…,m+1} with

(2.17)∣bj∣<(pkl/∣f∣m)1/n,\text{(2.17)}\qquad |b_j|<\big(p^{kl}/|f|^m\big)^{1/n},(2.17)∣bj​∣<(pkl/∣f∣m)1/n,

and let ttt be the largest such jjj. Then

  1. deg⁡h0=m+1−t\deg h_0=m+1-tdegh0​=m+1−t;
  2. h0=gcd⁡(b1,b2,…,bt)h_0=\gcd(b_1,b_2,\dots,b_t)h0​=gcd(b1​,b2​,…,bt​) (up to sign);
  3. (2.17) holds for all jjj with 1≤j≤t1\le j\le t1≤j≤t.

This is the step that turns lattice basis reduction into a factoring algorithm: once mmm is large enough, the short vectors of a reduced basis of LLL cut out exactly the irreducible factor h0h_0h0​, recovered by a gcd computation.

Formalization Note ttt is the paper's 1-based index, 1≤t≤m+11\le t\le m+11≤t≤m+1; the paper's btb_tbt​ is Lean's b ⟨t - 1, _⟩, and "j>tj>tj>t" is Lean's t ≤ j. "ttt is the largest jjj with (2.17)" is the pair of hypotheses: (2.17) holds at ttt, and fails at every later index. "h0=gcd⁡(b1,…,bt)h_0=\gcd(b_1,\dots,b_t)h0​=gcd(b1​,…,bt​)" is stated as: h0h_0h0​ divides each of b1,…,btb_1,\dots,b_tb1​,…,bt​, and every common divisor of b1,…,btb_1,\dots,b_tb1​,…,bt​ divides h0h_0h0​ (a gcd in Z[X]\mathbb Z[X]Z[X] is determined up to the units ±1\pm1±1). Real powers as in (2.13).

Preamble
import Mathlib
import Definitions.Def_LLLFactor_Factors_Setting

open Polynomial
Formal statement
namespace LLLFactor.Factors

theorem prop_2_16 {p k : ℕ} (f h : ℤ[X]) (hS : IsSetting p k f h)
    (m : ℕ) (hm : h.natDegree ≤ m) (h₀ : ℤ[X]) (hh₀ : IsH0 p f h h₀)
    (b : Fin (m + 1) → ℤ[X]) (hb : IsReducedBasisOfL p k h m b)
    (h214 : (2 : ℝ) ^ ((m : ℝ) * (f.natDegree : ℝ) / 2) *
        ((Nat.choose (2 * m) m : ℕ) : ℝ) ^ ((f.natDegree : ℝ) / 2) *
        polyNorm f ^ (m + f.natDegree) < (p : ℝ) ^ (k * h.natDegree))
    (t : ℕ) (ht1 : 1 ≤ t) (htm : t ≤ m + 1)
    (htJ : polyNorm (b ⟨t - 1, by omega⟩) <
        ((p : ℝ) ^ (k * h.natDegree) / polyNorm f ^ m) ^ ((1 : ℝ) / (f.natDegree : ℝ)))
    (htmax : ∀ j : Fin (m + 1), t ≤ (j : ℕ) →
      ¬ polyNorm (b j) <
        ((p : ℝ) ^ (k * h.natDegree) / polyNorm f ^ m) ^ ((1 : ℝ) / (f.natDegree : ℝ))) :
    h₀.natDegree = m + 1 - t ∧
    ((∀ j : Fin (m + 1), (j : ℕ) < t → h₀ ∣ b j) ∧
      (∀ g : ℤ[X], (∀ j : Fin (m + 1), (j : ℕ) < t → g ∣ b j) → g ∣ h₀)) ∧
    (∀ j : Fin (m + 1), (j : ℕ) < t →
      polyNorm (b j) <
        ((p : ℝ) ^ (k * h.natDegree) / polyNorm f ^ m) ^ ((1 : ℝ) / (f.natDegree : ℝ))) := by sorry

end LLLFactor.Factors
Source
Lenstra, Lenstra, Lovász, Factoring polynomials with rational coefficients, Math. Ann. 261 (1982), pp. 528–529, (2.16) 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