Download data/lean/OAI/Geometry/CylinderCovering/Rational/FieldDefinitions.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/Rational/FieldDefinitions.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/CylinderCovering/Rational/FieldDefinitions.lean
-
curl -L -o FieldDefinitions.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CylinderCovering/Rational/FieldDefinitions.lean
1.21 kB
| import Mathlib | |
| namespace OAI | |
| noncomputable section | |
| namespace SlopeRational | |
| abbrev Plane := EuclideanSpace β (Fin 2) | |
| def vec2 (x y : β) : Plane := WithLp.toLp 2 ![x, y] | |
| def radius (T : β) : β := 1 / 2 - T | |
| def potential (d Y T : β) : β := | |
| (Y ^ 2 - radius T ^ 2 / 4) / (4 * (radius T + d)) | |
| def a (d Y T : β) : β := | |
| -Y ^ 2 / (4 * (radius T + d) ^ 2) - | |
| radius T * (radius T + 2 * d) / (16 * (radius T + d) ^ 2) | |
| def b (d Y T : β) : β := Y / (2 * (radius T + d)) | |
| def field (d : β) (z : Plane) : Plane := vec2 (a d (z 0) (z 1)) (b d (z 0) (z 1)) | |
| def wedge : Set Plane := {z | 2 * |z 0| β€ radius (z 1)} | |
| def alpha (d : β) : β := 1 / (1 + 2 * d) | |
| def ceilingConstant (d : β) : β := | |
| ((1 / 2 : β) * (1 / 2 + 2 * d)) / (16 * (1 / 2 + d) ^ 2) | |
| def ceilingQuadratic (d : β) : β := 1 / (4 * (1 / 2 + d) ^ 2) | |
| def ceilingCoefficient (d Y : β) : β := ceilingConstant d + ceilingQuadratic d * Y ^ 2 | |
| def ceilingPolynomial (d Y : β) : β := alpha d * ceilingCoefficient d Y * Y ^ 2 | |
| def labelDomain (d Ξ΅ q : β) : Set Plane := | |
| {z | z β wedge β§ -(1 / 4 : β) β€ z 1 β§ | |
| -Ξ΅ ^ 2 * ceilingPolynomial d (z 0) - q β€ z 1} | |
| end SlopeRational | |
| end | |
| end OAI | |