File size: 1,783 Bytes
4a56cd6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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