{
  "id": "7903",
  "ident": "NS.07903",
  "slug": "wikipedia-eswarathasanlevineconjecture",
  "title": "Eswarathasan–Levine conjectures on harmonic numerators",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Eswarathasan–Levine inclusion theorem (1991): every prime $p \\ge 5$ satisfies\n$\\{p - 1, p^2 - p, p^2 - 1\\} \\subseteq J_p$ (using Wolstenholme's theorem at $p - 1$; cf.\n`WolstenholmePrime.wolstenholme_theorem` and `WolstenholmePrime.wolstenholme_harmonic`).",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [],
  "collection": "wikipedia",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "EswarathasanLevineConjecture.eswarathasan_levine_three_elements_subset",
  "statement_lean": "theorem eswarathasan_levine_three_elements_subset {p : ℕ} (hp : p.Prime) (hp5 : 5 ≤ p) :\n    ({p - 1, p ^ 2 - p, p ^ 2 - 1} : Set ℕ) ⊆ harmonicNumDivisibleSet p",
  "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# Eswarathasan–Levine conjectures on harmonic numerators\n\nGiven a prime $p$, write $J_p$ for the set of indices $n \\ge 1$ where $p$ divides the reduced\nnumerator of $H_n = \\sum_{k=1}^n \\frac{1}{k}$ (for instance $J_2 = \\emptyset$ and\n$J_3 = \\{2, 7, 22\\}$). Arulappah Eswarathasan and Eugene Levine (1991) showed that\n$\\{p - 1, p^2 - p, p^2 - 1\\} \\subseteq J_p$ whenever $p \\ge 5$, called a prime $p \\ge 5$ a\n*harmonic prime* ([OEIS A092101](https://oeis.org/A092101)) when $J_p$ consists solely of those\nthree elements ($|J_p| = 3$), and conjectured both that every $J_p$ is finite and that infinitely\nmany harmonic primes exist. David W. Boyd (1994) confirmed finiteness of $J_p$ for all primes\n$p \\le 547$ aside from $83, 127, 397$ and proposed a $1 / e$ relative density heuristic for harmonic\nprimes.\n\n*References:*\n- [Wikipedia](https://en.wikipedia.org/wiki/Harmonic_number#Arithmetic_properties)\n- [OEIS A092101](https://oeis.org/A092101)\n- A. Eswarathasan and E. Levine (1991), Discrete Math. **91**, no. 3, 249–257.\n- D. W. Boyd (1994), Experiment. Math. **3**, no. 4, 287–302.\n-/\n\n@[expose] public section\n\nnamespace EswarathasanLevineConjecture\n\n/-- Indices $n \\ge 1$ whose $n$-th harmonic sum $H_n$ has reduced numerator divisible by $p$.\nThe bound $1 \\le n$ rules out $n = 0$, where `harmonic 0 = 0` has numerator $0$. -/\ndef harmonicNumDivisibleSet (p : ℕ) : Set ℕ :=\n  {n : ℕ | 1 ≤ n ∧ (p : ℤ) ∣ (harmonic n).num}\n\n/-- A prime $p \\ge 5$ is a *harmonic prime* ([OEIS A092101](https://oeis.org/A092101)) if $J_p$ has\ncardinality $3$, i.e. $J_p = \\{p - 1, p^2 - p, p^2 - 1\\}$. Note that $p = 3$ also satisfies\n$|J_3| = 3$ via $J_3 = \\{2, 7, 22\\}$, so Boyd (1994) and [OEIS A092101](https://oeis.org/A092101)\nrequire $5 \\le p$; this single-prime convention does not affect\n`eswarathasan_levine_harmonic_primes_infinite`. -/\ndef IsHarmonicPrime (p : ℕ) : Prop :=\n  p.Prime ∧ 5 ≤ p ∧ (harmonicNumDivisibleSet p).ncard = 3\n\n/-- Boundary and small-index check at $p = 3$: $0, 1, 3 \\notin J_3$ whereas $2 \\in J_3$\n($H_2 = 3/2$). -/\n@[category test, AMS 11]\ntheorem harmonicNumDivisibleSet_three_small :\n    0 ∉ harmonicNumDivisibleSet 3 ∧\n      1 ∉ harmonicNumDivisibleSet 3 ∧\n      2 ∈ harmonicNumDivisibleSet 3 ∧\n      3 ∉ harmonicNumDivisibleSet 3 := by\n  simp only [harmonicNumDivisibleSet, Set.mem_ofPred_eq]\n  norm_num [harmonic]\n\n/-- For $p = 2$, none of $0, 1, 2, 3, 4$ belong to $J_2$. -/\n@[category test, AMS 11]\ntheorem harmonicNumDivisibleSet_two_small :\n    ∀ n ∈ ({0, 1, 2, 3, 4} : Finset ℕ), n ∉ harmonicNumDivisibleSet 2 := by\n  intro n hn\n  fin_cases hn <;> simp [harmonicNumDivisibleSet, harmonic] <;> norm_num\n\n/-- Every $H_n$ with $n \\ge 1$ has odd reduced numerator, hence $J_2 = \\emptyset$. -/\n@[category textbook, AMS 11]\ntheorem harmonicNumDivisibleSet_two_empty : harmonicNumDivisibleSet 2 = ∅ := by\n  sorry\n\n/-- Eswarathasan–Levine inclusion theorem (1991): every prime $p \\ge 5$ satisfies\n$\\{p - 1, p^2 - p, p^2 - 1\\} \\subseteq J_p$ (using Wolstenholme's theorem at $p - 1$; cf.\n`WolstenholmePrime.wolstenholme_theorem` and `WolstenholmePrime.wolstenholme_harmonic`). -/\n@[category research solved, AMS 11]\ntheorem eswarathasan_levine_three_elements_subset {p : ℕ} (hp : p.Prime) (hp5 : 5 ≤ p) :\n    ({p - 1, p ^ 2 - p, p ^ 2 - 1} : Set ℕ) ⊆ harmonicNumDivisibleSet p := by\n  sorry\n\n/-- Eswarathasan–Levine finiteness conjecture (1991): $J_p$ is finite for every prime $p$. -/\n@[category research open, AMS 11]\ntheorem eswarathasan_levine_harmonic_conjecture {p : ℕ} (hp : p.Prime) :\n    (harmonicNumDivisibleSet p).Finite := by\n  sorry\n\n/-- Eswarathasan–Levine harmonic-prime conjecture (1991): infinitely many primes $p$ satisfy\n$|J_p| = 3$. -/\n@[category research open, AMS 11]\ntheorem eswarathasan_levine_harmonic_primes_infinite :\n    {p : ℕ | IsHarmonicPrime p}.Infinite := by\n  sorry\n\nend EswarathasanLevineConjecture\n",
  "statement_hash": "84bbe823da773720218980c4b0b70e63417c9c96a0abc0ecaa483d4fdb152c33",
  "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."
}