Lefebvre's variations, No. 287 — on a theme by Kummer: the primes up to 163 that are regular are all but 37, 59, 67, 101, 103, 131, 149 and 157
ProvedLefebvreVariations.irregular_primes_below_163For every prime , is regular (it divides the numerator of none of ) if and only if :
The regular prime conjecture asks whether infinitely many primes are regular. Here the set of regular primes is pinned down exactly up to 163: it contains and misses exactly the eight irregular primes in that range (37 is the smallest irregular prime, by Kummer).
Formalization Note The left-hand side is the parent's own predicate, verbatim (Fin ((p - 3) / 2 + 1), bernoulli (2 * (k.val + 1)), numerator in ); for and it holds, so they are counted as regular, as in the parent's set. The range of indices reaches , whose numerator is prime to by von Staudt-Clausen, so it never changes the answer.
Why this is a variation. Variation of the open platform problem regular_prime_conjecture (infinitely many regular primes). It plays the parent's own predicate at a first finite range: the exact set of regular primes up to 163 (all primes but the eight irregular ones). It is a partial result giving an explicit, finitely checkable initial segment of the set whose infinitude is asked; no formal link to the parent is claimed beyond the shared definition.
Attribution. This statement belongs to Lefebvre's variations, a series proposed by Erwan Lefebvre: each variation plays an open problem of the platform at its first non-trivial size, so that it can be settled and then reused to attack the open problem itself.
import Mathlib set_option autoImplicit false
namespace LefebvreVariations
theorem irregular_primes_below_163 (p : ℕ) (hp : Nat.Prime p) (h : p ≤ 163) :
(∀ k : Fin ((p - 3) / 2 + 1), ¬((p : ℤ) ∣ (bernoulli (2 * (k.val + 1))).num)) ↔
p ∉ ({37, 59, 67, 101, 103, 131, 149, 157} : Finset ℕ) := by sorry
end LefebvreVariations