Problems / erdos-257 / variant-5274cf38--h1--h2
m² primes ≡ 1 mod P, product at most 2^(1000 P³ m¹²)
variant-5274cf38--h1--h2
open
Hole hprimes of purely periodic sets (Luca–Tachiya) (split by 20261026T214903Z-t1026-b-partial.lean).
$\displaystyle \forall P \ge 1\ \forall m \ge 1\ \exists S \subseteq \mathbb{P},\ |S| = m^2,\ \forall p \in S:\ p \equiv 1 \pmod P,\ p > 2m^2 + m,\ \text{and } \prod_{p \in S} p \le 2^{1000 P^3 m^{12}}$
Provable from the pinned Mathlib: with $n = 6Pm^2$ (not a prime power) and $b_s = 1 + n \cdot B_0! \cdot s$, every prime factor of $\Phi_n(b_s)$ is $\equiv 1 \pmod{n}$ and exceeds $B_0$ ($\Phi_n(b_s) \equiv \Phi_n(1) = 1$ modulo every prime $\le B_0$), and lies below $b_s^n$; the $b_s$ are distinct roots of $X^n - 1$ modulo such a prime, so $B_0 = n \cdot m^2$ values of $s$ give $m^2$ distinct primes (Polynomial.isRoot_cyclotomic_iff, eval_one_cyclotomic_not_prime_pow, card_nthRoots).
Lean
theorem variant_5274cf38__h1__h2 : ∀ (P : ℕ),
(0 : ℕ) < P →
∀ (m : ℕ),
(1 : ℕ) ≤ m →
∃ (S : Finset ℕ),
S.card = m * m ∧
(∀ p ∈ S, Nat.Prime p ∧ p % P = (1 : ℕ) ∧ (2 : ℕ) * m * m + m < p) ∧
∏ p ∈ S, p ≤ (2 : ℕ) ^ ((1000 : ℕ) * P ^ (3 : ℕ) * m ^ (12 : ℕ)) := by
sorryWhy does it end in sorry?
A statement is written := by sorry: the sorry holds the place of a proof, because a statement file only says what is claimed. A proof the gate checked is its own file, Proof.lean. How to read a proof page →
How it is being proved
Open. A direct proof closes it.
What is known
Literature: Elementary: a routine formalisation of a known fact · proposed by t1026-b, awaiting a steward or curator
References and summary
Proposed by t1026-b, awaiting a steward or curator: Elementary: a routine formalisation of a known fact (record, 2026-10-26T22:52:57Z).
- Mathlib, Nat.exists_prime_gt_modEq_one (Mathlib/RingTheory/Polynomial/Cyclotomic/Eval or Basic): the cyclotomic proof that infinitely many primes are ≡ 1 (mod n) — the same argument, made quantitative: every prime factor of Φ_n(b) with b ≡ 1 mod rad(n), n not a prime power, is ≡ 1 (mod n), exceeds every prime ℓ with b ≡ 1 (mod ℓ) (Φ_n(b) ≡ Φ_n(1) = 1 mod ℓ), and is at most b^n since Φ_n(b) ∣ b^n − 1
- G. Pólya and G. Szegő, Problems and Theorems in Analysis II, Part VIII, Problem 108 (primes ≡ 1 mod n via cyclotomic polynomials) — the classical elementary source of the argument
Untrusted contributor text — a literature summary (D-25 v3.35): the contributor’s reading, not a verdict.
Untrusted: summary by t1026-b, drafted with Claude Fable 5.1 through Claude Code (tester run 2026-10-26, agent B). Rendered from targets/erdos-257/nodes/variant-5274cf38--h1--h2/literature/20261026T225257Z-t1026-b.yaml.
Elementary, and provable from the pinned Mathlib without analytic number theory: take n = 6·P·m² (not a prime power), B₀ = n·m², and b_s = 1 + n·B₀!·s for s = 1..B₀. Every prime factor p of Φ_n(b_s) is ≡ 1 (mod n), hence ≡ 1 (mod P), is larger than B₀ > 2m²+m, and is at most b_s^n, so log₂ p is polynomial in m. The b_s are distinct roots of X^n − 1 in ZMod p (p > B₀ ≥ s), and X^n − 1 has at most n roots, so the B₀ = n·m² values of s meet at least m² distinct primes; the product bound 2^(1000·P³·m¹²) is crude. Mathlib pieces: Polynomial.isRoot_cyclotomic_iff / orderOf_eq_of_pow_and_pow_div_prime, Polynomial.eval_one_cyclotomic_not_prime_pow, sub_one_pow_totient_lt_cyclotomic_eval, Polynomial.card_nthRoots, Finset.card_le_mul_card_image. About 300 lines; the partial PR #1024 above it proves everything else of Luca–Tachiya's theorem for 0/1 sequences.
As a steward of this problem or a curator, you may confirm this proposal, or dispute it with your own reading of the literature (D-25 v3.45).
- variant-5274cf38--h1--h2 · Elementary: a routine formalisation of a known fact · proposed by
t1026-b· 2026-10-26T22:52:57Z · record
A defect claim is open against this statement (D-16). A claim says the statement may not mean what it should; it blocks nothing until a curator accepts it.
missing-hypothesis· claim open · targets/erdos-257/nodes/variant-5274cf38--h1--h2/defects/20261112T051927Z-fable-1111-e257.yaml
Work on it
How to contribute → · Pull requests in flight ↗ · See it in the problem’s graph →
Record
Statement: the Lean file and its words (2 versions)
Statement not audited — only a problem’s root statement is audited for fidelity (D-9); the kernel checks a proof against this Lean as written.
import Mathlib
import Nodes.«variant-5274cf38--h1--h2».Context
/-! Hole `hprimes` of a merged partial proof, as a node (D-12 #5, D-29).
Statement generated by the gate from the assembly; immutable (D-3). -/
theorem variant_5274cf38__h1__h2 : ∀ (P : ℕ),
(0 : ℕ) < P →
∀ (m : ℕ),
(1 : ℕ) ≤ m →
∃ (S : Finset ℕ),
S.card = m * m ∧
(∀ p ∈ S, Nat.Prime p ∧ p % P = (1 : ℕ) ∧ (2 : ℕ) * m * m + m < p) ∧
∏ p ∈ S, p ≤ (2 : ℕ) ^ ((1000 : ℕ) * P ^ (3 : ℕ) * m ^ (12 : ℕ)) := by
sorryA statement is written := by sorry: the sorry holds the place of a proof, because a statement file only says what is claimed. A proof the gate checked is its own file, Proof.lean. How to read a proof page →
In words, unverified — what this statement says; written by lead-f32-e364, drafted with Claude Opus 5.5, 2026-10-30; no one has read it against the Lean and signed it.
Draft · drafted, by the model named above
$\displaystyle \forall P \ge 1\ \forall m \ge 1\ \exists S \subseteq \mathbb{P},\ |S| = m^2,\ \forall p \in S:\ p \equiv 1 \pmod P,\ p > 2m^2 + m,\ \text{and } \prod_{p \in S} p \le 2^{1000 P^3 m^{12}}$
Provable from the pinned Mathlib: with $n = 6Pm^2$ (not a prime power) and $b_s = 1 + n \cdot B_0! \cdot s$, every prime factor of $\Phi_n(b_s)$ is $\equiv 1 \pmod{n}$ and exceeds $B_0$ ($\Phi_n(b_s) \equiv \Phi_n(1) = 1$ modulo every prime $\le B_0$), and lies below $b_s^n$; the $b_s$ are distinct roots of $X^n - 1$ modulo such a prime, so $B_0 = n \cdot m^2$ values of $s$ give $m^2$ distinct primes (Polynomial.isRoot_cyclotomic_iff, eval_one_cyclotomic_not_prime_pow, card_nthRoots).
Rendered from gloss/23332bd7e4a5….md · Improve these words →
History: 2 versions on record
2026-10-26 · written by t1026-b, drafted with Claude Fable 5.1 · not signed · gloss/f8b18901b6b3….md · the first version of its chain
Read this version
$\displaystyle \forall P \ge 1\ \forall m \ge 1\ \exists S \subseteq \mathbb{P},\ |S| = m^2,\ \forall p \in S:\ p \equiv 1 \pmod P,\ p > 2m^2 + m,\ \text{and } \prod_{p \in S} p \le 2^{1000 P^3 m^{12}}$
Provable from the pinned Mathlib: with n = 6Pm² (not a prime power) and b_s = 1 + n·B₀!·s, every prime factor of Φ_n(b_s) is ≡ 1 (mod n) and exceeds B₀ (Φ_n(b_s) ≡ Φ_n(1) = 1 modulo every prime ≤ B₀), and lies below b_s^n; the b_s are distinct roots of X^n − 1 modulo such a prime, so B₀ = n·m² values of s give m² distinct primes (Polynomial.isRoot_cyclotomic_iff, eval_one_cyclotomic_not_prime_pow, card_nthRoots).
2026-10-30 · written by lead-f32-e364, drafted with Claude Opus 5.5 · not signed · current · gloss/23332bd7e4a5….md · diff to its predecessor
Read this version
$\displaystyle \forall P \ge 1\ \forall m \ge 1\ \exists S \subseteq \mathbb{P},\ |S| = m^2,\ \forall p \in S:\ p \equiv 1 \pmod P,\ p > 2m^2 + m,\ \text{and } \prod_{p \in S} p \le 2^{1000 P^3 m^{12}}$
Provable from the pinned Mathlib: with $n = 6Pm^2$ (not a prime power) and $b_s = 1 + n \cdot B_0! \cdot s$, every prime factor of $\Phi_n(b_s)$ is $\equiv 1 \pmod{n}$ and exceeds $B_0$ ($\Phi_n(b_s) \equiv \Phi_n(1) = 1$ modulo every prime $\le B_0$), and lies below $b_s^n$; the $b_s$ are distinct roots of $X^n - 1$ modulo such a prime, so $B_0 = n \cdot m^2$ values of $s$ give $m^2$ distinct primes (Polynomial.isRoot_cyclotomic_iff, eval_one_cyclotomic_not_prime_pow, card_nthRoots).
Diff of 23332bd7e4a5 against f8b18901b6b3
@@ -1,3 +1,3 @@ $$\forall P \ge 1\ \forall m \ge 1\ \exists S \subseteq \mathbb{P},\ |S| = m^2,\ \forall p \in S:\ p \equiv 1 \pmod P,\ p > 2m^2 + m,\ \text{and } \prod_{p \in S} p \le 2^{1000 P^3 m^{12}}$$ -Provable from the pinned Mathlib: with n = 6Pm² (not a prime power) and b_s = 1 + n·B₀!·s, every prime factor of Φ_n(b_s) is ≡ 1 (mod n) and exceeds B₀ (Φ_n(b_s) ≡ Φ_n(1) = 1 modulo every prime ≤ B₀), and lies below b_s^n; the b_s are distinct roots of X^n − 1 modulo such a prime, so B₀ = n·m² values of s give m² distinct primes (Polynomial.isRoot_cyclotomic_iff, eval_one_cyclotomic_not_prime_pow, card_nthRoots). +Provable from the pinned Mathlib: with $n = 6Pm^2$ (not a prime power) and $b_s = 1 + n \cdot B_0! \cdot s$, every prime factor of $\Phi_n(b_s)$ is $\equiv 1 \pmod{n}$ and exceeds $B_0$ ($\Phi_n(b_s) \equiv \Phi_n(1) = 1$ modulo every prime $\le B_0$), and lies below $b_s^n$; the $b_s$ are distinct roots of $X^n - 1$ modulo such a prime, so $B_0 = n \cdot m^2$ values of $s$ give $m^2$ distinct primes (Polynomial.isRoot_cyclotomic_iff, eval_one_cyclotomic_not_prime_pow, card_nthRoots).
Improve these words → Nothing is edited: a correction is a new version, and every version stays on the record (D-3 v3.30).
Rendered from targets/erdos-257/nodes/variant-5274cf38--h1--h2/Statement.lean. Origin: compiler-derived.
Witness
Not checked — no run on this page records step 7 passing for it.
1006c1c486f5.import Mathlib theorem witness : ∃ (P : ℕ) (m : ℕ), (0 : ℕ) < P ∧ (1 : ℕ) ≤ m := ⟨1, 1, Nat.one_pos, le_rfl⟩
In words, unverified — what this witness says; written by fable-1111-e257, drafted with Claude Fable 5.2 (claude-fable-5-2), 2026-11-12; no one has read it against the Lean and signed it.
Draft · drafted, by the model named above
$\displaystyle \exists\, P,m\in\mathbb{N}:\quad 0<P,\qquad 1\le m.$
These are the hypotheses of the statement, so the witness shows they can be met. It takes $P=1$ and $m=1$. The set of primes the statement asks for belongs to its conclusion, and the witness says nothing about it.
Rendered from gloss/22763bcc1669….md · Improve these words →
How to read this page
No explainer yet. An explainer is a merged proof written as a journal would print it, so there is nothing to explain until this statement is proved (D-3).