Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 445 · test.small_example

Source:Erdős Problems
Sanity test Checks that the formal definitions behave as intended. First verified proof: +1 points.
Statement:reviewed
Statement:

Small example: for p=5p=5, c=1c=1, n=0n=0, the pair (2,3)∈(0,5)(2,3) \in (0,5) satisfies 2⋅3=6≡1(mod5)2 \cdot 3 = 6 \equiv 1 \pmod{5}.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.02171 [math.NT] · NS.02171v1 for this version
Declaration:Erdos445.erdos_445.test.small_example
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 1; accepted critique: up to 100
Statement hash:09b612c472bf2eeadc26b941ee5f0b47f219076aff5019fa969d9b21155f5fb1
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/445.lean

Formal statement

theorem erdos_445.test.small_example : Erdos445Prop 1 5 1
Show the full Challenge.lean (84 lines) — definitions included
module

public import FormalConjecturesUtil


/-!
# Erdős Problem 445

*References:*
- [erdosproblems.com/445](https://www.erdosproblems.com/445)
- [He00] Heath-Brown, D. R., Arithmetic applications of {K}loosterman sums. Nieuw Arch. Wiskd. (5)
  (2000), 380--384.
- [MathOverflow](https://mathoverflow.net/questions/69509/small-residue-classes-with-small-reciprocal)
-/

@[expose] public section

open Filter

namespace Erdos445

/--
The property that there exist $a,b\in(n,n+p^c)$ such that $ab\equiv 1\pmod{p}$.
-/
def Erdos445Prop (c : ℝ) (p n : ℕ) : Prop :=
  ∃ a b : ℕ,
    n < a ∧ (a : ℝ) < (n : ℝ) + (p : ℝ) ^ c ∧
    n < b ∧ (b : ℝ) < (n : ℝ) + (p : ℝ) ^ c ∧
    a * b ≡ 1 [MOD p]

/--
Is it true that, for any $c>1/2$, if $p$ is a sufficiently large prime then, for any
$n\geq 0$, there exist $a,b\in(n,n+p^c)$ such that $ab\equiv 1\pmod{p}$?

This is discussed in this MathOverflow question [MathOverflow].
-/
@[category research open, question, AMS 11]
theorem erdos_445 :
    ∀ c : ℝ, c > 1 / 2 →
      ∀ᶠ p : ℕ in atTop, p.Prime → ∀ n : ℕ, Erdos445Prop c p n := by
  sorry

/--
Heilbronn (unpublished) proved this for $c$ sufficiently close to $1$.
-/
@[category research solved, AMS 11]
theorem erdos_445.variants.heilbronn :
    ∃ c₀ < 1, ∀ c : ℝ, c > c₀ →
      ∀ᶠ p : ℕ in atTop, p.Prime → ∀ n : ℕ, Erdos445Prop c p n := by
  sorry

/--
Heath-Brown [He00] used Kloosterman sums to prove this for all $c>3/4$.
-/
@[category research solved, AMS 11]
theorem erdos_445.variants.heath_brown :
    ∀ c : ℝ, c > 3 / 4 →
      ∀ᶠ p : ℕ in atTop, p.Prime → ∀ n : ℕ, Erdos445Prop c p n := by
  sorry

/-- Small example: for $p=5$, $c=1$, $n=0$, the pair $(2,3) \in (0,5)$ satisfies
$2 \cdot 3 = 6 \equiv 1 \pmod{5}$. -/
@[category test, AMS 11]
theorem erdos_445.test.small_example : Erdos445Prop 1 5 1 := by
  refine ⟨2, 3, by omega, ?_, by omega, ?_, by decide⟩
  all_goals simp only [Real.rpow_one]; norm_num

end Erdos445

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos445.erdos_445.test.small_example with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_small_example : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk erdos-445--erdos-445-test-small-example      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-445--erdos-445-test-small-example
nosorry submit erdos-445--erdos-445-test-small-example nosorry/erdos-445--erdos-445-test-small-example/Solution.lean --wait

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.