Download data/lean/OAI/Geometry/CylinderCovering/Convexity/NormalFrameDefinitions.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 764 Bytes
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CylinderCovering/Convexity/NormalFrameDefinitions.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/CylinderCovering/Convexity/NormalFrameDefinitions.lean
-
curl -L -o NormalFrameDefinitions.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CylinderCovering/Convexity/NormalFrameDefinitions.lean
764 Bytes
| import Mathlib | |
| namespace OAI | |
| noncomputable section | |
| open scoped InnerProductSpace | |
| namespace CylinderNormalFrame | |
| abbrev Space := EuclideanSpace β (Fin 3) | |
| abbrev BarycentricSpace := EuclideanSpace β (Fin 4) | |
| def normal (i : Fin 4) : Space := | |
| (1 / Real.sqrt 3) β’ ![(!β[0, Real.sqrt 2, -1] : Space), | |
| !β[0, -Real.sqrt 2, -1], | |
| !β[Real.sqrt 2, 0, 1], | |
| !β[-Real.sqrt 2, 0, 1]] i | |
| def frameCost (u : Space) : β := | |
| Real.sqrt 3 / 2 * β i : Fin 4, |inner β u (normal i)| | |
| def barycentricCost (u : BarycentricSpace) : β := | |
| (1 / 2 : β) * β i : Fin 4, |u i| | |
| def edgeDirection : Space := !β[1, 0, 0] | |
| def barycentricEdge : BarycentricSpace := | |
| !β[1 / Real.sqrt 2, -(1 / Real.sqrt 2), 0, 0] | |
| end CylinderNormalFrame | |
| end | |
| end OAI | |