Download lean/OAI/Probability/MemoryPrecision/KernelAdmissibility.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.81 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Probability/MemoryPrecision/KernelAdmissibility.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Probability/MemoryPrecision/KernelAdmissibility.lean
-
curl -L -o KernelAdmissibility.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Probability/MemoryPrecision/KernelAdmissibility.lean
1.81 kB
| import Mathlib | |
| import OAI.Probability.GaussianRegression.Main | |
| import OAI.Probability.MemoryPrecision.CoefficientStep | |
| namespace OAI | |
| open MeasureTheory ProbabilityTheory Set Filter EuclideanGeometry | |
| open scoped ENNReal NNReal RealInnerProductSpace Topology Pointwise | |
| noncomputable section | |
| universe u v | |
| open MeasureTheory ProbabilityTheory Set Filter | |
| open scoped ENNReal NNReal RealInnerProductSpace Topology Pointwise | |
| namespace MemoryPrecision.Kernel | |
| namespace Policy | |
| def ModelAdmissible {d M T : ℕ} {Ω : Type u} [MeasurableSpace Ω] | |
| (K : Ω → Policy d M T) (ρ : Measure Ω) : Prop := | |
| ∀ π : Measure (Sphere d), IsProbabilityMeasure π → Admissible K ρ π | |
| def FixedSuccess {d M T : ℕ} {Ω : Type u} [MeasurableSpace Ω] | |
| (K : Ω → Policy d M T) (ρ : Measure Ω) (ε : ℝ) (s : Sphere d) : ℝ≥0∞ := | |
| let rowMeasurable := .pi (Fin T) (fun _ => Vector d) | |
| (fun _ => @WithLp.measurableSpace | |
| (.ofNat ℝ≥0∞ 2 | |
| ( ℝ≥0∞ 2 ENNReal.instAddCommMonoidWithOne.toNatCast inferInstance)) | |
| (Fin d → ℝ) inferInstance) | |
| (Ω × Rows d T) | |
| (.instMeasurableSpace Ω (Rows d T) inferInstance rowMeasurable) | |
| (.prod Ω (Rows d T) inferInstance rowMeasurable ρ (RowLaw d T)) | |
| (fun z => experiment K (angleTest ε) (s,z)) | |
| lemma modelAdmissible_of_measurable {d M T : ℕ} {Ω : Type u} [MeasurableSpace Ω] | |
| (K : Ω → Policy d M T) (ρ : Measure Ω) | |
| (hc : ∀ᵐ ω ∂ρ, (K ω).Completed) | |
| (hm : ∀ f : Sphere d × Sphere d → ℝ≥0∞, Measurable f → (∀ x, f x ≤ 1) → | |
| Measurable (experiment K f)) : ModelAdmissible K ρ := by | |
| intro π hπ | |
| exact ⟨hc, fun f hf h1 => (hm f hf h1).aemeasurable⟩ | |
| end Policy | |
| end MemoryPrecision.Kernel | |
| end | |
| end OAI | |