Download data/lean/OAI/Geometry/CylinderCovering/Beams/sDefinitions.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 1.41 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CylinderCovering/Beams/sDefinitions.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/CylinderCovering/Beams/sDefinitions.lean
-
curl -L -o sDefinitions.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CylinderCovering/Beams/sDefinitions.lean
1.41 kB
| import Mathlib | |
| namespace OAI | |
| noncomputable section | |
| namespace ShortenedBeam | |
| abbrev Space := EuclideanSpace β (Fin 3) | |
| def point (x y t : β) : Space := !β[x / Real.sqrt 2, y / Real.sqrt 2, t] | |
| def tetrahedron : Set Space := | |
| {z | β x y t : β, |t| β€ 1 β§ |x| β€ 1-t β§ |y| β€ 1+t β§ z = point x y t} | |
| def leftCoordinates (a x y t : β) : Prop := | |
| β p h : β, 0 β€ p β§ p β€ 1 β§ 0 β€ h β§ h β€ 2-a β§ | |
| x = -1+h*p+t*(1-a*(2-a)*p^2) β§ | |
| y = -1+h*(1-p)+t*(-1+a*(2-a)*(1-p)^2) | |
| def beamMinus (a : β) : Set Space := | |
| {z | β x y t : β, |t| β€ 1 β§ leftCoordinates a x y t β§ z = point x y t} | |
| def beamPlus (a : β) : Set Space := | |
| {z | β x y t : β, |t| β€ 1 β§ leftCoordinates a (-x) (-y) t β§ z = point x y t} | |
| def velocity (a p : β) : Space := | |
| point (1-a*(2-a)*p^2) (-1+a*(2-a)*(1-p)^2) 0 | |
| def axisMinus (a p : β) : Space := | |
| βpoint 0 0 1 + velocity a pββ»ΒΉ β’ (point 0 0 1 + velocity a p) | |
| def axisPlus (a p : β) : Space := | |
| βpoint 0 0 1 - velocity a pββ»ΒΉ β’ (point 0 0 1 - velocity a p) | |
| def drift (a t : β) : β := 2*a*t-2*a^2*t^3 | |
| def width (a t : β) : β := | |
| max (a*(1-2*t^2)+a^2*t^2*(1+(1-|t|)^2+t^2)+25*a^3) 0 | |
| def strip (a : β) : Set Space := | |
| {z | β x y t : β, |t| β€ 1 β§ |x| β€ 1-t β§ |y| β€ 1+t β§ | |
| |x+y+drift a t*((x-y)/2)| β€ width a t β§ z = point x y t} | |
| end ShortenedBeam | |
| end | |
| end OAI | |