cfahlgren1's picture
download
raw
2.75 kB
import OAI.Analysis.FiniteFactor.Coupling.Products
namespace OAI
namespace FiniteFactor
open MeasureTheory
open scoped ENNReal
noncomputable section
namespace CouplingParameters
def selectedLaw (p : CouplingParameters) (enabled right : Bool) : Measure ℝ :=
unitIntervalMeasure.withDensity (fun t => ENNReal.ofReal (p.selectedDensity enabled right t))
instance selectedLaw_probability (p : CouplingParameters) (enabled right : Bool) :
IsProbabilityMeasure (p.selectedLaw enabled right) :=
densityMeasure_probability ((p.selectedDensity_memLp enabled right).integrable (by norm_num))
(p.selectedDensity_nonneg enabled right) (p.selectedDensity_integral enabled right)
theorem selectedLaw_endpoint (p : CouplingParameters) (right : Bool) :
p.selectedLaw true right = p.coupling.map (endpoint right) :=
(p.coupling_endpoint_density right).symm
theorem selectedLaw_apply_integral (p : CouplingParameters) (enabled right : Bool)
{S : Set ℝ} (hS : MeasurableSet S) :
p.selectedLaw enabled right S = ENNReal.ofReal (∫ t in S, p.selectedDensity enabled right t ∂unitIntervalMeasure) := by
rw [selectedLaw, withDensity_apply _ hS]
exact (ofReal_integral_eq_lintegral_ofReal
(((p.selectedDensity_memLp enabled right).integrable (by norm_num)).restrict)
(Filter.Eventually.of_forall (p.selectedDensity_nonneg enabled right))).symm
/-- The actual finite product law has the product density with the established L2 bounds.
This identifies measures on every measurable set. -/
theorem finiteProductLaw_density {ι : Type*} [Fintype ι]
(p : ι → CouplingParameters) (enabled right : ι → Bool) :
Measure.pi (fun i => (p i).selectedLaw (enabled i) (right i)) =
(Measure.pi (fun _ : ι => unitIntervalMeasure)).withDensity
(fun x => ENNReal.ofReal (finiteProductDensity p enabled right x)) := by
classical
apply Measure.pi_eq
intro S hS
rw [withDensity_apply _ (MeasurableSet.univ_pi hS)]
have hnon (x : ι → ℝ) : 0 ≤ finiteProductDensity p enabled right x :=
Finset.prod_nonneg fun i _ => (p i).selectedDensity_nonneg (enabled i) (right i) (x i)
rw [← ofReal_integral_eq_lintegral_ofReal
((finiteProductDensity_memLp p enabled right).integrable (by norm_num)).restrict
(Filter.Eventually.of_forall hnon)]
rw [Measure.restrict_pi_pi]
unfold finiteProductDensity
rw [integral_fintype_prod_eq_prod (fun i => (p i).selectedDensity (enabled i) (right i))]
rw [ENNReal.ofReal_prod_of_nonneg (fun i _ => integral_nonneg
((p i).selectedDensity_nonneg (enabled i) (right i)))]
apply Finset.prod_congr rfl
intro i _
exact ((p i).selectedLaw_apply_integral (enabled i) (right i) (hS i)).symm
end CouplingParameters
end
end FiniteFactor
end OAI

Xet Storage Details

Size:
2.75 kB
·
Xet hash:
36bfc7e7f0e800e50e22cdbf6b881ec9215ed6066b5cc8fd04d82b89786e3fba

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.