PFR/Mathlib/Probability/Independence/Basic.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
19 declarations, 0 contain sorry, 0 declared as axioms
Imports (3)
Imported by 4 files
- lemma
ProbabilityTheory.IndepFun.measureReal_inter_preimage_eq_mulline 16 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,MeasureTheory.Measure,ProbabilityTheory.IndepFun,Set,MeasurableSet,Eq,Real,MeasureTheory.Measure.real,Inter.inter,Set.preimage,HMul.hMulProof uses:
Eq.mpr,ENNReal.toReal,ENNReal,id,congrArg,MeasureTheory.measureReal_def,ProbabilityTheory.IndepFun.measure_inter_preimage_eq_mul,ENNReal.toReal_mul,Eq.refl12 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
ProbabilityTheory.iIndepFun.invline 39 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,MeasureTheory.Measure,Inv,MeasurableInv,DecidableEq,ProbabilityTheory.iIndepFun,Function.update,Inv.invProof uses:
Eq.mpr,Function.comp,id,eq_of_heq,Eq,autoParam,HEq,Eq.refl,HEq.refl,Eq.symm,funext,dite,of_eq_true,Eq.trans,True,congr,congrArg,congrFun,Function.update_self,congrFun'and 9 more9 instances, coercions and auxiliary constants left out.
Tactic trace: 16 steps
Open to load the checked before-and-after goal states.
- lemma
ProbabilityTheory.iIndepFun.finsetsDocumented declaration: finsets line 52 sourceSource documentation
If
fis a family of mutually independent random variables,(S j)ⱼare pairwise disjoint finite index sets, then the tuples formed byf ifori ∈ S jare mutually independent, when seen as a family indexed byJ.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,MeasureTheory.Measure,Finset,Set.PairwiseDisjoint,Set.univ,ProbabilityTheory.iIndepFun,Measurable,Subtype,Membership.memProof uses: ProbabilityTheory.Kernel.iIndepFun.finsets,
Unit,ProbabilityTheory.Kernel.const,MeasureTheory.Measure.dirac,Unit.unit9 instances, coercions and auxiliary constants left out.
lemma iIndepFun.finsets {f : ∀ i, Ω → β i} {J : Type*} (S : J → Finset ι) (h_disjoint : Set.PairwiseDisjoint Set.univ S) (hf_Indep : iIndepFun f μ) (hf_meas : ∀ i, Measurable (f i)) : iIndepFun (fun (j : J) ↦ fun a (i : S j) ↦ f i a) μ := … - lemma
ProbabilityTheory.iIndepFun.finsets_compDocumented declaration: finsets_comp line 62 sourceSource documentation
If
fis a family of mutually independent random variables,(S j)ⱼare pairwise disjoint finite index sets, andφ jis a function that maps the tuple formed byf ifori ∈ S jto a measurable spaceγ j, then the family of random variables formed byφ j (f i)_{i ∈ S j}and indexed byJis iIndep.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,MeasureTheory.Measure,Finset,Set.PairwiseDisjoint,Set.univ,ProbabilityTheory.iIndepFun,Measurable,Subtype,Membership.memProof uses: ProbabilityTheory.Kernel.iIndepFun.finsets_comp,
Unit,ProbabilityTheory.Kernel.const,MeasureTheory.Measure.dirac,Unit.unit13 instances, coercions and auxiliary constants left out.
lemma iIndepFun.finsets_comp {f : ∀ i, Ω → β i} {J : Type*} (S : J → Finset ι) (h_disjoint : Set.PairwiseDisjoint Set.univ S) (hf_Indep : iIndepFun f μ) (hf_meas : ∀ i, Measurable (f i)) {γ : J → Type*} {mγ : ∀ j, MeasurableSpace (γ j)} (φ : (j : J) → ((i : S j) → β i) → γ j) (hφ : ∀ j, Measurable (φ j)) : iIndepFun (fun (j : J) ↦ fun a ↦ φ j (fun (i : S j) ↦ f i a)) μ := … - lemma
ProbabilityTheory.iIndepFun.finsetSumline 70 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,MeasureTheory.Measure,AddCommMonoid,MeasurableAdd₂,Finset,Set.PairwiseDisjoint,Set.univ,ProbabilityTheory.iIndepFun,Measurable,Finset.sumProof uses:
Subtype,Membership.mem,Finset.univ,Eq,rfl,Eq.mpr,id,congrArg,Finset.measurable_sum,Finset.attach,measurable_pi_apply, ProbabilityTheory.iIndepFun.finsets_comp,of_eq_true,Eq.trans,True,congr,congrFun',congrFun,Finset.sum_congr,Eq.refland 6 more16 instances, coercions and auxiliary constants left out.
Tactic trace: 9 steps
Open to load the checked before-and-after goal states.
- lemma
ProbabilityTheory.IndepFun.finsetSumline 85 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,MeasureTheory.Measure,AddCommMonoid,MeasurableAdd₂,Finset,ProbabilityTheory.iIndepFun,Measurable,Disjoint,ProbabilityTheory.IndepFun,Finset.sumProof uses:
Bool,ite,Eq,Bool.true,Set.PairwiseDisjoint,Set.univ,Membership.mem,Set,Ne,dite,Function.onFun,False.elim,Eq.rec,Eq.symm,Not,Eq.mpr,id,congr,congrArg,Eq.transand 21 more17 instances, coercions and auxiliary constants left out.
Tactic trace: 27 steps
Open to load the checked before-and-after goal states.
- lemma
ProbabilityTheory.iIndepFun.finsets_comp'A variant of iIndepFun.finsets_comp where we conclude the independence of just two functions rather than an entire family line 108 sourceSource documentation
A variant of iIndepFun.finsets_comp where we conclude the independence of just two functions rather than an entire family.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,MeasureTheory.Measure,Finset,Disjoint,ProbabilityTheory.iIndepFun,Measurable,Subtype,Membership.mem,ProbabilityTheory.IndepFunProof uses:
Fin,Nat.succ,OfNat.ofNat,Nat,Matrix.vecCons,Matrix.vecEmpty,Unit,Set.PairwiseDisjoint,Set.univ,id,Set.Pairwise,Function.onFun,Eq.mpr,Set,Ne,And,Eq,Eq.trans,forall_congr,implies_congrand 19 more42 instances, coercions and auxiliary constants left out.
Tactic trace: 11 steps
Open to load the checked before-and-after goal states.
lemma iIndepFun.finsets_comp' {f : ∀ i, Ω → β i} {S S' : Finset ι} (h_disjoint : Disjoint S S') (hf_Indep : iIndepFun f μ) (hf_meas : ∀ i, Measurable (f i)) {γ γ' : Type u} {mγ : MeasurableSpace γ} {mγ' : MeasurableSpace γ'} {φ : (∀ i : S, β i) → γ} {φ' : (∀ i : S', β i) → γ'} (hφ : Measurable φ) (hφ' : Measurable φ') : IndepFun (fun a ↦ φ (fun (i : S) ↦ f i a)) (fun a ↦ φ' (fun (i : S') ↦ f i a)) μ := by … - lemma
ProbabilityTheory.indepFun_zero_measureline 137 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,ProbabilityTheory.IndepFun,OfNat.ofNat,MeasureTheory.MeasureProof uses:
of_eq_true,ProbabilityTheory.Kernel.IndepFun,Unit,ProbabilityTheory.Kernel.const,MeasureTheory.Measure.dirac,Unit.unit,Eq.trans,ProbabilityTheory.Kernel,True,congrFun',congrArg,autoParam,ProbabilityTheory.Kernel.const_zero8 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
ProbabilityTheory.indepFun_constRandom variables are always independent of constants line 141 sourceSource documentation
Random variables are always independent of constants.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,MeasureTheory.Measure,MeasureTheory.IsZeroOrProbabilityMeasure,ProbabilityTheory.IndepFunProof uses:
Eq,OfNat.ofNat,MeasureTheory.IsProbabilityMeasure,Or,MeasureTheory.eq_zero_or_isProbabilityMeasure,of_eq_true,Eq.symm,Eq.mpr,Set,MeasurableSet,MeasurableSpace.comap,ENNReal,Inter.inter,HMul.hMul,id,congrArg,propext,ProbabilityTheory.IndepFun_iff,Bot.bot,MeasurableSpace.comap_constand 14 more31 instances, coercions and auxiliary constants left out.
Tactic trace: 8 steps
Open to load the checked before-and-after goal states.
lemma indepFun_const [IsZeroOrProbabilityMeasure μ] (c : α) : IndepFun f (fun _ => c) μ := by …
- lemma
ProbabilityTheory.indepFun_fst_sndline 149 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,MeasureTheory.Measure,MeasureTheory.IsZeroOrProbabilityMeasure,ProbabilityTheory.IndepFun,Prod,Prod.fst,Prod.snd,MeasureTheory.Measure.prodProof uses:
Eq,OfNat.ofNat,MeasureTheory.IsProbabilityMeasure,Or,MeasureTheory.eq_zero_or_isProbabilityMeasure,of_eq_true,Eq.trans,True,congrArg,MeasureTheory.Measure.zero_prod,Eq.symm,MeasureTheory.Measure.prod_zero,Eq.mpr,Set,MeasurableSet,MeasurableSpace.comap,ENNReal,Inter.inter,HMul.hMul,idand 16 more27 instances, coercions and auxiliary constants left out.
Tactic trace: 9 steps
Open to load the checked before-and-after goal states.
- lemma
ProbabilityTheory.IndepFun.comp_rightComposing independent functions with a measurable embedding of conull range gives independent functions line 163 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,MeasurableEmbedding,Filter.Eventually,Membership.mem,Set,Set.range,MeasureTheory.ae,Measurable,ProbabilityTheory.IndepFun,Function.comp,MeasureTheory.Measure.comapProof uses:
id,Eq,ENNReal,Compl.compl,OfNat.ofNat,Eq.mpr,MeasurableSet,MeasurableSpace.comap,Inter.inter,HMul.hMul,congrArg,propext,ProbabilityTheory.IndepFun_iff,And,Set.preimage,Set.preimage_comp,Eq.symm,Set.preimage_inter,Set.image,MeasureTheory.Measure.comap_applyand 11 more19 instances, coercions and auxiliary constants left out.
Tactic trace: 11 steps
Open to load the checked before-and-after goal states.
lemma IndepFun.comp_right {i : Ω' → Ω} (hi : MeasurableEmbedding i) (hi' : ∀ᵐ a ∂μ, a ∈ range i) (hf : Measurable f) (hg : Measurable g) (hfg : IndepFun f g μ) : IndepFun (f ∘ i) (g ∘ i) (μ.comap i) := by … - lemma
ProbabilityTheory.iIndepFun_iff'Same asiIndepFun_iffexcept that the functionf'returns measurable sets even on junk values line 181 sourceSource comment
Same as `iIndepFun_iff` except that the function `f'` returns measurable sets even on junk valuesstandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,MeasureTheory.Measure,Iff,ProbabilityTheory.iIndepFun,Finset,Set,MeasurableSet,MeasurableSpace.comap,Eq,ENNReal,Set.iInter,Membership.mem,Finset.prodProof uses:
Eq.mpr,id,congrArg,propext,ProbabilityTheory.iIndepFun_iff,forall_congr',Iff.intro,ite,Classical.propDecidable,Set.univ,Eq.symm,ite_eq_left,eq_of_heq,HEq,Eq.refl,HEq.refl,outParam,DFunLike,Set.iInter₂_congr,Finset.prod_congrand 9 more16 instances, coercions and auxiliary constants left out.
Tactic trace: 14 steps
Open to load the checked before-and-after goal states.
lemma iIndepFun_iff' [MeasurableSpace Ω] {β : ι → Type*} (m : ∀ i, MeasurableSpace (β i)) (f : ∀ i, Ω → β i) (μ : Measure Ω) : iIndepFun f μ ↔ ∀ (s : Finset ι) ⦃f' : ι → Set Ω⦄ (_hf' : ∀ i, MeasurableSet[(m i).comap (f i)] (f' i)), μ (⋂ i ∈ s, f' i) = ∏ i ∈ s, μ (f' i) := by … - lemma
ProbabilityTheory.measurable_sigmaCurryline 204 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,Measurable,Sigma,Sigma.fst,Sigma.snd,Sigma.curryProof uses:
measurable_sigmaCurry1 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
ProbabilityTheory._root_.Finset.prod_univ_prodline 212 source - lemma
ProbabilityTheory._root_.Finset.prod_univ_prod'line 217 source - lemma
ProbabilityTheory.iIndepFun.piIf a family of functions(i, j) ↦ f i jis independent, then the family of function tuplesi ↦ (f i j)ⱼis independent line 226 sourceSource documentation
If a family of functions
(i, j) ↦ f i jis independent, then the family of function tuplesi ↦ (f i j)ⱼis independent.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,MeasureTheory.Measure,Finite,Measurable,ProbabilityTheory.iIndepFun,Sigma,Sigma.fst,Sigma.sndProof uses:
Fintype,Fintype.ofFinite,Set,Set.image,Set.pi,Set.univ,Set.ofPred,MeasurableSet,ProbabilityTheory.iIndepSets.iIndep,MeasurableSpace.comap,Iff.mp,LE.le,measurable_iff_comap_le,Iff.mpr,measurable_pi_iff,Exists,And,Membership.mem,Eq,Set.preimageand 70 more24 instances, coercions and auxiliary constants left out.
Tactic trace: 57 steps
Open to load the checked before-and-after goal states.
lemma iIndepFun.pi (f_meas : ∀ i j, Measurable (f i j)) (hf : iIndepFun (fun ij : Σ i, κ i ↦ f ij.1 ij.2) μ) : iIndepFun (fun i ω j ↦ f i j ω) μ := by … - lemma
ProbabilityTheory.iIndepFun.pi'If a family of functions(i, j) ↦ f i jis independent, then the family of function tuplesi ↦ (f i j)ⱼis independent line 284 sourceSource documentation
If a family of functions
(i, j) ↦ f i jis independent, then the family of function tuplesi ↦ (f i j)ⱼis independent.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,MeasureTheory.Measure,Finite,Sigma,Sigma.fst,Sigma.snd,Measurable,ProbabilityTheory.iIndepFun,Sigma.mkProof uses: ProbabilityTheory.iIndepFun.pi
1 instances, coercions and auxiliary constants left out.
lemma iIndepFun.pi' {f : ∀ ij : (Σ i, κ i), Ω → α ij.1 ij.2 } (f_meas : ∀ i, Measurable (f i)) (hf : iIndepFun f μ) : iIndepFun (fun i ω ↦ (fun j ↦ f ⟨i, j⟩ ω)) μ := … - lemma
ProbabilityTheory.iIndepFun.prodline 293 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,MeasureTheory.Measure,Measurable,Finset,Pairwise,Function.onFun,Disjoint,ProbabilityTheory.iIndepFun,Subtype,Membership.memProof uses:
Sigma,Function.dcomp,Sigma.fst,Sigma.snd,Function.Injective,Eq,Not,Iff.mpr,LE.le,Bot.bot,Exists,Classical.not_forall,Exists.intro,Singleton.singleton,Eq.mpr,And,id,Eq.trans,congrArg,implies_congrand 9 more25 instances, coercions and auxiliary constants left out.
Tactic trace: 10 steps
Open to load the checked before-and-after goal states.
- theorem
ProbabilityTheory.iIndepFun.ae_eqTODO: a kernel version of this theorem line 312 sourceSource documentation
TODO: a kernel version of this theorem
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasurableSpace,MeasureTheory.Measure,ProbabilityTheory.iIndepFun,Filter.EventuallyEq,MeasureTheory.aeProof uses:
Eq.mpr,ProbabilityTheory.iIndep,MeasurableSpace.comap,id,Eq,congrArg,propext,ProbabilityTheory.iIndepFun_iff_iIndep,Finset,Set,Membership.mem,MeasurableSet,ENNReal,Set.iInter,Finset.prod,ProbabilityTheory.iIndep_iff,Exists,And,Filter.EventuallyEqSet,diteand 26 more18 instances, coercions and auxiliary constants left out.
Tactic trace: 32 steps
Open to load the checked before-and-after goal states.
theorem iIndepFun.ae_eq {ι : Type*} {β : ι → Type*} {m : ∀ i, MeasurableSpace (β i)} {f g : ∀ i, Ω → β i} (hf_Indep : iIndepFun f μ) (hfg : ∀ i, f i =ᵐ[μ] g i) : iIndepFun g μ := by …