Lefebvre's variations, No. 296 — on a theme by Germain: there are exactly 37 Sophie Germain primes up to 1000
ProvedLefebvreVariations.sophie_germain_primes_le_1000_countThere are exactly Sophie Germain primes up to , i.e. primes with prime:
The Sophie Germain conjecture asks for infinitely many such primes; the Hardy-Littlewood heuristic predicts about of them up to (about , versus the true at this small size). The first ones are
Formalization Note The set is the parent's {p | Nat.Prime p ∧ Nat.Prime (2*p+1)} intersected with ; its cardinality is Set.ncard, finite by the bound, so no junk value occurs.
Why this is a variation. Variation of the open platform problem sophie_germain_prime_conjecture (infinitely many primes p with 2p+1 prime). It is the parent's own set at a first finite size, with its exact cardinality below 1000. A partial finite result, checkable by decide; no formal link to infinitude is claimed.
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 sophie_germain_primes_le_1000_count :
{p : ℕ | Nat.Prime p ∧ p ≤ 1000 ∧ Nat.Prime (2 * p + 1)}.ncard = 37 := by sorry
end LefebvreVariations