Title:Erdős Problem 436
Statement:If is a prime and , let be the minimal such that are all th power residues modulo , and let . Is finite for all ?
A question of Lehmer and Lehmer [LeLe62]. Hildebrand [Hi91] proved that is finite for all .
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | question |
| Cite as: | NS.02130 [math.NT] · NS.02130v1 for this version |
| Declaration: | Erdos436.erdos_436.parts.i |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | 7cc33a8a2da0e7304dcad8dc29e104fcf9c0682c2d81ddb0ed9c2acd8101f9b7 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/436.lean |
Formal statement
theorem erdos_436.parts.i : ∀ k ≥ 2, Λ k 2 < ⊤Show the full Challenge.lean (158 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 436
*References:*
- [erdosproblems.com/436](https://www.erdosproblems.com/436)
- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number
theory*. Monographies de L'Enseignement Mathematique (1980).
- [LeLe62] Lehmer, D. H. and Lehmer, Emma, *On runs of residues*. Proc. Amer. Math. Soc. (1962),
102-106.
- [LLMS62] Lehmer, D. H. and Lehmer, E. and Mills, W. H. and Selfridge, J. L., *Machine proof of a
theorem on cubic residues*. Math. Comp. (1962), 407-415.
- [BiMi63] Bierstedt, R. G. and Mills, W. H., *On the bound for a pair of consecutive quartic
residues of a prime*. Proc. Amer. Math. Soc. (1963), 628-632.
- [LLM63] Lehmer, D. H. and Lehmer, Emma and Mills, W. H., *Pairs of consecutive power residues*.
Canadian J. Math. (1963), 172-177.
- [BLL64] Brillhart, John and Lehmer, D. H. and Lehmer, Emma, *Bounds for pairs of consecutive
seventh and higher power residues*. Math. Comp. (1964), 397-407.
- [Gr64g] Graham, R. L., *On quadruples of consecutive $k$th power residues*. Proc. Amer. Math.
Soc. (1964), 196-197.
- [Du65] Dunton, M., *Bounds for pairs of cubic residues*. Proc. Amer. Math. Soc. (1965),
330-332.
- [Hi91] Hildebrand, Adolf, *On consecutive $k$th power residues. II*. Michigan Math. J. (1991),
241-253.
-/
@[expose] public section
open Filter
namespace Erdos436
/-- `IsPowerResidue k p a` means that $a$ is a $k$th power residue modulo $p$, that is,
$p \nmid a$ and $a \equiv x^k \pmod{p}$ for some $x$. -/
def IsPowerResidue (k p a : ℕ) : Prop :=
(a : ZMod p) ≠ 0 ∧ ∃ x : ZMod p, x ^ k = a
/-- `r k m p` is the least $r \geq 1$ such that $r, r + 1, \ldots, r + m - 1$ are all $k$th
power residues modulo $p$, or `⊤` if there is no such $r$. -/
noncomputable def r (k m p : ℕ) : ℕ∞ :=
⨅ (n : ℕ) (_ : 1 ≤ n ∧ ∀ i < m, IsPowerResidue k p (n + i)), (n : ℕ∞)
/-- $\Lambda(k, m) = \limsup_{p \to \infty} r(k, m, p)$, where $p$ runs over the primes. -/
noncomputable def runLimsup (k m : ℕ) : ℕ∞ :=
limsup (r k m) (atTop ⊓ 𝓟 {p | p.Prime})
@[inherit_doc] local notation "Λ" => runLimsup
/--
If $p$ is a prime and $k, m \geq 2$, let $r(k, m, p)$ be the minimal $r$ such that
$r, r + 1, \ldots, r + m - 1$ are all $k$th power residues modulo $p$, and let
$\Lambda(k, m) = \limsup_{p \to \infty} r(k, m, p)$. Is $\Lambda(k, 2)$ finite for all $k$?
A question of Lehmer and Lehmer [LeLe62]. Hildebrand [Hi91] proved that $\Lambda(k, 2)$ is finite
for all $k \geq 2$.
-/
@[category research solved, question, AMS 11]
theorem erdos_436.parts.i : ∀ k ≥ 2, Λ k 2 < ⊤ := by
sorry
/--
Is $\Lambda(k, 3)$ finite for all odd $k$?
Lehmer, Lehmer, Mills and Selfridge [LLMS62] proved $\Lambda(3, 3) = 23532$. The question is open
for odd $k \geq 5$.
-/
@[category research open, question, AMS 11]
theorem erdos_436.parts.ii : ∀ k ≥ 3, Odd k → Λ k 3 < ⊤ := by
sorry
/-- Lehmer and Lehmer [LeLe62] proved $\Lambda(2, 2) = 9$. -/
@[category research solved, AMS 11]
theorem erdos_436.variants.two_two : Λ 2 2 = 9 := by
sorry
/-- Dunton [Du65] proved $\Lambda(3, 2) = 77$. -/
@[category research solved, AMS 11]
theorem erdos_436.variants.three_two : Λ 3 2 = 77 := by
sorry
/-- Bierstedt and Mills [BiMi63] proved $\Lambda(4, 2) = 1224$. -/
@[category research solved, AMS 11]
theorem erdos_436.variants.four_two : Λ 4 2 = 1224 := by
sorry
/-- Lehmer, Lehmer and Mills [LLM63] proved $\Lambda(5, 2) = 7888$. -/
@[category research solved, AMS 11]
theorem erdos_436.variants.five_two : Λ 5 2 = 7888 := by
sorry
/-- Lehmer, Lehmer and Mills [LLM63] proved $\Lambda(6, 2) = 202124$. -/
@[category research solved, AMS 11]
theorem erdos_436.variants.six_two : Λ 6 2 = 202124 := by
sorry
/-- Brillhart, Lehmer and Lehmer [BLL64] proved $\Lambda(7, 2) = 1649375$. -/
@[category research solved, AMS 11]
theorem erdos_436.variants.seven_two : Λ 7 2 = 1649375 := by
sorry
/-- Lehmer, Lehmer, Mills and Selfridge [LLMS62] proved $\Lambda(3, 3) = 23532$. -/
@[category research solved, AMS 11]
theorem erdos_436.variants.three_three : Λ 3 3 = 23532 := by
sorry
/-- Lehmer and Lehmer [LeLe62] proved $\Lambda(k, 3) = \infty$ for all even $k$. -/
@[category research solved, AMS 11]
theorem erdos_436.variants.even_three : ∀ k ≥ 2, Even k → Λ k 3 = ⊤ := by
sorry
/-- Graham [Gr64g] proved $\Lambda(k, l) = \infty$ for all $k \geq 2$ and $l \geq 4$. -/
@[category research solved, AMS 11]
theorem erdos_436.variants.ge_four : ∀ k ≥ 2, ∀ l ≥ 4, Λ k l = ⊤ := by
sorry
/-- Modulo $13$, the quadratic residues are $1, 3, 4, 9, 10, 12$, so the first pair of
consecutive quadratic residues starts at $3$. -/
@[category test, AMS 11]
theorem r_two_two_thirteen : r 2 2 13 = 3 := by
have h2 : ¬ IsPowerResidue 2 13 2 := by
unfold IsPowerResidue
decide
apply le_antisymm
· refine iInf₂_le 3 ⟨by norm_num, ?_⟩
intro i hi
interval_cases i
· exact ⟨by decide, 4, by decide⟩
· exact ⟨by decide, 2, by decide⟩
· refine le_iInf₂ ?_
rintro n ⟨hn, h⟩
have : 3 ≤ n := by
by_contra hlt
interval_cases n
· exact h2 (h 1 (by norm_num))
· exact h2 (h 0 (by norm_num))
exact_mod_cast this
end Erdos436
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos436.erdos_436.parts.i with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_i : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-436 nosorry submit erdos-436 nosorry/erdos-436/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-436-parts-ii — open
- erdos-436-variants-two-two — known result
- erdos-436-variants-three-two — known result
- erdos-436-variants-four-two — known result
- erdos-436-variants-five-two — known result
- erdos-436-variants-six-two — known result
- erdos-436-variants-seven-two — known result
- erdos-436-variants-three-three — known result
- erdos-436-variants-even-three — known result
- erdos-436-variants-ge-four — known result
Contributions
No contributions yet — be the first. Submit a proof or a finding.
Research in progress
People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.
Nobody has shared research on this problem yet.
Sign in to share your research.
Statement review
Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.
Sign in to open a critique.