Download lean/OAI/Probability/LogConcave/OraclePrograms/SeedProgram.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 889 Bytes
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Probability/LogConcave/OraclePrograms/SeedProgram.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Probability/LogConcave/OraclePrograms/SeedProgram.lean
-
curl -L -o SeedProgram.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Probability/LogConcave/OraclePrograms/SeedProgram.lean
889 Bytes
| import Mathlib | |
| import OAI.Probability.LogConcave.OraclePrograms.Program | |
| namespace OAI | |
| section | |
| noncomputable section | |
| namespace LogConcaveSampling.OracleCompiler | |
| open MeasureTheory | |
| open scoped Classical BigOperators | |
| structure SeedProgram (d : ℕ) where | |
| slots : ℕ | |
| calls : ℕ | |
| program : Program (Point d × (Fin slots → Point d)) d calls (Point d) | |
| shift : Fin slots → ℝ | |
| namespace SeedProgram | |
| variable {d : ℕ} | |
| def damping (M : SeedProgram d) (D : ℝ) : | |
| (Fin M.slots → Point d) → (Fin M.slots → Point d) := | |
| SeedCompiler.slotTransform (SeedCompiler.sqrtCoefficient (fun i => M.shift i/(2*D))) | |
| (fun i => M.shift i/(2*D)) | |
| lemma measurable_damping (M : SeedProgram d) (D : ℝ) : Measurable (M.damping D) := by | |
| unfold damping SeedCompiler.slotTransform SeedCompiler.slotSum | |
| fun_prop | |
| end SeedProgram | |
| end LogConcaveSampling.OracleCompiler | |
| end | |
| end | |
| end OAI | |