File size: 3,725 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 | import OAI.MeasureTheory.Falconer.Shells.ActualComparableShellRebin
import OAI.MeasureTheory.Falconer.Geometry.SeparatedDistanceMaximum
namespace OAI
namespace PlanarFalconer
open Set MeasureTheory
open scoped ENNReal ContDiff
attribute [local instance] Classical.propDecidable
theorem uniform_actual_comparable_shell_distance {Ξ¨ : β β β}
(hΞ¨ : ContDiff β β Ξ¨) (hsΞ¨ : β t, Ξ¨ t β 0 β t β Ioo (1/4:β) 4)
{sig : β} (hsig : 0 < sig) (K o : β) {J : β} (hJ : 0 < J) :
β H : β, 0 β€ H β§ β Nβ : β, β N β₯ Nβ,
β (Q : Fin 2 β DyadicSquare), (β l, (Q l).side = 1) β
β (Ο : Fin 2 β Measure Plane) [β l, IsFiniteMeasure (Ο l)],
(β l, Ο l (Q l).carrierαΆ = 0) β
β (m : β β β) (q aβ tβ a d n v : β),
0 < q β aβ β€ a+n β v β€ tβ β v β€ N β
β (S : Fin 2 β Finset PolicyDescriptor) (k : Fin 2 β PolicyDescriptor β β),
(β l, remainingPolicyDescriptors (fun t => m t-(t:β)/(N:β)) N q aβ tβ a β S l) β
(β l, (S l).card β€ (N+1)^3+1) β (β l, β t β S l, k l t β€ K) β
β L : β, (β l t, t β S l β descriptorLength t β€ L) β
β Lβ : β, (v:β)-(a+d:β) = 2*Lβ β (L:β) β€ Lβ β 10*sig*(N:β) β€ Lβ β
β (lam : β) (i : Fin 2 β β) (hsp : Fin 2 β Plane β β),
(β l x, βhsp l xβ β€ 1) β
β A B : CellPath, A.length = a β B.length = a β
let Ξ² := fun l => inheritedCircleSymbol (S l) id (k l) (Q l) (Ο l) (m)
N (lam) sig J (i l) (hsp l)
let D : Fin 2 β PositiveDistanceData := fun l =>
β¨Q l,Ο l,m,N,q,a+n,v,lam,sig,J,i l+1,[],[]β©
ββ row β sourceProductVertices (Q 0) (Q 1) (Ο 0) (Ο 1) A B d,
β col β sourceProductVertices (Q 0) (Q 1) (Ο 0) (Ο 1) A B d,
if Β¬ angularNear (Q 0) (Q 1) (a+d) row col then
β« x in angularLengthShell (a+n), angularStationarySpatialKernel (Ξ² 0) (Ξ² 1) o v Ξ¨ x
βangularFourCellMeasure (Q 0) (Q 1) (Ο 0) (Ο 1) row col
else 0ββ β€
ENNReal.ofReal H * binKernelConstant *
ENNReal.ofReal ((((2:β)^N)^(-m (a+n)))^4*(2:β)^(-2*((v:β)-(a+n:β)))) *
((sourceProductVertices (Q 0) (Q 1) (Ο 0) (Ο 1) A B n).card:ββ₯0β) *
257025537024256 *
(D 0).separatedMaximum (D 1) (sourceProductVertices (Q 0) (Q 1) (Ο 0) (Ο 1) A B n) (a+n) := by
obtain β¨H,hH,Nβ,hββ© := uniform_actual_comparable_shell_rebin hΞ¨ hsΞ¨ hsig K o hJ
refine β¨H,hH,Nβ,?_β©
intro N hN Q hQ Ο inst hcarry m q aβ tβ a d n v hq haβ ht hv S k hS hcard hK L hL
Lβ hvh hLL hLβ lam i hsp hspb A B hA hB
let D : Fin 2 β PositiveDistanceData := fun l =>
β¨Q l,Ο l,m,N,q,a+n,v,lam,sig,J,i l+1,[],[]β©
have he := hβ N hN Q hQ Ο hcarry (fun _ => m) q aβ tβ a d n v hq haβ ht hv
S k hS hcard hK L hL Lβ hvh hLL hLβ (fun _ => lam) i hsp hspb A B hA hB
have hn : (D 0).normalization = (D 1).normalization := rfl
have hk := PositiveDistanceData.rebinned_positive_kernel_max (D 0) (D 1) rfl hn A B n (a+n)
have hc := PositiveDistanceData.separated_sum_le_maximum (D 0) (D 1) (hQ 0) (hQ 1) (a+n)
(sourceProductVertices (Q 0) (Q 1) (Ο 0) (Ο 1) A B n)
(sourceProductVertices_subset _ _ _ _ _ _ a n hA hB)
dsimp only at he β’
rw [mul_assoc] at he
have hh := he.trans (mul_le_mul_right hk (ENNReal.ofReal H))
have hh' := hh.trans (mul_le_mul_right
(mul_le_mul_right hc (binKernelConstant * ENNReal.ofReal
((D 0).levelMass^4*(2:β)^(-2*((v:β)-(a+n:β)))))) (ENNReal.ofReal H))
simpa only [D,PositiveDistanceData.levelMass,mul_assoc,Nat.cast_add] using hh'
end PlanarFalconer
end OAI
|