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 1064

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

Let ϕ(n)ϕ(n) be the Euler's totient function, then the nn satisfies ϕ(n)>ϕ(n−ϕ(n))ϕ(n)>ϕ(n - ϕ(n)) have asymptotic density 1. Reference: [LuPo02] Luca, Florian and Pomerance, Carl, On some problems of {M}\polhk akowski-{S}chinzel and {E}rd\H os concerning the arithmetical functions {ϕ\phi} and {σ\sigma}. Colloq. Math.

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

Formal statement

theorem erdos_1064 : {n | φ n > φ (n - φ n)}.HasDensity 1
Show the full Challenge.lean (94 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 1064

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

@[expose] public section

open Nat Filter Topology

namespace Erdos1064

/--
Let $ϕ(n)$ be the Euler's totient function, then the $n$ satisfies $ϕ(n)>ϕ(n - ϕ(n))$
have asymptotic density 1.
Reference: [LuPo02] Luca, Florian and Pomerance, Carl, On some problems of {M}\polhk akowski-{S}chinzel and {E}rd\H
os concerning the arithmetical functions {$\phi$} and
{$\sigma$}. Colloq. Math.
-/
@[category research solved, AMS 11]
theorem erdos_1064 : {n | φ n > φ (n - φ n)}.HasDensity 1 := by
  sorry

/--
Let $ϕ(n)$ be the Euler's totient function, there exist infinitely many $n$
such that $ϕ(n)< ϕ(n - ϕ(n))$
Reference: [GLW01] Grytczuk, A. and Luca, F. and W\'ojtowicz, M., A conjecture of {E}rdős concerning inequalities for the
{E}uler totient function.
-/
@[category research solved, AMS 11]
theorem erdos_1064.variants.k2 : {n | φ n < φ (n - φ n)}.Infinite := by
  apply Set.infinite_of_injective_forall_mem (f := fun k : ℕ => 30 * 2 ^ k)
  · intro a b hab
    simp only at hab
    have : (2 : ℕ) ^ a = 2 ^ b := by omega
    exact Nat.pow_right_injective (le_refl 2) this
  · intro k
    simp only [Set.mem_ofPred_eq]
    have hφ : Nat.totient (30 * 2 ^ k) = 8 * 2 ^ k := by
      have h : 30 * 2 ^ k = 2 ^ (k + 1) * 15 := by ring
      rw [h, Nat.totient_mul (by norm_num),
        Nat.totient_prime_pow Nat.prime_two (by omega),
        show Nat.totient 15 = 8 from rfl, Nat.add_sub_cancel]
      ring
    have hsub : 30 * 2 ^ k - Nat.totient (30 * 2 ^ k) = 22 * 2 ^ k := by
      rw [hφ]
      omega
    have hφsub : Nat.totient (22 * 2 ^ k) = 10 * 2 ^ k := by
      rw [show 22 * 2 ^ k = 2 ^ (k + 1) * 11 by ring,
        Nat.totient_mul (by norm_num), Nat.totient_prime_pow (by norm_num) (by omega),
        show Nat.totient 11 = 10 from rfl, Nat.add_sub_cancel]
      ring
    rw [hsub, hφ, hφsub]
    have : (0 : ℕ) < 2 ^ k := pow_pos (by norm_num) k
    omega

open Asymptotics Filter

/--
For any function $f(n)=o(n)$,
we have $\phi(n)>\phi(n-\phi(n))+f(n)$ for almost all $n$.
Reference:
[LuPo02] Luca, Florian and Pomerance, Carl, On some problems of {M}\polhk akowski-{S}chinzel and {E}rd\H
os concerning the arithmetical functions {$\phi$} and
{$\sigma$}. Colloq. Math. (2002), 111--130.
-/
@[category research solved, AMS 11]
theorem erdos_1064.variants.general_function (f : ℕ → ℕ)
    (hf : (fun n ↦ (f n : ℝ)) =o[atTop] (fun n ↦ (n : ℝ))) :
    {n : ℕ | φ (n - φ n) + f n < φ n}.HasDensity 1 := by
  sorry


end Erdos1064

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

nosorry fetch erdos-1064
nosorry submit erdos-1064 nosorry/erdos-1064/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.