File size: 4,794 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 | import OAI.MeasureTheory.Falconer.Estimates.SpatialAnchorMasks
import OAI.MeasureTheory.Falconer.Recursion.PolicyDescriptors
namespace OAI
namespace PlanarFalconer
open Set Metric MeasureTheory
open scoped ContDiff Topology
def ValidDescriptor (N : β) : PolicyDescriptor β Prop
| .parallel g p => g β€ p β§ p β€ N
| .projection p u => p β€ u β§ u β€ N
noncomputable def descriptorGoodSet (Q : DyadicSquare) (Ο : Measure Plane)
(m : β β β) (N : β) (lam sig : β) (J i : β) (P : CellPath) : PolicyDescriptor β Set UnitCircle
| .parallel g p => parallelGoodSet Q Ο g p P (sourceAngularWidth N sig J i p)
(((2:β)^N)^(height (fun n : β => m n-(n:β)/(N:β)) g p+2000*(lam+sig)))
| .projection p u => projectionGoodSet Q Ο p u P (sourceAngularWidth N sig J i u)
(((2:β)^N)^(m u-m p+height (fun n : β => m n-(n:β)/(N:β)) p u+2000*(lam+sig)))
noncomputable def descriptorSpatialMask (Q : DyadicSquare) (Ο : Measure Plane)
(m : β β β) (N : β) (lam sig : β) (J i : β) (b : PolicyDescriptor) : Plane β UnitCircle β β :=
spatialAnchorMask Q Ο (descriptorAnchor b) (fun P => descriptorGoodSet Q Ο m N lam sig J i P b)
(sourceAngularRadius N sig (descriptorLength b)) (sourceAngularRadius_pos _ _ _)
noncomputable def descriptorListMask (Q : DyadicSquare) (Ο : Measure Plane)
(m : β β β) (N : β) (lam sig : β) (J i : β) (S : Finset PolicyDescriptor)
(x : Plane) (dir : UnitCircle) : β :=
β b β S, descriptorSpatialMask Q Ο m N lam sig J i b x dir
theorem measurable_descriptorGoodSet (Q : DyadicSquare) (Ο : Measure Plane)
(m : β β β) (N : β) (lam sig : β) (J i : β) (P : CellPath) (b : PolicyDescriptor) :
MeasurableSet (descriptorGoodSet Q Ο m N lam sig J i P b) := by
cases b with
| parallel g p => exact measurable_parallelGoodSet _ _ _ _ _ _ _
| projection p u => exact measurable_projectionGoodSet _ _ _ _ _ _ _
theorem descriptorSpatialMask_bounds (Q : DyadicSquare) (hQ : 0 < Q.side) (Ο : Measure Plane)
(m : β β β) (N : β) (lam sig : β) (J i : β) (b : PolicyDescriptor) (x : Plane) (dir : UnitCircle) :
0 β€ descriptorSpatialMask Q Ο m N lam sig J i b x dir β§
descriptorSpatialMask Q Ο m N lam sig J i b x dir β€ 1 := spatialAnchorMask_bounds Q hQ _ _ _ _ _ _ _
@[fun_prop] theorem measurable_descriptorSpatialMask (Q : DyadicSquare) (Ο : Measure Plane)
(m : β β β) (N : β) (lam sig : β) (J i : β) (b : PolicyDescriptor) :
Measurable (fun z : Plane Γ UnitCircle => descriptorSpatialMask Q Ο m N lam sig J i b z.1 z.2) :=
measurable_spatialAnchorMask _ _ _ _ _ _
@[fun_prop] theorem measurable_descriptorListMask (Q : DyadicSquare) (Ο : Measure Plane)
(m : β β β) (N : β) (lam sig : β) (J i : β) (S : Finset PolicyDescriptor) :
Measurable (fun z : Plane Γ UnitCircle => descriptorListMask Q Ο m N lam sig J i S z.1 z.2) := by
apply Finset.measurable_prod
intro b _
exact measurable_descriptorSpatialMask _ _ _ _ _ _ _ _ _
theorem descriptorListMask_bounds (Q : DyadicSquare) (hQ : 0 < Q.side) (Ο : Measure Plane)
(m : β β β) (N : β) (lam sig : β) (J i : β) (S : Finset PolicyDescriptor) (x : Plane) (dir : UnitCircle) :
0 β€ descriptorListMask Q Ο m N lam sig J i S x dir β§
descriptorListMask Q Ο m N lam sig J i S x dir β€ 1 := by
constructor
Β· exact Finset.prod_nonneg (fun b _ => (descriptorSpatialMask_bounds Q hQ Ο m N lam sig J i b x dir).1)
Β· exact Finset.prod_le_oneβ (fun b _ => (descriptorSpatialMask_bounds Q hQ Ο m N lam sig J i b x dir).1)
(fun b _ => (descriptorSpatialMask_bounds Q hQ Ο m N lam sig J i b x dir).2)
theorem descriptorGoodSet_exceptional (Q : DyadicSquare) (Ο : Measure Plane)
(m : β β β) (N : β) (lam sig : β) (J : β)
(ha : SourceAngularBounds Q Ο m N lam sig) {b : PolicyDescriptor} (hb : ValidDescriptor N b)
{P : CellPath} (hP : P.length = descriptorAnchor b) :
sourceArcLength (descriptorGoodSet Q Ο m N lam sig J 0 P b)αΆ β€
ENNReal.ofReal (((2:β)^N)^(-(lam+sig))) := by
cases b with
| parallel g p => simpa only [descriptorGoodSet,sourceAngularWidth_zero] using ha.parallel g p hb.1 hb.2 P hP
| projection p u => simpa only [descriptorGoodSet,sourceAngularWidth_zero] using ha.projection p u hb.1 hb.2 P hP
theorem policyDescriptor_valid (A : β β β) {N q a t : β} (hq : 0 < q) (ht : t β€ N)
{b : PolicyDescriptor} (hb : b β policyDescriptorList A N q a t) : ValidDescriptor N b := by
obtain β¨s,u,_,hut,_,_,hpos,_,hboundβ© := policyDescriptor_origin A hq hb
cases b <;> simp only [descriptorLength,descriptorAnchor,ValidDescriptor] at hpos hbound β’ <;> omega
end PlanarFalconer
end OAI
|