Samplinglib
Lean gate not recorded for this source state main · 0e31a3cda412
ASTIS mathematical exposition

Recover the joint measure from its first marginal and a conditional law

AutoSamplingTheory.TechnicalLemmas.Probability.ConditionalResampling.fst_compProd_condDistrib_snd_eq_self · theorem · Teaching coverage

Statement

Let α be an arbitrary measurable space and β a nonempty Standard Borel measurable space. For every finite measure μ on α × β, combine its first marginal with the selected regular conditional distribution of its second coordinate given its first. The resulting joint measure is exactly μ. This is equality of measures, including when μ is zero, not a claim that every conditional fiber has a canonical pointwise law.

\[(\operatorname{fst}_\#\mu)\otimes_m\operatorname{condDistrib}(\operatorname{snd}\mid\operatorname{fst};\mu)=\mu.\]

All objects and hypotheses

  • {α β : Type*} — Two possibly universe-polymorphic coordinate types α and β.
  • [MeasurableSpace α] [MeasurableSpace β] — Both carry measurable-space structures; α × β has the product sigma-algebra.
  • [StandardBorelSpace β] — The resampled space β is Standard Borel, supplying the regular-conditional-distribution existence contract.
  • [Nonempty β] — β is nonempty, so the selected conditional kernel can be totalized as a probability law even on marginal-null fibers.
  • {μ : Measure (α × β)} [IsFiniteMeasure μ] — μ is any finite joint measure. It need not be normalized and may be zero. α need not be Standard Borel or nonempty.

Notation and interpretation

m

The first marginal, represented by μ.map Prod.fst.

\[m=(\operatorname{fst})_\#\mu\]
q

The particular regular conditional probability kernel selected by Mathlib, not a pointwise unique conditional density.

\[q(a)=\operatorname{condDistrib}(\operatorname{snd}\mid\operatorname{fst};\mu)(a)\]
μ ⊗ₘ q

Composition-product of a measure and a kernel, for measurable A ⊆ α × β. It is a joint measure, unlike ordinary kernel composition which forgets the intermediate state.

\[(m\otimes_m q)(A)=\int_\alpha q(a,\{b:(a,b)\in A\})\,m(da)\]
K ∘ₘ μ

The measure after one kernel application. Invariant means exactly K ∘ₘ μ = μ.

\[(K\circ_m\mu)(A)=\int K(x,A)\,\mu(dx)\]
  • All sets used to test equality of measures are measurable unless explicitly stated otherwise.
  • All measure values, reciprocals and scalar multiplications in the Lean conditional formula are in ℝ≥0∞. Integral displays of kernel probabilities denote nonnegative extended integrals, not Bochner integrals with unstated integrability hypotheses.
  • The notation r_i, F_i, e_i, q_i and K_i in the teaching text is explanatory mathematical shorthand, not new public Lean definitions.
  • Markovness quantifies over every input; a selected conditional version's law characterization is only marginal-a.e. unless a positive-atom/fiber theorem applies.
  • Finite target mass is not probability normalization. Fin (n+1) counts sites, not states. No law is assumed to have a density.

Mathematical proof

1. Use the general disintegration identity

Mathlib supplies the following result on an arbitrary finite-measure sample space: if V is almost-everywhere measurable with values in a nonempty Standard Borel space, the joint law of (U,V) is the composition-product of the law of U with the selected conditional law of V given U. This imported theorem is the substantive disintegration input; ASTIS does not reprove it here.

\[(U_\#\rho)\otimes_m\operatorname{condDistrib}(V\mid U;\rho)=(\omega\mapsto(U(\omega),V(\omega)))_\#\rho.\]
Corresponding Lean step

ProbabilityTheory.compProd_map_condDistrib; the theorem's explicit argument is hY : AEMeasurable Y μ.

2. Choose the product projections

Take the sample space to be α × β, ρ = μ, U(a,b)=a and V(a,b)=b. The second projection is measurable for the product sigma-algebra and is therefore μ-almost-everywhere measurable. The measurable-space instance passed as mβ in the generalized theorem is the structure of the retained α, despite the generalized theorem's different type-variable names.

\[U=\operatorname{fst},\qquad V=\operatorname{snd},\qquad V\text{ is measurable}.\]
Corresponding Lean step

have h := ... (μ := μ) (X := Prod.fst) (Y := Prod.snd) (mβ := inferInstance) measurable_snd.aemeasurable.

3. Simplify the joint reconstruction map

Pairing the projections returns the original pair, so its pushforward leaves μ unchanged. The general disintegration equality therefore becomes precisely the desired measure identity. No conditioning denominator or positivity assumption is introduced.

\[(a,b)\longmapsto(\operatorname{fst}(a,b),\operatorname{snd}(a,b))=(a,b),\qquad \operatorname{id}_\#\mu=\mu.\]
Corresponding Lean step

simpa using h simplifies the pair of projections and the identity pushforward.

Lean statement · fst_compProd_condDistrib_snd_eq_self

When μ is a probability measure, first sample the retained coordinate from its marginal, then the other coordinate from the selected conditional law. For a general finite μ, this is a measure-reconstruction identity preserving total mass μ(univ), not a normalized sampling experiment. Conditional laws on marginal-null inputs do not affect the integrated identity, but any replacement must still form a measurable kernel.

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 fst_compProd_condDistrib_snd_eq_self
    {α β : Type*} [MeasurableSpace α] [MeasurableSpace β]
    [StandardBorelSpace β] [Nonempty β]
    {μ : Measure (α × β)} [IsFiniteMeasure μ] :
    (μ.map Prod.fst) ⊗ₘ
        ProbabilityTheory.condDistrib Prod.snd Prod.fst μ = μ

Exact module and namespace context

Lean proof · fst_compProd_condDistrib_snd_eq_self

`have h := ...` names a previously proved equality after specializing its parameters. It is not an extra hypothesis. `measurable_snd.aemeasurable` converts ordinary measurability of the second projection into the weaker almost-everywhere measurability required by the imported theorem. `simpa using h` checks that simplifying the established equality gives the stated target; it does not erase the Standard Borel, nonempty, or finite-measure requirements. In the generalized theorem, X is the conditioning variable and Y is the resampled variable. The Lean call's mβ is a measurable-space parameter for X's codomain, here the retained α.

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 fst_compProd_condDistrib_snd_eq_self
    {α β : Type*} [MeasurableSpace α] [MeasurableSpace β]
    [StandardBorelSpace β] [Nonempty β]
    {μ : Measure (α × β)} [IsFiniteMeasure μ] :
    (μ.map Prod.fst) ⊗ₘ
        ProbabilityTheory.condDistrib Prod.snd Prod.fst μ = μ := by
  have h := ProbabilityTheory.compProd_map_condDistrib
    (μ := μ) (X := Prod.fst) (Y := Prod.snd) (mβ := inferInstance)
    measurable_snd.aemeasurable
  simpa using h

end ConditionalResampling
end Probability
end TechnicalLemmas
end AutoSamplingTheory

Exact module and namespace context

Scope and omitted-condition boundaries

  • These are existing source-neutral measure/kernel interfaces, not newly proved claims in this research packet. Reading source and historical tests is not a fresh Lean build or independent verification.
  • Finite target measure means μ(univ) < ∞, not μ(univ) = 1; zero and finite unnormalized targets are allowed unless a positive-fiber hypothesis rules them out.
  • A selected regular conditional distribution is a probability kernel at every conditioning value. Its conditional-law characterization is determined only almost everywhere under the conditioning marginal; null fibers have no asserted feasible/Gibbs-support property.
  • No reversibility, irreducibility, ergodicity, convergence from a different initial law, mixing rate, random scan, scan-order correctness, executable conditional sampling or cost bound follows from these declarations alone.

Source and reuse

ASTIS parents called

    Mathlib API called (external library)

    • ProbabilityTheory.compProd_map_condDistrib
    • ProbabilityTheory.condDistrib
    • measurable_snd
    • Measurable.aemeasurable

    Exact source uses the existing theorem and simplification; no ASTIS disintegration proof is added.

    Mathematical sources

    Older frontier cells and the coordinate card say the printed copy-index repair is pending. The later positive-fiber card and source-support audit record separate acceptance of the exact one-index correction as ASTIS-REPAIR-20260908-GlauberCopyIndex. The old PositiveFiberUpdate audit remains possible-source-error for its limited page-5 evidence window. Do not overwrite that history, call the original PDF corrected, call a null-fiber start a counterexample to the positive-support source convention, or infer full source fidelity. This packet reads local evidence only; it performs no new PDF/source certification.

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