math / data /lean /ComparatorChallenges /TriangularCovering.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
2.14 kB
import Mathlib
namespace OAI
open Set MeasureTheory
open scoped InnerProductSpace BigOperators Interval
noncomputable section
namespace TriangularCovering
abbrev Space := EuclideanSpace ℝ (Fin 3)
def H : ℝ := Real.sqrt 2
def point (x y t : ℝ) : Space := !β‚‚[x, y, H * t]
def K : Set Space :=
{z | βˆƒ x y t : ℝ, 0 ≀ t ∧ t ≀ 1 ∧ |x| ≀ 1 - t ∧ |y| ≀ t ∧ z = point x y t}
def projection (u z : Space) : Space := z - (inner ℝ u z) β€’ u
def area (B : Set Space) : ℝ := (Measure.euclideanHausdorffMeasure 2 B).toReal
def shadowArea (u : Space) : ℝ := area (projection u '' K)
def A_min : ℝ := sInf {a : ℝ | βˆƒ u : Space, β€–uβ€– = 1 ∧ a = shadowArea u}
structure TriCylinder where
axis : Space
base : Set Space
unit_axis : β€–axisβ€– = 1
perpendicular : βˆ€ z ∈ base, inner ℝ axis z = 0
triangular : βˆƒ v : Fin 3 β†’ Space, AffineIndependent ℝ v ∧
base = convexHull ℝ (Set.range v)
compact : IsCompact base
convex : Convex ℝ base
measurable : MeasurableSet base
finite_area : Measure.euclideanHausdorffMeasure 2 base β‰  ⊀
def TriCylinder.carrier (c : TriCylinder) : Set Space :=
{z | βˆƒ b ∈ c.base, βˆƒ r : ℝ, z = b + r β€’ c.axis}
def Covers {m : β„•} (c : Fin m β†’ TriCylinder) : Prop :=
βˆ€ z ∈ K, βˆƒ i : Fin m, z ∈ (c i).carrier
def totalArea {m : β„•} (c : Fin m β†’ TriCylinder) : ℝ :=
βˆ‘ i : Fin m, area (c i).base
def relativeCost {m : β„•} (c : Fin m β†’ TriCylinder) : ℝ :=
βˆ‘ i : Fin m, area (c i).base / shadowArea (c i).axis
def n (Ξ΅ : ℝ) : β„• := ⌈2 / Ξ΅ ^ 2βŒ‰β‚Š
def MainAsymptotic : Prop :=
βˆƒ Ξ΄ C : ℝ, 0 < Ξ΄ ∧ 0 < C ∧
βˆ€ Ξ΅ : ℝ, 0 < Ξ΅ β†’ Ξ΅ < Ξ΄ β†’
βˆƒ c : Fin (2 * n Ξ΅) β†’ TriCylinder,
Covers c ∧
|totalArea c / H - (1 / 2 - (13 / 6000 : ℝ) * Ξ΅ ^ 2)| ≀ C * Ξ΅ ^ 4 ∧
totalArea c < A_min / 2
def NormalizedCounterexample : Prop :=
βˆƒ m : β„•, βˆƒ c : Fin m β†’ TriCylinder, Covers c ∧ relativeCost c < 1 / 2
theorem main : A_min = H ∧ MainAsymptotic ∧ NormalizedCounterexample := by
sorry
end TriangularCovering
end
end OAI