Proof of Lemma 3, p. 14 — if gcd(q, M) ≠ q then gcd(q, M) ≤ q/2
ProvedJRPHard.RangeDiv.gcd_le_halfdivisorsgcdp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1
Let be a natural number and a positive integer. If , then
The greatest common divisor is a divisor of ; a divisor of other than itself is at most . This is what separates non-divisors of from divisors in problem (5).
Formalization Note The bound is stated without division, as in the natural numbers.
Preamble
import Mathlib import Definitions.Def_JRPHard_RangeDiv_Setting
Formal statement
namespace JRPHard.RangeDiv
theorem gcd_le_half (M q : ℕ) (hq : 0 < q) (hne : Nat.gcd q M ≠ q) :
2 * Nat.gcd q M ≤ q := by sorry
end JRPHard.RangeDiv
Source
Schulz and Telha, Integer factorization and Riemann's hypothesis: Why two-item joint replenishment is hard, arXiv:2007.09045v1, p. 14, §3.1, proof of Lemma 3, "Note that for any integer q satisfying gcd(q, M) ≠ q"
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.