theoremCanonicalMass.prescribed_batch_failure_of_angle_mixing
{Ω : Type} [mΩ : MeasurableSpace Ω] {P : Measure Ω} [IsProbabilityMeasureP]
{κ : ℝ} {B : ℝ≥0→ Ω →ℝ} {hBm : Measurable (Function.uncurry B)}
{γ : Ω →ℝ≥0→ℂ} {G : Ω →ℝ≥0→ℂ→ℂ}
(C : CanonicalMassP κ B hBm γ G)
(hB : IsBrownianRealBP) (hc : ∀ ω, Continuous (fun t =>B t ω))
(h0 : ∀ ω, B0 ω=0) (hκ : 0 < κ) (hκ8 : κ < 8)
(F : Ω →ℝ≥0→ℂ→ℂ)
(hw : ∀ ω, IsCapacityTwoWitness (fun t =>Real.sqrt κ*B t ω) (γ ω) (G ω) (F ω))
(R : RawCanonicalMass)
(he : ∀ᵐ ω ∂P, (∀ t, R.process t (sourceDriverPath B hc ω)=C.process t ω) ∧R.terminal (sourceDriverPath B hc ω)=C.rational.terminal ω)
(D : SetC(ℝ≥0,ℝ)) (hD : MeasurableSetD)
(hDf : ∀ᵐ p ∂P.map (sourceDriverPath B hc), p∈D)
(hDp : ∀ p∈D, PositiveMassPaths (fun t =>R.process t p) (R.terminal p))
(hgrowth : PublishedDiskUnivalentGrowth)
(hpublished : PublishedTraceGeneration (P.map (sourceDriverPath B hc)) κ (fun t p => p t))
(W : Target.WienerLaw) (hW : Target.IsWienerW)
{n J : ℕ} (hn : 3≤n) (e : FinJ→ℤ×ℕ) (hi : Function.Injective e)
(he' : ∀ kj, kj∈range e ↔ kj.2 < Target.multiplicity κ W n kj.1)
(horder : StrictMono (fun i =>Target.entryPosition κ W (n,some (e i))))
(z : ℂ) (hz : z∈upperHalfPlane)
(hl : ∀ o, 0≤Target.entryPhysicalLevel κ W (n,o) (2048*Real.pi) z)
(hmix : ∀ (i : FinJ) (E : Set Ω),
MeasurableSet[(actual_radiusLevelTime_stopping hB
(fun t => (hBm.of_uncurry_left : Measurable (B t))) hBm hc h0
κ hκ hκ8 γ GF hw z hz (Target.prescribedTestPastLevel κ W n e (2048*Real.pi) z i.val)
(Target.prescribedTestPastLevel_nonneg hκ W n e (2048*Real.pi) z hl i.val)).measurableSpace] E→
((∫⁻ θ, R.angleDiskTail (P.map (sourceDriverPath B hc)) κ (Target.entryValue (n,some (e i)))
(2*Target.a κ*(Target.batchLevel κ Wn:ℝ)) θ ∂Target.angleLaw κ)/2)*
finiteCenteredLaw P κ B γ G z (Target.entryPhysicalLevel κ W (n,none) (2048*Real.pi) z) E≤∫⁻ ω inE, R.angleDiskTail (P.map (sourceDriverPath B hc)) κ (Target.entryValue (n,some (e i)))
(2*Target.a κ*(Target.batchLevel κ Wn:ℝ))
(extendedMarkedAngle κ B γ G (fun ω => radiusLevelTime (γ ω) (G ω) z
(Target.entryPhysicalLevel κ W (n,some (e i)) (2048*Real.pi) z)) z ω)
∂finiteCenteredLaw P κ B γ G z (Target.entryPhysicalLevel κ W (n,none) (2048*Real.pi) z)) :
C.prescribedCenteredFailure W n e (4096*Real.pi) ((128*Real.pi)^dimension κ) z ≤ENNReal.ofReal (Real.exp (-((2:ℝ)^n/16))) :=by
proof · 50
lines
have hm (t : ℝ≥0) : Measurable (B t) := hBm.of_uncurry_left
let : IsProbabilityMeasure (P.map (sourceDriverPath B hc)) :=
(Measure.isProbabilityMeasure_map_iff (source_path_measurable _ hm).aemeasurable).mpr inferInstance
have hm1 :=C.moment_positive hB hc h0 hκ hκ8F hw hpublished hgrowth W hW 1have hJn :=C.moment_jensen hB hc h0 hκ hκ8F hw hgrowth W hW n
have hei (i : FinJ) : (e i).2 < Target.multiplicity κ W n (e i).1:= (he' _).mp ⟨i,rfl⟩
have ha :=Target.internal_a_pos hκ
havehd : 2*Target.a κ*(Target.batchLevel κ Wn:ℝ)=4*(Target.batchLevel κ Wn:ℝ)/κ :=by
unfold Target.a
ring
havehv : 0≤4*(Target.batchLevel κ Wn:ℝ)/κ :=by positivity
let : IsProbabilityMeasure (centeredDiskLaw P κ B hc (4*(Target.batchLevel κ Wn:ℝ)/κ)) :=
centeredDiskLaw_isProbability hB hBm hc hκ hκ8 γ GF hw _ hv
apply C.prescribed_adapted_batch_failure hB hc h0 hκ hκ8F hw hpublished hgrowth W hW
hn e hi he' horder (4096*Real.pi) ((128*Real.pi)^dimension κ) (2048*Real.pi) z hz hl
_ (hl none)
intro i E hE
have hgap :=Target.prescribedTestPastLevel_gap hκ W (by omega) e horder
(2048*Real.pi) z 0 (fun j => hl (some (e j))) (by positivity) i
simp only [add_zero] at hgap
have hS := actual_radiusLevelTime_stopping hB hm hBm hc h0 κ hκ hκ8 γ GF hw z hz
(Target.prescribedTestPastLevel κ W n e (2048*Real.pi) z i.val)
(Target.prescribedTestPastLevel_nonneg hκ W n e (2048*Real.pi) z hl i.val)
have hT := actual_radiusLevelTime_stopping hB hm hBm hc h0 κ hκ hκ8 γ GF hw z hz
(Target.entryPhysicalLevel κ W (n,some (e i)) (2048*Real.pi) z) (hl _)
havehET : MeasurableSet[hT.measurableSpace] E:=
hS.measurableSpace_mono hT (fun ω => radiusLevelTime_mono ((hc ω).const_mul _)
(hw ω) z (Target.prescribedTestPastLevel_nonneg hκ W n e (2048*Real.pi) z hl i.val) hgap) E hE
have hend :=Target.prescribedBatchLevel_test_end_le_cleanup hκ W (by omega) hm1 hJn e hei
(2048*Real.pi) z i
havehV : Target.entryPhysicalLevel κ W (n,some (e i)) (2048*Real.pi) z+
2*Target.a κ*(Target.batchLevel κ Wn:ℝ) ≤Target.entryPhysicalLevel κ W (n,none) (2048*Real.pi) z :=byhavehn0 : 0≤2*Target.a κ*(n:ℝ) :=by positivity
linarith
have htest :=C.prescribed_entry_success_kernel hB hc h0 hκ hκ8F hw R he D hD hDf hDp
hgrowth hpublished W n (e i) z hz (hl _) _ hV E hET
have hav :=R.angleDiskTail_average (P.map (sourceDriverPath B hc)) κ hκ
(Target.entryValue (n,some (e i))) (2*Target.a κ*(Target.batchLevel κ Wn:ℝ))
rw [C.raw_centeredDiskTail_eq hc hκ F hw R he _ _ (by positivity),hd] at hav
havehhalf : ENNReal.ofReal
((centeredDiskLaw P κ B hc (4*(Target.batchLevel κ Wn:ℝ)/κ)).real
{p | MomentBatches.dyadic (e i).1≤C.diskAtRadius p.1 (4*(Target.batchLevel κ Wn:ℝ)/κ) p.2}/2) =
(∫⁻ θ, R.angleDiskTail (P.map (sourceDriverPath B hc)) κ (Target.entryValue (n,some (e i)))
(2*Target.a κ*(Target.batchLevel κ Wn:ℝ)) θ ∂Target.angleLaw κ)/2:=by
rw [ENNReal.ofReal_div_of_pos (by norm_num),ofReal_measureReal,hd,hav]
rcases e i with ⟨k,j⟩
norm_num [CanonicalMass.centeredDiskTail,Target.entryValue,MomentBatches.dyadic]
rw [hhalf]
exact (hmix i E hE).trans htest