The mixture at each input is the weighted sum of output measures
AutoSamplingTheory.TechnicalLemmas.Probability.KernelMixture.finiteMixture_apply · theorem · Teaching coverage
Statement
Let I be a finite index type, A and B measurable spaces, w:I→[0,∞) fixed weights, and Kᵢ:A→𝓜(B) s-finite kernels. For every input a∈A, the output measure of finiteMixture w K is exactly the sum of the scaled measures wᵢKᵢ(a,·). Normalization of w is not assumed. This evaluation identity explains the construction rather than asserting a new convergence property.
All objects and hypotheses
- {ι α β : Type*}, [Fintype ι], [MeasurableSpace α], [MeasurableSpace β] from the local section.
- w : ι → ℝ≥0 and κ : ι → Kernel α β.
- [∀ i, IsSFiniteKernel (κ i)].
- a : α is an arbitrary input.
- No ∑ᵢwᵢ=1 hypothesis, no Markovness, and no target measure. The primary equality is equality of measures, not merely equality of densities on measurable sets.
Notation and interpretation
- Measurable space and kernel
A measurable space is a set with a specified sigma-algebra of events. A kernel K from A to B assigns to each input a a measure K(a,·) on B, and a↦K(a,E) is measurable whenever E is measurable. A kernel need not assign probability measures unless Markovness is separately assumed.
\[K:A\to\mathcal M(B),\qquad a\mapsto K(a,E)\text{ measurable for every measurable }E\subseteq B.\]- Measure evolved by a kernel; invariance
Write μK for the measure obtained by starting with μ and applying K. Lean writes μ.bind K or K ∘ₘ μ. Invariance says that this evolved measure is exactly μ. If μ is a probability law this means a stationary initial distribution, but the definitions and these theorems also allow arbitrary measures.
\[(\mu K)(E)=\int_A K(a,E)\,\mu(da),\qquad \mu K=\mu.\]- Composition and powers
Lean's L ∘ₖ K applies K first and L second. The multiplicative identity is the identity kernel a↦δ_a, and powers are repeated composition. All integrals here are nonnegative extended-real (lower Lebesgue) integrals; no signed or Bochner integrability is silently assumed.
\[(L\circ_{\!k}K)(a,E)=\int L(b,E)\,K(a,db),\quad K^0(a,\cdot)=\delta_a,\quad K^{n+1}=K^n\circ_{\!k}K.\]- Markov and s-finite kernels
Markov means every output measure has total mass one. An s-finite kernel is a countable sum of finite kernels, where each finite kernel has a finite uniform bound on its total mass across inputs. Markovness supplies this s-finiteness automatically. S-finite is not the same hypothesis as sigma-finite, and is not merely a pointwise finiteness assertion.
\[K(a,B)=1\ \forall a\quad\text{(Markov)};\qquad K=\sum_{n=0}^{\infty}K_n,\quad \forall n\ \exists C_n<\infty\ \forall a,\ K_n(a,B)\le C_n\quad\text{(s-finite)}.\]- Nonnegative weights
ℝ≥0 consists of finite nonnegative real numbers; ℝ≥0∞ also allows infinity and is the codomain of measure values. The coercion wᵢ↦cᵢ puts finite weights into extended nonnegative arithmetic. Zero weights are permitted, including when component masses are infinite; this arithmetic uses 0·∞=0.
\[w_i\in[0,\infty),\qquad c_i=\iota(w_i)\in[0,\infty].\]- Measurable equivalence and pushforward
A measurable equivalence e is a bijection whose forward and inverse maps are both measurable. Its pushforward measure records the original mass of inverse images. This is transport of measures, not a density transformation with an implicit Jacobian.
\[(e_*\mu)(E)=\mu(e^{-1}(E)),\qquad (e^{-1})_*(e_*\mu)=\mu.\]
Mathematical proof
1. Evaluate the finite kernel sum at the input
Expand the mixture definition. Evaluation of a finite sum of kernels at a fixed input distributes over that sum, leaving one constant-density output measure for each i.
Corresponding Lean step
classical
rw [finiteMixture, sum_apply]This sum_apply is the root fun-like finite-sum evaluation theorem generated in Mathlib/Algebra/BigOperators/Pi.lean, not ProbabilityTheory.Kernel.sum_apply (which concerns a countable Kernel.sum).
2. Use the genuinely measurable constant-density branch
Fix one index i. The function fᵢ on the product is constant, hence measurable. The withDensity evaluation law therefore identifies the output of the kernel construction with the measure Kᵢ(a,·) carrying the constant density cᵢ. This rules out the API's fallback value.
Corresponding Lean step
apply Finset.sum_congr rfl
intro i _
rw [Kernel.withDensity_apply _ measurable_const, MeasureTheory.withDensity_const]The first rewrite in the final rw line performs this step.
3. A constant density is scalar multiplication of a measure
Multiplying a measure by the constant density cᵢ gives precisely the scalar multiple cᵢKᵢ(a,·). Substitute this equality in every summand. The resulting equality is exactly the asserted weighted-sum formula.
Corresponding Lean step
rw [Kernel.withDensity_apply _ measurable_const, MeasureTheory.withDensity_const]
The second rewrite in the same source line performs this step. No division by weights is used, so wᵢ=0 is allowed.
Lean statement · finiteMixture_apply
finiteMixture w κ a is a measure on β. On the right, κ i a is the i-th output measure at a, • multiplies a measure by an extended nonnegative scalar, and ∑ sums measures over the finite index type. The cast (w i : ℝ≥0∞) changes the number type, not the mathematical weight.
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 finiteMixture_apply (w : ι → ℝ≥0) (κ : ι → Kernel α β)
[∀ i, IsSFiniteKernel (κ i)] (a : α) :
finiteMixture w κ a = ∑ i, (w i : ℝ≥0∞) • κ i aLean proof · finiteMixture_apply
After distributing evaluation over the finite sum, it suffices to check one summand. measurable_const verifies the joint measurability required by withDensity_apply, and withDensity_const turns constant density into scalar multiplication. classical supplies finite-index bookkeeping without an extra mathematical hypothesis.
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 finiteMixture_apply (w : ι → ℝ≥0) (κ : ι → Kernel α β)
[∀ i, IsSFiniteKernel (κ i)] (a : α) :
finiteMixture w κ a = ∑ i, (w i : ℝ≥0∞) • κ i a := by
classical
rw [finiteMixture, sum_apply]
apply Finset.sum_congr rfl
intro i _
rw [Kernel.withDensity_apply _ measurable_const, MeasureTheory.withDensity_const]
/-- Fixed normalized nonnegative weights mix Markov kernels into a Markov kernel.
Zero weights are allowed. -/Scope and omitted-condition boundaries
- Evaluation interface only: no probability normalization, common target, invariance, reversibility or mixing result.
- A finite family of arbitrary state spaces is allowed; no finite-state restriction is introduced.
- This proof establishes that constant densities avoid withDensity's nonmeasurable zero branch.
- No independently checked primary textbook anchor; exact proof sources are the local definition and Mathlib identities.
Source and reuse
ASTIS parents called
Mathlib API called (external library)
- sum_apply
- Finset.sum_congr
- ProbabilityTheory.Kernel.withDensity_apply
- measurable_const
- MeasureTheory.withDensity_const
Mathematical sources
- ASTIS pointwise measure identity — Directly inspected theorem and proof.
- Mathlib kernel density evaluation — Genuine measurable branch.
- Mathlib constant-density measure identity — Scalar-multiple identity.
- Mathlib root finite-sum evaluation — sum_apply is the additive theorem generated by the to_additive annotation on prod_apply.
- Focused tests (consumer evidence) — Tests preserve the arbitrary-target contract; remove a zero-weight Bool component at the measure level; and use a private Bool family consisting of the identity and heatBathSnd. The latter is Markov, invariant, and reusable in invariant_pow. The identity weight may be zero, so the tests do not establish positive holding probability or aperiodicity.
ASTIS prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.