Theorem 4 (as proved): bounded gradient and curvature of the empirical characteristic-function distance
OpenLeJEPA.ecfDistance_stabilityLet , , and . Write with , viewed as a function of the single sample . Then is differentiable in with
and there is an absolute constant such that is twice continuously differentiable in with
With the first bound is .
Formalization Note This is the statement the proof in Appendix B.12 establishes, for the statistic without the factor . Theorem 4 in Section 4.2.3 states the same bounds for the Epps–Pulley statistic ; for the first derivative is bounded by , not . With all samples equal, the derivative of does not depend on .
import Mathlib import Definitions.Def_LeJEPA_Basic open MeasureTheory Matrix Filter Topology open scoped ENNReal InnerProductSpace
namespace LeJEPA
theorem ecfDistance_stability :
(∀ (N : ℕ) (hN : 0 < N) (s : ℝ) (hs : 0 < s) (z : Fin N → ℝ) (i : Fin N),
DifferentiableAt ℝ (fun y => ecfDistance s (Function.update z i y)) (z i) ∧
|deriv (fun y => ecfDistance s (Function.update z i y)) (z i)| ≤ 4 / (N * s ^ 2)) ∧
∃ C : ℝ, ∀ (N : ℕ) (hN : 0 < N) (s : ℝ) (hs : 0 < s) (z : Fin N → ℝ) (i : Fin N),
ContDiff ℝ 2 (fun y => ecfDistance s (Function.update z i y)) ∧
|deriv (deriv (fun y => ecfDistance s (Function.update z i y))) (z i)| ≤ C / N * (Real.sqrt Real.pi / (2 * s ^ 3)) := by sorry
end LeJEPARead-back
What the Lean code literally says, in plain math · claude-opus-5-5
The statement is a conjunction of two claims about the empirical characteristic-function distance, viewed as a function of a single sample point.
Objects involved.
- is a natural number (the sample size) and is a real number (the bandwidth).
- is a sample of real numbers.
- The empirical characteristic function is
- The standard Gaussian characteristic function is .
- The distance is
where is the complex modulus. By convention, this integral would be assigned the value if the integrand were not integrable.
- For an index , let be the function
That is, the -th sample point is replaced by and all others are held fixed. All derivatives below are ordinary one-variable derivatives of , evaluated at the original point .
Claim 1 (first-derivative bound). Take any natural number with , any real , any , and any index . Then is differentiable at , and
Claim 2 (second-derivative bound). There exists a single real constant with the following property. Take any , any , any , and any index . Then:
- is twice continuously differentiable on all of ;
- its second derivative satisfies
Notes on the quantifiers.
- is chosen once, before , , and . It may not depend on any of them.
- The statement places no sign or size restriction on and gives no explicit value for it; only its existence is asserted. Because the left-hand side is nonnegative, any witness must make the right-hand side nonnegative.
- The hypotheses and exclude the empty sample and a zero or negative bandwidth. Hence neither bound involves division by zero.
- is allowed, in which case is a single point.
- The sample points are arbitrary reals. They may repeat and need not come from any distribution.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.