Lemma 2: independent draws are weighted exchangeable
ProvedConformalCovariateShift.independent_weighted_exchangeableLet and let be independent random variables with values in a measurable space , , where each is absolutely continuous with respect to . Then are weighted exchangeable with weight functions
This shows that the covariate-shift model, and more generally any independent sample whose laws are dominated by the first one, falls under the weighted theory.
Formalization Note Indices run over in Lean, index playing the role of the paper's index . The Radon–Nikodym derivative is Mathlib's version rnDeriv, which takes values in and is finite almost everywhere; it is converted to a real number.
import Mathlib import Definitions.Def_ConformalCovariateShift_Basic open MeasureTheory ProbabilityTheory
namespace ConformalCovariateShift
theorem independent_weighted_exchangeable {Omega E : Type*} [MeasurableSpace Omega] [MeasurableSpace E]
(P : Measure Omega) [IsProbabilityMeasure P] {n : ℕ} (Z : Fin (n + 1) → Omega → E)
(Pm : Fin (n + 1) → Measure E) (hZm : ∀ i, Measurable (Z i)) (hind : iIndepFun Z P)
(hlaw : ∀ i, Measure.map (Z i) P = Pm i) (hac : ∀ i, Pm i ≪ Pm 0) :
IsWeightedExchangeable P Z
(fun i z => if i = 0 then 1 else ((Pm i).rnDeriv (Pm 0) z).toReal) := by sorry
end ConformalCovariateShiftRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let and be measurable spaces, and let be a probability measure on . Fix a natural number (the case , a single variable, is included). Index the coordinates ; index is the distinguished reference coordinate.
The theorem takes the following data and hypotheses:
- are functions, each assumed measurable.
- are measures on . No finiteness or -finiteness is assumed explicitly.
- Independence: are mutually independent under .
- Laws: for every , the law of under is , that is, . This forces each to be a probability measure.
- Absolute continuity: for every , . For this is trivial.
Define weight functions by
Here is the particular -valued Radon–Nikodym derivative chosen by the library, which is measurable. It is converted to a real number by sending any value to . Since is finite, the derivative is finite -almost everywhere.
Conclusion. are weighted exchangeable with weights . Unfolded, this means all of the following hold:
- Each is measurable.
- Each is measurable.
- for all and all .
- There exist a measure on the product space (product -algebra) and functions satisfying conditions (a)–(d) below.
The conditions on , and are:
-
(a) is invariant under every coordinate permutation. For every permutation of , the pushforward of under equals .
-
(b) is measurable. No measurability is required of .
-
(c) The joint law of on is the measure with density with respect to :
- (d) For every , with products taken in , the density factors as
and is symmetric everywhere:
for all permutations and all .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.