cfahlgren1's picture
download
raw
1.61 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 AePiLast
variable {E : Type*} [MeasurableSpace E] {n : ℕ} (ν : Measure E) [SigmaFinite ν]
lemma ae_pi_snoc {P : (Fin (n+1) → E) → Prop} (hP : MeasurableSet {v | P v}) :
(∀ᵐ v ∂Measure.pi (fun _ => ν), P v) ↔
∀ᵐ v : Fin n → E ∂Measure.pi (fun _ => ν), ∀ᵐ x ∂ν, P (Fin.snoc v x) := by
have hp := (measurePreserving_piFinSuccAbove (fun _ : Fin (n+1) => ν) (Fin.last n)).symm
rw [← hp.map_eq, MeasurableEmbedding.ae_map_iff (MeasurableEquiv.measurableEmbedding _)]
have heq : (fun z : E × (Fin n → E) =>
(MeasurableEquiv.piFinSuccAbove (fun _ : Fin (n+1) => E) (Fin.last n)).symm z) =
fun z => Fin.snoc z.2 z.1 := by
ext z : 1
change (Fin.last n).insertNth (α := fun _ => E) z.1 z.2 = _
exact Fin.insertNth_last' z.1 z.2
have hm : Measurable (fun z : E × (Fin n → E) => Fin.snoc (α := fun _ => E) z.2 z.1) := by
rw [← heq]
exact hp.measurable
change (∀ᵐ z ∂ν.prod (Measure.pi (fun _ : Fin n => ν)),
P ((fun z => (MeasurableEquiv.piFinSuccAbove (fun _ : Fin (n+1) => E)
(Fin.last n)).symm z) z)) ↔ _
have hPP : MeasurableSet {z : E × (Fin n → E) | P (Fin.snoc z.2 z.1)} := hP.preimage hm
rw [heq, Measure.ae_prod_iff_ae_ae hPP]
exact Measure.ae_ae_comm hPP
end AePiLast
end PosteriorRegression
end
end OAI

Xet Storage Details

Size:
1.61 kB
·
Xet hash:
25c5f84242c4a4f9a7789bc76b04d5cd39de1886224ee73794dbf4a48840774c

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