roseking's picture
Add lean source and binary files (part 126)
a2ee19a verified
Raw History Blame Contribute Delete
1.07 kB
import OAI.Probability.PosteriorReplicas.Model
namespace OAI
open MeasureTheory ProbabilityTheory Set Filter
open scoped ENNReal NNReal RealInnerProductSpace
noncomputable section
universe u
namespace PosteriorRegression
open scoped Topology
open InnerProductSpace
section PiLast
variable {E : Type*} [MeasurableSpace E] {n : ℕ} (ν : Measure E) [SigmaFinite ν]
lemma lintegral_pi_snoc (f : (Fin (n+1) → E) → ℝ≥0∞) (hf : Measurable f) :
∫⁻ v, f v ∂Measure.pi (fun _ => ν) =
∫⁻ v : Fin n → E, ∫⁻ x, f (Fin.snoc v x) ∂ν ∂Measure.pi (fun _ => ν) := by
have hp := (measurePreserving_piFinSuccAbove (fun _ : Fin (n+1) => ν) (Fin.last n)).symm
rw [← hp.lintegral_comp_emb (MeasurableEquiv.measurableEmbedding _) f,
lintegral_prod_symm]
· congr 1
ext v
congr 1
ext x
congr 1
simp only [MeasurableEquiv.piFinSuccAbove_symm_apply, Fin.insertNthEquiv]
exact Fin.insertNth_last' x v
· exact (hf.comp (MeasurableEquiv.measurable _)).aemeasurable
end PiLast
end PosteriorRegression
end
end OAI