{
  "id": "2168",
  "ident": "NS.02168",
  "slug": "erdos-445",
  "title": "Erdős Problem 445",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Is it true that, for any $c>1/2$, if $p$ is a sufficiently large prime then, for any\n$n\\geq 0$, there exist $a,b\\in(n,n+p^c)$ such that $ab\\equiv 1\\pmod{p}$?\n\nThis is discussed in this MathOverflow question [MathOverflow].",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos445.erdos_445",
  "statement_lean": "theorem erdos_445 :\n    ∀ c : ℝ, c > 1 / 2 →\n      ∀ᶠ p : ℕ in atTop, p.Prime → ∀ n : ℕ, Erdos445Prop c p n",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n\n/-!\n# Erdős Problem 445\n\n*References:*\n- [erdosproblems.com/445](https://www.erdosproblems.com/445)\n- [He00] Heath-Brown, D. R., Arithmetic applications of {K}loosterman sums. Nieuw Arch. Wiskd. (5)\n  (2000), 380--384.\n- [MathOverflow](https://mathoverflow.net/questions/69509/small-residue-classes-with-small-reciprocal)\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Erdos445\n\n/--\nThe property that there exist $a,b\\in(n,n+p^c)$ such that $ab\\equiv 1\\pmod{p}$.\n-/\ndef Erdos445Prop (c : ℝ) (p n : ℕ) : Prop :=\n  ∃ a b : ℕ,\n    n < a ∧ (a : ℝ) < (n : ℝ) + (p : ℝ) ^ c ∧\n    n < b ∧ (b : ℝ) < (n : ℝ) + (p : ℝ) ^ c ∧\n    a * b ≡ 1 [MOD p]\n\n/--\nIs it true that, for any $c>1/2$, if $p$ is a sufficiently large prime then, for any\n$n\\geq 0$, there exist $a,b\\in(n,n+p^c)$ such that $ab\\equiv 1\\pmod{p}$?\n\nThis is discussed in this MathOverflow question [MathOverflow].\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_445 :\n    ∀ c : ℝ, c > 1 / 2 →\n      ∀ᶠ p : ℕ in atTop, p.Prime → ∀ n : ℕ, Erdos445Prop c p n := by\n  sorry\n\n/--\nHeilbronn (unpublished) proved this for $c$ sufficiently close to $1$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_445.variants.heilbronn :\n    ∃ c₀ < 1, ∀ c : ℝ, c > c₀ →\n      ∀ᶠ p : ℕ in atTop, p.Prime → ∀ n : ℕ, Erdos445Prop c p n := by\n  sorry\n\n/--\nHeath-Brown [He00] used Kloosterman sums to prove this for all $c>3/4$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_445.variants.heath_brown :\n    ∀ c : ℝ, c > 3 / 4 →\n      ∀ᶠ p : ℕ in atTop, p.Prime → ∀ n : ℕ, Erdos445Prop c p n := by\n  sorry\n\n/-- Small example: for $p=5$, $c=1$, $n=0$, the pair $(2,3) \\in (0,5)$ satisfies\n$2 \\cdot 3 = 6 \\equiv 1 \\pmod{5}$. -/\n@[category test, AMS 11]\ntheorem erdos_445.test.small_example : Erdos445Prop 1 5 1 := by\n  refine ⟨2, 3, by omega, ?_, by omega, ?_, by decide⟩\n  all_goals simp only [Real.rpow_one]; norm_num\n\nend Erdos445\n",
  "statement_hash": "09b612c472bf2eeadc26b941ee5f0b47f219076aff5019fa969d9b21155f5fb1",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}