A local Lipschitz estimate from a uniform two-term expansion
ProvedAnalyticCombinatorics.Ch8.Partitions.Erdos.two_term_local_lipanalytic-combinatoricslean4partitions-supportrenewal-scale
A bridge conditional on the full uniform two-term expansion of an arbitrary function; it neither assumes away nor itself proves the concrete moment expansion.
The full literal source contract is:
theorem two_term_local_lip (f : ℕ → ℝ) (c₀ c₁ K W0 : ℝ) (hK : 0 ≤ K) (hW0 : 0 ≤ W0)
(hexp : ∀ᶠ n : ℕ in atTop, |f n - (c₀ + c₁ / Real.sqrt (n : ℝ))| ≤ K / (n : ℝ)) :
∃ K' R0 : ℝ, 0 < K' ∧ ∀ x y : ℕ, R0 ≤ (x : ℝ) → R0 ≤ (y : ℝ) →
|Real.sqrt (x : ℝ) - Real.sqrt (y : ℝ)| ≤ W0 → |f x - f y| ≤ K' / (x : ℝ)
Preamble
import Mathlib set_option autoImplicit true set_option relaxedAutoImplicit false set_option maxSynthPendingDepth 3 /-! # R7 Fact B via Doeblin: two-term expansion ⟹ local Lipschitz (η ~ 1/r²) ⚠ DRAFT — written WITHOUT a local build (server down); queued for batch verification on uisai1 recovery. Modular bridge from the smooth-rank mean-decrement two-term expansion `f n = c₀ + c₁/√n + O(1/n)` to the approximate-martingale bound `|f x − f y| ≤ K'/x` for comparable starts (`|√x − √y| ≤ W0`). The constant `c₀` cancels; `|c₁/√x − c₁/√y| = O(W0/x)` (since `√x√y ≥ x/2` for large `x`); the two `O(1/n)` remainders are `O(1/x)` (since `y ≥ x/4`). Hence `|f x − f y| ≤ (5K + 2|c₁|W0)/x = O(1/r²)`, `r = 3√x`. Consumes the (still-to-prove) two-term Lambert-moment expansion as a hypothesis. Opus-authored. -/ open Filter Topology
Formal statement
theorem AnalyticCombinatorics.Ch8.Partitions.Erdos.two_term_local_lip (f : ℕ → ℝ) (c₀ c₁ K W0 : ℝ) (hK : 0 ≤ K) (hW0 : 0 ≤ W0)
(hexp : ∀ᶠ n : ℕ in atTop, |f n - (c₀ + c₁ / Real.sqrt (n : ℝ))| ≤ K / (n : ℝ)) :
∃ K' R0 : ℝ, 0 < K' ∧ ∀ x y : ℕ, R0 ≤ (x : ℝ) → R0 ≤ (y : ℝ) →
|Real.sqrt (x : ℝ) - Real.sqrt (y : ℝ)| ≤ W0 → |f x - f y| ≤ K' / (x : ℝ) := by sorrySource
Human review
Confirmed by the mission captain (proposal self-audit).