Plain-English statement
- Genuine joint-L2 classes and block variance for the SAME reflected kernel whose literal conditional integral has the sharp smooth gradient bound.
Read the mathematics first, then descend into Lean
You do not need to know Lean before opening this panel. The page keeps the paper-level theorem, rigorous proof obligations, exact Lean declaration, and proof dependencies as separate layers so a first-time reader can move down one layer at a time.
Proof architecture
Start with the tree when learning: prerequisites sit below the theorem and downstream results sit above it. Switch to the network when you want to understand where this declaration lives in the local formal library. Every mapped node is clickable.
Graph rule: only dependencies found by the ASTIS source scan are drawn. Missing tactic indirection is treated as an under-approximation; the site never invents an edge just to make a prettier graph.
How to read the exact Lean declaration
Read a Lean theorem left-to-right exactly as you would unpack a mathematical sentence: name → ambient types → automatically inferred structures → explicit hypotheses → conclusion → proof. Then read the proof top-to-bottom as transformations of the current goal.
- NameWhat reusable mathematical fact is being created?
- ParametersWhich symbols are arbitrary, and which structures are inferred by typeclass search?
- PropositionAfter the colon, translate the Lean expression back into a paper statement.
- Proof actionsAfter
by, ask what each tactic does to the mathematical goal—not only what syntax it uses.
Syntax used on this page
This glossary is filtered to syntax that actually occurs in the declaration above. Open a symbol only when you meet it, rather than memorizing Lean grammar in advance.
Source voice and ASTIS voice stay separate
When Samplinglib shows a short quotation from Chewi, it is labeled as a source excerpt and linked to the canonical book page. Intuition, expanded proof steps, hidden regularity assumptions, and Lean explanations are ASTIS-authored commentary. A quotation never substitutes for a formal proof, and an ASTIS explanation is never attributed to the textbook author.
Lean statement
theorem actual_macroscopic_gradient_energy_blocks
{E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]
[FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E]
{V : E → ℝ} {α β : ℝ≥0} {η : ℝ}
(hα : 0 < (α : ℝ)) (hαβ : α ≤ β) (hV : ContDiff ℝ 2 V)
(hH : ∀ x a : E,
(α : ℝ) * ‖a‖^2 ≤ (fderiv ℝ (fderiv ℝ V) x a) a ∧
(fderiv ℝ (fderiv ℝ V) x a) a ≤ (β : ℝ) * ‖a‖^2)
(hη : 0 < η) (hβη : (β : ℝ) * η ≤ 1) :
let μ := (volume : Measure E).tilted (fun x => -V x)
let J := Measure.map (fun p : E × E => (p.1, p.1 + Real.sqrt η • p.2))
(μ.prod (stdGaussian E))
let ν := J.snd
let Λ := J.map (fun p : E × E => (p.2, (2 : ℝ) • p.1 - p.2))
let F := fun p : E × E => (p.1, (2 : ℝ) • p.1 - p.2)
let P : Lp ℝ 2 J →L[ℝ] Lp ℝ 2 J :=
(lpMeas ℝ ℝ (MeasurableSpace.comap Prod.snd (inferInstance : MeasurableSpace E))
2 J).subtypeL ∘L condExpL2 ℝ ℝ measurable_snd.comap_le
IsProbabilityMeasure μ ∧ IsProbabilityMeasure J ∧ IsProbabilityMeasure ν ∧
∃ R S : Kernel E E, IsMarkovKernel R ∧ IsMarkovKernel S ∧
(J.map Prod.swap).IsCondKernel R ∧
(∀ y, S y = (R y).map (fun x => (2 : ℝ) • x - y)) ∧
(∀ y, S y = (volume : Measure E).tilted
(fun u => -V ((1/2 : ℝ) • (y+u)) - ‖y-u‖^2/(8*η))) ∧
Λ.IsCondKernel S ∧ Λ.fst = ν ∧
∃ U : Lp ℝ 2 J →ₗᵢ[ℝ] Lp ℝ 2 J,
(∀ g : Lp ℝ 2 J, (U g : E × E → ℝ) =ᵐ[J] g ∘ F) ∧
Function.Involutive U ∧ IsSelfAdjoint U.toContinuousLinearMap ∧
let A := P * U.toContinuousLinearMap * P
let B := (1-P) * U.toContinuousLinearMap * P
let D := (1-P) * U.toContinuousLinearMap * (1-P)
star B * B = P - A^2 ∧ star B * D = -(A * star B) ∧
(∀ g : Lp ℝ 2 J, P g = g → ‖B g‖^2 = ‖g‖^2 - ‖A g‖^2) ∧
∀ (f : E → ℝ), ContDiff ℝ ∞ f → HasCompactSupport f →
let Tf := fun y => ∫ u, f u ∂S y
Differentiable ℝ Tf ∧ MemLp f 2 ν ∧ MemLp Tf 2 ν ∧
MemLp (gradient Tf) 2 ν ∧
Integrable (fun y =>
AutoSamplingTheory.TechnicalLemmas.FunctionalInequalities.Poincare.variance
(S y) f) ν ∧
∃ g : Lp ℝ 2 J,
(g : E × E → ℝ) =ᵐ[J] (fun p => f p.2) ∧ P g = g ∧
(A g : E × E → ℝ) =ᵐ[J] (fun p => Tf p.2) ∧
‖g‖^2 = (∫ y, (f y)^2 ∂ν) ∧
‖A g‖^2 = (∫ y, (Tf y)^2 ∂ν) ∧
(∫ y, AutoSamplingTheory.TechnicalLemmas.FunctionalInequalities.Poincare.variance
(S y) f ∂ν) = ‖B g‖^2 ∧
η * (∫ y, ‖gradient Tf y‖^2 ∂ν) ≤
(1-(α : ℝ)*η)^2/(4*(1+(α : ℝ)*η)) * ‖B g‖^2 := by
dsimp only
let μ := (volume : Measure E).tilted (fun x => -V x)
let J := Measure.map (fun p : E × E => (p.1,p.1+Real.sqrt η • p.2))
(μ.prod (stdGaussian E))
let ν := J.snd
let Λ := J.map (fun p : E × E => (p.2,(2:ℝ) • p.1-p.2))
let P : Lp ℝ 2 J →L[ℝ] Lp ℝ 2 J :=
(lpMeas ℝ ℝ (MeasurableSpace.comap Prod.snd (inferInstance : MeasurableSpace E))
2 J).subtypeL ∘L condExpL2 ℝ ℝ measurable_snd.comap_le
obtain ⟨hμ,hJ,hν,R,S,hR,hS,hcond,hSR,hSd,henergy⟩ :=
ConditionalGradientEnergy.reflected_conditional_gradient_energy hα hαβ hV hH hη hβη
let : IsProbabilityMeasure μ := hμ
let : IsProbabilityMeasure J := hJ
let : IsProbabilityMeasure ν := hν
let : IsMarkovKernel R := hR
let : IsMarkovKernel S := hS
let : (J.map Prod.swap).IsCondKernel R := hcond
-- Transform the actual disintegration, not an independently chosen law.
let G := fun p : E × E => (p.1,(2:ℝ) • p.2-p.1)
have hG : Measurable G := by fun_prop
have hmap : (J.map Prod.swap).fst ⊗ₘ S =
((J.map Prod.swap).fst ⊗ₘ R).map G := by
ext t ht
rw [Measure.compProd_apply ht, Measure.map_apply hG ht,
Measure.compProd_apply (hG ht)]
apply lintegral_congr_ae
filter_upwards with y
rw [hSR y, Measure.map_apply (by fun_prop) (measurable_prodMk_left ht)]
rfl
have hΛmap : (J.map Prod.swap).map G = Λ := by
rw [Measure.map_map hG (by fun_prop)]
rfl
have hfst : Λ.fst = ν := by
rw [← hΛmap, Measure.fst_map_prodMk (by fun_prop)]
change (J.map Prod.swap).fst = ν
exact Measure.fst_map_swap
have hΛcond : Λ.IsCondKernel S := by
constructor
rw [hfst, show ν = (J.map Prod.swap).fst from Measure.fst_map_swap.symm,
hmap, Measure.disintegrate (J.map Prod.swap) R, hΛmap]
let : Λ.IsCondKernel S := hΛcond
obtain ⟨S₀,hS₀,hΛ₀,hfst₀,U₀,hU₀,hUi₀,hUs₀,hrep₀⟩ :=
MacroscopicRepresentative.macroscopic_reflection_smooth_representative hα hV hH hη
let : IsMarkovKernel S₀ := hS₀
let : Λ.IsCondKernel S₀ := hΛ₀
have hκ : S =ᵐ[ν] S₀ := by
have h₁ : S =ᵐ[Λ.fst] Λ.condKernel :=
eq_condKernel_of_measure_eq_compProd S (Measure.disintegrate Λ S).symm
have h₀ : S₀ =ᵐ[Λ.fst] Λ.condKernel :=
eq_condKernel_of_measure_eq_compProd S₀ (Measure.disintegrate Λ S₀).symm
have hk : S =ᵐ[Λ.fst] S₀ := h₁.trans h₀.symm
simpa only [hfst] using hk
have hκJ : ∀ᵐ p ∂J, S p.2 = S₀ p.2 :=
ae_of_ae_map measurable_snd.aemeasurable hκ
obtain ⟨R₁,hR₁,hRf₁,U,hU,hUi,hUs,hRp,hBB,hBD,hblock⟩ :=
ReflectionL2.actual_reflection_block_identities μ hη
have hUU : U₀ = U := by
apply LinearIsometry.ext
intro g
exact Lp.ext ((hU₀ g).trans (hU g).symm)
refine ⟨hμ,hJ,hν,R,S,hR,hS,hcond,hSR,hSd,hΛcond,hfst,U,hU,hUi,hUs,
hBB,hBD,hblock,?_⟩
intro f hf hfc
let Tf := fun y => ∫ u, f u ∂S y
obtain ⟨hd,hf2,hTf2,hgrad2,hvarI,hvar,hbound⟩ := henergy f hf hfc
obtain ⟨g,hg,hPg,hAg,hTf₀2,hscore⟩ := hrep₀ f hf hfc
rw [hUU] at hAg
let A := P * U.toContinuousLinearMap * P
let B := (1-P) * U.toContinuousLinearMap * P
have hAgS : (A g : E × E → ℝ) =ᵐ[J] (fun p => Tf p.2) := by
apply hAg.trans
filter_upwards [hκJ] with p hp
change (∫ u, f u ∂S₀ p.2) = ∫ u, f u ∂S p.2
rw [hp]
-- A joint representative's actual second moment uses the actual snd law.
have norm_snd (v : Lp ℝ 2 J) (φ : E → ℝ) (hφ : Continuous φ)
(hv : (v : E × E → ℝ) =ᵐ[J] (fun p => φ p.2)) :
‖v‖^2 = ∫ y, (φ y)^2 ∂ν := by
calc
‖v‖^2 = ∫ p, (φ p.2)^2 ∂J := by
rw [← real_inner_self_eq_norm_sq, L2.inner_def]
apply integral_congr_ae
filter_upwards [hv] with p hp
rw [hp]
simp [pow_two]
_ = ∫ y, (φ y)^2 ∂ν :=
(integral_map measurable_snd.aemeasurable
(hφ.pow 2).aestronglyMeasurable).symm
have hgn := norm_snd g f hf.continuous hg
have hAgn := norm_snd (A g) Tf hd.continuous hAgS
have hvariance : (∫ y,
AutoSamplingTheory.TechnicalLemmas.FunctionalInequalities.Poincare.variance
(S y) f ∂ν) = ‖B g‖^2 := by
calc
_ = ‖g‖^2-‖A g‖^2 := by rw [hvar,hgn,hAgn]
_ = ‖B g‖^2 := (hblock g hPg).symm
refine ⟨hd,hf2,hTf2,hgrad2,hvarI,g,hg,hPg,hAgS,hgn,hAgn,hvariance,?_⟩
calc
η * (∫ y, ‖gradient Tf y‖^2 ∂ν) ≤
(1-(α : ℝ)*η)^2/(4*(1+(α : ℝ)*η)) *
((∫ y, (f y)^2 ∂ν)-(∫ y, (Tf y)^2 ∂ν)) := hbound
_ = (1-(α : ℝ)*η)^2/(4*(1+(α : ℝ)*η)) * ‖B g‖^2 := by
rw [← hvar,hvariance]
end AutoSamplingTheory.ExampleCases.ProximalBPS.MacroscopicEnergy
Open AutoSamplingTheory/ExampleCases/ProximalBPS/MacroscopicEnergy.lean:23published source at ed709a7f320d
Proof architecture
PBPS actual macroscopic block energy; no SALD admission
Lean proof walkthrough
- Read the quantified variables and typeclass brackets as part of the mathematical statement; inferred arguments are not missing assumptions.
- `intro` introduces quantified hypotheses into the local proof context.
- `have` creates a named intermediate mathematical fact.
- `calc` records an equality or inequality chain matching a paper calculation.
- `rw` rewrites by an established identity.
- `simp` normalizes through registered definitional and theorem rewrites.
- `apply` reduces the goal to the hypotheses of a reusable theorem.
- `refine` instantiates a reusable theorem while leaving explicit subgoals.
Why the statement has this shape
The declaration is kept at the reusable level recorded by its Registry tags and direct consumers. Explicit measures, spaces, wrappers, and regularity hypotheses expose interfaces that paper notation often infers. A theorem card explains those interfaces but never widens the compiled statement.
Hidden assumptions and non-claims
- Measurability is represented explicitly or must be supplied by a dependency.
- Integrability is an input or proved output; a displayed integral alone does not supply it.
- Totalized `fderiv` values must not be read as a differentiability theorem.
- Genuine differentiability is localized to the hypotheses shown in the Lean statement.
- Pointwise support, topological support, and compact support retain distinct meanings.
- Almost-everywhere hypotheses depend on the stated measure and representative.