Download lean/OAI/Geometry/CoveringDensity/Model.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 4.44 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Geometry/CoveringDensity/Model.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Geometry/CoveringDensity/Model.lean
-
curl -L -o Model.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Geometry/CoveringDensity/Model.lean
4.44 kB
| import Mathlib | |
| namespace OAI | |
| namespace CoveringOrder | |
| open Set MeasureTheory | |
| open scoped ENNReal | |
| abbrev Space (n : ℕ) := EuclideanSpace ℝ (Fin n) | |
| /-- Actual discrete full-rank lattice coverings; no assumed density theorem. -/ | |
| structure LatticeCover {n : ℕ} (K : Set (Space n)) where | |
| lattice : Submodule ℤ (Space n) | |
| discrete : DiscreteTopology lattice | |
| fullrank : IsZLattice ℝ lattice | |
| covers : ∀ y, ∃ l : lattice, y - l.val ∈ K | |
| noncomputable def euclideanVolume (n : ℕ) : | |
| (EuclideanSpace ℝ (Fin n)) | |
| (.measurableSpace 2 (Fin n → ℝ) | |
| (.pi (Fin n) (fun _ => ℝ) (fun _ => Real.measurableSpace))) := | |
| .map (Fin n → ℝ) (EuclideanSpace ℝ (Fin n)) | |
| (.pi (Fin n) (fun _ => ℝ) (fun _ => Real.measurableSpace)) | |
| (.measurableSpace 2 (Fin n → ℝ) | |
| (.pi (Fin n) (fun _ => ℝ) (fun _ => Real.measurableSpace))) | |
| (.toLp 2 (Fin n → ℝ)) | |
| (Measure.pi (fun _ : Fin n => @volume ℝ Real.measureSpace)) | |
| noncomputable def euclideanCovolume {n : ℕ} | |
| (lattice : Submodule ℤ (EuclideanSpace ℝ (Fin n))) : ℝ≥0∞ := | |
| addCovolume lattice (EuclideanSpace ℝ (Fin n)) (euclideanVolume n) | |
| noncomputable def latticeDensity {n : ℕ} {K : Set (Space n)} | |
| (cover : LatticeCover K) : ℝ≥0∞ := | |
| euclideanVolume n K / euclideanCovolume cover.lattice | |
| noncomputable def thetaL {n : ℕ} (K : Set (EuclideanSpace ℝ (Fin n))) : ℝ≥0∞ := | |
| ⨅ cover : LatticeCover K, latticeDensity cover | |
| end CoveringOrder | |
| namespace TranslativeCovering | |
| open Set Filter MeasureTheory | |
| open scoped ENNReal | |
| abbrev Space (n : ℕ) := EuclideanSpace ℝ (Fin n) | |
| def cube (n : ℕ) (R : ℝ) : Set (Space n) := | |
| {x | ∀ i, -R ≤ x i ∧ x i ≤ R} | |
| def LocallyFiniteCenters {n : ℕ} (X : Set (Space n)) : Prop := | |
| ∀ B : Set (Space n), Bornology.IsBounded B → (X ∩ B).Finite | |
| def Covers {n : ℕ} (K X : Set (Space n)) : Prop := | |
| ∀ y, ∃ x ∈ X, y - x ∈ K | |
| def ConvexBody {n : ℕ} (K : Set (Space n)) : Prop := | |
| IsCompact K ∧ Convex ℝ K ∧ (interior K).Nonempty | |
| def CentrallySymmetric {n : ℕ} (K : Set (Space n)) : Prop := | |
| ∃ z, ∀ x, x ∈ K ↔ (2 : ℝ) • z - x ∈ K | |
| noncomputable def upperCenterIntensity {n : ℕ} (X : Set (Space n)) : ℝ≥0∞ := | |
| Filter.limsup (fun R : ℝ => | |
| (↑(X ∩ cube n R).ncard : ℝ≥0∞) / ENNReal.ofReal ((2 * R) ^ n)) atTop | |
| noncomputable def thetaT {n : ℕ} (K : Set (Space n)) : ℝ≥0∞ := | |
| ⨅ X : {X : Set (Space n) // LocallyFiniteCenters X ∧ Covers K X}, | |
| volume K * upperCenterIntensity X.val | |
| end TranslativeCovering | |
| namespace CoveringOrder | |
| open Set MeasureTheory | |
| open scoped ENNReal | |
| abbrev Body (n : ℕ) := {K : Set (Space n) // TranslativeCovering.ConvexBody K} | |
| abbrev SymmetricBody (n : ℕ) := | |
| {K : Body n // TranslativeCovering.CentrallySymmetric K.val} | |
| noncomputable def translativeSup (n : ℕ) : ℝ≥0∞ := | |
| ⨆ K : Body n, TranslativeCovering.thetaT K.val | |
| noncomputable def symmetricTranslativeSup (n : ℕ) : ℝ≥0∞ := | |
| ⨆ K : SymmetricBody n, TranslativeCovering.thetaT K.val.val | |
| noncomputable def latticeSup (n : ℕ) : ℝ≥0∞ := | |
| ⨆ K : Body n, thetaL K.val | |
| noncomputable def symmetricLatticeSup (n : ℕ) : ℝ≥0∞ := | |
| ⨆ K : SymmetricBody n, thetaL K.val.val | |
| /-- The finite real comparison scale, viewed in extended nonnegative reals. -/ | |
| def orderBounds (c C : ℝ) (n : ℕ) (a : ℝ≥0∞) : Prop := | |
| ENNReal.ofReal (c * (n : ℝ) * Real.log (n : ℝ)) ≤ a ∧ | |
| a ≤ ENNReal.ofReal (C * (n : ℝ) * Real.log (n : ℝ)) | |
| /-- All four extremal quantities have common | |
| absolute positive comparison constants. ENNReal bounds imply finiteness rather | |
| than mapping a potentially infinite density to zero through `toReal`. -/ | |
| def OptimalOrder : Prop := | |
| ∃ c C : ℝ, 0 < c ∧ 0 < C ∧ ∃ n₀ : ℕ, ∀ n : ℕ, n₀ ≤ n → | |
| orderBounds c C n (translativeSup n) ∧ | |
| orderBounds c C n (symmetricTranslativeSup n) ∧ | |
| orderBounds c C n (latticeSup n) ∧ | |
| orderBounds c C n (symmetricLatticeSup n) | |
| end CoveringOrder | |
| namespace TranslativeCovering | |
| open Set | |
| def MainStatement : Prop := | |
| ∃ c : ℝ, 0 < c ∧ ∃ n₀ : ℕ, ∀ n : ℕ, n₀ ≤ n → | |
| ∃ K : Set (Space n), ConvexBody K ∧ CentrallySymmetric K ∧ | |
| ENNReal.ofReal (c * (n : ℝ) * Real.log (n : ℝ)) < thetaT K | |
| end TranslativeCovering | |
| end OAI | |