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 416

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Let V(x) count the number of n≤x such that ϕ(m)=n is solvable. Does V(2x)/V(x)→2 ?

Yes. This was proved by an internal OpenAI model in September 2026 [OAI26a]; see the linked Lean proof, which gives V(cx)/V(x)→c for every fixed c>0.

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:formal_proof
Cite as:NS.02053 [math.NT] · NS.02053v1 for this version
Declaration:Erdos416.erdos_416.parts.i
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:02f29b086d454f5e28d9fdfef61368e0b316bb2e71eadd6b4d70180d5a1a2c6a
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/416.lean

Formal statement

theorem erdos_416.parts.i :
    Filter.Tendsto (fun x => (V (2 * x) / V (x))) Filter.atTop (𝓝 2)
Show the full Challenge.lean (130 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 416

*References:*
- [erdosproblems.com/416](https://www.erdosproblems.com/416)
- [OAI26a] OpenAI, *An asymptotic formula for the number of totients*. OpenAI Math Release
  preprint (2026).
  https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/An-asymptotic-formula-for-the-number-of-totients-September-25-2026/An-asymptotic-formula-for-the-number-of-totients-September-25-2026.pdf
-/

@[expose] public section

open Filter
open scoped Topology Real

namespace Erdos416

/-- Let `V(x)` count the number of `n≤x` such that `ϕ(m)=n` is solvable. -/
noncomputable abbrev V (x : ℝ) : ℝ :=
  open scoped Classical in
  (Finset.Icc 1 ⌊x⌋₊ |>.filter (fun n => ∃ (m : ℕ), m.totient = n)).card

set_option linter.style.formal_proof_palomar false in
/--
Let `V(x)` count the number of `n≤x` such that `ϕ(m)=n` is solvable. Does `V(2x)/V(x)→2` ?

Yes. This was proved by an internal OpenAI model in September 2026 [OAI26a]; see the linked
Lean proof, which gives `V(cx)/V(x)→c` for every fixed `c>0`.
-/
@[category research solved, AMS 11, formal_proof using lean4 at
  "https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/NumberTheory/TotientAsymptotic/UnconditionalMain.lean#L12"]
theorem erdos_416.parts.i :
    Filter.Tendsto (fun x => (V (2 * x) / V (x))) Filter.atTop (𝓝 2) := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
Let `V(x)` count the number of `n≤x` such that `ϕ(m)=n` is solvable. Then `V(cx)/V(x)→c` for
every fixed `c>0`, which answers a question of Erdős and Hall. This was proved by an internal
OpenAI model in September 2026 [OAI26a]; see the linked Lean proof.
-/
@[category research solved, AMS 11, formal_proof using lean4 at
  "https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/NumberTheory/TotientAsymptotic/UnconditionalMain.lean#L12"]
theorem erdos_416.variants.regularly_varying (c : ℝ) (hc : 0 < c) :
    Filter.Tendsto (fun x => V (c * x) / V x) Filter.atTop (𝓝 c) := by
  sorry

def erdos_416.parts.ii.answer : ℝ → ℝ := sorry

/--
Let `V(x)` count the number of `n≤x` such that `ϕ(m)=n` is solvable.
Is there an asymptotic formula for `V(x)`?
-/
@[category research open, question value, AMS 11]
theorem erdos_416.parts.ii :
    Filter.Tendsto (fun x => V x / erdos_416.parts.ii.answer x) atTop (𝓝 1) := by
  sorry

/--
Let `V(x)` count the number of `n≤x` such that `ϕ(m)=n` is solvable.
Pillai proved `V(x)=o(x)`.
Ref: S. Sivasankaranarayana Pillai, _On some functions connected with $\phi(n)$_
-/
@[category research solved, AMS 11]
theorem erdos_416.variants.Pillai : V =o[atTop] id := by
  sorry

/--
Let `V(x)` count the number of `n≤x` such that `ϕ(m)=n` is solvable.
Erdős proved V(x)=x(logx)^(−1+o(1)).
Ref: Erdős, P., _On the normal number of prime factors of $p-1$ and some related problems concerning Euler's $\varphi$-function._
-/
@[category research solved, AMS 11]
theorem erdos_416.variants.Erdos : ∃ f : ℝ → ℝ, f =o[atTop] (1 : ℝ → ℝ) ∧
    ∀ᶠ x in Filter.atTop, V x = x * x.log ^ (-1 + f x) := by
  sorry

-- TODO: define the constant from the paper, 0.8178146... here and add it in the statement
def erdos_416.variants.Maier_Pomerance.answer : ℝ := sorry

/--
Let `V(x)` count the number of `n≤x` such that `ϕ(m)=n` is solvable.
`V(x)=x/logx * e^((C+o(1))(log log log x)^2)`, for some explicit constant `C>0`.
Ref:Maier, Helmut and Pomerance, Carl, _On the number of distinct values of Euler's $\phi$-function_.
-/
@[category research solved, question value, AMS 11]
theorem erdos_416.variants.Maier_Pomerance :
    0 < erdos_416.variants.Maier_Pomerance.answer ∧ ∃ f : ℝ → ℝ, f =o[atTop] (1 : ℝ → ℝ) ∧
      ∀ᶠ x in Filter.atTop, (V x : ℝ) = x / x.log *
        (rexp <| (erdos_416.variants.Maier_Pomerance.answer + f x) * x.log.log.log ^ 2) := by
  sorry

-- TODO: add the constants `C₁, C₂, C₃` from the paper here
def erdos_416.variants.Ford.answer : ℝ × ℝ × ℝ := sorry

/--
Let `V(x)` count the number of `n≤x` such that `ϕ(m)=n` is solvable.
`V(x) ≍ x/log x*e^(C_1*(log log log x − log log log log x)^2+C_2 log log log x − C_3 log log log log x)`
Ref: Ford, Kevin, _The distribution of totients_.
-/
@[category research solved, question value, AMS 11]
theorem erdos_416.variants.Ford :
    let (C₁, C₂, C₃) : ℝ × ℝ × ℝ := erdos_416.variants.Ford.answer
    0 < C₁ ∧ 0 < C₂ ∧ 0 < C₃ ∧
    let G (x : ℝ) : ℝ := x / x.log * (rexp <| C₁ * (x.log.log.log - x.log.log.log.log) ^ 2
        + C₂* x.log.log.log - C₃ * x.log.log.log.log)
    V =Θ[atTop] G := by
  sorry

end Erdos416

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos416.erdos_416.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-416
nosorry submit erdos-416 nosorry/erdos-416/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

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.