Download data/lean/OAI/Geometry/CylinderCovering/Barycentric/MetricDefinitions.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 1.57 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CylinderCovering/Barycentric/MetricDefinitions.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/CylinderCovering/Barycentric/MetricDefinitions.lean
-
curl -L -o MetricDefinitions.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CylinderCovering/Barycentric/MetricDefinitions.lean
1.57 kB
| import OAI.Geometry.CylinderCovering.Convexity.NormalFrameDefinitions | |
| import OAI.Geometry.TriangularCovering.Basic | |
| namespace OAI | |
| noncomputable section | |
| open Set MeasureTheory | |
| open scoped InnerProductSpace | |
| namespace CylinderBarycentricMetric | |
| abbrev Physical := EuclideanSpace β (Fin 3) | |
| abbrev Barycentric := EuclideanSpace β (Fin 4) | |
| def tetrahedron : Set Barycentric := | |
| {p | (β i, 0 β€ p i) β§ β i : Fin 4, p i = 1} | |
| def projection (u p : Barycentric) : Barycentric := p - inner β u p β’ u | |
| def shadowArea (u : Barycentric) : β := | |
| (Measure.euclideanHausdorffMeasure 2 (projection u '' tetrahedron)).toReal | |
| def embedding : Physical ββ[β] Barycentric where | |
| toFun z := !β[z 0 / Real.sqrt 2 - z 2 / 2, | |
| -z 0 / Real.sqrt 2 - z 2 / 2, | |
| z 1 / Real.sqrt 2 + z 2 / 2, | |
| -z 1 / Real.sqrt 2 + z 2 / 2] | |
| map_add' z w := by | |
| ext i | |
| fin_cases i <;> simp <;> ring | |
| map_smul' r z := by | |
| ext i | |
| fin_cases i <;> simp <;> ring | |
| def inverse (p : Barycentric) : Physical := | |
| !β[(p 0 - p 1) / Real.sqrt 2, | |
| (p 2 - p 3) / Real.sqrt 2, | |
| p 2 + p 3] | |
| def offset : Barycentric := !β[1 / 2, 1 / 2, 0, 0] | |
| def fromPhysical (z : Physical) : Barycentric := | |
| offset + (1 / Real.sqrt 2) β’ embedding z | |
| def ProjectionStatement : Prop := | |
| (β u : Barycentric, βuβ = 1 β (β i : Fin 4, u i = 0) β | |
| shadowArea u = (1 / 2 : β) * β i : Fin 4, |u i|) β§ | |
| IsLeast {a : β | β u : Barycentric, | |
| βuβ = 1 β§ β i : Fin 4, u i = 0 β§ a = shadowArea u} (1 / Real.sqrt 2) | |
| end CylinderBarycentricMetric | |
| end | |
| end OAI | |