Download lean/ComparatorChallenges/GaussianMoat.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.17 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/ComparatorChallenges/GaussianMoat.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/ComparatorChallenges/GaussianMoat.lean
-
curl -L -o GaussianMoat.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/ComparatorChallenges/GaussianMoat.lean
1.17 kB
| import Mathlib | |
| namespace OAI | |
| namespace GaussianMoat | |
| abbrev PrimeVertex := {z : GaussianInt // Irreducible z} | |
| noncomputable def primeGraph (D : ℝ) : SimpleGraph PrimeVertex where | |
| Adj p q := p ≠ q ∧ dist (p.val : ℂ) (q.val : ℂ) ≤ D | |
| symm := by | |
| constructor | |
| intro p q h | |
| exact ⟨h.1.symm, by simpa only [dist_comm] using h.2⟩ | |
| loopless := by | |
| constructor | |
| intro p h | |
| exact h.1 rfl | |
| def component (D : ℝ) (p : PrimeVertex) : Set PrimeVertex := | |
| {q | (primeGraph D).Reachable p q} | |
| def MainEndpoint : Prop := | |
| ∀ (D : ℝ) (z : ℕ → GaussianInt), | |
| (∀ t, Irreducible (z t)) → Function.Injective z → | |
| (∀ t, dist (z (t + 1) : ℂ) (z t : ℂ) ≤ D) → False | |
| def UniformEndpoint : Prop := | |
| ∀ D : ℝ, ∃ B : ℕ, | |
| (∀ p : PrimeVertex, (component D p).Finite ∧ (component D p).ncard ≤ B) ∧ | |
| (∀ (n : ℕ) (z : Fin n → GaussianInt), | |
| (∀ i, Irreducible (z i)) → Function.Injective z → | |
| (∀ i j : Fin n, j.val = i.val + 1 → dist (z j : ℂ) (z i : ℂ) ≤ D) → | |
| n ≤ B) | |
| theorem fullMain : MainEndpoint ∧ UniformEndpoint := by | |
| sorry | |
| end GaussianMoat | |
| end OAI | |