PFR/ForMathlib/ConditionalIndependence.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.
Project sources: Pinned project documentation, Polynomial Freiman-Ruzsa proof paper, arXiv v2
9 declarations, 0 contain sorry, 0 declared as axioms
Imports (4)
Imported by 2 files
- theorem
ProbabilityTheory.IndepFun.identDistrib_condIfAis independent fromB, then conditioning on an event given byBdoes not change the distribution ofAline 22 sourceSource documentation
If
Ais independent fromB, then conditioning on an event given byBdoes not change the distribution ofA.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,MeasureTheory.Measure,MeasureTheory.IsProbabilityMeasure,ProbabilityTheory.IndepFun,Set,MeasurableSet,Measurable,Ne,ENNReal,Set.preimage,OfNat.ofNat,ProbabilityTheory.IdentDistrib,ProbabilityTheory.condProof uses:
ProbabilityTheory.IdentDistrib.mk,Measurable.aemeasurable,MeasureTheory.Measure.ext,MeasureTheory.Measure.map,Eq.mpr,Eq,id,congrArg,MeasureTheory.Measure.map_apply,HMul.hMul,Inv.inv,Inter.inter,ProbabilityTheory.cond_apply,Set.inter_comm,ProbabilityTheory.IndepFun.measure_inter_preimage_eq_mul,mul_comm,mul_assoc,ENNReal.mul_inv_cancel,MeasureTheory.measure_ne_top,mul_oneand 1 more32 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
theorem IndepFun.identDistrib_cond [IsProbabilityMeasure μ] (hi : IndepFun A B μ) {s : Set β} (hs : MeasurableSet s) (hA : Measurable A) (hB : Measurable B) (h : μ (B ⁻¹' s) ≠ 0) : IdentDistrib A A μ (μ[|B ⁻¹' s]) := by … - lemma
ProbabilityTheory.IndepFun.cond_leftIfAis independent ofB, then they remain independent when conditioning on an event of the formA ∈ sof positive probability line 35 sourceSource documentation
If
Ais independent ofB, then they remain independent when conditioning on an event of the formA ∈ sof positive probability.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,MeasureTheory.Measure,ProbabilityTheory.IndepFun,Set,MeasurableSet,Measurable,ProbabilityTheory.cond,Set.preimageProof uses:
Iff.mpr,Eq,ENNReal,Inter.inter,HMul.hMul,ProbabilityTheory.indepFun_iff_measure_inter_preimage_eq_mul,id,Set.ext,Eq.mpr,Iff,Membership.mem,And,congr,congrArg,Eq.trans,Iff.intro,of_eq_true,True,eq_true,and_selfand 27 more40 instances, coercions and auxiliary constants left out.
Tactic trace: 16 steps
Open to load the checked before-and-after goal states.
lemma IndepFun.cond_left (hi : IndepFun A B μ) {s : Set α} (hs : MeasurableSet s) (hA : Measurable A) : IndepFun A B (μ[| A⁻¹' s]) := by … - lemma
ProbabilityTheory.IndepFun.cond_rightIfAis independent ofB, then they remain independent when conditioning on an event of the formB ∈ tof positive probability line 56 sourceSource documentation
If
Ais independent ofB, then they remain independent when conditioning on an event of the formB ∈ tof positive probability.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,MeasureTheory.Measure,ProbabilityTheory.IndepFun,Set,MeasurableSet,Measurable,ProbabilityTheory.cond,Set.preimageProof uses:
ProbabilityTheory.IndepFun.symm, ProbabilityTheory.IndepFun.cond_leftlemma IndepFun.cond_right (h : IndepFun A B μ) {t : Set β} (ht : MeasurableSet t) (hB : Measurable B) : IndepFun A B (μ[| B⁻¹' t]) := … - lemma
ProbabilityTheory.IndepFun.condIfAis independent ofB, then they remain independent when conditioning on an event of the formA ∈ s ∩ B ∈ tof positive probability line 63 sourceSource documentation
If
Ais independent ofB, then they remain independent when conditioning on an event of the formA ∈ s ∩ B ∈ tof positive probability.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,MeasureTheory.Measure,ProbabilityTheory.IndepFun,Set,MeasurableSet,Measurable,ProbabilityTheory.cond,Inter.inter,Set.preimageProof uses:
Iff.mpr,Eq,ENNReal,HMul.hMul,ProbabilityTheory.indepFun_iff_measure_inter_preimage_eq_mul,id,Set.ext,Eq.mpr,Iff,Membership.mem,And,congr,congrArg,Eq.trans,Iff.intro,of_eq_true,True,eq_true,and_self,Inv.invand 60 more50 instances, coercions and auxiliary constants left out.
Tactic trace: 30 steps
Open to load the checked before-and-after goal states.
lemma IndepFun.cond (hi : IndepFun A B μ) {s : Set α} {t : Set β} (hs : MeasurableSet s) (ht : MeasurableSet t) (hA : Measurable A) (hB : Measurable B) : IndepFun A B (μ[| A ⁻¹' s ∩ B ⁻¹' t]) := by … - def
ProbabilityTheory.CondIndepFunThe assertion thatfandgare conditionally independent relative tohline 105 sourceSource documentation
The assertion that
fandgare conditionally independent relative toh.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,autoParam,MeasureTheory.MeasureProof uses:
Filter.Eventually,ProbabilityTheory.IndepFun,ProbabilityTheory.cond,Set.preimage,Singleton.singleton,Set,MeasureTheory.ae,MeasureTheory.Measure.map4 instances, coercions and auxiliary constants left out.
def CondIndepFun (f : Ω → α) (g : Ω → β) (h : Ω → γ) (μ : Measure Ω := by volume_tac) : Prop := …
- lemma
ProbabilityTheory.condIndepFun_iffline 108 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,MeasureTheory.Measure,Iff, ProbabilityTheory.CondIndepFun,Filter.Eventually,ProbabilityTheory.IndepFun,ProbabilityTheory.cond,Set.preimage,Singleton.singleton,Set,MeasureTheory.ae,MeasureTheory.Measure.mapProof uses:
Iff.rfl3 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
ProbabilityTheory.CondIndepFun.comp_rightComposing independent functions with a measurable embedding of conull range gives independent functions line 114 sourceSource documentation
Composing independent functions with a measurable embedding of conull range gives independent functions.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,MeasureTheory.Measure,MeasurableSingletonClass,MeasurableEmbedding,Filter.Eventually,Membership.mem,Set,Set.range,MeasureTheory.ae,Measurable, ProbabilityTheory.CondIndepFun,Function.comp,MeasureTheory.Measure.comapProof uses:
Eq.mpr,ProbabilityTheory.IndepFun,ProbabilityTheory.cond,Set.preimage,Singleton.singleton,MeasureTheory.Measure.map,id,Eq,congrArg,propext, ProbabilityTheory.condIndepFun_iff,Eq.symm,MeasureTheory.Measure.map_map,MeasurableEmbedding.measurable,MeasureTheory.Measure.restrict,MeasurableEmbedding.map_comap,MeasureTheory.Measure.restrict_eq_self_of_ae_mem,Filter.Eventually.mono,Eq.mp,Set.preimage_compand 6 more7 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
lemma CondIndepFun.comp_right {i : Ω' → Ω} (hi : MeasurableEmbedding i) (hi' : ∀ᵐ a ∂μ, a ∈ range i) (hf : Measurable f) (hg : Measurable g) (hh : Measurable h) (hfg : CondIndepFun f g h μ) : CondIndepFun (f ∘ i) (g ∘ i) (h ∘ i) (μ.comap i) := by …Mentions: ProbabilityTheory.CondIndepFun
- lemma
ProbabilityTheory.condIndep_copiesForX, Yrandom variables, there exist conditionally independent trialsX_1, X_2, Y'line 133 sourceSource documentation
For
X, Yrandom variables, there exist conditionally independent trialsX_1, X_2, Y'.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,MeasurableSingletonClass,Measurable, FiniteRange,MeasureTheory.Measure,MeasureTheory.IsProbabilityMeasure,Exists,And, ProbabilityTheory.CondIndepFun,ProbabilityTheory.IdentDistrib,Prod, prodProof uses:
MeasureTheory.Measure.map,ProbabilityTheory.cond,Set.preimage,Singleton.singleton,Set,MeasureTheory.Measure.prod,MeasureTheory.Measure.dirac,Finset.sum, FiniteRange.toFinset,HSMul.hSMul,ENNReal,Membership.mem,Filter,MeasureTheory.ae,Set.ofPred,Eq,Eq.mpr,Compl.compl,OfNat.ofNat,idand 130 more120 instances, coercions and auxiliary constants left out.
Tactic trace: 159 steps
Open to load the checked before-and-after goal states.
lemma condIndep_copies (X : Ω → α) (Y : Ω → β) (hX : Measurable X) (hY : Measurable Y) [finY : FiniteRange Y] (μ : Measure Ω) [IsProbabilityMeasure μ] : ∃ (Ω' : Type u) (_ : MeasurableSpace Ω') (X₁ X₂ : Ω' → α) (Y' : Ω' → β) (ν : Measure Ω'), IsProbabilityMeasure ν ∧ Measurable X₁ ∧ Measurable X₂ ∧ Measurable Y' ∧ CondIndepFun X₁ X₂ Y' ν ∧ IdentDistrib (⟨X₁, Y'⟩) (⟨X, Y⟩) ν μ ∧ IdentDistrib (⟨X₂, Y'⟩) (⟨X, Y⟩) ν μ := by …Mentions: FiniteRange, ProbabilityTheory.CondIndepFun
- lemma
ProbabilityTheory.condIndep_copies'ForX, Yrandom variables, there exist conditionally independent trialsX₁, X₂, Y'line 278 sourceSource documentation
For
X, Yrandom variables, there exist conditionally independent trialsX₁, X₂, Y'.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,MeasurableSingletonClass,Measurable, FiniteRange,MeasureTheory.Measure,MeasureTheory.IsProbabilityMeasure,Prod,Function.uncurry,Filter.Eventually,MeasureTheory.ae,Exists,And, ProbabilityTheory.CondIndepFun,ProbabilityTheory.IdentDistrib, prodProof uses: ProbabilityTheory.condIndep_copies,
Subtype,MeasurableEmbedding,MeasurableEmbedding.subtype_coe,Measurable.setOf,Function.comp,Prod.mk,Measurable.and,Measurable.comp,Measurable.prodMk,Membership.mem,Set,Set.range,Eq.mpr,id,Eq,Eq.trans,congrFun',Filter,congrArgand 16 more14 instances, coercions and auxiliary constants left out.
Tactic trace: 15 steps
Open to load the checked before-and-after goal states.
lemma condIndep_copies' (X : Ω → α) (Y : Ω → β) (hX : Measurable X) (hY : Measurable Y) [FiniteRange Y] (μ : Measure Ω) [IsProbabilityMeasure μ] (p : α → β → Prop) (hp : Measurable (uncurry p)) (hp' : ∀ᵐ ω ∂μ, p (X ω) (Y ω)) : ∃ (Ω' : Type u) (_ : MeasurableSpace Ω') (X₁ X₂ : Ω' → α) (Y' : Ω' → β) (ν : Measure Ω'), IsProbabilityMeasure ν ∧ Measurable X₁ ∧ Measurable X₂ ∧ Measurable Y' ∧ CondIndepFun X₁ X₂ Y' ν ∧ IdentDistrib (⟨X₁, Y'⟩) (⟨X, Y⟩) ν μ ∧ IdentDistrib (⟨X₂, Y'⟩) (⟨X, Y⟩) ν μ ∧ (∀ ω, p (X₁ ω) (Y' ω)) ∧ (∀ ω, p (X₂ ω) (Y' ω)) := by …Mentions: FiniteRange, ProbabilityTheory.CondIndepFun