File size: 3,966 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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | import OAI.Geometry.CylinderCovering.Physical.FiniteDefinitions
namespace OAI
open Set Filter
open scoped Topology
noncomputable section
namespace RadialPhysical.ExplicitTriangles
open CylinderCovering
def error (centered : Bool) (b eta : β) : β := axialBound centered b * |eta|
def left (centered : Bool) (b eta : β) (N : β) : β :=
-(3 * error centered b eta + 1) * RadialRiemann.step (-b) b N
def right (centered : Bool) (b eta : β) (T : β β β) (N : β) (i : Fin N) : β :=
RadialRiemann.capMax T (-b) b N i +
error centered b eta * RadialRiemann.step (-b) b N
def middle (b : β) (N : β) (i : Fin N) : β :=
(RadialRiemann.point (-b) b N i + RadialRiemann.point (-b) b N (i + 1)) / 2
def coordinates (centered : Bool) (b eta : β) (T : β β β)
(N : β) (i : Fin N) : Fin 3 β β Γ β :=
let l := left centered b eta N
let r := right centered b eta T N i
let m := middle b N i
let d := RadialRiemann.step (-b) b N
![(l, m*l), (r, m*r-d/2*(r-l)), (r, m*r+d/2*(r-l))]
def upperIntercept (b : β) (p : β Γ β) : Space := point b 0 p.2 (1-p.1)
def lowerIntercept (centered : Bool) (b : β) (p : β Γ β) : Space :=
point b p.2 0 ((if centered then (-1:β) else 0)+p.1)
def upperVertices (centered : Bool) (b eta : β) (T : β β β)
(N : β) (i : Fin N) : Fin 3 β Space :=
upperIntercept b β coordinates centered b eta T N i
def lowerVertices (centered : Bool) (b eta : β) (T : β β β)
(N : β) (i : Fin N) : Fin 3 β Space :=
lowerIntercept centered b β coordinates centered b eta T N i
def upperBase (centered : Bool) (b eta : β) (T : β β β)
(N : β) (tag : Fin N β β) (i : Fin N) : Set Space :=
TriangularCovering.projection (upperPhysicalAxis b eta (tag i)) ''
convexHull β (Set.range (upperVertices centered b eta T N i))
def lowerBase (centered : Bool) (b eta : β) (T : β β β)
(N : β) (tag : Fin N β β) (i : Fin N) : Set Space :=
TriangularCovering.projection (lowerPhysicalAxis b eta (tag i)) ''
convexHull β (Set.range (lowerVertices centered b eta T N i))
def localArea (centered : Bool) (b eta : β) (T : β β β)
(N : β) (tag : Fin N β β) (i : Fin N) : β :=
height b * RadialRiemann.step (-b) b N *
(RadialRiemann.capMax T (-b) b N i +
(4 * error centered b eta + 1) * RadialRiemann.step (-b) b N)^2 /
(2 * Real.sqrt (1 + eta^2 *
(((tag i)^2+b^2)^2/4 + height b^2*(tag i)^2)))
def ConstructionStatement : Prop :=
β (centered : Bool) (b eta : β), 0 < b β β T : β β β,
ContinuousOn T (Icc (-b) b) β (β s β Icc (-b) b, 0 β€ T s) β
β tagU tagL : (N : β) β Fin N β β,
(β N, RadialRiemann.IsTagged (-b) b N (tagU N)) β
(β N, RadialRiemann.IsTagged (-b) b N (tagL N)) β
β U L : (N : β) β Fin N β TriangularCovering.TriCylinder,
(β N i,
(U N i).axis = upperPhysicalAxis b eta (tagU N i) β§
(L N i).axis = lowerPhysicalAxis b eta (tagL N i) β§
(U N i).base = upperBase centered b eta T N (tagU N) i β§
(L N i).base = lowerBase centered b eta T N (tagL N) i β§
TriangularCovering.area (U N i).base = localArea centered b eta T N (tagU N) i β§
TriangularCovering.area (L N i).base = localArea centered b eta T N (tagL N) i β§
upperPhysicalBase centered b eta T N (tagU N) i β (U N i).base β§
lowerPhysicalBase centered b eta T N (tagL N) i β (L N i).base) β§
(β N, 0 < N β
(β z β upperSweepOn centered b eta T (Icc (-b) b),
β i : Fin N, z β (U N i).carrier) β§
(β z β lowerSweepOn centered b eta T (Icc (-b) b),
β i : Fin N, z β (L N i).carrier)) β§
Tendsto (fun N => TriangularCovering.totalArea (U N) +
TriangularCovering.totalArea (L N)) atTop (π (scaledCost b eta T))
end RadialPhysical.ExplicitTriangles
end
end OAI
|