cfahlgren1/math / lean /OAI /Geometry /CylinderCovering /Beams /CostDefinitions.lean
cfahlgren1's picture
download
raw
1.21 kB
import Mathlib
namespace OAI
noncomputable section
namespace CylinderCovering.BeamCost
def S (p : ℝ) : ℝ := p^2+(1-p)^2
def T (p : ℝ) : ℝ := p^4+(1-p)^4
def beamDensity (a p : ℝ) : ℝ :=
1 / Real.sqrt (1-a*(2-a)*S p/2+a^2*(2-a)^2*T p/4)
def beamCost (a : ℝ) : ℝ := (2-a)^2 * ∫ p in (0:ℝ)..1, beamDensity a p
def stripWidth (a t : ℝ) : ℝ :=
max (a*(1-2*t^2)+a^2*t^2*(1+(1-|t|)^2+t^2)+25*a^3) 0
def stripDensity (a t : ℝ) : ℝ :=
stripWidth a t / Real.sqrt (1+(a*t-a^2*t^3)^2)
def stripCost (a : ℝ) : ℝ :=
2*Real.sqrt 2 * ∫ t in (-1:ℝ)..1, stripDensity a t
def stripPolynomial (a t : ℝ) : ℝ :=
a*(1-2*t^2)+a^2*t^2*(1+(1-t)^2+t^2)
def cutoff : ℝ := Real.sqrt 2/2
def CostStatement : Prop :=
(∀ a : ℝ, 0 ≤ a → a ≤ 1/4 →
|beamCost a-(4-(8/3)*a-(11/10)*a^2)| ≤ 300*a^3) ∧
(∀ a : ℝ, 0 ≤ a → a ≤ 1/100 →
|stripCost a-((8/3)*a+((26/15)-Real.sqrt 2/2)*a^2)| ≤ 300*a^3) ∧
(∀ a : ℝ, 0 ≤ a → a ≤ 1/100 →
|beamCost a+stripCost a-(4+((19/30)-Real.sqrt 2/2)*a^2)| ≤ 600*a^3) ∧
(∀ a : ℝ, 0 < a → a ≤ 1/20000 → beamCost a+stripCost a < 4)
end CylinderCovering.BeamCost
end
end OAI

Xet Storage Details

Size:
1.21 kB
·
Xet hash:
84eddbd802190a1452ed3afb86fcca0895af30b371b1c1b84f9f0c81353619e6

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.