Download data/lean/OAI/Probability/GammaPassage/ConnectorEvents.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.37 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/GammaPassage/ConnectorEvents.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/GammaPassage/ConnectorEvents.lean
-
curl -L -o ConnectorEvents.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/GammaPassage/ConnectorEvents.lean
3.37 kB
| import OAI.Probability.GammaPassage.BallTravel | |
| import OAI.Probability.GammaPassage.CrossingLocalized | |
| namespace OAI | |
| namespace GammaFPP.CrossingBridge | |
| open PlanarFPP GammaFPP.RealDirectionBridge | |
| open GammaFPP.IntervalTravelBridge Set MeasureTheory Filter | |
| open scoped Topology | |
| def allPairsRegionEvent (V : Finset Vertex) (I J : Set Vertex) | |
| (bound : Vertex β Vertex β β) : Set (Edge β β) := | |
| {w | β p β I, β q β J, w β boundedLocalizedEvent V | |
| (fun a ds => a=p β§ a+displacement ds=q) (fun _ _ => bound p q)} | |
| theorem mem_allPairsRegionEvent (V : Finset Vertex) (I J : Set Vertex) | |
| (bound : Vertex β Vertex β β) (w : Edge β β) : | |
| w β allPairsRegionEvent V I J bound β | |
| β p β I, β q β J, β ds, p+displacement ds=q β§ | |
| PathIn p ds (V : Set Vertex) β§ pathCost w p ds β€ bound p q := by | |
| simp [allPairsRegionEvent,boundedLocalizedEvent] | |
| theorem measurableSet_allPairsRegionEvent (V : Finset Vertex) (I J : Set Vertex) | |
| (bound : Vertex β Vertex β β) : MeasurableSet (allPairsRegionEvent V I J bound) := by | |
| simp only [allPairsRegionEvent,ofPred_forall] | |
| exact MeasurableSet.iInter (fun p => MeasurableSet.iInter (fun _ => | |
| MeasurableSet.iInter (fun q => MeasurableSet.iInter (fun _ => | |
| measurableSet_boundedLocalizedEvent V _ _)))) | |
| theorem allPairsRegionEvent_depends (V : Finset Vertex) (I J : Set Vertex) | |
| (bound : Vertex β Vertex β β) : | |
| DependsOnEdges (allPairsRegionEvent V I J bound) (internalEdges V) := by | |
| intro w w' hh | |
| simp only [allPairsRegionEvent,mem_ofPred_eq] | |
| apply forall_congr' | |
| intro p | |
| apply forall_congr' | |
| intro hp | |
| apply forall_congr' | |
| intro q | |
| apply forall_congr' | |
| intro hq | |
| exact boundedLocalizedEvent_depends V _ _ w w' hh | |
| variable {Ξ© : Type*} [MeasurableSpace Ξ©] {P : Measure Ξ©} {Ο : Edge β Ξ© β β} | |
| variable {shape rate : β} | |
| /-- Uniform connection estimates for finite-region endpoint tests from | |
| diameter, support-cost, and tube-containment bounds. -/ | |
| theorem gamma_allPairsRegionEvent (h : GammaEnvironment shape rate P Ο) | |
| (hshape : 0 < shape) (hrate : 0 < rate) | |
| (D Ξ· Ξ΄ : β) (hD : 0 < D) (hΞ· : 0 < Ξ·) (hΞ΄ : 0 < Ξ΄) : | |
| β Ξ΅ > 0, βαΆ s : β in atTop, β (V : Finset Vertex) (I J : Set Vertex) | |
| (bound : Vertex β Vertex β β), | |
| (β p β I βͺ J, β q β I βͺ J, βlatticeEmbed (q-p)β β€ D*s) β | |
| (β p β I, β q β J, gammaMeanNorm h hshape hrate (latticeEmbed (q-p))+Ξ·*s β€ bound p q) β | |
| (β p β I, β q β J, SegmentTube p q (Ξ΄*s) β (V : Set Vertex)) β | |
| P.real {Ο | (fun e => Ο e Ο) β allPairsRegionEvent V I J bound} < Ξ΅ := by | |
| let _ := h.probability | |
| intro Ξ΅ hΞ΅ | |
| filter_upwards [gamma_set_travel h hshape hrate D Ξ· Ξ΄ hD hΞ· hΞ΄ Ξ΅ hΞ΅] with s hs | |
| intro V I J bound hdiam hcost hregion | |
| refine (measureReal_mono (show {Ο | (fun e => Ο e Ο) β allPairsRegionEvent V I J bound} β | |
| {Ο | Β¬β p β I, β q β J, LocalTravel (gammaMeanNorm h hshape hrate) Ξ· Ξ΄ s p q (fun e => Ο e Ο)} from ?_)).trans_lt | |
| (hs I J hdiam) | |
| intro Ο hbad htravel | |
| apply hbad | |
| rw [mem_allPairsRegionEvent] | |
| intro p hp q hq | |
| obtain β¨ds,hd,hc,hinβ© := htravel p hp q hq | |
| refine β¨ds,hd,?_,hc.trans (hcost p hp q hq)β© | |
| intro i hi | |
| exact hregion p hp q hq (hin i hi) | |
| end GammaFPP.CrossingBridge | |
| end OAI | |