cfahlgren1's picture
download
raw
1.86 kB
import OAI.Probability.PosteriorReplicas.Regression.PiLast
namespace OAI
open MeasureTheory ProbabilityTheory Set Filter
open scoped ENNReal NNReal RealInnerProductSpace
noncomputable section
universe u
namespace PosteriorRegression
open scoped Topology
open InnerProductSpace
section ReplicaKernel
variable {X : Type*} [MeasurableSpace X] (μ : Measure X) [SigmaFinite μ]
lemma lintegral_fin_prod (n : ℕ) (f : Fin n → X → ℝ≥0∞) (hf : ∀ i, Measurable (f i)) :
∫⁻ x : Fin n → X, ∏ i, f i (x i) ∂Measure.pi (fun _ => μ) =
∏ i, ∫⁻ x, f i x ∂μ := by
induction n with
| zero => simp
| succ n ih =>
rw [lintegral_pi_snoc μ _ (by fun_prop)]
simp_rw [Fin.prod_univ_castSucc, Fin.snoc_castSucc, Fin.snoc_last]
simp_rw [lintegral_const_mul _ (hf (Fin.last n))]
rw [lintegral_mul_const _ (by fun_prop), ih _ (fun i => hf i.castSucc)]
lemma lintegral_pow_pi (f : X → ℝ≥0∞) (hf : Measurable f) (n : ℕ) :
(∫⁻ x, f x ∂μ)^n =
∫⁻ x : Fin n → X, ∏ i, f (x i) ∂Measure.pi (fun _ => μ) := by
rw [lintegral_fin_prod μ n _ (fun _ => hf)]
simp
lemma lintegral_product_differences (φ : ℝ → ℝ≥0∞) (hφ : Measurable φ)
(hφ1 : ∫⁻ x, φ x = 1) (m n : ℕ) (y : Fin m → ℝ) :
∫⁻ z : Fin m → Fin n → ℝ,
∏ j, φ (y j) * ∏ i, φ (y j - z j i) = ∏ j, φ (y j) := by
rw [volume_pi, lintegral_fin_prod (volume : Measure (Fin n → ℝ)) m
(fun j z => φ (y j) * ∏ i, φ (y j - z i)) (by intro i; fun_prop)]
apply Finset.prod_congr rfl
intro j _
rw [lintegral_const_mul _ (by fun_prop), volume_pi,
lintegral_fin_prod (volume : Measure ℝ) n
(fun _ z => φ (y j - z)) (by intro i; fun_prop)]
simp_rw [lintegral_sub_left_eq_self φ (y j), hφ1]
simp
end ReplicaKernel
end PosteriorRegression
end
end OAI

Xet Storage Details

Size:
1.86 kB
·
Xet hash:
e6df1ce883a13272ad51b396448d7bfd1a7c6ae2c04a93237b4800bacf879c5c

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