Download lean/OAI/Probability/PosteriorReplicas/Regression/PiLast.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.07 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Probability/PosteriorReplicas/Regression/PiLast.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Probability/PosteriorReplicas/Regression/PiLast.lean
-
curl -L -o PiLast.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Probability/PosteriorReplicas/Regression/PiLast.lean
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 | |