Local definitions the statement names, followed through the definitions they name in turn. The match is by name in the source text, so a name reached only through notation can be missed; the full file is below.
definition OAI.TotientAsymptotic.IsTotient line 13
def IsTotient (v : ℕ) : Prop := ∃ n : ℕ, 0 < n ∧ n.totient = v
definition OAI.TotientAsymptotic.ell line 15
def ell (v : ℕ) : ℕ := by classical exact if h : IsTotient v then Nat.find h else 0
definition OAI.TotientAsymptotic.a line 19
def a (j : ℕ) : ℝ := (j + 1 : ℝ) * Real.log (j + 1) - j * Real.log j - 1
definition OAI.TotientAsymptotic.RenewalRootSet line 21
def RenewalRootSet : Set ℝ := {z | 0 < z ∧ z < 1 ∧ (∑' j : ℕ, a (j+1) * z^(j+1)) = 1}
definition OAI.TotientAsymptotic.rho line 24
def rho : ℝ := sInf RenewalRootSet
definition OAI.TotientAsymptotic.lam line 26
def lam : ℝ := Real.log (1 / rho)
definition OAI.TotientAsymptotic.gamma line 28
def gamma : ℝ := (∑' j : ℕ, (j+1 : ℝ) * a (j+1) * rho^(j+1))⁻¹
definition OAI.TotientAsymptotic.P line 30
def P (H : ℕ) : ℕ := ⌊Real.log (Real.log (H : ℝ))⌋₊
definition OAI.TotientAsymptotic.alpha line 31
def alpha (s : ℝ) : ℝ := lam * Real.exp (lam * s)
definition OAI.TotientAsymptotic.largestPrimeFactor line 33
def largestPrimeFactor (n : ℕ) : ℕ := max 1 (n.primeFactors.sup id)
structure OAI.TotientAsymptotic.TailDatum line 35
structure TailDatum (H : ℕ) where Q : Fin H → ℕ cofactor : ℕ
definition OAI.TotientAsymptotic.tailPrime line 39
def tailPrime {H : ℕ} (η : TailDatum H) (h : ℕ) : ℕ := if hH : h < H then η.Q ⟨h, hH⟩ else 1
definition OAI.TotientAsymptotic.tailLog line 42
def tailLog {H : ℕ} (η : TailDatum H) (h : ℕ) : ℝ := Real.log (Real.log (tailPrime η h : ℝ))
definition OAI.TotientAsymptotic.IsWitness line 45
def IsWitness (H : ℕ) (s : ℝ) (η : TailDatum H) : Prop :=
Show the remaining 10 lines
(∀ h : Fin H, h.val < P H → η.Q h = 1) ∧ 0 < η.cofactor ∧ (∀ h ∈ Finset.Ico (P H) H, (tailPrime η h).Prime ∧ (9 / 10 : ℝ) * alpha s * h * (rho^h)⁻¹ ≤ tailLog η h ∧ tailLog η h ≤ (11 / 10 : ℝ) * alpha s * h * (rho^h)⁻¹ ∧ (∑ l ∈ Finset.Ico (P H) h, a (h-l) * tailLog η l) ≤ (1 + (1 / 10000 : ℝ) * Real.exp (-(h : ℝ) / 40)) * tailLog η h) ∧ largestPrimeFactor η.cofactor ≤ tailPrime η (P H) ∧ Real.log (η.cofactor : ℝ) ≤ Real.exp (2 * alpha s * (P H : ℝ) * (rho^(P H))⁻¹)
definition OAI.TotientAsymptotic.w line 57
def w {H : ℕ} (η : TailDatum H) : ℕ := η.cofactor * ∏ h ∈ Finset.Ico (P H) H, tailPrime η h
definition OAI.TotientAsymptotic.witnesses line 60
def witnesses (H : ℕ) (s : ℝ) (d : ℕ) : Set (TailDatum H) := {η | IsWitness H s η ∧ (w η).totient = d}
definition OAI.TotientAsymptotic.D line 63
def D {H : ℕ} (h : ℕ) (η : TailDatum H) : ℝ := ∑ l ∈ Finset.Ico (P H) H, a (h-l) * tailLog η l
definition OAI.TotientAsymptotic.maxD line 66
def maxD {H : ℕ} (h : ℕ) (T : Finset (TailDatum H)) : ℝ := by classical exact if ht : T.Nonempty then T.sup' ht (D h) else 0
definition OAI.TotientAsymptotic.AH line 70
def AH (H : ℕ) (f : ℝ → ℝ) (s : ℝ) : ℝ := by
Show the remaining 12 lines
classical exact rho^(H*(H-1)/2) * (gamma / alpha s)^H * ∑ᶠ d : ℕ, if IsTotient d then f ((ell d : ℝ) / d) / d * ∑ᶠ T : Finset (TailDatum H), if T.Nonempty ∧ (↑T : Set (TailDatum H)) ⊆ witnesses H s d then (-1 : ℝ)^(T.card-1) * Real.exp (-(gamma / alpha s) * ∑' n : ℕ, rho^(H+n) * maxD (H+n) T) else 0 else 0
definition OAI.TotientAsymptotic.A line 84
def A (f : ℝ → ℝ) (s : ℝ) : ℝ := limUnder atTop (fun H : ℕ => AH H f s)
definition OAI.TotientAsymptotic.N line 86
def N (k : ℕ) (x : ℝ) : ℝ := by classical exact (((Finset.Icc 1 ⌊x⌋₊).filter fun v => IsTotient v ∧ (k : ℝ) * x < ell v ∧ (ell v : ℝ) ≤ (k+1 : ℝ) * x).card : ℝ)
definition OAI.TotientAsymptotic.fk line 91
def fk (k : ℕ) (r : ℝ) : ℝ := min 1 ((k+1 : ℝ) / r) - min 1 ((k : ℝ) / r)