math / data /lean /OAI /Geometry /CylinderCovering /Beams /StripDefinitions.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
1.78 kB
import OAI.Geometry.RuledCovering.Model
namespace OAI
noncomputable section
open Set MeasureTheory
open scoped InnerProductSpace
namespace CylinderCovering.BeamStrip
abbrev Plane := EuclideanSpace โ„ (Fin 2)
abbrev Space := EuclideanSpace โ„ (Fin 3)
def vec (x y z : โ„) : Space := !โ‚‚[x, y, z]
def vertical : Space := vec 0 0 1
def denominator (q : โ„) : โ„ := Real.sqrt (2 * (1 + q ^ 2))
def normal (q : โ„) : Space :=
vec ((1 + q) / denominator q) ((1 - q) / denominator q) 0
def axis (q : โ„) : Space :=
vec ((1 - q) / denominator q) (-(1 + q) / denominator q) 0
def rectangle (q A l r : โ„) : Set Space :=
{z | โˆƒ s โˆˆ Icc (-A) A, โˆƒ t โˆˆ Icc l r, z = s โ€ข normal q + t โ€ข vertical}
def cylinder (q A l r : โ„) : Set Space :=
{z | โˆƒ b โˆˆ rectangle q A l r, โˆƒ s : โ„, z = b + s โ€ข axis q}
def area (S : Set Space) : โ„ := (Measure.euclideanHausdorffMeasure 2 S).toReal
def strip (ฮฒ M a b : โ„) (W q : โ„ โ†’ โ„) : Set Space :=
{z | โˆƒ x y t : โ„, z = vec (ฮฒ*x) (ฮฒ*y) t โˆง t โˆˆ Icc a b โˆง
|x| โ‰ค M โˆง |y| โ‰ค M โˆง |(1+q t)*x+(1-q t)*y| โ‰ค W t}
def IsHorizontalRectangle (C : RuledApproximation.Cylinder) : Prop :=
โˆƒ q A l r : โ„, 0 < A โˆง l < r โˆง C.axis = axis q โˆง
((fun z : ((Submodule.span โ„ ({C.axis} : Set Space))แ—ฎ) => (z : Space)) '' C.base) = rectangle q A l r
def IsRectangle (B : Set Space) : Prop :=
โˆƒ c u v : Space, inner โ„ u v = 0 โˆง u โ‰  0 โˆง v โ‰  0 โˆง
B = {z | โˆƒ s โˆˆ Icc (0 : โ„) 1, โˆƒ t โˆˆ Icc (0 : โ„) 1,
z = c + s โ€ข u + t โ€ข v}
def HasRectangularBase (C : RuledApproximation.Cylinder) : Prop :=
IsRectangle ((fun z : ((Submodule.span โ„ ({C.axis} : Set Space))แ—ฎ) =>
(z : Space)) '' C.base)
end CylinderCovering.BeamStrip
end
end OAI