Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Trace of the Posterior Expectation Hessian

Proved
FunctionalInequalities.Probability.Posterior.sum_bilinearIteratedFDerivTwo_posteriorExpectation_c_readable

by Lazyfill · Oct 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

functional-inequalitieskls-conjecturekls-modularkls-readablelog-concave

This is the trace formula for the posterior expectation Hessian against a symmetric operator.

Let EEE be a finite-dimensional complete real inner-product space, let μ\muμ be compactly supported, and let fff be measurable and bounded on the support by C≥0C\ge0C≥0. Let Q,M:E→EQ,M:E\to EQ,M:E→E be continuous linear maps, let (bi)(b_i)(bi​) be an orthonormal basis indexed by a finite type ι\iotaι, and assume MMM is self-adjoint:

⟨Mu,v⟩=⟨u,Mv⟩.\langle Mu,v\rangle=\langle u,Mv\rangle.⟨Mu,v⟩=⟨u,Mv⟩.

For ν=μ.tilted⁡(quadraticExponent⁡(c,Q))\nu=\mu.\operatorname{tilted}(\operatorname{quadraticExponent}(c,Q))ν=μ.tilted(quadraticExponent(c,Q)) and a=posteriorMean⁡(μ,c,Q)a=\operatorname{posteriorMean}(\mu,c,Q)a=posteriorMean(μ,c,Q),

∑iDc2Eν[f](Mbi,bi)=Cov⁡ν(f,x↦⟨Mx,x⟩)−2Cov⁡ν(f,x↦⟨Ma,x⟩).\sum_i D_c^2\mathbb E_{\nu}[f](M b_i,b_i) =\operatorname{Cov}_{\nu}(f,x\mapsto\langle Mx,x\rangle) -2\operatorname{Cov}_{\nu}(f,x\mapsto\langle Ma,x\rangle).i∑​Dc2​Eν​[f](Mbi​,bi​)=Covν​(f,x↦⟨Mx,x⟩)−2Covν​(f,x↦⟨Ma,x⟩).

This converts the Hessian contribution into the covariance expression used in the generator calculation.

Original Lean declaration header

Within namespace FunctionalInequalities.Probability.Posterior. Shown in its original module context. Proof omitted.

theorem sum_bilinearIteratedFDerivTwo_posteriorExpectation_c (μ : ProbabilityMeasure E)
    (hc : IsCompact (μ : Measure E).support) {f : E → ℝ} (hf : Measurable f)
    {C : ℝ} (hC : 0 ≤ C) (hfb : ∀ x ∈ (μ : Measure E).support, ‖f x‖ ≤ C)
    (c : E) (Q M : E →L[ℝ] E) (b : OrthonormalBasis ι ℝ E)
    (hM : ∀ u v : E, ⟪M u, v⟫ = ⟪u, M v⟫) :
    (∑ i, bilinearIteratedFDerivTwo ℝ (fun y => posteriorExpectation μ y Q f) c (M (b i)) (b i)) =
      covariance f (fun x => ⟪M x, x⟫) ((μ : Measure E).tilted (quadraticExponent c Q)) -
        2 * covariance f (fun x => ⟪M (posteriorMean μ c Q), x⟫)
          ((μ : Measure E).tilted (quadraticExponent c Q))

Module navigation

Module: Probability/Posterior/Generator.

Definition modules: Probability/Posterior/Exponent.

Supporting theorems: bilinearIteratedFDerivTwo_posteriorExpectation_c, exists_uniform_norm_moments_tilted_quadraticExponent_of_compact.

Previous: bilinearIteratedFDerivTwo_posteriorExpectation_c.

Source excerpt, lines 213–221 · Frozen source 408915f.

Preamble
import Definitions.Def_KLSModular_FunctionalInequalities_Probability_Posterior_Generator

open MeasureTheory Filter Topology ProbabilityTheory
open scoped RealInnerProductSpace ContDiff
variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E]
  [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E]
variable {ι : Type*} [Fintype ι]
Formal statement

theorem FunctionalInequalities.Probability.Posterior.sum_bilinearIteratedFDerivTwo_posteriorExpectation_c_readable (μ : ProbabilityMeasure E)
    (hc : IsCompact (μ : Measure E).support) {f : E → ℝ} (hf : Measurable f)
    {C : ℝ} (hC : 0 ≤ C) (hfb : ∀ x ∈ (μ : Measure E).support, ‖f x‖ ≤ C)
    (c : E) (Q M : E →L[ℝ] E) (b : OrthonormalBasis ι ℝ E)
    (hM : ∀ u v : E, ⟪M u, v⟫ = ⟪u, M v⟫) :
    (∑ i, bilinearIteratedFDerivTwo ℝ (fun y => posteriorExpectation μ y Q f) c (M (b i)) (b i)) =
      covariance f (fun x => ⟪M x, x⟫) ((μ : Measure E).tilted (quadraticExponent c Q)) -
        2 * covariance f (fun x => ⟪M (posteriorMean μ c Q), x⟫)
          ((μ : Measure E).tilted (quadraticExponent c Q)) := by sorry
Source
Lean source: https://github.com/human-ai-mathematics/kls-lean/blob/408915f/formalization/FunctionalInequalities/Probability/Posterior/Generator.lean#L211-L273 (repository human-ai-mathematics/kls-lean, commit 408915f, module `FunctionalInequalities.Probability.Posterior.Generator`, declaration `FunctionalInequalities.Probability.Posterior.sum_bilinearIteratedFDerivTwo_posteriorExpectation_c`; the repository is private at upload time).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me