Download lean/OAI/Geometry/CylinderCovering/Nilpotent/GridDefinitions.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 906 Bytes
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Geometry/CylinderCovering/Nilpotent/GridDefinitions.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Geometry/CylinderCovering/Nilpotent/GridDefinitions.lean
-
curl -L -o GridDefinitions.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Geometry/CylinderCovering/Nilpotent/GridDefinitions.lean
906 Bytes
Lean 4 · 7
declarations statementsfull
abbrev Plane := RuledApproximation.Plane def coarseCell (δ : ℝ) (z : ℤ × ℤ) : Set Plane := body · 2 lines
{x | δ * (z.1 : ℝ) ≤ x 0 ∧ x 0 ≤ δ * ((z.1 : ℝ) + 1) ∧
δ * (z.2 : ℝ) ≤ x 1 ∧ x 1 ≤ δ * ((z.2 : ℝ) + 1)}def gridBound (δ B : ℝ) : ℤ := ⌈B / δ⌉ def indexRange (δ B : ℝ) : Finset ℤ := body · 1 line
Finset.Icc (-gridBound δ B - 1) (gridBound δ B)def candidates (δ B : ℝ) : Finset (ℤ × ℤ) := body · 1 line
(indexRange δ B).product (indexRange δ B)def coarseIndices (δ B : ℝ) (D : Set Plane) : Finset (ℤ × ℤ) := by body · 2 lines
classical
exact (candidates δ B).filter (fun z => (D ∩ coarseCell δ z).Nonempty)def coarseUnion (δ B : ℝ) (D : Set Plane) : Set Plane := body · 1 line
⋃ z ∈ coarseIndices δ B D, coarseCell δ zOutline