OAI.TotientAsymptotic.totient_asymptotic_formula
ProvedThe theorem states a four-part asymptotic result about the number V(x) of totient values (positive integers v of the form φ(n) with n>0) that are at most x. Here, with a(j)=(j+1)log(j+1)−j log j−1, ρ is the infimum of the set of z in (0,1) with Σ_{j≥0} a(j+1) z^{j+1}=1, λ=log(1/ρ), and γ is the reciprocal of Σ (j+1)a(j+1)ρ^{j+1}. For each s, α(s)=λe^{λs}. AH(H,f,s) is a finite-level expression built from ρ, γ/α(s), the least-preimage function ell(d) (the smallest n with φ(n)=d, or 0 if none), and inclusion-exclusion sums over finite sets of tail-prime data satisfying a witness condition. A(f,s) is its limit as H tends to infinity, taken with Lean's limUnder, which returns an arbitrary value if no limit exists. The main term is x/log x · G(x,m(x)) · A(1, θ(x)), where G, m and θ are explicit auxiliary quantities built from B(x)=log log x. Writing 1 for the constant function, the conclusion has four parts. First, AH(H,1,·) converges uniformly to A(1,·) as H→∞ on the interval [0,1). Second, there are real constants cMinus>0 and cPlus such that cMinus ≤ A(1,s) ≤ cPlus for every s in [0,1). Third, V(x)/mainTerm(x) tends to 1 as x→∞. Fourth, for every c>0, V(cx)/V(x) tends to c as x→∞. The proof is admitted in the source.
-- Generated from openai/math @ adc7f1241b42e322a6451854ab7e4b4c146bf78a -- Source: lean/ComparatorChallenges/TotientAsymptotic.lean; bytes 3911..4347 -- Kind: theorem; original declaration names and bodies preserved. -- Source groups are independent. Target: Lean 4.33.1; see compilation.json. import Mathlib import Definitions.Def_TotientAsymptotic namespace OAI noncomputable section open scoped BigOperators Topology open Filter namespace TotientAsymptotic
theorem totient_asymptotic_formula
:
TendstoUniformlyOn (fun H => AH H (fun _ => 1)) (A (fun _ => 1))
atTop (Set.Ico (0 : ℝ) 1) ∧
(∃ cMinus cPlus : ℝ, 0 < cMinus ∧ ∀ s ∈ Set.Ico (0 : ℝ) 1,
cMinus ≤ A (fun _ => 1) s ∧ A (fun _ => 1) s ≤ cPlus) ∧
Tendsto (fun x => V x/mainTerm x) atTop (nhds 1) ∧
∀ c : ℝ, 0 < c → Tendsto (fun x => V (c*x)/V x) atTop (nhds c) := by
sorry
end TotientAsymptotic
end
end OAI
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.