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 694 · variants.carmichael

Source:Erdős Problems · erdosproblems.com/694
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

Carmichael has asked whether there is an integer nn for which ϕ(m)=n\phi(m) = n has exactly one solution, that is \frac{f_\max(n)}{f_\min(n)} = 1.

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:question
Cite as:NS.02892 [math.NT] · NS.02892v1 for this version
Declaration:Erdos694.erdos_694.variants.carmichael
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100; accepted critique: up to 100
Statement hash:064c81ee13f0cdac8a42d4e184dbdf44131d9b9a51491ca76f365b98a5f6e3b9
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/694.lean

Formal statement

theorem erdos_694.variants.carmichael :
    ∃ n > 0, ∃! m, Nat.totient m = n
Show the full Challenge.lean (82 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 694

*Reference:* [erdosproblems.com/694](https://www.erdosproblems.com/694)
-/

@[expose] public section

namespace Erdos694

open Filter Topology Real

/--
Let $f_\max(n)$ be the largest $m$ such that $\phi(m) = n$, and
$f_\min(n)$ be the smallest such $m$, where $\phi$ is Euler's
totient function. Investigate
$$
  \max_{n\leq x}\frac{f_\max(n)}{f_\min(n)}.
$$

GPT-5.5 Pro (prompted by Price) has proved (see also the comments for a summary) that
$$
\max_{n\leq x}\frac{f_{\max}(n)}{f_{\min}(n)}=(e^\gamma+o(1))\log\log x.
$$

A Lean formalisation of the reduction exists, conditional on Mertens' product theorem and
Linnik's theorem; see the
[formal proof](https://github.com/Shashi456/erdos-formalizations/blob/main/Erdos/P694/Proof.lean).

The extrema are only required on nonempty fibres of the totient (values such as $3$ have no
preimage), and the identity is asked for sufficiently large $x$: at $x = 1$ the maximum is
$f_\max(1) / f_\min(1) = 2$ while $\log \log 1 = 0$.
-/
@[category research solved, AMS 11]
theorem erdos_694 : ∀ᵉ (fmax : ℕ → ℕ) (fmin : ℕ → ℕ),
      (∀ n, (∃ m, Nat.totient m = n) → IsGreatest (Nat.totient ⁻¹' {n}) (fmax n)) →
      (∀ n, (∃ m, Nat.totient m = n) → IsLeast (Nat.totient ⁻¹' {n}) (fmin n)) →
      ∃ o : ℕ → ℝ, Tendsto o atTop (𝓝 0) ∧
        ∀ᶠ x : ℕ in atTop,
          sSup { (fmax n : ℝ) / fmin n | (n : ℕ) (_ : n ≤ x) (_ : ∃ m, Nat.totient m = n) } =
            (exp eulerMascheroniConstant + o x) * log (log (x : ℝ)) := by
  sorry

/--
Carmichael has asked whether there is an integer $n$ for which $\phi(m) = n$ has
exactly one solution, that is $\frac{f_\max(n)}{f_\min(n)} = 1$.
-/
@[category research open, question, AMS 11]
theorem erdos_694.variants.carmichael :
    ∃ n > 0, ∃! m, Nat.totient m = n := by
  sorry

/--
Erdős has proved that if there exists an integer $n$ for which $\phi(m) = n$ has
exactly one solution, then there must be infinitely many such $n$.
-/
@[category research solved, AMS 11]
theorem erdos_694.variants.inf_unique (h : ∃ n > 0, ∃! m, Nat.totient m = n) :
    { n | ∃! m, Nat.totient m = n }.Infinite := by
  sorry

end Erdos694

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

nosorry desk erdos-694--erdos-694-variants-carmichael      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-694--erdos-694-variants-carmichael
nosorry submit erdos-694--erdos-694-variants-carmichael nosorry/erdos-694--erdos-694-variants-carmichael/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.