math / data /lean /OAI /Geometry /CylinderCovering /Physical /CostVariantsDefinitions.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
4.13 kB
import OAI.Geometry.CylinderCovering.Physical.CoordinatesDefinitions
import OAI.Geometry.CylinderCovering.Radial.CapsDefinitions
namespace OAI
noncomputable section
open Filter
open scoped Topology
namespace RadialPhysical
def RelativeCostExpansion (f : ℝ β†’ ℝ) (reference coefficient : ℝ) : Prop :=
(fun Ο„ => f Ο„ - reference * (1 + coefficient * Ο„ ^ 2))
=O[𝓝[>] (0 : ℝ)] (fun Ο„ => Ο„ ^ 4)
def PhysicalCostTableStatement : Prop :=
RelativeCostExpansion (fun Ο„ => scaledCost 1 Ο„ (linearCap 1 Ο„ (1/120)))
(height 1 / 2) (-1/60) ∧
RelativeCostExpansion (fun Ο„ => scaledCost (1/2) (Ο„/2) (linearCap (1/2) (Ο„/2) (1/120)))
(height (1/2) / 4) (-1/3840) ∧
RelativeCostExpansion (fun Ο„ => scaledCost (1/Real.sqrt 2) Ο„
(linearCap (1/Real.sqrt 2) Ο„ (1/125)))
((1/Real.sqrt 2) * height (1/Real.sqrt 2) / 2) (-13/3000) ∧
RelativeCostExpansion (fun Ο„ => scaledCost (1/Real.sqrt 2) Ο„
(squareCap (1/Real.sqrt 2) Ο„ (1/125)))
((1/Real.sqrt 2) * height (1/Real.sqrt 2) / 2) (-13/3000) ∧
RelativeCostExpansion (fun Ο„ => scaledCost (1/2) Ο„ (linearCap (1/2) Ο„ (4/625)))
(height (1/2) / 4) (-77/60000) ∧
RelativeCostExpansion (fun Ο„ => scaledCost (1/2) (2*Ο„) (squareCap (1/2) (2*Ο„) (1/120)))
(height (1/2) / 4) (-1/240) ∧
RelativeCostExpansion (fun Ο„ => scaledCost 1 (2*Ο„) (linearCap 1 (2*Ο„) (1/200)))
(height 1 / 2) (-7/75)
def centeredFractionalCap (b Ξ· s : ℝ) : ℝ :=
1 + Ξ· ^ 2 * s ^ 2 * (b ^ 2 + s ^ 2) / 2 + Ξ· ^ (5/2 : ℝ)
def nonorthCost (Ξ΅ : ℝ) (R : ℝ β†’ ℝ) : ℝ :=
scaledCost (1/Real.sqrt 2) (2*Ξ΅) (fun s => R (Real.sqrt 2 * s))
structure PhysicalCostVariantsStatement : Prop where
linearExpansion : βˆ€ b Ξ² a : ℝ, 0 < b β†’ 0 ≀ Ξ² β†’
(fun Ο„ => scaledCost b (a*Ο„) (linearCap b (a*Ο„) Ξ²) - quadraticCost b (a*Ο„) Ξ²)
=O[𝓝[>] (0:ℝ)] (fun Ο„ => Ο„^4)
squareExpansion : βˆ€ b Ξ² a : ℝ, 0 < b β†’ 0 ≀ Ξ² β†’
(fun Ο„ => scaledCost b (a*Ο„) (squareCap b (a*Ο„) Ξ²) - quadraticCost b (a*Ο„) Ξ²)
=O[𝓝[>] (0:ℝ)] (fun Ο„ => Ο„^4)
linearSaving : βˆ€ b Ξ² : ℝ, 0 < b β†’ 0 < Ξ² β†’ Ξ² < 1/60 β†’
βˆ€αΆ  Ξ· : ℝ in 𝓝[>] 0, scaledCost b Ξ· (linearCap b Ξ· Ξ²) < b*height b/2
squareSaving : βˆ€ b Ξ² : ℝ, 0 < b β†’ 0 < Ξ² β†’ Ξ² < 1/60 β†’
βˆ€αΆ  Ξ· : ℝ in 𝓝[>] 0, scaledCost b Ξ· (squareCap b Ξ· Ξ²) < b*height b/2
table : PhysicalCostTableStatement
centeredLinearExpansion : βˆ€ b Ξ² a : ℝ, 0 < b β†’ 0 ≀ Ξ² β†’
(fun Ο„ => scaledCost b (a*Ο„) (centeredLinearCap b (a*Ο„) Ξ²) -
2*b*height b*(1+relativeQuadraticTerm b (a*Ο„) Ξ²))
=O[𝓝[>] (0:ℝ)] (fun Ο„ => Ο„^4)
centeredLinearSaving : βˆ€ b Ξ² : ℝ, 0 < b β†’ 0 < Ξ² β†’ Ξ² < 1/60 β†’
βˆ€αΆ  Ξ· : ℝ in 𝓝[>] 0, scaledCost b Ξ· (centeredLinearCap b Ξ· Ξ²) < 2*b*height b
centeredFractionalDictionary : βˆ€ Ξ· : ℝ, 0 < Ξ· β†’ βˆ€ r : ℝ,
centeredFractionalCap (1/Real.sqrt 2) Ξ· ((1/Real.sqrt 2)*r) =
CylinderCovering.RadialCaps.fractionalCap (4*Real.sqrt 2) (Ξ·/2) r
centeredFractionalExpansion :
(fun Ξ· => scaledCost (1/Real.sqrt 2) Ξ· (centeredFractionalCap (1/Real.sqrt 2) Ξ·) -
(1/Real.sqrt 2)*(2-Ξ·^2/60+4*Ξ·^(5/2:ℝ)))
=O[𝓝[>] (0:ℝ)] (fun Ξ· => Ξ·^4)
centeredFractionalLittleO :
(fun Ξ· => scaledCost (1/Real.sqrt 2) Ξ· (centeredFractionalCap (1/Real.sqrt 2) Ξ·) -
(1/Real.sqrt 2)*(2-Ξ·^2/60)) =o[𝓝[>] (0:ℝ)] (fun Ξ· => Ξ·^2)
centeredFractionalSaving :
βˆ€αΆ  Ξ· : ℝ in 𝓝[>] 0, scaledCost (1/Real.sqrt 2) Ξ·
(centeredFractionalCap (1/Real.sqrt 2) Ξ·) < 2/Real.sqrt 2
nonorthDictionary : βˆ€ Ξ΅ : ℝ, βˆ€ R : ℝ β†’ ℝ,
nonorthCost Ξ΅ R = Real.sqrt 2 * CylinderCovering.RadialCaps.Q R Ξ΅
nonorthCubic :
(fun Ξ΅ => nonorthCost Ξ΅ (CylinderCovering.RadialCaps.cubicCap 5 Ξ΅) -
Real.sqrt 2*(1-Ξ΅^2/30+10*Ξ΅^3)) =O[𝓝[>] (0:ℝ)] (fun Ξ΅ => Ξ΅^4)
nonorthFractional :
(fun Ξ΅ => nonorthCost Ξ΅ (CylinderCovering.RadialCaps.fractionalCap 1 Ξ΅) -
Real.sqrt 2*(1-Ξ΅^2/30+2*Ξ΅^(5/2:ℝ))) =O[𝓝[>] (0:ℝ)] (fun Ξ΅ => Ξ΅^4)
end RadialPhysical
end
end OAI