Two covering systems from Erdős (1950)
ProvedErdos1950.covering_systems- Every integer satisfies at least one of
- Every integer satisfies at least one of the fourteen congruences
a covering system none of whose moduli is .
Erdős presents both as examples of covering systems; the second shows that modulus can be avoided.
Formalization Note Congruences are written with Lean's non-negative integer remainder %.
import Definitions.Def_Erdos1950_Defs import Mathlib.Analysis.SpecialFunctions.Log.Basic import Mathlib.NumberTheory.Divisors open Erdos1950
namespace Erdos1950
theorem covering_systems :
(∀ n : ℤ, n % 2 = 0 ∨ n % 3 = 0 ∨ n % 4 = 1 ∨ n % 6 = 5 ∨ n % 12 = 7) ∧
(∀ n : ℤ, n % 3 = 0 ∨ n % 4 = 0 ∨ n % 5 = 0 ∨ n % 6 = 1 ∨ n % 8 = 6 ∨ n % 10 = 3 ∨
n % 12 = 5 ∨ n % 15 = 11 ∨ n % 20 = 7 ∨ n % 24 = 10 ∨ n % 30 = 2 ∨ n % 40 = 34 ∨
n % 60 = 59 ∨ n % 120 = 98) := by sorry
end Erdos1950Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Statement (no hypotheses; no definitions from the accompanying definitions file are used). Throughout, for an integer and a positive modulus , "" denotes the remainder in (Euclidean remainder, so it is non-negative also for negative ); hence "" with is exactly the congruence . The theorem asserts the conjunction of two claims, each quantified over all integers (negative ones included).
Part 1. For every integer , at least one of the following holds:
Part 2. For every integer , at least one of the following fourteen congruences holds:
Remarks. Every residue written is in the range for its modulus , so each condition is a genuine congruence class (none is unsatisfiable by being out of range). The claims are "at least one" (inclusive or); nothing is asserted about the classes being disjoint, about the moduli being distinct, or about any connection to numbers of the form . Each part is a statement about residues modulo the least common multiple of its moduli ( for Part 1, for Part 2).
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.