Samplinglib
Lean gate not recorded for this source state main · 9bb7a7394ab0

Actual Gibbs gradient has zero mean

ASTIS authored full-space Gibbs score cancellation background consumed by true source posterior; not a separately numbered printed theorem.

arXiv:2609.06906v1 with pinned Mathlib db584cd6 · Section3.1 and literal unnumbered S4.Ex9 (not numbered S4.E9/(4.9)); source normalized Hessian in Section2 · faithful paraphrase

Complete source statement (Samplinglib restatement)

The actual normalized Gibbs volume tilt exp(-U) is a probability measure, its genuine vector gradient is Bochner integrable, and its mean is zero under the stated C2 positive-lower/finite-upper Hessian assumptions.

  • Complete finite-dimensional real Hilbert E with canonical volume and Borel structure; dimension zero included.
  • Actual C2 potential U with positive NNReal alpha lower Hessian bound and finite NNReal beta upper bound, no alpha<=beta assumption. No supplied probability, partition, minimizer, regularity/domain/IBP certificate or mean identity.

Actual Gibbs gradient has zero mean

\[\mu=(dx)^{e^{-U}},\quad\mu(E)=1,\quad\nabla U\in L^1(\mu),\quad\int\nabla U\,d\mu=0.\]

Read the formalized proofs

Each statement and proof below has its own closed Lean disclosure. Samplinglib parents, Mathlib calls and external mathematical sources are distinguished in each proof.

Samplinglib mathematical lesson

Actual Gibbs gradient has zero mean

AutoSamplingTheory.TechnicalLemmas.Analysis.GibbsGradientMean.integrable_gradient_and_integral_eq_zero · theorem · Teaching coverage

Read this first

Mathematical statement

The actual normalized Gibbs volume tilt exp(-U) is a probability measure, its genuine vector gradient is Bochner integrable, and its mean is zero under the stated C2 positive-lower/finite-upper Hessian assumptions.

\[\mu=(dx)^{e^{-U}},\quad\mu(E)=1,\quad\nabla U\in L^1(\mu),\quad\int\nabla U\,d\mu=0.\]
Lean statement · integrable_gradient_and_integral_eq_zero

The actual normalized Gibbs volume tilt exp(-U) is a probability measure, its genuine vector gradient is Bochner integrable, and its mean is zero under the stated C2 positive-lower/finite-upper Hessian assumptions.

Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.

theorem integrable_gradient_and_integral_eq_zero
    {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]
    [CompleteSpace E] [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E]
    {U : E → ℝ} {α β : ℝ≥0} (hα : 0 < α) (hU : ContDiff ℝ 2 U)
    (hH : ∀ x v : E, (α : ℝ)*‖v‖^2 ≤ fderiv ℝ (fderiv ℝ U) x v v ∧
      fderiv ℝ (fderiv ℝ U) x v v ≤ (β : ℝ)*‖v‖^2) :
    let μ := (volume : Measure E).tilted (fun x => -U x)
    IsProbabilityMeasure μ ∧ Integrable (gradient U) μ ∧
      (∫ x, gradient U x ∂μ) = 0

Exact module and namespace context

Proof roadmap

  1. 1Produce the genuine Gibbs domains

    Internally widen the upper bound to max(alpha,beta) only when invoking the existing score-square producer. Its actual probability and gradient norm-square L1 give vector MemLp2 and Bochner L1. The shared theorem has no alpha≤beta premise; the dimension-zero case is retained.

  2. 2Recover ordinary full-space weighted integrability

    The canonical curvature-to-strong-convexity and Gibbs integrability providers yield integrable exp(-U) against ordinary volume. The actual tilted-law equivalence converts gradient L1 into exp(-U) times gradient L1 against this same volume. Its directional inner product is integrable for every v.

  3. 3Integrate the derivative against the constant function

    C2 gives the ordinary Frechet chain rule Dw[v]=-w inner(gradientU,v). Apply full-space directional integration by parts to w and the constant1. All three required integrable products have been derived; the constant derivative is zero. No pointwise boundary-value or cutoff condition is assumed.

  4. 4Normalize and reconstruct the zero vector mean

    The canonical tilt integral divides each directional cancellation by the produced finite positive partition. Inner-product/integral commutation and real Hilbert extensionality identify the vector mean as zero. All objects use the same actual Gibbs measure.

Full assumptions and notation

All objects and hypotheses

  • Complete finite-dimensional real Hilbert E with canonical volume and Borel structure; dimension zero included.
  • Actual C2 potential U with positive NNReal alpha lower Hessian bound and finite NNReal beta upper bound, no alpha≤beta assumption. No supplied probability, partition, minimizer, regularity/domain/IBP certificate or mean identity.

Mathematical proof

1. Produce the genuine Gibbs domains

Internally widen the upper bound to max(alpha,beta) only when invoking the existing score-square producer. Its actual probability and gradient norm-square L1 give vector MemLp2 and Bochner L1. The shared theorem has no alpha≤beta premise; the dimension-zero case is retained.

\[\bar\beta=\max(\alpha,\beta),\quad\mu\propto e^{-U}dx,\quad\nabla U\in L^2(\mu)\subset L^1(\mu).\]
Corresponding Lean step

GibbsGradientMoment.gibbs_gradient_moment; memLp_two_iff_integrable_sq_norm; MemLp.integrable

2. Recover ordinary full-space weighted integrability

The canonical curvature-to-strong-convexity and Gibbs integrability providers yield integrable exp(-U) against ordinary volume. The actual tilted-law equivalence converts gradient L1 into exp(-U) times gradient L1 against this same volume. Its directional inner product is integrable for every v.

\[w=e^{-U},\quad w\in L^1(dx),\quad w\nabla U\in L^1(dx),\quad w\langle\nabla U,v\rangle\in L^1(dx).\]
Corresponding Lean step

QuadraticRegularization.strongConvexOn_and_lipschitzWith_gradient_add_quadratic; StrongConvexGibbsIntegrability.integrable_exp_neg_of_strongConvexOn; integrable_tilted_iff; Integrable.inner_const

3. Integrate the derivative against the constant function

C2 gives the ordinary Frechet chain rule Dw[v]=-w inner(gradientU,v). Apply full-space directional integration by parts to w and the constant1. All three required integrable products have been derived; the constant derivative is zero. No pointwise boundary-value or cutoff condition is assumed.

\[Dw(x)[v]=-w(x)\langle\nabla U(x),v\rangle,\quad\int w\langle\nabla U,v\rangle dx=0.\]
Corresponding Lean step

integral_mul_fderiv_eq_neg_fderiv_mul_of_integrable; fderiv_const_apply

4. Normalize and reconstruct the zero vector mean

The canonical tilt integral divides each directional cancellation by the produced finite positive partition. Inner-product/integral commutation and real Hilbert extensionality identify the vector mean as zero. All objects use the same actual Gibbs measure.

\[\int\langle v,\nabla U\rangle d\mu=0\quad(\forall v),\qquad\int\nabla U\,d\mu=0.\]
Corresponding Lean step

integral_tilted; integral_div; integral_eq_zero_of_forall_integral_inner_eq_zero

Lean verification

The exact proof begins folded immediately after the mathematical argument; the statement is folded beside the claim above.

Lean proof · integrable_gradient_and_integral_eq_zero

Produce the genuine Gibbs domains; Recover ordinary full-space weighted integrability; Integrate the derivative against the constant function; Normalize and reconstruct the zero vector mean

Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.

Download module (.lean)
theorem integrable_gradient_and_integral_eq_zero
    {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]
    [CompleteSpace E] [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E]
    {U : E → ℝ} {α β : ℝ≥0} (hα : 0 < α) (hU : ContDiff ℝ 2 U)
    (hH : ∀ x v : E, (α : ℝ)*‖v‖^2 ≤ fderiv ℝ (fderiv ℝ U) x v v ∧
      fderiv ℝ (fderiv ℝ U) x v v ≤ (β : ℝ)*‖v‖^2) :
    let μ := (volume : Measure E).tilted (fun x => -U x)
    IsProbabilityMeasure μ ∧ Integrable (gradient U) μ ∧
      (∫ x, gradient U x ∂μ) = 0 := by
  let μ := (volume : Measure E).tilted (fun x => -U x)
  have hupper : ∀ x v : E,
      (α : ℝ)*‖v‖^2 ≤ fderiv ℝ (fderiv ℝ U) x v v ∧
      fderiv ℝ (fderiv ℝ U) x v v ≤ ((max α β : ℝ≥0) : ℝ)*‖v‖^2 := by
    intro x v
    refine ⟨(hH x v).1,(hH x v).2.trans ?_⟩
    exact mul_le_mul_of_nonneg_right (by exact_mod_cast le_max_right α β) (sq_nonneg _)
  have hm := GibbsGradientMoment.gibbs_gradient_moment hα (le_max_left α β) hU hupper
  have hμ : IsProbabilityMeasure μ := hm.1
  let : IsProbabilityMeasure μ := hμ
  have hc : Continuous (gradient U) :=
    Calculus.Gradient.continuous_gradient_of_contDiff_one (hU.of_le (by norm_num))
  have hlp : MemLp (gradient U) 2 μ :=
    (memLp_two_iff_integrable_sq_norm hc.aestronglyMeasurable).mpr hm.2.1
  have hg : Integrable (gradient U) μ := hlp.integrable (by norm_num)
  have hd : Differentiable ℝ U := hU.differentiable (by norm_num)
  have hs := QuadraticRegularization.strongConvexOn_and_lipschitzWith_gradient_add_quadratic
    (r := 0) hU hH (0 : E)
  simp only [NNReal.coe_zero,zero_div,zero_mul,add_zero] at hs
  have hi := StrongConvexGibbsIntegrability.integrable_exp_neg_of_strongConvexOn
    (show (0 : ℝ) < α from hα) hd hs.1
  have hweighted : Integrable (fun x => Real.exp (-U x) • gradient U x)
      (volume : Measure E) := (integrable_tilted_iff hi _).mp hg
  refine ⟨hμ,hg,integral_eq_zero_of_forall_integral_inner_eq_zero ℝ _ hg ?_⟩
  intro v
  change (∫ x, inner ℝ v (gradient U x) ∂μ) = 0
  rw [show (fun x => inner ℝ v (gradient U x)) =
      (fun x => inner ℝ (gradient U x) v) by funext x; exact real_inner_comm _ _]
  let f := fun x => Real.exp (-U x)
  have hf : Differentiable ℝ f := hd.neg.exp
  have hfd (x : E) : fderiv ℝ f x v = -f x*inner ℝ (gradient U x) v := by
    rw [show fderiv ℝ f x = _ from (hd x).hasFDerivAt.neg.exp.fderiv]
    simp only [smul_apply,neg_apply,smul_eq_mul,Pi.neg_apply]
    rw [← inner_gradient_left]
    dsimp only [f]
    ring
  have hwv : Integrable (fun x => f x*inner ℝ (gradient U x) v)
      (volume : Measure E) := by
    simpa only [real_inner_smul_left,f] using hweighted.inner_const (𝕜 := ℝ) v
  have hdf : Integrable (fun x => fderiv ℝ f x v*(1 : ℝ))
      (volume : Measure E) := by
    convert hwv.neg using 1
    ext x
    rw [hfd]
    change (-f x*inner ℝ (gradient U x) v)*1 = -(f x*inner ℝ (gradient U x) v)
    ring
  have hb := integral_mul_fderiv_eq_neg_fderiv_mul_of_integrable hdf
    (by simp) (by simpa only [mul_one] using hi)
    (fun x _ => hf x) (fun x _ => differentiableAt_const (1 : ℝ))
  have hzero : (∫ x, f x*inner ℝ (gradient U x) v ∂(volume : Measure E)) = 0 := by
    simpa [hfd,neg_mul,integral_neg] using hb.symm
  rw [show μ = (volume : Measure E).tilted (fun x => -U x) from rfl,integral_tilted]
  rw [show (fun x => (Real.exp (-U x)/(∫ z,Real.exp (-U z))) •
      inner ℝ (gradient U x) v) = (fun x => (f x*inner ℝ (gradient U x) v)/
        (∫ z,Real.exp (-U z))) by funext x; simp only [smul_eq_mul,f]; ring]
  rw [integral_div,hzero,zero_div]

end AutoSamplingTheory.TechnicalLemmas.Analysis.GibbsGradientMean

Exact module and namespace context

Source assumptions versus formal assumptions

SourceActual LeanDifference kindWhy it matters
Standing normalized C2/Hessian and positiveeta hypotheses; finite Euclidean realization.Complete finite-dimensional real Hilbert E with canonical volume and Borel structure; dimension zero included. Actual C2 potential U with positive NNReal alpha lower Hessian bound and finite NNReal beta upper bound, no alpha<=beta assumption. No supplied probability, partition, minimizer, regularity/domain/IBP certificate or mean identity.source-implicitGeneric background instantiated internally on Wy; no convenience assumptions enter the source anchor.
Printed source conditional expected-gradient and standardized identities.The actual normalized Gibbs volume tilt exp(-U) is a probability measure, its genuine vector gradient is Bochner integrable, and its mean is zero under the stated C2 positive-lower/finite-upper Hessian assumptions.sameEverywhere actual posterior and exact literal normalization are internally produced; no arbitrary conditional representative or substitute Gaussian law.
Source does not detail every noncompact analytic domain.Actual Gibbs integrability, ordinary weighted fullspace IBP, genuine Gaussian convolution derivatives and same affine-law/gradient L2 parents.source-implicitAll source-gap prerequisites appear as producer dependencies, never public theorem binders.
Bias4.2/first4.6W2/fullLemma and both main results/work/composition.Only actual Gibbs gradient mean zero and source3.1/S4.Ex9 genuine smoothed-score/posterior/standardized-chain identity. No supplied means/moments/normalizers/IBP/gradient equality/selector; exact eta>0. No bias4.2, FIRST4.6W2/LSI/T2, fullLemma4.2, algorithm/work/main/composition credit. Actual RGO law is not Gaussian gradient-output or HMC. Focused3751 passed, standard3 only; independent math/blind/source/exactcommit/publication/integration admission pending. RenderedQA, Copy/Download implementation and postmerge purification remain open.unresolvedThis packet is only the exact mean identity and deterministic evaluator chain.

Only actual Gibbs gradient mean zero and source3.1/S4.Ex9 genuine smoothed-score/posterior/standardized-chain identity. No supplied means/moments/normalizers/IBP/gradient equality/selector; exact eta>0. No bias4.2, FIRST4.6W2/LSI/T2, fullLemma4.2, algorithm/work/main/composition credit. Actual RGO law is not Gaussian gradient-output or HMC. Focused3751 passed, standard3 only; independent math/blind/source/exactcommit/publication/integration admission pending. RenderedQA, Copy/Download implementation and postmerge purification remain open.

Encoder–denoiser: accepted · equivalent-after-elaboration

A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.

Scope and omitted-condition boundaries
  • Only actual Gibbs gradient mean zero and source3.1/S4.Ex9 genuine smoothed-score/posterior/standardized-chain identity. No supplied means/moments/normalizers/IBP/gradient equality/selector; exact eta>0. No bias4.2, FIRST4.6W2/LSI/T2, fullLemma4.2, algorithm/work/main/composition credit. Actual RGO law is not Gaussian gradient-output or HMC. Focused3751 passed, standard3 only; independent math/blind/source/exactcommit/publication/integration admission pending. RenderedQA, Copy/Download implementation and postmerge purification remain open.
Sources, dependencies, and reuse

Source and reuse

Samplinglib parents called

Mathlib API called (external library)

  • integral_mul_fderiv_eq_neg_fderiv_mul_of_integrable
  • MeasureTheory.integrable_tilted_iff
  • MeasureTheory.integral_tilted
  • integral_eq_zero_of_forall_integral_inner_eq_zero

Mathematical sources

  • Exact source mean identity and its internal analytic background — Only actual Gibbs gradient mean zero and source3.1/S4.Ex9 genuine smoothed-score/posterior/standardized-chain identity. No supplied means/moments/normalizers/IBP/gradient equality/selector; exact eta>0. No bias4.2, FIRST4.6W2/LSI/T2, fullLemma4.2, algorithm/work/main/composition credit. Actual RGO law is not Gaussian gradient-output or HMC. Focused3751 passed, standard3 only; independent math/blind/source/exactcommit/publication/integration admission pending. RenderedQA, Copy/Download implementation and postmerge purification remain open.

Samplinglib prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.

Which proof obligations and prerequisites are covered?

  • Formalized proof edge; source adapter/review separate True Gibbs/posterior gradient mean identity
  • TODO — not closed by these contributions Bias/transport/algorithms/main/work remain open