Invariant measures survive a measurable change of coordinates
AutoSamplingTheory.TechnicalLemmas.Probability.KernelTransport.invariant_map_comap · theorem · Teaching coverage
Statement
Let A and B be arbitrary measurable spaces, e:A→B a measurable bijection with measurable inverse, K:A→𝓜(A) a kernel, and μ any measure on A preserved by K. Define the transported kernel Kᵉ on B by returning an input y to e⁻¹(y), applying K there, and pushing the output measure forward by e. Then Kᵉ preserves the pushforward measure e_*μ. No Markovness, finiteness, s-finiteness, topology, Standard-Borel or nonempty-space assumptions are needed.
All objects and hypotheses
- {α β : Type*}, [MeasurableSpace α], [MeasurableSpace β].
- κ : Kernel α α, with no Markov or s-finite-kernel hypothesis.
- μ : Measure α, with no finite, s-finite, nonzero or probability-measure hypothesis.
- e : α ≃ᵐ β: an actual bijective equivalence with measurable forward and inverse maps, not just a measurable map or an almost-everywhere inverse.
- hκ : κ.Invariant μ.
- No additional local section variables. The conclusion concerns measures/laws, not densities relative to a fixed reference measure.
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. Move the output pushforward outside kernel evolution
Write ν=e_*μ and let Q(y,·)=K(e⁻¹(y),·). By construction Kᵉ=Q.map e. Applying this output-mapped kernel to ν is the same measure as first applying Q to ν and then pushing the resulting measure through e. The measurability of e is what makes this genuine pushforward identity applicable.
Corresponding Lean step
change ((κ.comap e.symm e.symm.measurable).map e) ∘ₘ μ.map e = μ.map e
rw [← Measure.map_comp _ _ e.measurable,This is the first rewrite in the single source rw block. Measure.map_comp states (ρ.bind Q).map e = ρ.bind (Q.map e).
2. Realize the input coordinate change as a deterministic kernel
Let D be the deterministic kernel y↦δ_{e⁻¹(y)}. Applying D then K gives Q: the point mass forces K to be evaluated at e⁻¹(y). Because e⁻¹ is measurable, this is a well-defined deterministic kernel. Replace input comap by that composition.
Corresponding Lean step
← Kernel.comp_deterministic_eq_comap,
The theorem's comap term explicitly carries e.symm.measurable. Comap changes the input; map in step 1 changes the output.
3. Reassociate measure and kernel composition
Starting from ν, applying D and then K can be grouped by first evolving the measure ν through D. This associativity is valid for the arbitrary kernels and measures in the statement; no probability or finite-measure condition is required.
Corresponding Lean step
← Measure.comp_assoc,
In Lean orientation, (κ ∘ₖ D) ∘ₘ ν becomes κ ∘ₘ (D ∘ₘ ν).
4. A deterministic transition is a pushforward
Evolving ν through the deterministic kernel D simply pushes ν forward along e⁻¹. Thus the measure on which K acts is (e⁻¹)_*ν.
Corresponding Lean step
Measure.deterministic_comp_eq_map,
This is the measure-level deterministic-composition lemma, not the similarly named Kernel.deterministic_comp_eq_map.
5. Cancel the inverse change of coordinates
Since ν=e_*μ and e is a measurable equivalence, pushing ν back by e⁻¹ returns exactly μ. Hence the inner evolved measure is now μK.
Corresponding Lean step
e.map_symm_map,
The inverse identity is exact for measures, not just almost everywhere. Both directions of the equivalence are measurable.
6. Use the supplied invariance and identify the target
The original kernel preserves μ by hypothesis, so μK=μ. Push this equality forward by e. The result is νKᵉ=e_*μ=ν, which is precisely invariance of the transported kernel for the transported target measure.
Corresponding Lean step
hκ.def]
The final rewrite exposes and uses the given equality μ.bind κ=μ; no heat-bath or mixture theorem enters the proof.
Lean statement · invariant_map_comap
α ≃ᵐ β denotes a measurable equivalence, and e.symm is its inverse. κ.comap e.symm changes the input from β to α; its explicit measurability proof ensures this is well-defined. .map e then pushes the output measure from α to β. The resulting kernel acts on β and is compared with μ.map e, a measure on that same space. Reversing these directions would describe a different, or ill-typed, operation.
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 invariant_map_comap {α β : Type*} [MeasurableSpace α] [MeasurableSpace β]
{κ : Kernel α α} {μ : Measure α} (e : α ≃ᵐ β) (hκ : κ.Invariant μ) :
((κ.comap e.symm e.symm.measurable).map e).Invariant (μ.map e)Lean proof · invariant_map_comap
∘ₘ is alternate notation for binding a measure to a kernel. The six rewrites are the six mathematical identities above: move the final pushforward, realize the input map deterministically, reassociate, identify deterministic evolution with pushforward, cancel inverse pushforwards, and apply the original invariance. The arrows ← mean the identity is used from right to left in that calculation.
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 invariant_map_comap {α β : Type*} [MeasurableSpace α] [MeasurableSpace β]
{κ : Kernel α α} {μ : Measure α} (e : α ≃ᵐ β) (hκ : κ.Invariant μ) :
((κ.comap e.symm e.symm.measurable).map e).Invariant (μ.map e) := by
change ((κ.comap e.symm e.symm.measurable).map e) ∘ₘ μ.map e = μ.map e
rw [← Measure.map_comp _ _ e.measurable,
← Kernel.comp_deterministic_eq_comap, ← Measure.comp_assoc,
Measure.deterministic_comp_eq_map, e.map_symm_map, hκ.def]
end AutoSamplingTheory.TechnicalLemmas.Probability.KernelTransportScope and omitted-condition boundaries
- Transport requires an actual measurable equivalence. This theorem does not handle arbitrary noninvertible maps or merely almost-everywhere coordinate inverses.
- Measurability of e ensures Kernel.map uses its genuine pushforward branch, not its nonmeasurable zero fallback.
- This is exact invariance only: no reversibility, irreducibility, convergence, mixing, Jacobian/density formula, or computational-cost conclusion.
- No ASTIS HeatBath, KernelMixture or KernelInvariance declaration is a proof prerequisite; they occur only in concrete consumer tests.
- Coordinate heat-bath tests add finite joint target and nonempty Standard-Borel resampled-coordinate assumptions. Conditional representatives there remain marginal-almost-everywhere objects.
- Private test constructions are not public coordinate-update algorithms and do not establish general retained-coordinate behavior, concrete Gibbs support/normalization, or source-copy-index repair.
- Exact directly inspected proof source is Mathlib measure/kernel algebra. Textbook anchors in local provenance records are motivation, not independently checked numbered-source assimilation.
Source and reuse
ASTIS parents called
Mathlib API called (external library)
- ProbabilityTheory.Kernel.Invariant
- ProbabilityTheory.Kernel.Invariant
- ProbabilityTheory.Kernel.comap
- ProbabilityTheory.Kernel.map
- MeasurableEquiv.measurable
- MeasureTheory.Measure.map_comp
- ProbabilityTheory.Kernel.comp_deterministic_eq_comap
- MeasureTheory.Measure.comp_assoc
- MeasureTheory.Measure.deterministic_comp_eq_map
- MeasurableEquiv.map_symm_map
Mathematical sources
- ASTIS invariance transport theorem — Directly inspected theorem and complete proof.
- Pushforward commutes with kernel evolution — Exact first rewrite.
- Input comap as deterministic composition — Exact second rewrite.
- Measure-kernel associativity — Exact third rewrite; no s-finiteness assumption.
- Deterministic evolution is measure pushforward — Exact fourth rewrite.
- Inverse measurable-equivalence pushforwards cancel — Exact fifth rewrite.
- Focused tests (consumer evidence) — Private test definitions use MeasurableEquiv.piFinSuccAbove and prodComm to put a chosen dependent-product coordinate second, conjugate heatBathSnd back to the original product, and combine this with finite mixtures and powers. The split identities are tested, including a middle coordinate of Fin 3→Bool. A finite coordinate index does not mean a finite state space. The public transport theorem has none of the consumer's finite-measure/Standard-Borel/nonempty assumptions.
ASTIS prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.