Actual Gibbs gradient has zero mean
AutoSamplingTheory.TechnicalLemmas.Analysis.GibbsGradientMean.integrable_gradient_and_integral_eq_zero · theorem · Teaching coverage
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.
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 ∂μ) = 0Proof roadmap
- 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.
- 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.
- 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.
- 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.
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.
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.
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.
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.
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.GibbsGradientMeanScope 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
AutoSamplingTheory.TechnicalLemmas.Analysis.GibbsGradientMoment.gibbs_gradient_momentAutoSamplingTheory.TechnicalLemmas.Analysis.StrongConvexGibbsIntegrability.integrable_exp_neg_of_strongConvexOnAutoSamplingTheory.TechnicalLemmas.Analysis.Calculus.Gradient.continuous_gradient_of_contDiff_oneAutoSamplingTheory.TechnicalLemmas.Analysis.QuadraticRegularization.strongConvexOn_and_lipschitzWith_gradient_add_quadratic
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.