Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Proof of Lemma 2, p. 12 — if gcd(q, M) = 1 or gcd(q, M) = M, then M/gcd(q, M) + q ≥ M

Proved
JRPHard.Periodic.trivial_gcd_value

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

gcdinteger-factorizationp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let MMM be a natural number and qqq a positive integer with gcd⁡(q,M)=1\gcd(q,M) = 1gcd(q,M)=1 or gcd⁡(q,M)=M\gcd(q,M) = Mgcd(q,M)=M. Then the objective of problem (4) at qqq satisfies

Mgcd⁡(q,M)+q≥M.\frac{M}{\gcd(q,M)} + q \ge M.gcd(q,M)M​+q≥M.

A period q1q_1q1​ that shares no non-trivial factor with MMM (or is a multiple of MMM) therefore costs at least MMM in problem (4), more than the value 2M/32M/32M/3 attained at a non-trivial divisor; so every optimal q1q_1q1​ has 1<gcd⁡(q1,M)<M1 < \gcd(q_1,M) < M1<gcd(q1​,M)<M.

Formalization Note The paper states this for the odd composite MMM of Lemma 2; it holds for every natural number MMM, which is how it is stated.

Preamble
import Mathlib
import Definitions.Def_JRPHard_Periodic_Setting
Formal statement
namespace JRPHard.Periodic

theorem trivial_gcd_value (M q : ℕ) (hq : 0 < q)
    (hg : Nat.gcd q M = 1 ∨ Nat.gcd q M = M) :
    (M : ℝ) ≤ obj4 M q := by sorry

end JRPHard.Periodic
Source
Schulz and Telha, Integer factorization and Riemann's hypothesis: Why two-item joint replenishment is hard, arXiv:2007.09045v1, p. 12, §2.2, proof of Lemma 2, first sentence of p. 12
Human review
  • Endorsed by Shuze Chen · Oct 15, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 15, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me