Download data/lean/OAI/Geometry/CylinderCovering/Beams/CostDefinitions.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 1.21 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CylinderCovering/Beams/CostDefinitions.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/CylinderCovering/Beams/CostDefinitions.lean
-
curl -L -o CostDefinitions.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CylinderCovering/Beams/CostDefinitions.lean
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 | |