Sync missing files (lean, preprints, history.md); remove stale build artifacts (part 5)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- lean/OAI/Probability/SLE/Gauge/RibbonMiddleMass.lean +151 -0
- lean/OAI/Probability/SLE/Gauge/RibbonPassageMass.lean +119 -0
- lean/OAI/Probability/SLE/Gauge/RibbonPassageNeighborhood.lean +96 -0
- lean/OAI/Probability/SLE/Gauge/RibbonPassageScaling.lean +173 -0
- lean/OAI/Probability/SLE/Gauge/RibbonPrefixTransport.lean +67 -0
- lean/OAI/Probability/SLE/Gauge/RibbonRouteLifting.lean +116 -0
- lean/OAI/Probability/SLE/Gauge/RibbonSequenceCompactness.lean +142 -0
- lean/OAI/Probability/SLE/Gauge/RibbonSideCorridors.lean +76 -0
- lean/OAI/Probability/SLE/Gauge/RibbonStepPatch.lean +90 -0
- lean/OAI/Probability/SLE/Gauge/RibbonStepSuccess.lean +85 -0
- lean/OAI/Probability/SLE/Gauge/RibbonStepTranslation.lean +134 -0
- lean/OAI/Probability/SLE/Gauge/RibbonStoppedMassLaw.lean +46 -0
- lean/OAI/Probability/SLE/Gauge/RibbonStoppedMassTransport.lean +105 -0
- lean/OAI/Probability/SLE/Gauge/RibbonSurvival.lean +81 -0
- lean/OAI/Probability/SLE/Gauge/SequencePassage.lean +124 -0
- lean/OAI/Probability/SLE/Gauge/SequencePassageRegions.lean +253 -0
- lean/OAI/Probability/SLE/Gauge/SequencePassageSuccess.lean +256 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineActualAngle.lean +103 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineActualAngleReflection.lean +81 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineActualGuide.lean +80 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineActualRadius.lean +103 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineArrayEmbedding.lean +198 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineArrayRegion.lean +50 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineAttachments.lean +92 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineCenteredMass.lean +132 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineCompleteCurve.lean +112 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineCompleteEmbedding.lean +110 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineConformalGeometry.lean +170 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineCurve.lean +163 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineEmbedding.lean +160 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineEscape.lean +90 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineExperimentGeometry.lean +179 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineExponentialMass.lean +63 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineExteriorBounds.lean +60 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineFiniteHeight.lean +122 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineFittedChart.lean +100 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineFittedRegion.lean +78 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineFittedShadow.lean +108 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineHorizontalBound.lean +85 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineInfiniteArray.lean +90 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineInitialPrefix.lean +149 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineLayout.lean +326 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineMarkedClearance.lean +37 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineMarkedGuide.lean +125 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineMarkedLocal.lean +104 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineMarkedReflection.lean +129 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineMarkedRegion.lean +56 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineMarkedRouteClearance.lean +63 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineNormalizedMass.lean +111 -0
- lean/OAI/Probability/SLE/Gauge/SerpentineParameters.lean +150 -0
lean/OAI/Probability/SLE/Gauge/RibbonMiddleMass.lean
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.RibbonConcatenation
|
| 2 |
+
import OAI.Probability.SLE.Gauge.RibbonCoordinateLimit
|
| 3 |
+
import OAI.Probability.SLE.Gauge.FiniteCoverAssembly
|
| 4 |
+
import OAI.Probability.SLE.Mass.StoppedConformalPassageMass
|
| 5 |
+
|
| 6 |
+
namespace OAI
|
| 7 |
+
|
| 8 |
+
/-! The actual source middle strips of an embedded ribbon are disjoint,
|
| 9 |
+
measurable spatial regions. Their stopped passage masses can therefore be
|
| 10 |
+
charged to one whole-trace sausage at the common prescribed mesh. -/
|
| 11 |
+
|
| 12 |
+
noncomputable section
|
| 13 |
+
open Set Filter MeasureTheory Metric
|
| 14 |
+
open scoped Topology NNReal ENNReal
|
| 15 |
+
|
| 16 |
+
namespace SLEExactGauge.RibbonCoordinates
|
| 17 |
+
|
| 18 |
+
def middleStrip (k ε : ℝ) : Set ℂ :=
|
| 19 |
+
{z | (1 / 3 : ℝ) < z.re - k ∧ z.re - k < 2 / 3 ∧ |z.im| < ε}
|
| 20 |
+
|
| 21 |
+
theorem middleStrip_open (k ε : ℝ) : IsOpen (middleStrip k ε) :=
|
| 22 |
+
(isOpen_lt continuous_const (Complex.continuous_re.sub continuous_const)).inter
|
| 23 |
+
((isOpen_lt (Complex.continuous_re.sub continuous_const) continuous_const).inter
|
| 24 |
+
(isOpen_lt Complex.continuous_im.abs continuous_const))
|
| 25 |
+
|
| 26 |
+
theorem middleStrip_subset_closedRibbon {k ε : ℝ} (hk : 0 ≤ k) (hε : ε ≤ 1) :
|
| 27 |
+
middleStrip k ε ⊆ closedRibbon := by
|
| 28 |
+
intro z hz
|
| 29 |
+
exact ⟨by linarith [hz.1], hz.2.2.le.trans hε⟩
|
| 30 |
+
|
| 31 |
+
theorem physicalMiddleRegion_eq_image_middleStrip
|
| 32 |
+
(P : ℂ → ℂ) {k ε : ℝ} (hk : 0 ≤ k) (hε : ε ≤ 1) :
|
| 33 |
+
physicalMiddleRegion P closedRibbon k ε = P '' middleStrip k ε := by
|
| 34 |
+
unfold physicalMiddleRegion
|
| 35 |
+
apply congrArg (fun R : Set ℂ => P '' R)
|
| 36 |
+
ext z
|
| 37 |
+
exact ⟨fun hz => hz.2,
|
| 38 |
+
fun hz => ⟨middleStrip_subset_closedRibbon hk hε hz, hz⟩⟩
|
| 39 |
+
|
| 40 |
+
theorem middleStrip_pairwise_disjoint (ε : ℝ) :
|
| 41 |
+
Pairwise (fun i j : ℕ => Disjoint (middleStrip i ε) (middleStrip j ε)) := by
|
| 42 |
+
intro i j hij
|
| 43 |
+
rw [disjoint_left]
|
| 44 |
+
intro z hi hj
|
| 45 |
+
have hh : (i : ℝ) < (j : ℝ) ∨ (j : ℝ) < (i : ℝ) := by
|
| 46 |
+
exact_mod_cast lt_or_gt_of_ne hij
|
| 47 |
+
rcases hh with hh | hh
|
| 48 |
+
· have hn : i + 1 ≤ j := by exact_mod_cast hh
|
| 49 |
+
have hnR : (i : ℝ) + 1 ≤ j := by exact_mod_cast hn
|
| 50 |
+
linarith [hi.2.1, hj.1]
|
| 51 |
+
· have hn : j + 1 ≤ i := by exact_mod_cast hh
|
| 52 |
+
have hnR : (j : ℝ) + 1 ≤ i := by exact_mod_cast hn
|
| 53 |
+
linarith [hi.1, hj.2.1]
|
| 54 |
+
|
| 55 |
+
theorem physical_middle_regions_pairwise_disjoint
|
| 56 |
+
(P : ℂ → ℂ) (hiP : InjOn P closedRibbon) {ε : ℝ} (hε : ε ≤ 1) :
|
| 57 |
+
Pairwise (fun i j : ℕ => Disjoint
|
| 58 |
+
(physicalMiddleRegion P closedRibbon i ε) (physicalMiddleRegion P closedRibbon j ε)) := by
|
| 59 |
+
intro i j hij
|
| 60 |
+
rw [physicalMiddleRegion_eq_image_middleStrip P (Nat.cast_nonneg _) hε,
|
| 61 |
+
physicalMiddleRegion_eq_image_middleStrip P (Nat.cast_nonneg _) hε, disjoint_left]
|
| 62 |
+
rintro z ⟨u, hu, he⟩ ⟨v, hv, hve⟩
|
| 63 |
+
have huv : u = v := hiP
|
| 64 |
+
(middleStrip_subset_closedRibbon (Nat.cast_nonneg _) hε hu)
|
| 65 |
+
(middleStrip_subset_closedRibbon (Nat.cast_nonneg _) hε hv) (he.trans hve.symm)
|
| 66 |
+
exact Set.disjoint_left.mp (middleStrip_pairwise_disjoint ε hij) hu (huv ▸ hv)
|
| 67 |
+
|
| 68 |
+
theorem isOpen_embedded_middle_region
|
| 69 |
+
(hpublished : PublishedPlanarDiskOpenness)
|
| 70 |
+
(P : ℂ → ℂ) (hP : ContinuousOn P closedRibbon) (hiP : InjOn P closedRibbon)
|
| 71 |
+
{k ε : ℝ} (hk : 0 ≤ k) (hε : ε ≤ 1) :
|
| 72 |
+
IsOpen (physicalMiddleRegion P closedRibbon k ε) := by
|
| 73 |
+
rw [physicalMiddleRegion_eq_image_middleStrip P hk hε]
|
| 74 |
+
apply isOpen_iff_mem_nhds.mpr
|
| 75 |
+
rintro z ⟨u, hu, rfl⟩
|
| 76 |
+
obtain ⟨r, hr, hball⟩ := Metric.isOpen_iff.mp (middleStrip_open k ε) u hu
|
| 77 |
+
have hclosed := hball.trans (middleStrip_subset_closedRibbon hk hε)
|
| 78 |
+
exact mem_of_superset
|
| 79 |
+
((hpublished P u r hr (hP.mono hclosed) (hiP.mono hclosed)).mem_nhds
|
| 80 |
+
(mem_image_of_mem P (mem_ball_self hr))) (image_mono hball)
|
| 81 |
+
|
| 82 |
+
theorem segmentSausageCharge_le_whole
|
| 83 |
+
(κ : ℝ) (γ : ℝ≥0 → ℂ) (s t : ℝ≥0) (v : ℝ) (R : Set ℂ) :
|
| 84 |
+
segmentSausageCharge κ γ s t v R ≤ wholeSausageCharge κ γ v R := by
|
| 85 |
+
apply mul_le_mul' le_rfl
|
| 86 |
+
apply measure_mono
|
| 87 |
+
rintro z ⟨hz, u, _, hd⟩
|
| 88 |
+
exact ⟨hz, u, by simpa only [dist_comm] using hd⟩
|
| 89 |
+
|
| 90 |
+
/-- Exactly the source middle strips are counted, even if their sausages
|
| 91 |
+
also meet other parts of the curve. Spatial disjointness alone suffices. -/
|
| 92 |
+
theorem whole_sausage_charge_from_ribbon_steps
|
| 93 |
+
(hpublished : PublishedPlanarDiskOpenness)
|
| 94 |
+
(P : ℂ → ℂ) (hP : ContinuousOn P closedRibbon) (hiP : InjOn P closedRibbon)
|
| 95 |
+
{ε : ℝ} (hε : ε ≤ 1) (I : Finset ℕ)
|
| 96 |
+
(κ : ℝ) (γ : ℝ≥0 → ℂ) (s t : ℕ → ℝ≥0) (v b : ℝ) (A : Set ℂ)
|
| 97 |
+
(hregions : ∀ i ∈ I, physicalMiddleRegion P closedRibbon i ε ⊆ A)
|
| 98 |
+
(hmass : ∀ i ∈ I, ENNReal.ofReal b ≤
|
| 99 |
+
segmentSausageCharge κ γ (s i) (t i) v (physicalMiddleRegion P closedRibbon i ε)) :
|
| 100 |
+
(I.card : ℝ≥0∞) * ENNReal.ofReal b ≤ wholeSausageCharge κ γ v A := by
|
| 101 |
+
let ν := wholeSausageMeasure κ γ v
|
| 102 |
+
have hmeas i : MeasurableSet (physicalMiddleRegion P closedRibbon (i : ℕ) ε) :=
|
| 103 |
+
(isOpen_embedded_middle_region hpublished P hP hiP (Nat.cast_nonneg _) hε).measurableSet
|
| 104 |
+
calc
|
| 105 |
+
_ = ∑ _i ∈ I, ENNReal.ofReal b := by rw [Finset.sum_const, nsmul_eq_mul]
|
| 106 |
+
_ ≤ ∑ i ∈ I, ν (physicalMiddleRegion P closedRibbon i ε) := by
|
| 107 |
+
apply Finset.sum_le_sum
|
| 108 |
+
intro i hi
|
| 109 |
+
rw [wholeSausageMeasure_apply κ γ v (hmeas i)]
|
| 110 |
+
exact (hmass i hi).trans (segmentSausageCharge_le_whole κ γ (s i) (t i) v _)
|
| 111 |
+
_ = ν (⋃ i ∈ I, physicalMiddleRegion P closedRibbon i ε) :=
|
| 112 |
+
(measure_biUnion_finset
|
| 113 |
+
(fun i _ j _ hij => physical_middle_regions_pairwise_disjoint P hiP hε hij)
|
| 114 |
+
(fun i _ => hmeas i)).symm
|
| 115 |
+
_ ≤ wholeSausageCharge κ γ v A := by
|
| 116 |
+
rw [wholeSausageMeasure_apply κ γ v
|
| 117 |
+
(I.measurableSet_biUnion (fun i _ => hmeas i))]
|
| 118 |
+
apply mul_le_mul' le_rfl
|
| 119 |
+
exact measure_mono (inter_subset_inter (iUnion₂_subset hregions) Subset.rfl)
|
| 120 |
+
|
| 121 |
+
theorem dense_ribbon_mass_from_steps
|
| 122 |
+
(hpublished : PublishedPlanarDiskOpenness)
|
| 123 |
+
(P : ℂ → ℂ) (hP : ContinuousOn P closedRibbon) (hiP : InjOn P closedRibbon)
|
| 124 |
+
{ε : ℝ} (hε : ε ≤ 1) (I : Finset ℕ)
|
| 125 |
+
(κ : ℝ) (γ : ℝ≥0 → ℂ) (s t : ℕ → ℝ≥0) (v c ell : ℝ)
|
| 126 |
+
(hell : 0 < ell) (m : ℕ) (hm : 0 < m) (hcard : I.card = m ^ 2)
|
| 127 |
+
(A : Set ℂ)
|
| 128 |
+
(hregions : ∀ i ∈ I, physicalMiddleRegion P closedRibbon i ε ⊆ A)
|
| 129 |
+
(hmass : ∀ i ∈ I, ENNReal.ofReal (c * (ell / (m : ℝ)) ^ dimension κ) ≤
|
| 130 |
+
segmentSausageCharge κ γ (s i) (t i) v (physicalMiddleRegion P closedRibbon i ε)) :
|
| 131 |
+
ENNReal.ofReal (c * ell ^ dimension κ * (m : ℝ) ^ codimension κ) ≤
|
| 132 |
+
wholeSausageCharge κ γ v A := by
|
| 133 |
+
have hmR : (0 : ℝ) < m := by exact_mod_cast hm
|
| 134 |
+
have he : (m : ℝ) ^ 2 * (c * (ell / (m : ℝ)) ^ dimension κ) =
|
| 135 |
+
c * ell ^ dimension κ * (m : ℝ) ^ codimension κ := by
|
| 136 |
+
rw [div_eq_mul_one_div, Real.mul_rpow hell.le (one_div_nonneg.mpr hmR.le)]
|
| 137 |
+
calc
|
| 138 |
+
_ = c * ell ^ dimension κ *
|
| 139 |
+
((m : ℝ) ^ 2 * (1 / (m : ℝ)) ^ dimension κ) := by ring
|
| 140 |
+
_ = _ := by rw [ribbon_mass_power_cancellation κ hmR]
|
| 141 |
+
have hh := whole_sausage_charge_from_ribbon_steps hpublished P hP hiP hε I κ γ s t v
|
| 142 |
+
(c * (ell / (m : ℝ)) ^ dimension κ) A hregions hmass
|
| 143 |
+
rw [hcard, ← ENNReal.ofReal_natCast, ← ENNReal.ofReal_mul (Nat.cast_nonneg _),
|
| 144 |
+
Nat.cast_pow, he] at hh
|
| 145 |
+
exact hh
|
| 146 |
+
|
| 147 |
+
end SLEExactGauge.RibbonCoordinates
|
| 148 |
+
|
| 149 |
+
end
|
| 150 |
+
|
| 151 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/RibbonPassageMass.lean
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.SausageSeedAll
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
/-!
|
| 6 |
+
The last probabilistic transfer in the ribbon step: a finite deterministic
|
| 7 |
+
list of retained time intervals permits subtracting one unconditional
|
| 8 |
+
small-sausage exception from the varying passage events. The sausage
|
| 9 |
+
estimate is never conditioned on passage.
|
| 10 |
+
-/
|
| 11 |
+
|
| 12 |
+
noncomputable section
|
| 13 |
+
open Set Filter MeasureTheory
|
| 14 |
+
open scoped Topology ENNReal NNReal
|
| 15 |
+
|
| 16 |
+
namespace SLEExactGauge
|
| 17 |
+
|
| 18 |
+
/-- The finite-list subtraction step of `rc:step`. Passage may select a
|
| 19 |
+
different deterministic interval on each sample and at each mesh. -/
|
| 20 |
+
theorem ribbon_passage_mass_of_eventually_finite_intervals
|
| 21 |
+
{Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
|
| 22 |
+
(κ : ℝ) (hκ : 0 < κ) (hκ8 : κ < 8)
|
| 23 |
+
(γ : Ω → ℝ≥0 → ℂ) (hSLE : IsOrdinaryChordalSLE κ γ P)
|
| 24 |
+
(I : Finset (ℝ≥0 × ℝ≥0)) (hI : ∀ J ∈ I, J.1 < J.2)
|
| 25 |
+
(v : ℕ → ℝ) (hv : ∀ n, 0 < v n) (hlim : Tendsto v atTop (𝓝 0))
|
| 26 |
+
(G : ℕ → Set Ω) (q : ℝ) (hq : 0 < q)
|
| 27 |
+
(hG : ∀ᶠ n in atTop, ENNReal.ofReal q ≤ P (G n))
|
| 28 |
+
(physicalMass : ℕ → Ω → ℝ≥0∞) (passage : ℕ → Ω → Prop)
|
| 29 |
+
(c : ℝ) (hc : 0 < c)
|
| 30 |
+
(htransfer : ∀ᶠ n in atTop, ∀ ω, ω ∈ G n → passage n ω ∧
|
| 31 |
+
∃ J ∈ I, ENNReal.ofReal c *
|
| 32 |
+
sourceSausageMass κ (γ ω) J.1 J.2 (v n) ≤ physicalMass n ω) :
|
| 33 |
+
∃ a : ℝ, 0 < a ∧ ∀ᶠ n in atTop,
|
| 34 |
+
ENNReal.ofReal (q / 2) ≤
|
| 35 |
+
P {ω | ω ∈ G n ∧ passage n ω ∧ ENNReal.ofReal a ≤ physicalMass n ω} := by
|
| 36 |
+
obtain ⟨b, e₀, hb, he₀, hsmall⟩ := sourceSmallSausageMain_proved
|
| 37 |
+
Ω inferInstance P inferInstance κ hκ hκ8 γ hSLE I hI (q / 2) (by positivity)
|
| 38 |
+
refine ⟨c * b, mul_pos hc hb, ?_⟩
|
| 39 |
+
have hevent : ∀ᶠ n in atTop, v n < e₀ :=
|
| 40 |
+
(tendsto_order.mp hlim).2 e₀ he₀
|
| 41 |
+
filter_upwards [hevent, hG, htransfer] with n hn hGn htransfern
|
| 42 |
+
let bad : Set Ω := {ω | ∃ J ∈ I,
|
| 43 |
+
sourceSausageMass κ (γ ω) J.1 J.2 (v n) < ENNReal.ofReal b}
|
| 44 |
+
let good : Set Ω := {ω | ω ∈ G n ∧ passage n ω ∧
|
| 45 |
+
ENNReal.ofReal (c * b) ≤ physicalMass n ω}
|
| 46 |
+
have hbad : P bad < ENNReal.ofReal (q / 2) := hsmall (v n) (hv n) hn
|
| 47 |
+
have hcover : G n ⊆ good ∪ bad := by
|
| 48 |
+
intro ω hω
|
| 49 |
+
by_cases hbadω : ω ∈ bad
|
| 50 |
+
· exact Or.inr hbadω
|
| 51 |
+
· obtain ⟨hpassage, J, hJI, hmass⟩ := htransfern ω hω
|
| 52 |
+
left
|
| 53 |
+
refine ⟨hω, hpassage, ?_⟩
|
| 54 |
+
have hsausage : ENNReal.ofReal b ≤ sourceSausageMass κ (γ ω) J.1 J.2 (v n) := by
|
| 55 |
+
by_contra h
|
| 56 |
+
exact hbadω ⟨J, hJI, lt_of_not_ge h⟩
|
| 57 |
+
rw [ENNReal.ofReal_mul hc.le]
|
| 58 |
+
exact (mul_le_mul' le_rfl hsausage).trans hmass
|
| 59 |
+
change ENNReal.ofReal (q / 2) ≤ P good
|
| 60 |
+
by_contra hgood
|
| 61 |
+
have hhalf : ENNReal.ofReal (q / 2) + ENNReal.ofReal (q / 2) =
|
| 62 |
+
ENNReal.ofReal q := by
|
| 63 |
+
rw [← ENNReal.ofReal_add (by positivity) (by positivity)]
|
| 64 |
+
congr 1
|
| 65 |
+
ring
|
| 66 |
+
have hlt : P good + P bad < ENNReal.ofReal q := by
|
| 67 |
+
rw [← hhalf]
|
| 68 |
+
exact ENNReal.add_lt_add (lt_of_not_ge hgood) hbad
|
| 69 |
+
exact (not_lt_of_ge hGn)
|
| 70 |
+
(((measure_mono hcover).trans (measure_union_le good bad)).trans_lt hlt)
|
| 71 |
+
|
| 72 |
+
/-- A version with transfer and probability bounds at every index. -/
|
| 73 |
+
theorem ribbon_passage_mass_of_finite_intervals
|
| 74 |
+
{Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
|
| 75 |
+
(κ : ℝ) (hκ : 0 < κ) (hκ8 : κ < 8)
|
| 76 |
+
(γ : Ω → ℝ≥0 → ℂ) (hSLE : IsOrdinaryChordalSLE κ γ P)
|
| 77 |
+
(I : Finset (ℝ≥0 × ℝ≥0)) (hI : ∀ J ∈ I, J.1 < J.2)
|
| 78 |
+
(v : ℕ → ℝ) (hv : ∀ n, 0 < v n) (hlim : Tendsto v atTop (𝓝 0))
|
| 79 |
+
(G : ℕ → Set Ω) (q : ℝ) (hq : 0 < q)
|
| 80 |
+
(hG : ∀ n, ENNReal.ofReal q ≤ P (G n))
|
| 81 |
+
(physicalMass : ℕ → Ω → ℝ≥0∞) (passage : ℕ → Ω → Prop)
|
| 82 |
+
(c : ℝ) (hc : 0 < c)
|
| 83 |
+
(htransfer : ∀ n ω, ω ∈ G n → passage n ω ∧
|
| 84 |
+
∃ J ∈ I, ENNReal.ofReal c *
|
| 85 |
+
sourceSausageMass κ (γ ω) J.1 J.2 (v n) ≤ physicalMass n ω) :
|
| 86 |
+
∃ a : ℝ, 0 < a ∧ ∀ᶠ n in atTop,
|
| 87 |
+
ENNReal.ofReal (q / 2) ≤
|
| 88 |
+
P {ω | ω ∈ G n ∧ passage n ω ∧ ENNReal.ofReal a ≤ physicalMass n ω} :=
|
| 89 |
+
ribbon_passage_mass_of_eventually_finite_intervals P κ hκ hκ8 γ hSLE I hI
|
| 90 |
+
v hv hlim G q hq (Eventually.of_forall hG) physicalMass passage c hc
|
| 91 |
+
(Eventually.of_forall htransfer)
|
| 92 |
+
|
| 93 |
+
/-- The same finite-list transfer with passage already included in `G n`. -/
|
| 94 |
+
theorem ribbon_mass_of_finite_intervals
|
| 95 |
+
{Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
|
| 96 |
+
(κ : ℝ) (hκ : 0 < κ) (hκ8 : κ < 8)
|
| 97 |
+
(γ : Ω → ℝ≥0 → ℂ) (hSLE : IsOrdinaryChordalSLE κ γ P)
|
| 98 |
+
(I : Finset (ℝ≥0 × ℝ≥0)) (hI : ∀ J ∈ I, J.1 < J.2)
|
| 99 |
+
(v : ℕ → ℝ) (hv : ∀ n, 0 < v n) (hlim : Tendsto v atTop (𝓝 0))
|
| 100 |
+
(G : ℕ → Set Ω) (q : ℝ) (hq : 0 < q)
|
| 101 |
+
(hG : ∀ n, ENNReal.ofReal q ��� P (G n))
|
| 102 |
+
(physicalMass : ℕ → Ω → ℝ≥0∞) (c : ℝ) (hc : 0 < c)
|
| 103 |
+
(htransfer : ∀ n ω, ω ∈ G n →
|
| 104 |
+
∃ J ∈ I, ENNReal.ofReal c *
|
| 105 |
+
sourceSausageMass κ (γ ω) J.1 J.2 (v n) ≤ physicalMass n ω) :
|
| 106 |
+
∃ a : ℝ, 0 < a ∧ ∀ᶠ n in atTop,
|
| 107 |
+
ENNReal.ofReal (q / 2) ≤
|
| 108 |
+
P {ω | ω ∈ G n ∧ ENNReal.ofReal a ≤ physicalMass n ω} := by
|
| 109 |
+
obtain ⟨a, ha, hevent⟩ := ribbon_passage_mass_of_finite_intervals
|
| 110 |
+
P κ hκ hκ8 γ hSLE I hI v hv hlim G q hq hG physicalMass
|
| 111 |
+
(fun _ _ => True) c hc (fun n ω hω => ⟨trivial, htransfer n ω hω⟩)
|
| 112 |
+
refine ⟨a, ha, ?_⟩
|
| 113 |
+
simpa only [true_and] using hevent
|
| 114 |
+
|
| 115 |
+
end SLEExactGauge
|
| 116 |
+
|
| 117 |
+
end
|
| 118 |
+
|
| 119 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/RibbonPassageNeighborhood.lean
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.RibbonCoordinateLimit
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
/-! Common physical neighborhoods of compact passage routes. Strict
|
| 6 |
+
coordinate margins are retained on the closure before passing to moving
|
| 7 |
+
ribbon charts. -/
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
open Set Filter Metric
|
| 11 |
+
open scoped Topology NNReal
|
| 12 |
+
|
| 13 |
+
namespace SLEExactGauge.RibbonCoordinates
|
| 14 |
+
|
| 15 |
+
/-- An embedded coordinate chart maps every open coordinate subset of its
|
| 16 |
+
controlled patch to an open physical subset. -/
|
| 17 |
+
theorem isOpen_image_coordinate_subset
|
| 18 |
+
(hpublished : PublishedPlanarDiskOpenness)
|
| 19 |
+
(P : ℂ → ℂ) (K V : Set ℂ) (hP : ContinuousOn P K) (hi : InjOn P K)
|
| 20 |
+
(hV : IsOpen V) (hVK : V ⊆ K) : IsOpen (P '' V) := by
|
| 21 |
+
apply isOpen_iff_mem_nhds.mpr
|
| 22 |
+
rintro z ⟨x, hx, rfl⟩
|
| 23 |
+
obtain ⟨r, hr, hball⟩ := Metric.isOpen_iff.mp hV x hx
|
| 24 |
+
have hsub : ball x r ⊆ K := hball.trans hVK
|
| 25 |
+
have hopen := hpublished P x r hr (hP.mono hsub) (hi.mono hsub)
|
| 26 |
+
exact mem_of_superset
|
| 27 |
+
(hopen.mem_nhds (mem_image_of_mem P (mem_ball_self hr)))
|
| 28 |
+
(image_mono hball)
|
| 29 |
+
|
| 30 |
+
/-- A compact route strictly inside a coordinate region admits one open
|
| 31 |
+
physical neighborhood whose closure lies in the same region for every
|
| 32 |
+
sufficiently late ribbon chart. -/
|
| 33 |
+
theorem common_coordinate_region_neighborhood
|
| 34 |
+
(hpublished : PublishedPlanarDiskOpenness)
|
| 35 |
+
(Pₙ : ℕ → ℂ → ℂ) (P : ℂ → ℂ) (K A V : Set ℂ) (L : ℝ≥0)
|
| 36 |
+
(hL : 0 < L) (hP : ContinuousOn P K)
|
| 37 |
+
(hPn : ∀ n, ContinuousOn (Pₙ n) K)
|
| 38 |
+
(hconv : TendstoUniformlyOn Pₙ P atTop K)
|
| 39 |
+
(hlower : ∀ n x, x ∈ K → ∀ y, y ∈ K → dist x y ≤ L * dist (Pₙ n x) (Pₙ n y))
|
| 40 |
+
(hA : IsCompact A) (hV : IsOpen V)
|
| 41 |
+
(hAV : A ⊆ P '' (interior K ∩ V)) :
|
| 42 |
+
∃ U : Set ℂ, IsOpen U ∧ A ⊆ U ∧ IsCompact (closure U) ∧
|
| 43 |
+
closure U ⊆ P '' (interior K ∩ V) ∧
|
| 44 |
+
(∀ᶠ n in atTop, closure U ⊆ Pₙ n '' (K ∩ V)) ∧
|
| 45 |
+
(∀ᶠ n in atTop, closure U ⊆ Pₙ n '' interior K) ∧
|
| 46 |
+
TendstoUniformlyOn (fun n => coordinateInverse (Pₙ n) K)
|
| 47 |
+
(coordinateInverse P K) atTop (closure U) := by
|
| 48 |
+
have hlim := lower_lipschitz_uniform_limit Pₙ P K L hconv hlower
|
| 49 |
+
have hi := lower_lipschitz_injOn P K L hlim
|
| 50 |
+
have hopen := isOpen_image_coordinate_subset hpublished P K (interior K ∩ V)
|
| 51 |
+
hP hi (isOpen_interior.inter hV) (inter_subset_left.trans interior_subset)
|
| 52 |
+
obtain ⟨ρ, hρ, hthick⟩ := hA.exists_cthickening_subset_open hopen hAV
|
| 53 |
+
let U := thickening ρ A
|
| 54 |
+
have hcl : closure U ⊆ cthickening ρ A := closure_thickening_subset_cthickening ρ A
|
| 55 |
+
have hUc : IsCompact (closure U) := hA.cthickening.of_isClosed_subset isClosed_closure hcl
|
| 56 |
+
have hUPV : closure U ⊆ P '' (interior K ∩ V) := hcl.trans hthick
|
| 57 |
+
have hUP : closure U ⊆ P '' interior K := hUPV.trans (image_mono inter_subset_left)
|
| 58 |
+
have hlate := eventual_compact_image_interior hpublished Pₙ P K (closure U) L hL hPn
|
| 59 |
+
hconv hlower hUc hUP
|
| 60 |
+
have hUV : coordinateInverse P K '' closure U ⊆ V := by
|
| 61 |
+
rintro _ ⟨z, hz, rfl⟩
|
| 62 |
+
obtain ⟨x, hx, he⟩ := hUPV hz
|
| 63 |
+
have heq : coordinateInverse P K z = x := by
|
| 64 |
+
rw [← he]
|
| 65 |
+
exact coordinateInverse_left hi (interior_subset hx.1)
|
| 66 |
+
simpa only [heq] using hx.2
|
| 67 |
+
have hcover : ∀ᶠ n in atTop, closure U ⊆ Pₙ n '' K :=
|
| 68 |
+
hlate.mono (fun _ h => h.trans (image_mono interior_subset))
|
| 69 |
+
have hregions := eventual_compact_coordinate_region Pₙ P K (closure U) V L hconv hlower
|
| 70 |
+
hUc (hUP.trans (image_mono interior_subset)) hcover hV hUV
|
| 71 |
+
exact ⟨U, isOpen_thickening, self_subset_thickening hρ A, hUc, hUPV, hregions, hlate,
|
| 72 |
+
coordinateInverse_uniform_on Pₙ P K (closure U) L hconv hlower
|
| 73 |
+
(hUP.trans (image_mono interior_subset)) hcover⟩
|
| 74 |
+
|
| 75 |
+
/-- Limiting coordinate guides have exact longitudinal progress and retain
|
| 76 |
+
the source transverse margin. -/
|
| 77 |
+
theorem limit_guide_coordinates
|
| 78 |
+
(P : ℂ → ℂ) (K : Set ℂ) (hi : InjOn P K)
|
| 79 |
+
(α : ℝ → ℂ) (x : ℝ)
|
| 80 |
+
(hshape : EqOn α (fun t => P (guideCoordinate 0 x t)) (Icc 0 2))
|
| 81 |
+
(hmem : ∀ t ∈ Icc (0 : ℝ) 2, guideCoordinate 0 x t ∈ K) :
|
| 82 |
+
∀ t ∈ Icc (0 : ℝ) 2,
|
| 83 |
+
longitudinalCoordinate P K 0 (α t) = t ∧
|
| 84 |
+
|(coordinateInverse P K (α t)).im| ≤ |x| := by
|
| 85 |
+
intro t ht
|
| 86 |
+
rw [hshape ht, coordinateInverse_left hi (hmem t ht)]
|
| 87 |
+
constructor
|
| 88 |
+
· simp only [longitudinalCoordinate, coordinateInverse_left hi (hmem t ht),
|
| 89 |
+
guideCoordinate_re, zero_add, sub_zero]
|
| 90 |
+
· exact guideCoordinate_im_bound ht.1
|
| 91 |
+
|
| 92 |
+
end SLEExactGauge.RibbonCoordinates
|
| 93 |
+
|
| 94 |
+
end
|
| 95 |
+
|
| 96 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/RibbonPassageScaling.lean
ADDED
|
@@ -0,0 +1,173 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.UniformFrontPassage
|
| 2 |
+
import Mathlib.MeasureTheory.Measure.Lebesgue.EqHaar
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-! Positive affine rescaling of the physical one-step passage. A mesh
|
| 7 |
+
`v` becomes `ell * v`; its normalized sausage mass is multiplied by
|
| 8 |
+
`ell ^ dimension κ`, exactly as in the width-rescaled ribbon statement. -/
|
| 9 |
+
|
| 10 |
+
noncomputable section
|
| 11 |
+
open Set Filter MeasureTheory Metric
|
| 12 |
+
open scoped Topology NNReal ENNReal Pointwise
|
| 13 |
+
|
| 14 |
+
namespace SLEExactGauge.RibbonPassageScaling
|
| 15 |
+
open FirstFrontPassage PassageSuccess
|
| 16 |
+
|
| 17 |
+
/-- Translate and dilate the physical coordinates without changing the
|
| 18 |
+
curve parameter. -/
|
| 19 |
+
def affine (a : ℂ) (ell : ℝ) (z : ℂ) : ℂ := a + (ell : ℂ) * z
|
| 20 |
+
|
| 21 |
+
theorem affine_dist (a : ℂ) {ell : ℝ} (hell : 0 ≤ ell) (z w : ℂ) :
|
| 22 |
+
dist (affine a ell z) (affine a ell w) = ell * dist z w := by
|
| 23 |
+
simp only [affine, dist_eq_norm, add_sub_add_left_eq_sub, ← mul_sub, norm_mul,
|
| 24 |
+
Complex.norm_real, Real.norm_eq_abs, abs_of_nonneg hell]
|
| 25 |
+
|
| 26 |
+
theorem affine_bijective (a : ℂ) {ell : ℝ} (hell : 0 < ell) :
|
| 27 |
+
Function.Bijective (affine a ell) := by
|
| 28 |
+
have he : (ell : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr hell.ne'
|
| 29 |
+
constructor
|
| 30 |
+
· intro z w h
|
| 31 |
+
exact mul_left_cancel₀ he (add_left_cancel h)
|
| 32 |
+
· intro z
|
| 33 |
+
refine ⟨(z - a) / (ell : ℂ), ?_⟩
|
| 34 |
+
dsimp [affine]
|
| 35 |
+
field_simp
|
| 36 |
+
ring
|
| 37 |
+
|
| 38 |
+
/-- Planar area scales by the square of the physical length scale, also
|
| 39 |
+
for sets for which no measurability has been assumed. -/
|
| 40 |
+
theorem affine_volume (a : ℂ) {ell : ℝ} (hell : 0 ≤ ell) (S : Set ℂ) :
|
| 41 |
+
volume (affine a ell '' S) = ENNReal.ofReal (ell ^ 2) * volume S := by
|
| 42 |
+
have he : affine a ell '' S = (fun z : ℂ => a + z) '' (ell • S) := by
|
| 43 |
+
rw [← image_smul, image_image]
|
| 44 |
+
rfl
|
| 45 |
+
rw [he, image_add_left, measure_preimage_add, Measure.addHaar_smul_of_nonneg volume hell]
|
| 46 |
+
rw [Complex.finrank_real_complex]
|
| 47 |
+
|
| 48 |
+
/-- The full sausage, including its intersection with a physical middle
|
| 49 |
+
strip, scales exactly under a positive affine map. -/
|
| 50 |
+
theorem sourceSausageSet_affine
|
| 51 |
+
(a : ℂ) {ell : ℝ} (hell : 0 < ell) (γ : ℝ≥0 → ℂ) (s t : ℝ≥0) (v : ℝ) :
|
| 52 |
+
sourceSausageSet (fun u => affine a ell (γ u)) s t (ell * v) =
|
| 53 |
+
affine a ell '' sourceSausageSet γ s t v := by
|
| 54 |
+
ext z
|
| 55 |
+
obtain ⟨w, rfl⟩ := (affine_bijective a hell).2 z
|
| 56 |
+
constructor
|
| 57 |
+
· rintro ⟨u, hu, hd⟩
|
| 58 |
+
rw [affine_dist a hell.le] at hd
|
| 59 |
+
exact ⟨w, ⟨u, hu, (mul_lt_mul_iff_right₀ hell).mp hd⟩, rfl⟩
|
| 60 |
+
· rintro ⟨w', ⟨u, hu, hd⟩, he⟩
|
| 61 |
+
have hw' : w' = w := (affine_bijective a hell).1 he
|
| 62 |
+
subst w'
|
| 63 |
+
exact ⟨u, hu, by rw [affine_dist a hell.le]; exact mul_lt_mul_of_pos_left hd hell⟩
|
| 64 |
+
|
| 65 |
+
theorem segmentSausageCharge_affine
|
| 66 |
+
(κ : ℝ) (a : ℂ) {ell : ℝ} (hell : 0 < ell)
|
| 67 |
+
(γ : ℝ≥0 → ℂ) (s t : ℝ≥0) {v : ℝ} (hv : 0 < v) (R : Set ℂ) :
|
| 68 |
+
segmentSausageCharge κ (fun u => affine a ell (γ u)) s t (ell * v)
|
| 69 |
+
(affine a ell '' R) =
|
| 70 |
+
ENNReal.ofReal (ell ^ dimension κ) * segmentSausageCharge κ γ s t v R := by
|
| 71 |
+
have he : (ell * v) ^ (-codimension κ) * ell ^ 2 =
|
| 72 |
+
ell ^ dimension κ * v ^ (-codimension κ) := by
|
| 73 |
+
rw [Real.mul_rpow hell.le hv.le]
|
| 74 |
+
calc
|
| 75 |
+
ell ^ (-codimension κ) * v ^ (-codimension κ) * ell ^ 2 =
|
| 76 |
+
(ell ^ (-codimension κ) * ell ^ (2 : ℝ)) * v ^ (-codimension κ) := by
|
| 77 |
+
rw [Real.rpow_two]
|
| 78 |
+
ring
|
| 79 |
+
_ = ell ^ (-codimension κ + 2) * v ^ (-codimension κ) := by
|
| 80 |
+
rw [Real.rpow_add hell]
|
| 81 |
+
_ = _ := by congr 2; unfold codimension; ring
|
| 82 |
+
simp only [segmentSausageCharge, sourceSausageSet_affine a hell]
|
| 83 |
+
rw [← image_inter (affine_bijective a hell).1, affine_volume a hell.le]
|
| 84 |
+
rw [← mul_assoc, ← ENNReal.ofReal_mul (Real.rpow_nonneg (mul_pos hell hv).le _), he,
|
| 85 |
+
ENNReal.ofReal_mul (Real.rpow_nonneg hell.le _), mul_assoc]
|
| 86 |
+
|
| 87 |
+
/-- The prescribed mass threshold scales by `ell^d`. -/
|
| 88 |
+
theorem affine_mass_threshold_iff
|
| 89 |
+
(κ : ℝ) (a : ℂ) {ell : ℝ} (hell : 0 < ell)
|
| 90 |
+
(γ : ℝ≥0 → ℂ) (s t : ℝ≥0) {v : ℝ} (hv : 0 < v) (R : Set ℂ) (c : ℝ) :
|
| 91 |
+
ENNReal.ofReal (c * ell ^ dimension κ) ≤
|
| 92 |
+
segmentSausageCharge κ (fun u => affine a ell (γ u)) s t (ell * v)
|
| 93 |
+
(affine a ell '' R) ↔
|
| 94 |
+
ENNReal.ofReal c ≤ segmentSausageCharge κ γ s t v R := by
|
| 95 |
+
rw [segmentSausageCharge_affine κ a hell γ s t hv R, mul_comm c,
|
| 96 |
+
ENNReal.ofReal_mul (Real.rpow_pos_of_pos hell _).le]
|
| 97 |
+
exact ENNReal.mul_le_mul_iff_right ((ENNReal.ofReal_pos.mpr (Real.rpow_pos_of_pos hell _)).ne')
|
| 98 |
+
ENNReal.ofReal_ne_top
|
| 99 |
+
|
| 100 |
+
/-- Pulling back the longitudinal coordinate leaves the actual first-front
|
| 101 |
+
clock unchanged. Spatial rescaling does not change curve order. -/
|
| 102 |
+
theorem firstFrontTime_affine
|
| 103 |
+
(a : ℂ) (ell : ℝ) (γ : ℝ≥0 → ℂ) (p p' : ℂ → ℝ)
|
| 104 |
+
(hp : ∀ z, p' (affine a ell z) = p z) :
|
| 105 |
+
firstFrontTime (fun t => p' (affine a ell (γ t))) 1 =
|
| 106 |
+
firstFrontTime (fun t => p (γ t)) 1 := by
|
| 107 |
+
congr 1
|
| 108 |
+
funext t
|
| 109 |
+
exact hp (γ t)
|
| 110 |
+
|
| 111 |
+
/-- Affine scaling preserves all actual front-success conditions, including
|
| 112 |
+
whole-prefix containment and the terminal offset. -/
|
| 113 |
+
theorem frontSuccess_affine_iff
|
| 114 |
+
{Ω : Type*} (η : ℕ → Ω → ℝ≥0 → ℂ) (p p' : ℕ → ℂ → ℝ)
|
| 115 |
+
(σ : Ω → ℝ≥0) (V : ℕ → Set ℂ) (b : ℕ → ℂ) (ε : ℝ)
|
| 116 |
+
(a : ℂ) {ell : ℝ} (hell : 0 < ell) (n : ℕ)
|
| 117 |
+
(hp : ∀ z, p' n (affine a ell z) = p n z) :
|
| 118 |
+
FrontSuccess (fun j ω t => affine a ell (η j ω t)) p' σ
|
| 119 |
+
(fun j => affine a ell '' V j) (fun j => affine a ell (b j)) (ell * ε) n =
|
| 120 |
+
FrontSuccess η p σ V b ε n := by
|
| 121 |
+
ext ω
|
| 122 |
+
have hmaps (T : ℝ≥0) :
|
| 123 |
+
MapsTo (fun t => affine a ell (η n ω t)) (Icc 0 T) (affine a ell '' V n) ↔
|
| 124 |
+
MapsTo (η n ω) (Icc 0 T) (V n) := by
|
| 125 |
+
constructor
|
| 126 |
+
· intro h t ht
|
| 127 |
+
obtain ⟨z, hz, he⟩ := h ht
|
| 128 |
+
exact (affine_bijective a hell).1 he ▸ hz
|
| 129 |
+
· intro h t ht
|
| 130 |
+
exact mem_image_of_mem _ (h ht)
|
| 131 |
+
have hterminal (T : ℝ≥0) :
|
| 132 |
+
‖affine a ell (η n ω T) - affine a ell (b n)‖ < ell * ε / 4 ↔
|
| 133 |
+
‖η n ω T - b n‖ < ε / 4 := by
|
| 134 |
+
have hd := affine_dist a hell.le (η n ω T) (b n)
|
| 135 |
+
rw [dist_eq_norm, dist_eq_norm] at hd
|
| 136 |
+
rw [hd, mul_div_assoc, mul_lt_mul_iff_right₀ hell]
|
| 137 |
+
simp only [FrontSuccess, mem_ofPred_eq, hp, hmaps, hterminal]
|
| 138 |
+
|
| 139 |
+
/-- The complete one-step event has the same probability after simultaneous
|
| 140 |
+
spatial, mesh and mass rescaling. This is a deterministic event identity;
|
| 141 |
+
the trace law need not itself have been scaled. -/
|
| 142 |
+
theorem frontSuccess_mass_probability_affine
|
| 143 |
+
{Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
|
| 144 |
+
(η : ℕ → Ω → ℝ≥0 → ℂ) (p p' : ℕ → ℂ → ℝ)
|
| 145 |
+
(σ : Ω → ℝ≥0) (V : ℕ → Set ℂ) (b : ℕ → ℂ) (ε : ℝ)
|
| 146 |
+
(a : ℂ) {ell : ℝ} (hell : 0 < ell) (n : ℕ)
|
| 147 |
+
(hp : ∀ z, p' n (affine a ell z) = p n z)
|
| 148 |
+
(κ : ℝ) (R : Set ℂ) {v : ℝ} (hv : 0 < v) (c : ℝ) :
|
| 149 |
+
P {ω | ω ∈ FrontSuccess (fun j ω t => affine a ell (η j ω t)) p' σ
|
| 150 |
+
(fun j => affine a ell '' V j) (fun j => affine a ell (b j)) (ell * ε) n ∧
|
| 151 |
+
ENNReal.ofReal (c * ell ^ dimension κ) ≤
|
| 152 |
+
segmentSausageCharge κ (fun t => affine a ell (η n ω t)) (σ ω)
|
| 153 |
+
(frontTime (fun t => p' n (affine a ell (η n ω t))) 1)
|
| 154 |
+
(ell * v) (affine a ell '' R)} =
|
| 155 |
+
P {ω | ω ∈ FrontSuccess η p σ V b ε n ∧ ENNReal.ofReal c ≤
|
| 156 |
+
segmentSausageCharge κ (η n ω) (σ ω)
|
| 157 |
+
(frontTime (fun t => p n (η n ω t)) 1) v R} := by
|
| 158 |
+
congr 1
|
| 159 |
+
ext ω
|
| 160 |
+
have hevent := frontSuccess_affine_iff η p p' σ V b ε a hell n hp
|
| 161 |
+
have ht : frontTime (fun t => p' n (affine a ell (η n ω t))) 1 =
|
| 162 |
+
frontTime (fun t => p n (η n ω t)) 1 := by
|
| 163 |
+
congr 1
|
| 164 |
+
funext t
|
| 165 |
+
exact hp (η n ω t)
|
| 166 |
+
simp only [mem_ofPred_eq, hevent, ht,
|
| 167 |
+
affine_mass_threshold_iff κ a hell (η n ω) (σ ω) _ hv R c]
|
| 168 |
+
|
| 169 |
+
end SLEExactGauge.RibbonPassageScaling
|
| 170 |
+
|
| 171 |
+
end
|
| 172 |
+
|
| 173 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/RibbonPrefixTransport.lean
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.WholeSausageScaling
|
| 2 |
+
import OAI.Probability.SLE.Gauge.RibbonGoodPrefix
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-! A successful narrow physical prefix is preserved by the exact SLE
|
| 7 |
+
spatial/capacity scaling. The front is transported as its actual first hit,
|
| 8 |
+
not chosen as a separate completion certificate. -/
|
| 9 |
+
|
| 10 |
+
noncomputable section
|
| 11 |
+
open Set Filter MeasureTheory
|
| 12 |
+
open scoped Topology NNReal ENNReal
|
| 13 |
+
|
| 14 |
+
namespace SLEExactGauge
|
| 15 |
+
open RibbonCoordinates FirstFrontPassage FrontClockChange ScaleTraceLaw FrontSuccessMeasurability
|
| 16 |
+
|
| 17 |
+
lemma scalePath_at_scaled_time (c : ℝ≥0) (hc : 0 < c) (p : C(ℝ≥0, ℂ)) (t : ℝ≥0) :
|
| 18 |
+
scalePath c p (c ^ 2 * t) = (c : ℂ) * p t := by
|
| 19 |
+
change (c : ℂ) * p ((c ^ 2 * t) / c ^ 2) = _
|
| 20 |
+
rw [mul_div_cancel_left₀ t (pow_ne_zero 2 hc.ne')]
|
| 21 |
+
|
| 22 |
+
theorem goodRibbonPrefix_scalePath
|
| 23 |
+
(c : ℝ≥0) (hc : 0 < c) (p : C(ℝ≥0, ℂ)) (P : ℂ → ℂ)
|
| 24 |
+
(g g' : C(ℂ, ℝ)) (hgg' : ∀ z : ℂ, g' ((c : ℂ) * z) = g z)
|
| 25 |
+
(k ε : ℝ)
|
| 26 |
+
(hpref : () ∈ GoodRibbonPrefix (fun _ : Unit => (p : ℝ≥0 → ℂ))
|
| 27 |
+
(fun _ => firstFrontTime (fun t => g (p t)) k) P ε) :
|
| 28 |
+
() ∈ GoodRibbonPrefix (fun _ : Unit => (scalePath c p : ℝ≥0 → ℂ))
|
| 29 |
+
(fun _ => firstFrontTime (fun t => g' (scalePath c p t)) k)
|
| 30 |
+
(fun z => (c : ℂ) * P z) ε := by
|
| 31 |
+
cases hτ : firstFrontTime (fun t => g (p t)) k with
|
| 32 |
+
| top => exact False.elim (hpref.1 hτ)
|
| 33 |
+
| coe T =>
|
| 34 |
+
let e := OrderIso.mulLeft₀ (c ^ 2) (pow_pos hc 2)
|
| 35 |
+
have heval (t : ℝ≥0) : scalePath c p (e t) = (c : ℂ) * p t :=
|
| 36 |
+
scalePath_at_scaled_time c hc p t
|
| 37 |
+
have hclock : (fun t => g' (scalePath c p (e t))) = (fun t => g (p t)) := by
|
| 38 |
+
funext t
|
| 39 |
+
rw [heval, hgg']
|
| 40 |
+
have hhit := firstFrontTime_attained _ (g.continuous.comp p.continuous) k T hτ
|
| 41 |
+
have hnew := firstFrontTime_of_clock_hit e (fun t => g' (scalePath c p t)) k T
|
| 42 |
+
(by rw [hclock]; exact hτ) (by rw [heval, hgg']; exact hhit)
|
| 43 |
+
have hprefix : MapsTo p (Icc 0 T) (ribbonCore P ε) := by
|
| 44 |
+
simpa only [hτ, WithTop.untopD_coe] using hpref.2.1
|
| 45 |
+
have hend : p T ∈ ribbonCore P (ε / 4) := by
|
| 46 |
+
simpa only [hτ, WithTop.untopD_coe] using hpref.2.2
|
| 47 |
+
change firstFrontTime (fun t => g' (scalePath c p t)) k ≠ ⊤ ∧ _
|
| 48 |
+
rw [hnew]
|
| 49 |
+
refine ⟨WithTop.coe_ne_top, ?_, ?_⟩
|
| 50 |
+
· intro t ht
|
| 51 |
+
have htt : t ≤ e T := by simpa only [WithTop.untopD_coe] using ht.2
|
| 52 |
+
have hu : e.symm t ∈ Icc 0 T := ⟨bot_le, by
|
| 53 |
+
simpa only [e.symm_apply_apply] using e.symm.monotone htt⟩
|
| 54 |
+
obtain ⟨z, hz, hez⟩ := hprefix hu
|
| 55 |
+
refine ⟨z, hz, ?_⟩
|
| 56 |
+
change (c : ℂ) * P z = scalePath c p t
|
| 57 |
+
rw [hez, ← heval, e.apply_symm_apply]
|
| 58 |
+
· obtain ⟨z, hz, hez⟩ := hend
|
| 59 |
+
refine ⟨z, hz, ?_⟩
|
| 60 |
+
change (c : ℂ) * P z = scalePath c p (e T)
|
| 61 |
+
rw [heval, hez]
|
| 62 |
+
|
| 63 |
+
end SLEExactGauge
|
| 64 |
+
|
| 65 |
+
end
|
| 66 |
+
|
| 67 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/RibbonRouteLifting.lean
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.RibbonCoordinateGeometry
|
| 2 |
+
import OAI.Probability.SLE.Geometry.RobustTransverseCrossing
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-! Physical perturbations of a transverse ribbon route admit continuous
|
| 7 |
+
coordinate lifts. The fixed inverse Lipschitz bound then turns a physical
|
| 8 |
+
tube event into a forced hit of the actual stopped past. -/
|
| 9 |
+
|
| 10 |
+
noncomputable section
|
| 11 |
+
open Set Metric Function
|
| 12 |
+
open scoped Topology NNReal
|
| 13 |
+
|
| 14 |
+
namespace SLEExactGauge.RibbonCoordinates
|
| 15 |
+
open RectangleCrossing
|
| 16 |
+
|
| 17 |
+
theorem inverse_coordinate_lipschitz
|
| 18 |
+
(P : ℂ → ℂ) (S : Set ℂ) (K : ℝ≥0)
|
| 19 |
+
(hlower : ∀ u ∈ S, ∀ v ∈ S, dist u v ≤ K * dist (P u) (P v)) :
|
| 20 |
+
LipschitzOnWith K (invFunOn P S) (P '' S) := by
|
| 21 |
+
apply lipschitzOnWith_iff_dist_le_mul.mpr
|
| 22 |
+
intro u hu v hv
|
| 23 |
+
have hh := hlower _ (invFunOn_mem hu) _ (invFunOn_mem hv)
|
| 24 |
+
simpa only [invFunOn_eq hu, invFunOn_eq hv] using hh
|
| 25 |
+
|
| 26 |
+
/-- Invariance of domain supplies a physical tube; the patch inverse is
|
| 27 |
+
continuous with exactly the given inverse Lipschitz bound. -/
|
| 28 |
+
theorem physical_tube_has_coordinate_lift
|
| 29 |
+
(hpublished : PublishedPlanarDiskOpenness)
|
| 30 |
+
(P : ℂ → ℂ) (S : Set ℂ) (hP : ContinuousOn P S) (hi : InjOn P S)
|
| 31 |
+
(K : ℝ≥0) (hK : 0 < (K : ℝ))
|
| 32 |
+
(hlower : ∀ u ∈ S, ∀ v ∈ S, dist u v ≤ K * dist (P u) (P v))
|
| 33 |
+
(ξ ζ : ℝ → ℂ) (I : Set ℝ) {r : ℝ} (hr : 0 < r)
|
| 34 |
+
(hξ : ∀ t ∈ I, closedBall (ξ t) r ⊆ S)
|
| 35 |
+
(hζ : ContinuousOn ζ I)
|
| 36 |
+
(hnear : ∀ t ∈ I, dist (ζ t) (P (ξ t)) < r / K) :
|
| 37 |
+
let q := invFunOn P S ∘ ζ
|
| 38 |
+
ContinuousOn q I ∧ MapsTo q I S ∧ EqOn (P ∘ q) ζ I ∧
|
| 39 |
+
∀ t ∈ I, dist (q t) (ξ t) < r := by
|
| 40 |
+
have hlift t (ht : t ∈ I) :
|
| 41 |
+
∃ z ∈ ball (ξ t) r, P z = ζ t := by
|
| 42 |
+
apply ball_subset_image_ball P (ξ t) hr hK (hP.mono (hξ t ht))
|
| 43 |
+
(hpublished P _ _ hr (hP.mono (ball_subset_closedBall.trans (hξ t ht)))
|
| 44 |
+
(hi.mono (ball_subset_closedBall.trans (hξ t ht))))
|
| 45 |
+
(fun z hz => hlower z (hξ t ht hz) _ (hξ t ht (mem_closedBall_self hr.le)))
|
| 46 |
+
exact hnear t ht
|
| 47 |
+
have hζS : MapsTo ζ I (P '' S) := by
|
| 48 |
+
intro t ht
|
| 49 |
+
obtain ⟨z, hz, he⟩ := hlift t ht
|
| 50 |
+
exact ⟨z, hξ t ht (ball_subset_closedBall hz), he⟩
|
| 51 |
+
dsimp only
|
| 52 |
+
refine ⟨(inverse_coordinate_lipschitz P S K hlower).continuousOn.comp hζ hζS,
|
| 53 |
+
(fun t ht => invFunOn_mem (hζS ht)), (fun t ht => invFunOn_eq (hζS ht)), ?_⟩
|
| 54 |
+
intro t ht
|
| 55 |
+
obtain ⟨z, hz, he⟩ := hlift t ht
|
| 56 |
+
have hzS := hξ t ht (ball_subset_closedBall hz)
|
| 57 |
+
have heq : invFunOn P S (ζ t) = z :=
|
| 58 |
+
hi (invFunOn_mem (hζS ht)) hzS ((invFunOn_eq (hζS ht)).trans he.symm)
|
| 59 |
+
simpa only [Function.comp_apply, heq, mem_ball] using hz
|
| 60 |
+
|
| 61 |
+
def crossingPatch (k : ℝ) : Set ℂ :=
|
| 62 |
+
{z | k - 1 ≤ z.re ∧ z.re ≤ k + 1 ∧ |z.im| ≤ 1}
|
| 63 |
+
|
| 64 |
+
theorem crossingPatch_subset_closedRibbon {k : ℝ} (hk : 1 ≤ k) :
|
| 65 |
+
crossingPatch k ⊆ closedRibbon := by
|
| 66 |
+
intro z hz
|
| 67 |
+
exact ⟨by linarith [hz.1], hz.2.2⟩
|
| 68 |
+
|
| 69 |
+
theorem transverse_template_ball_subset_patch (k : ℝ) {t : ℝ} (ht : t ∈ Icc (0 : ℝ) 1) :
|
| 70 |
+
closedBall (transverseTemplate k t) (1 / 8) ⊆ crossingPatch k := by
|
| 71 |
+
intro z hz
|
| 72 |
+
have hn : ‖z - transverseTemplate k t‖ ≤ 1 / 8 := by
|
| 73 |
+
simpa only [mem_closedBall, dist_eq_norm] using hz
|
| 74 |
+
have hre := (Complex.abs_re_le_norm (z - transverseTemplate k t)).trans hn
|
| 75 |
+
have him := (Complex.abs_im_le_norm (z - transverseTemplate k t)).trans hn
|
| 76 |
+
simp only [Complex.sub_re, Complex.sub_im, transverseTemplate, Complex.add_re,
|
| 77 |
+
Complex.add_im, Complex.ofReal_re, Complex.ofReal_im, Complex.mul_re,
|
| 78 |
+
Complex.mul_im, Complex.I_re, Complex.I_im, mul_zero, mul_one,
|
| 79 |
+
add_zero, zero_add, sub_zero] at hre him
|
| 80 |
+
have hr := abs_le.mp hre
|
| 81 |
+
have hi := abs_le.mp him
|
| 82 |
+
refine ⟨by linarith, by linarith, abs_le.mpr ⟨by linarith [ht.1], by linarith [ht.2]⟩⟩
|
| 83 |
+
|
| 84 |
+
/-- A single physical tube radius, independent of the past, forces a hit.
|
| 85 |
+
Every coordinate and continuity condition for the perturbed route is
|
| 86 |
+
derived from the actual patch embedding rather than assumed. -/
|
| 87 |
+
theorem physical_transverse_tube_hits_past
|
| 88 |
+
(hpublished : PublishedPlanarDiskOpenness)
|
| 89 |
+
(P : ℂ → ℂ) (hP : ContinuousOn P closedRibbon) (hi : InjOn P closedRibbon)
|
| 90 |
+
(K : ℝ≥0) (hK : 0 < (K : ℝ)) {k ε T : ℝ}
|
| 91 |
+
(hk : 1 ≤ k) (hε : 0 < ε) (hεsmall : ε ≤ 1 / 8) (hT : 0 < T)
|
| 92 |
+
(hlower : ∀ u ∈ crossingPatch k, ∀ v ∈ crossingPatch k,
|
| 93 |
+
dist u v ≤ K * dist (P u) (P v))
|
| 94 |
+
(γ xp ζ : ℝ → ℂ) (hxp : ContinuousOn xp (Icc 0 T))
|
| 95 |
+
(hγ : EqOn γ (P ∘ xp) (Icc 0 T))
|
| 96 |
+
(hxp0 : (xp 0).re = 0) (hxpT : (xp T).re = k)
|
| 97 |
+
(hcore : ∀ t ∈ Icc (0 : ℝ) T, |(xp t).im| ≤ ε)
|
| 98 |
+
(hζ : ContinuousOn ζ (Icc 0 1))
|
| 99 |
+
(hnear : ∀ t ∈ Icc (0 : ℝ) 1,
|
| 100 |
+
dist (ζ t) (P (transverseTemplate k t)) < (1 / 8 : ℝ) / K) :
|
| 101 |
+
∃ s ∈ Icc (0 : ℝ) T, ∃ t ∈ Icc (0 : ℝ) 1, γ s = ζ t := by
|
| 102 |
+
have hsub := crossingPatch_subset_closedRibbon hk
|
| 103 |
+
obtain ⟨hq, _, hmap, hnearq⟩ := physical_tube_has_coordinate_lift hpublished
|
| 104 |
+
P (crossingPatch k) (hP.mono hsub) (hi.mono hsub) K hK hlower
|
| 105 |
+
(transverseTemplate k) ζ (Icc 0 1) (by norm_num : (0 : ℝ) < 1 / 8)
|
| 106 |
+
(fun _ ht => transverse_template_ball_subset_patch k ht) hζ hnear
|
| 107 |
+
obtain ⟨s, hs, t, ht, he⟩ := near_transverse_template_hits_past xp
|
| 108 |
+
(invFunOn P (crossingPatch k) ∘ ζ) hT hk hε hεsmall le_rfl hxp hq
|
| 109 |
+
hxp0 hxpT hcore hnearq
|
| 110 |
+
exact ⟨s, hs, t, ht, (hγ hs).trans ((congrArg P he).trans (hmap ht))⟩
|
| 111 |
+
|
| 112 |
+
end SLEExactGauge.RibbonCoordinates
|
| 113 |
+
|
| 114 |
+
end
|
| 115 |
+
|
| 116 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/RibbonSequenceCompactness.lean
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Geometry.ActualGuideCompactness
|
| 2 |
+
import OAI.Probability.SLE.Gauge.RibbonCoordinateLimit
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-! Joint extraction of normalized Loewner charts, physical and parameter
|
| 7 |
+
guides, and local ribbon coordinate maps under a raw waypoint-angle bound. -/
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
open Set Filter MeasureTheory Metric
|
| 11 |
+
open scoped Topology NNReal
|
| 12 |
+
|
| 13 |
+
namespace SLEExactGauge
|
| 14 |
+
|
| 15 |
+
private theorem uniform_subsequence {X Y : Type*} [UniformSpace Y]
|
| 16 |
+
{f : ℕ → X → Y} {g : X → Y} {S : Set X}
|
| 17 |
+
(h : TendstoUniformlyOn f g atTop S) {ψ : ℕ → ℕ} (hψ : StrictMono ψ) :
|
| 18 |
+
TendstoUniformlyOn (fun n => f (ψ n)) g atTop S := by
|
| 19 |
+
intro u hu
|
| 20 |
+
exact hψ.tendsto_atTop.eventually (h u hu)
|
| 21 |
+
|
| 22 |
+
private theorem locally_uniform_subsequence {X Y : Type*} [TopologicalSpace X] [UniformSpace Y]
|
| 23 |
+
{f : ℕ → X → Y} {g : X → Y} {S : Set X}
|
| 24 |
+
(h : TendstoLocallyUniformlyOn f g atTop S) {ψ : ℕ → ℕ} (hψ : StrictMono ψ) :
|
| 25 |
+
TendstoLocallyUniformlyOn (fun n => f (ψ n)) g atTop S := by
|
| 26 |
+
intro u hu x hx
|
| 27 |
+
obtain ⟨V, hV, he⟩ := h u hu x hx
|
| 28 |
+
exact ⟨V, hV, hψ.tendsto_atTop.eventually he⟩
|
| 29 |
+
|
| 30 |
+
/-- The physical guide in the joint limit is the guide drawn in the
|
| 31 |
+
limiting coordinate chart. This uses uniform chart convergence, rather
|
| 32 |
+
than assuming the guide identity survives moving evaluation points. -/
|
| 33 |
+
theorem coordinate_guide_limit_identity
|
| 34 |
+
(Qₙ : ℕ → ℂ → ℂ) (Q : ℂ → ℂ) (K : Set ℂ) (hK : IsClosed K)
|
| 35 |
+
(hQ : ContinuousOn Q K) (hQconv : TendstoUniformlyOn Qₙ Q atTop K)
|
| 36 |
+
(xₙ : ℕ → ℝ) (x : ℝ) (hx : Tendsto xₙ atTop (𝓝 x))
|
| 37 |
+
(αₙ : ℕ → ℝ → ℂ) (α : ℝ → ℂ)
|
| 38 |
+
(hαconv : TendstoUniformlyOn αₙ α atTop (Icc 0 2))
|
| 39 |
+
(hmem : ∀ n t, t ∈ Icc (0 : ℝ) 2 →
|
| 40 |
+
RibbonCoordinates.guideCoordinate 0 (xₙ n) t ∈ K)
|
| 41 |
+
(hshape : ∀ n t, t ∈ Icc (0 : ℝ) 2 →
|
| 42 |
+
αₙ n t = Qₙ n (RibbonCoordinates.guideCoordinate 0 (xₙ n) t)) :
|
| 43 |
+
EqOn α (fun t => Q (RibbonCoordinates.guideCoordinate 0 x t)) (Icc 0 2) := by
|
| 44 |
+
intro t ht
|
| 45 |
+
have hqc : Continuous (fun y : ℝ => RibbonCoordinates.guideCoordinate 0 y t) := by
|
| 46 |
+
unfold RibbonCoordinates.guideCoordinate
|
| 47 |
+
fun_prop
|
| 48 |
+
have hqt := (hqc.tendsto x).comp hx
|
| 49 |
+
have hqK : RibbonCoordinates.guideCoordinate 0 x t ∈ K :=
|
| 50 |
+
hK.mem_of_tendsto hqt (Eventually.of_forall (fun n => hmem n t ht))
|
| 51 |
+
have hqwithin : Tendsto (fun n => RibbonCoordinates.guideCoordinate 0 (xₙ n) t)
|
| 52 |
+
atTop (𝓝[K] (RibbonCoordinates.guideCoordinate 0 x t)) :=
|
| 53 |
+
tendsto_nhdsWithin_iff.mpr ⟨hqt, Eventually.of_forall (fun n => hmem n t ht)⟩
|
| 54 |
+
have hlim := hQconv.tendsto_comp (hQ _ hqK) hqwithin
|
| 55 |
+
have halim : Tendsto (fun n => αₙ n t) atTop
|
| 56 |
+
(𝓝 (Q (RibbonCoordinates.guideCoordinate 0 x t))) := by
|
| 57 |
+
convert hlim using 1
|
| 58 |
+
funext n
|
| 59 |
+
exact hshape n t ht
|
| 60 |
+
exact tendsto_nhds_unique (hαconv.tendsto_at ht) halim
|
| 61 |
+
|
| 62 |
+
/-- The normalized Loewner charts and coordinate charts admit one common
|
| 63 |
+
subsequence under the raw waypoint-angle normalization hypothesis. -/
|
| 64 |
+
theorem actual_ribbon_joint_compactness
|
| 65 |
+
{Ω : Type} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
|
| 66 |
+
(κ : ℝ) (hκ : 0 < κ) (hκ8 : κ < 8)
|
| 67 |
+
(γ : Ω → ℝ≥0 → ℂ) (hSLE : IsOrdinaryChordalSLE κ γ P)
|
| 68 |
+
(hcompact : PublishedHalfPlaneUnivalentCompactness)
|
| 69 |
+
(hboundary : PublishedLoewnerBoundaryExtension)
|
| 70 |
+
(U : ℕ → ℝ≥0 → ℝ) (γₙ : ℕ → ℝ≥0 → ℂ)
|
| 71 |
+
(G F₀ : ℕ → ℝ≥0 → ℂ → ℂ)
|
| 72 |
+
(hU : ∀ n, Continuous (U n))
|
| 73 |
+
(hw : ∀ n, IsCapacityTwoWitness (U n) (γₙ n) (G n) (F₀ n))
|
| 74 |
+
(T : ℕ → ℝ≥0) (hT : ∀ n, 0 < T n)
|
| 75 |
+
(hfresh : ∀ n s, s < T n → γₙ n (T n) ∈ survivingDomain (γₙ n) s)
|
| 76 |
+
(αₙ : ℕ → ℝ → ℂ) (C : ℝ≥0) (s c A : ℝ)
|
| 77 |
+
(hC : 0 < (C : ℝ)) (hs : 0 < s) (hc : 0 < c)
|
| 78 |
+
(hαL : ∀ n, LipschitzOnWith C (αₙ n) (Icc 0 2))
|
| 79 |
+
(hα0 : ∀ n, αₙ n 0 = γₙ n (T n)) (haBound : ∀ n, ‖γₙ n (T n)‖ ≤ A)
|
| 80 |
+
(hchord : ∀ n u, u ∈ Icc (0 : ℝ) 2 → ∀ v, v ∈ Icc (0 : ℝ) 2 →
|
| 81 |
+
c * |u - v| ≤ dist (αₙ n u) (αₙ n v))
|
| 82 |
+
(hαD : ∀ n, MapsTo (αₙ n) (Ioc 0 2) (survivingDomain (γₙ n) (T n)))
|
| 83 |
+
(hclear : ∀ δ : ℝ, 0 < δ → δ ≤ 2 → ∃ r : ℝ, 0 < r ∧
|
| 84 |
+
∀ n t, t ∈ Icc δ 2 → ball (αₙ n t) r ⊆ survivingDomain (γₙ n) (T n))
|
| 85 |
+
(Qₙ : ℕ → ℂ → ℂ) (K : Set ℂ) (hK : IsCompact K)
|
| 86 |
+
(x₀ : ℂ) (hx₀ : x₀ ∈ K) (Cq Lq : ℝ≥0) (Rq : ℝ)
|
| 87 |
+
(hQupper : ∀ n, LipschitzOnWith Cq (Qₙ n) K)
|
| 88 |
+
(hQlower : ∀ n x, x ∈ K → ∀ y, y ∈ K → dist x y ≤ Lq * dist (Qₙ n x) (Qₙ n y))
|
| 89 |
+
(hQtip : ∀ n, ‖Qₙ n x₀‖ ≤ Rq)
|
| 90 |
+
(hQheight : ∀ n z, z ∈ K → 0 ≤ (Qₙ n z).im)
|
| 91 |
+
(hplanar : PublishedPlanarDiskOpenness)
|
| 92 |
+
(hangle : ∀ n, s ≤ (G n (T n) (αₙ n (1 / 2)) - (U n (T n) : ℂ)).im /
|
| 93 |
+
‖G n (T n) (αₙ n (1 / 2)) - (U n (T n) : ℂ)‖) :
|
| 94 |
+
∃ (Q : ℂ → ℂ) (b : ℕ → ℝ) (Fb : ℕ → ℂ → OnePoint ℂ) (βₙ : ℕ → ℝ → ℂ)
|
| 95 |
+
(φ : ℕ → ℕ) (F : ℂ → ℂ) (α β : ℝ → ℂ),
|
| 96 |
+
(∀ n, 0 < b n) ∧
|
| 97 |
+
(∀ n, ContinuousOn (Fb n) {z : ℂ | 0 ≤ z.im}) ∧
|
| 98 |
+
(∀ n z, z ∈ upperHalfPlane → Fb n z =
|
| 99 |
+
(normalizedInverse (F₀ n (T n)) (U n (T n)) (b n) z : OnePoint ℂ)) ∧
|
| 100 |
+
(∀ n, ContinuousOn (βₙ n) (Icc 0 2)) ∧
|
| 101 |
+
(∀ n, βₙ n 0 = 0) ∧
|
| 102 |
+
(∀ n t, t ∈ Icc (0 : ℝ) 2 → 0 ≤ (βₙ n t).im) ∧
|
| 103 |
+
(∀ n t, t ∈ Ioc (0 : ℝ) 2 → βₙ n t =
|
| 104 |
+
normalizedForward (G n (T n)) (U n (T n)) (b n) (αₙ n t)) ∧
|
| 105 |
+
(∀ n t, t ∈ Icc (0 : ℝ) 2 → Fb n (βₙ n t) = (αₙ n t : OnePoint ℂ)) ∧
|
| 106 |
+
StrictMono φ ∧ DifferentiableOn ℂ F upperHalfPlane ∧ InjOn F upperHalfPlane ∧
|
| 107 |
+
(∀ z ∈ upperHalfPlane, deriv F z ≠ 0) ∧ α 0 ∉ F '' upperHalfPlane ∧
|
| 108 |
+
TendstoLocallyUniformlyOn
|
| 109 |
+
(fun n => normalizedInverse (F₀ (φ n) (T (φ n))) (U (φ n) (T (φ n))) (b (φ n)))
|
| 110 |
+
F atTop upperHalfPlane ∧
|
| 111 |
+
TendstoUniformlyOn (fun n => αₙ (φ n)) α atTop (Icc 0 2) ∧
|
| 112 |
+
TendstoUniformlyOn (fun n => βₙ (φ n)) β atTop (Icc 0 2) ∧
|
| 113 |
+
Tendsto (fun n => γₙ (φ n) (T (φ n))) atTop (𝓝 (α 0)) ∧
|
| 114 |
+
LipschitzOnWith C α (Icc 0 2) ∧ ContinuousOn α (Icc 0 2) ∧ InjOn α (Icc 0 2) ∧
|
| 115 |
+
β 0 = 0 ∧ ContinuousOn β (Icc 0 2) ∧ InjOn β (Icc 0 2) ∧
|
| 116 |
+
MapsTo β (Ioc 0 2) upperHalfPlane ∧ EqOn (F ∘ β) α (Ioc 0 2) ∧
|
| 117 |
+
TendstoUniformlyOn (fun n => Qₙ (φ n)) Q atTop K ∧
|
| 118 |
+
LipschitzOnWith Cq Q K ∧
|
| 119 |
+
(∀ x ∈ K, ∀ y ∈ K, dist x y ≤ Lq * dist (Q x) (Q y)) ∧
|
| 120 |
+
InjOn Q K ∧ MapsTo Q (interior K) upperHalfPlane := by
|
| 121 |
+
obtain ⟨b, Fb, βₙ, φ, F, α, β, hb, hbar, hext, hβc, hβ0, hβH, hβeq,
|
| 122 |
+
hbarα, hφ, hF, hiF, hFne, homitlim, hFconv, hαconv, hβconv, hatip,
|
| 123 |
+
hαLlim, hαclim, hαilim, hβlim0, hβlimc, hβlimi, hβlimH, hlimrel⟩ :=
|
| 124 |
+
actual_guide_joint_compactness_with_family P κ hκ hκ8 γ hSLE hcompact hboundary
|
| 125 |
+
U γₙ G F₀ hU hw T hT hfresh αₙ C s c A hC hs hc hαL hα0 haBound hchord hαD hclear hangle
|
| 126 |
+
obtain ⟨Q, ψ, hψ, hQconv, hQu, hQl, hQi, hQH⟩ :=
|
| 127 |
+
RibbonCoordinates.exists_bilip_halfPlane_subsequence hplanar (fun n => Qₙ (φ n))
|
| 128 |
+
K hK x₀ hx₀ Cq Lq Rq (fun n => hQupper (φ n)) (fun n => hQlower (φ n))
|
| 129 |
+
(fun n => hQtip (φ n)) (fun n => hQheight (φ n))
|
| 130 |
+
have hFsub := locally_uniform_subsequence hFconv hψ
|
| 131 |
+
have hαsub := uniform_subsequence hαconv hψ
|
| 132 |
+
have hβsub := uniform_subsequence hβconv hψ
|
| 133 |
+
exact ⟨Q, b, Fb, βₙ, φ ∘ ψ, F, α, β, hb, hbar, hext, hβc, hβ0, hβH,
|
| 134 |
+
hβeq, hbarα, hφ.comp hψ, hF, hiF, hFne, homitlim, hFsub, hαsub, hβsub,
|
| 135 |
+
hatip.comp hψ.tendsto_atTop, hαLlim, hαclim, hαilim, hβlim0, hβlimc, hβlimi,
|
| 136 |
+
hβlimH, hlimrel, hQconv, hQu, hQl, hQi, hQH⟩
|
| 137 |
+
|
| 138 |
+
end SLEExactGauge
|
| 139 |
+
|
| 140 |
+
end
|
| 141 |
+
|
| 142 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/RibbonSideCorridors.lean
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.RibbonCoordinateGeometry
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
/-! The two strips outside the narrow core are in the actual surviving
|
| 6 |
+
component. Their connection to the unbounded future excludes filled hulls,
|
| 7 |
+
even when the stopped past is not simple. -/
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
open Set Filter Metric
|
| 11 |
+
open scoped Topology NNReal
|
| 12 |
+
|
| 13 |
+
namespace SLEExactGauge.RibbonCoordinates
|
| 14 |
+
|
| 15 |
+
def sideCorridor (a b : ℝ) : Set ℂ :=
|
| 16 |
+
{z | 0 < z.re ∧ z.im ∈ Ioo a b}
|
| 17 |
+
|
| 18 |
+
theorem sideCorridor_convex (a b : ℝ) : Convex ℝ (sideCorridor a b) := by
|
| 19 |
+
exact (convex_halfSpace_gt Complex.reLm.isLinear 0).inter
|
| 20 |
+
((convex_Ioo a b).is_linear_preimage Complex.imLm.isLinear)
|
| 21 |
+
|
| 22 |
+
/-- A strip strictly outside the past's core connects to the free future
|
| 23 |
+
and hence is in the unbounded surviving domain. This covers either side. -/
|
| 24 |
+
theorem sideCorridor_survives
|
| 25 |
+
(P : ℂ → ℂ) (hP : ContinuousOn P closedRibbon) (hi : InjOn P closedRibbon)
|
| 26 |
+
(hH : ∀ z ∈ closedRibbon, 0 < z.re → P z ∈ upperHalfPlane)
|
| 27 |
+
(γ : ℝ≥0 → ℂ) (T : ℝ≥0) {k ε a b : ℝ} (hk : 0 ≤ k)
|
| 28 |
+
(hab : a < b) (ha : -1 ≤ a) (hb : b ≤ 1)
|
| 29 |
+
(hgap : ∀ x ∈ Ioo a b, ε < |x|)
|
| 30 |
+
(hpast : γ '' Icc 0 T ⊆
|
| 31 |
+
P '' {z ∈ closedRibbon | z.re ≤ k ∧ |z.im| ≤ ε})
|
| 32 |
+
(hunbounded : ¬ Bornology.IsBounded (P '' futureRibbon k)) :
|
| 33 |
+
P '' sideCorridor a b ⊆ survivingDomain γ T := by
|
| 34 |
+
have hsideSub : sideCorridor a b ⊆ closedRibbon := by
|
| 35 |
+
intro z hz
|
| 36 |
+
exact ⟨hz.1.le, (abs_lt.mpr ⟨ha.trans_lt hz.2.1, hz.2.2.trans_le hb⟩).le⟩
|
| 37 |
+
have hfutureSub := futureRibbon_subset_closedRibbon hk
|
| 38 |
+
let S := sideCorridor a b ∪ futureRibbon k
|
| 39 |
+
have hSsub : S ⊆ closedRibbon := union_subset hsideSub hfutureSub
|
| 40 |
+
let z : ℂ := ((k + 1 : ℝ) : ℂ) + (((a + b) / 2 : ℝ) : ℂ) * Complex.I
|
| 41 |
+
have hzre : z.re = k + 1 := by simp [z]
|
| 42 |
+
have hzim : z.im = (a + b) / 2 := by simp [z]
|
| 43 |
+
have hzm : z.im ∈ Ioo a b := by rw [hzim]; constructor <;> linarith
|
| 44 |
+
have hzside : z ∈ sideCorridor a b := ⟨by rw [hzre]; linarith, hzm⟩
|
| 45 |
+
have hzfuture : z ∈ futureRibbon k :=
|
| 46 |
+
⟨by rw [hzre]; linarith,
|
| 47 |
+
abs_lt.mpr ⟨ha.trans_lt hzm.1, hzm.2.trans_le hb⟩⟩
|
| 48 |
+
have hSconn : IsPreconnected S :=
|
| 49 |
+
(sideCorridor_convex a b).isPreconnected.union z hzside hzfuture
|
| 50 |
+
(futureRibbon_convex k).isPreconnected
|
| 51 |
+
have hfree : P '' S ⊆ upperHalfPlane \ (γ '' Icc 0 T) := by
|
| 52 |
+
rintro y ⟨u, hu, rfl⟩
|
| 53 |
+
have huH : 0 < u.re := by
|
| 54 |
+
rcases hu with hu | hu
|
| 55 |
+
· exact hu.1
|
| 56 |
+
· exact hk.trans_lt hu.1
|
| 57 |
+
refine ⟨hH u (hSsub hu) huH, ?_⟩
|
| 58 |
+
intro hp
|
| 59 |
+
obtain ⟨v, hv, he⟩ := hpast hp
|
| 60 |
+
have hvu := hi hv.1 (hSsub hu) he
|
| 61 |
+
rw [hvu] at hv
|
| 62 |
+
rcases hu with hu | hu
|
| 63 |
+
· exact (not_le_of_gt (hgap u.im hu.2)) hv.2.2
|
| 64 |
+
· exact (not_le_of_gt hu.1) hv.2.1
|
| 65 |
+
have hSunbounded : ¬ Bornology.IsBounded (P '' S) := by
|
| 66 |
+
intro hbound
|
| 67 |
+
exact hunbounded (hbound.subset (image_mono subset_union_right))
|
| 68 |
+
exact (image_mono subset_union_left).trans
|
| 69 |
+
(free_preconnected_subset_surviving γ T (P '' S)
|
| 70 |
+
(hSconn.image P (hP.mono hSsub)) hfree hSunbounded)
|
| 71 |
+
|
| 72 |
+
end SLEExactGauge.RibbonCoordinates
|
| 73 |
+
|
| 74 |
+
end
|
| 75 |
+
|
| 76 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/RibbonStepPatch.lean
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.RibbonAccessGuide
|
| 2 |
+
import OAI.Probability.SLE.Gauge.RibbonRouteLifting
|
| 3 |
+
import OAI.Probability.SLE.Gauge.RibbonLimitPassageGeometry
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
/-! A fixed compact coordinate patch for the actual one-step ribbon. -/
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
open Set Filter Metric
|
| 11 |
+
open scoped Topology NNReal
|
| 12 |
+
|
| 13 |
+
namespace SLEExactGauge.RibbonCoordinates
|
| 14 |
+
|
| 15 |
+
/-- The length-four patch used for one step and its two-sided waypoint routes. -/
|
| 16 |
+
def ribbonStepPatch (k : ℝ) : Set ℂ :=
|
| 17 |
+
{z | k - 1 ≤ z.re ∧ z.re ≤ k + 3 ∧ |z.im| ≤ 1}
|
| 18 |
+
|
| 19 |
+
/-- A padded compact patch in coordinates relative to the current front. -/
|
| 20 |
+
def ribbonStepCompact : Set ℂ :=
|
| 21 |
+
{z | -(1 / 2 : ℝ) ≤ z.re ∧ z.re ≤ 5 / 2 ∧ |z.im| ≤ 1 / 2}
|
| 22 |
+
|
| 23 |
+
theorem ribbonStepCompact_isCompact : IsCompact ribbonStepCompact := by
|
| 24 |
+
have hc : IsClosed ribbonStepCompact :=
|
| 25 |
+
(isClosed_le continuous_const Complex.continuous_re).inter
|
| 26 |
+
((isClosed_le Complex.continuous_re continuous_const).inter
|
| 27 |
+
(isClosed_le Complex.continuous_im.abs continuous_const))
|
| 28 |
+
apply (isCompact_closedBall (0 : ℂ) 4).of_isClosed_subset hc
|
| 29 |
+
intro z hz
|
| 30 |
+
have hre : |z.re| ≤ 5 / 2 := abs_le.mpr ⟨by linarith [hz.1], hz.2.1⟩
|
| 31 |
+
have hn := Complex.norm_le_abs_re_add_abs_im z
|
| 32 |
+
simpa only [mem_closedBall, dist_zero_right] using
|
| 33 |
+
(show ‖z‖ ≤ 4 by linarith [hz.2.2])
|
| 34 |
+
|
| 35 |
+
theorem ribbonStepCompact_interior
|
| 36 |
+
{z : ℂ} (hre : -(1 / 2 : ℝ) < z.re ∧ z.re < 5 / 2)
|
| 37 |
+
(him : |z.im| < 1 / 2) : z ∈ interior ribbonStepCompact := by
|
| 38 |
+
let V : Set ℂ := {z | -(1 / 2 : ℝ) < z.re ∧ z.re < 5 / 2 ∧ |z.im| < 1 / 2}
|
| 39 |
+
have hV : IsOpen V := (isOpen_lt continuous_const Complex.continuous_re).inter
|
| 40 |
+
((isOpen_lt Complex.continuous_re continuous_const).inter
|
| 41 |
+
(isOpen_lt Complex.continuous_im.abs continuous_const))
|
| 42 |
+
have hVK : V ⊆ ribbonStepCompact := by
|
| 43 |
+
intro w hw
|
| 44 |
+
exact ⟨hw.1.le, hw.2.1.le, hw.2.2.le⟩
|
| 45 |
+
exact interior_maximal hVK hV ⟨hre.1, hre.2, him⟩
|
| 46 |
+
|
| 47 |
+
theorem ribbonStepCompact_zero : (0 : ℂ) ∈ ribbonStepCompact := by
|
| 48 |
+
change -(1 / 2 : ℝ) ≤ 0 ∧ (0 : ℝ) ≤ 5 / 2 ∧ |(0 : ℝ)| ≤ 1 / 2
|
| 49 |
+
norm_num
|
| 50 |
+
|
| 51 |
+
theorem ribbonStepCompact_core {ε : ℝ} (hε : ε ≤ 1 / 8) :
|
| 52 |
+
{z : ℂ | 0 ≤ z.re ∧ z.re ≤ 2 ∧ |z.im| ≤ ε / 4} ⊆
|
| 53 |
+
interior ribbonStepCompact := by
|
| 54 |
+
intro z hz
|
| 55 |
+
apply ribbonStepCompact_interior
|
| 56 |
+
· constructor <;> linarith [hz.1, hz.2.1]
|
| 57 |
+
· linarith [hz.2.2]
|
| 58 |
+
|
| 59 |
+
theorem ribbonStepCompact_passage {ε : ℝ} (hε : ε ≤ 1 / 8)
|
| 60 |
+
(C : ℝ≥0) (η : ℝ) :
|
| 61 |
+
ribbonStepCompact ∩ passageCoordinateRegion C ε η ⊆ interior ribbonStepCompact := by
|
| 62 |
+
intro z hz
|
| 63 |
+
apply ribbonStepCompact_interior
|
| 64 |
+
· constructor <;> linarith [hz.2.1, hz.2.2.1]
|
| 65 |
+
· linarith [hz.2.2.2.1]
|
| 66 |
+
|
| 67 |
+
theorem guidePatch_subset_ribbonStepPatch (k : ℝ) :
|
| 68 |
+
guidePatch k ⊆ ribbonStepPatch k := by
|
| 69 |
+
intro z hz
|
| 70 |
+
exact ⟨by linarith [hz.1], hz.2.1, hz.2.2⟩
|
| 71 |
+
|
| 72 |
+
theorem crossingPatch_subset_ribbonStepPatch (k : ℝ) :
|
| 73 |
+
crossingPatch k ⊆ ribbonStepPatch k := by
|
| 74 |
+
intro z hz
|
| 75 |
+
exact ⟨hz.1, by linarith [hz.2.1], hz.2.2⟩
|
| 76 |
+
|
| 77 |
+
theorem translate_ribbonStepCompact {k : ℝ} {z : ℂ} (hz : z ∈ ribbonStepCompact) :
|
| 78 |
+
(k : ℂ) + z ∈ ribbonStepPatch k := by
|
| 79 |
+
change k - 1 ≤ k + z.re ∧ k + z.re ≤ k + 3 ∧ |0 + z.im| ≤ 1
|
| 80 |
+
exact ⟨by linarith [hz.1], by linarith [hz.2.1], by simpa using hz.2.2.trans (by norm_num)⟩
|
| 81 |
+
|
| 82 |
+
theorem guideCoordinate_translate (k x t : ℝ) :
|
| 83 |
+
(k : ℂ) + guideCoordinate 0 x t = guideCoordinate k x t := by
|
| 84 |
+
apply Complex.ext <;> simp [guideCoordinate]
|
| 85 |
+
|
| 86 |
+
end SLEExactGauge.RibbonCoordinates
|
| 87 |
+
|
| 88 |
+
end
|
| 89 |
+
|
| 90 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/RibbonStepSuccess.lean
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.RibbonGoodPrefix
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
/-! Actual passage-and-mass successes are measured in the next global
|
| 6 |
+
front past, with the earlier global front as the mass window's start. -/
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
open Set Filter MeasureTheory ProbabilityTheory Metric
|
| 10 |
+
open scoped Topology NNReal ENNReal
|
| 11 |
+
|
| 12 |
+
namespace SLEExactGauge
|
| 13 |
+
open RibbonCoordinates FirstFrontPassage FrontSuccessMeasurability
|
| 14 |
+
|
| 15 |
+
local instance stepSuccessPathMeasurable : MeasurableSpace C(ℝ≥0, ℂ) := borel _
|
| 16 |
+
local instance stepSuccessPathBorel : BorelSpace C(ℝ≥0, ℂ) := ⟨rfl⟩
|
| 17 |
+
|
| 18 |
+
def RibbonStepSuccess {Ω : Type*} (γ : Ω → ℝ≥0 → ℂ)
|
| 19 |
+
(σ τ : Ω → WithTop ℝ≥0) (P : ℂ → ℂ) (ε κ v c : ℝ) (R : Set ℂ) : Set Ω :=
|
| 20 |
+
GoodRibbonPrefix γ τ P ε ∩ {ω | ENNReal.ofReal c ≤
|
| 21 |
+
segmentSausageCharge κ (γ ω) ((σ ω).untopD 0) ((τ ω).untopD 0) v R}
|
| 22 |
+
|
| 23 |
+
lemma stoppedAtPath_eq_on_prefix (f : C(ℝ≥0, ℂ)) (t : ℝ≥0) :
|
| 24 |
+
EqOn (stoppedAtPath f (t : WithTop ℝ≥0)) f (Icc 0 t) := by
|
| 25 |
+
intro u hu
|
| 26 |
+
simp only [stoppedAtPath, WithTop.coe_ne_top, ite_false, WithTop.untopD_coe,
|
| 27 |
+
clampedPath, ContinuousMap.comp_apply, ContinuousMap.coe_mk, min_eq_left hu.2,
|
| 28 |
+
max_eq_right hu.1]
|
| 29 |
+
|
| 30 |
+
lemma segmentSausageCharge_shift
|
| 31 |
+
(κ : ℝ) (γ : ℝ≥0 → ℂ) (T S : ℝ≥0) (v : ℝ) (R : Set ℂ) :
|
| 32 |
+
segmentSausageCharge κ (fun t => γ (T + t)) 0 S v R =
|
| 33 |
+
segmentSausageCharge κ γ T (T + S) v R := by
|
| 34 |
+
have hs : sourceSausageSet (fun t => γ (T + t)) 0 S v =
|
| 35 |
+
sourceSausageSet γ T (T + S) v := by
|
| 36 |
+
ext z
|
| 37 |
+
constructor
|
| 38 |
+
· rintro ⟨t, ht, hd⟩
|
| 39 |
+
exact ⟨T + t, ⟨le_add_of_nonneg_right bot_le, add_le_add le_rfl ht.2⟩, hd⟩
|
| 40 |
+
· rintro ⟨t, ht, hd⟩
|
| 41 |
+
refine ⟨t - T, ⟨bot_le, ?_⟩, ?_⟩
|
| 42 |
+
· exact (tsub_le_iff_right).mpr (by simpa only [add_comm] using ht.2)
|
| 43 |
+
· simpa only [add_tsub_cancel_of_le ht.1] using hd
|
| 44 |
+
simp only [segmentSausageCharge, hs]
|
| 45 |
+
|
| 46 |
+
/-- The whole actual step and its sausage lower bound are adapted to the
|
| 47 |
+
next front. Both global front times may be infinite off success. -/
|
| 48 |
+
theorem ribbonStepSuccess_measurable
|
| 49 |
+
{Ω : Type*} [mΩ : MeasurableSpace Ω] (ℱ : Filtration ℝ≥0 mΩ)
|
| 50 |
+
(γ : Ω → ℝ≥0 → ℂ) (ha : Adapted ℱ (fun t ω => γ ω t))
|
| 51 |
+
(hc : ∀ ω, Continuous (γ ω))
|
| 52 |
+
(σ τ : Ω → WithTop ℝ≥0) (hσ : IsStoppingTime ℱ σ) (hτ : IsStoppingTime ℱ τ)
|
| 53 |
+
(hστ : σ ≤ τ) (P : ℂ → ℂ)
|
| 54 |
+
(he : Topology.IsClosedEmbedding (fun z : closedRibbon => P z))
|
| 55 |
+
(ε κ v c : ℝ) (R : Set ℂ) :
|
| 56 |
+
MeasurableSet[hτ.measurableSpace] (RibbonStepSuccess γ σ τ P ε κ v c R) := by
|
| 57 |
+
let f := fun ω => stoppedAtPath (sourceTracePath γ hc ω) (τ ω)
|
| 58 |
+
have hfm : Measurable[hτ.measurableSpace] f := stoppedAtPath_measurable ℱ γ ha hc τ hτ
|
| 59 |
+
have htm : Measurable[hτ.measurableSpace] (fun ω => (τ ω).untopD 0) := hτ.measurable.untopD 0
|
| 60 |
+
have hsm : Measurable[hτ.measurableSpace] (fun ω => (σ ω).untopD 0) :=
|
| 61 |
+
(hσ.measurable.mono (IsStoppingTime.measurableSpace_mono hσ hτ hστ) le_rfl).untopD 0
|
| 62 |
+
have hgood := goodRibbonPrefix_measurable ℱ γ ha hc τ hτ P he ε
|
| 63 |
+
let : MeasurableSpace Ω := hτ.measurableSpace
|
| 64 |
+
have hm := hgood.inter
|
| 65 |
+
(measurableSet_le (measurable_const : Measurable (fun _ : Ω => ENNReal.ofReal c))
|
| 66 |
+
(segmentSausageCharge_measurable f hfm _ _ hsm htm κ v R))
|
| 67 |
+
convert hm using 1
|
| 68 |
+
ext ω
|
| 69 |
+
by_cases hω : ω ∈ GoodRibbonPrefix γ τ P ε
|
| 70 |
+
· have ht := hω.1
|
| 71 |
+
lift τ ω to ℝ≥0 using ht with t hτt
|
| 72 |
+
have hs := sourceSausageSet_congr_interval
|
| 73 |
+
(s := (σ ω).untopD 0) (t := t)
|
| 74 |
+
(fun u hu => stoppedAtPath_eq_on_prefix (sourceTracePath γ hc ω) t
|
| 75 |
+
⟨bot_le, hu.2⟩) v
|
| 76 |
+
simp only [RibbonStepSuccess, mem_inter_iff, mem_ofPred_eq, hω, true_and,
|
| 77 |
+
f, ← hτt, WithTop.untopD_coe, segmentSausageCharge, hs]
|
| 78 |
+
rfl
|
| 79 |
+
· simp only [RibbonStepSuccess, mem_inter_iff, mem_ofPred_eq, hω, false_and]
|
| 80 |
+
|
| 81 |
+
end SLEExactGauge
|
| 82 |
+
|
| 83 |
+
end
|
| 84 |
+
|
| 85 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/RibbonStepTranslation.lean
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.UniformActualRibbonPassage
|
| 2 |
+
import OAI.Probability.SLE.Gauge.LocalAffinePassage
|
| 3 |
+
import OAI.Probability.SLE.Gauge.RibbonMiddleMass
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
/-! The recentered passage uses precisely the original ribbon coordinate
|
| 8 |
+
and original middle strip after translating back by the actual tip. -/
|
| 9 |
+
|
| 10 |
+
noncomputable section
|
| 11 |
+
open Set Filter MeasureTheory
|
| 12 |
+
open scoped Topology NNReal ENNReal
|
| 13 |
+
|
| 14 |
+
namespace SLEExactGauge
|
| 15 |
+
open RibbonCoordinates RibbonPassageScaling BoundaryScaleLaw
|
| 16 |
+
|
| 17 |
+
def RibbonHistory.stepChart {C L : ℝ≥0} {ε : ℝ}
|
| 18 |
+
(d : RibbonHistory C L ε) (z : ℂ) : ℂ := d.chart ((d.front : ℂ) + z)
|
| 19 |
+
|
| 20 |
+
lemma RibbonHistory.stepCompact_maps {C L : ℝ≥0} {ε : ℝ}
|
| 21 |
+
(d : RibbonHistory C L ε) :
|
| 22 |
+
MapsTo (fun z : ℂ => (d.front : ℂ) + z) ribbonStepCompact closedRibbon := by
|
| 23 |
+
intro z hz
|
| 24 |
+
change 0 ≤ d.front + z.re ∧ |0 + z.im| ≤ 1
|
| 25 |
+
exact ⟨by linarith [d.front_ge_one, hz.1], by simpa using hz.2.2.trans (by norm_num)⟩
|
| 26 |
+
|
| 27 |
+
lemma RibbonHistory.recenteredChart_injOn {C L : ℝ≥0} {ε : ℝ}
|
| 28 |
+
(d : RibbonHistory C L ε) : InjOn d.recenteredChart ribbonStepCompact := by
|
| 29 |
+
intro u hu v hv huv
|
| 30 |
+
have he := d.chart_injective (d.stepCompact_maps hu) (d.stepCompact_maps hv)
|
| 31 |
+
(sub_left_inj.mp huv)
|
| 32 |
+
exact add_left_cancel he
|
| 33 |
+
|
| 34 |
+
lemma RibbonHistory.step_progress_agrees {C L : ℝ≥0} {ε : ℝ}
|
| 35 |
+
(d : RibbonHistory C L ε) :
|
| 36 |
+
∀ z ∈ d.recenteredChart '' ribbonStepCompact,
|
| 37 |
+
longitudinalCoordinate d.chart closedRibbon d.front (affine (d.trace d.time) 1 z) =
|
| 38 |
+
longitudinalCoordinate d.recenteredChart ribbonStepCompact 0 z := by
|
| 39 |
+
rintro z ⟨w, hw, rfl⟩
|
| 40 |
+
have he : affine (d.trace d.time) 1 (d.recenteredChart w) =
|
| 41 |
+
d.chart ((d.front : ℂ) + w) := by
|
| 42 |
+
simp only [affine, Complex.ofReal_one, one_mul, RibbonHistory.recenteredChart]
|
| 43 |
+
abel
|
| 44 |
+
rw [he]
|
| 45 |
+
simp only [longitudinalCoordinate,
|
| 46 |
+
coordinateInverse_left d.chart_injective (d.stepCompact_maps hw),
|
| 47 |
+
coordinateInverse_left d.recenteredChart_injOn hw, Complex.add_re,
|
| 48 |
+
Complex.ofReal_re, add_sub_cancel_left, sub_zero]
|
| 49 |
+
|
| 50 |
+
lemma RibbonHistory.affine_recentered {C L : ℝ≥0} {ε : ℝ}
|
| 51 |
+
(d : RibbonHistory C L ε) :
|
| 52 |
+
(fun z => affine (d.trace d.time) 1 (d.recenteredChart z)) = d.stepChart := by
|
| 53 |
+
funext z
|
| 54 |
+
simp only [affine, Complex.ofReal_one, one_mul, RibbonHistory.recenteredChart,
|
| 55 |
+
RibbonHistory.stepChart]
|
| 56 |
+
abel
|
| 57 |
+
|
| 58 |
+
lemma RibbonHistory.passage_translate {C L : ℝ≥0} {ε : ℝ}
|
| 59 |
+
(d : RibbonHistory C L ε) :
|
| 60 |
+
affine (d.trace d.time) 1 ''
|
| 61 |
+
physicalPassageRegion d.recenteredChart ribbonStepCompact C ε (ε / L) =
|
| 62 |
+
physicalPassageRegion d.stepChart ribbonStepCompact C ε (ε / L) := by
|
| 63 |
+
unfold physicalPassageRegion
|
| 64 |
+
rw [← image_comp]
|
| 65 |
+
exact congrArg (fun f : ℂ → ℂ => f '' _) d.affine_recentered
|
| 66 |
+
|
| 67 |
+
lemma RibbonHistory.middle_translate {C L : ℝ≥0} {ε : ℝ}
|
| 68 |
+
(d : RibbonHistory C L ε) (hε : ε ≤ 1 / 8) :
|
| 69 |
+
affine (d.trace d.time) 1 ''
|
| 70 |
+
physicalMiddleRegion d.recenteredChart ribbonStepCompact 0 ε =
|
| 71 |
+
physicalMiddleRegion d.chart closedRibbon d.front ε := by
|
| 72 |
+
unfold physicalMiddleRegion
|
| 73 |
+
rw [← image_comp]
|
| 74 |
+
rw [show affine (d.trace d.time) 1 ∘ d.recenteredChart = d.stepChart from
|
| 75 |
+
d.affine_recentered]
|
| 76 |
+
ext z
|
| 77 |
+
constructor
|
| 78 |
+
· rintro ⟨w, ⟨hw, hwl, hwu, hwi⟩, rfl⟩
|
| 79 |
+
refine ⟨(d.front : ℂ) + w, ⟨d.stepCompact_maps hw, ?_, ?_, ?_⟩, rfl⟩
|
| 80 |
+
· simpa only [Complex.add_re, Complex.ofReal_re, add_sub_cancel_left, sub_zero] using hwl
|
| 81 |
+
· simpa only [Complex.add_re, Complex.ofReal_re, add_sub_cancel_left, sub_zero] using hwu
|
| 82 |
+
· simpa only [Complex.add_im, Complex.ofReal_im, zero_add] using hwi
|
| 83 |
+
· rintro ⟨w, ⟨_, hwl, hwu, hwi⟩, rfl⟩
|
| 84 |
+
refine ⟨w - (d.front : ℂ), ⟨?_, ?_, ?_, ?_⟩, ?_⟩
|
| 85 |
+
· change -(1 / 2 : ℝ) ≤ w.re - d.front ∧ w.re - d.front ≤ 5 / 2 ∧
|
| 86 |
+
|w.im - 0| ≤ 1 / 2
|
| 87 |
+
exact ⟨by linarith, by linarith, by simpa using hwi.le.trans (by linarith)⟩
|
| 88 |
+
· simpa only [Complex.sub_re, Complex.ofReal_re, sub_zero] using hwl
|
| 89 |
+
· simpa only [Complex.sub_re, Complex.ofReal_re, sub_zero] using hwu
|
| 90 |
+
· simpa only [Complex.sub_im, Complex.ofReal_im, sub_zero] using hwi
|
| 91 |
+
· simp only [RibbonHistory.stepChart, add_sub_cancel]
|
| 92 |
+
|
| 93 |
+
/-- Translating the actual finite boundary image back to its original tip
|
| 94 |
+
preserves the full probability, including the original middle-strip mass. -/
|
| 95 |
+
theorem RibbonHistory.frontMass_probability_translate
|
| 96 |
+
{Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
|
| 97 |
+
{C L : ℝ≥0} {ε : ℝ} (d : RibbonHistory C L ε) (hε : ε ≤ 1 / 8)
|
| 98 |
+
(η : Ω → ℝ≥0 → ℂ) (κ v c : ℝ) (hv : 0 < v) :
|
| 99 |
+
P {ω | (fun t => affine (d.trace d.time) 1 (η ω t)) ∈
|
| 100 |
+
{f : ℝ≥0 → ℂ | f ∈ PassageSuccess.FrontSuccess
|
| 101 |
+
(fun _ (f : ℝ≥0 → ℂ) => f)
|
| 102 |
+
(fun _ => longitudinalCoordinate d.chart closedRibbon d.front) (fun _ => 0)
|
| 103 |
+
(fun _ => physicalPassageRegion d.stepChart ribbonStepCompact C ε (ε / L))
|
| 104 |
+
(fun _ => d.chart ((d.front : ℂ) + 1)) (ε / L) 0 ∧
|
| 105 |
+
ENNReal.ofReal c ≤ segmentSausageCharge κ f 0
|
| 106 |
+
(FirstFrontPassage.frontTime
|
| 107 |
+
(fun t => longitudinalCoordinate d.chart closedRibbon d.front (f t)) 1)
|
| 108 |
+
v (physicalMiddleRegion d.chart closedRibbon d.front ε)}} =
|
| 109 |
+
P {ω | η ω ∈ PassageSuccess.FrontSuccess
|
| 110 |
+
(fun _ (f : ℝ≥0 → ℂ) => f)
|
| 111 |
+
(fun _ => longitudinalCoordinate d.recenteredChart ribbonStepCompact 0) (fun _ => 0)
|
| 112 |
+
(fun _ => physicalPassageRegion d.recenteredChart ribbonStepCompact C ε (ε / L))
|
| 113 |
+
(fun _ => d.recenteredChart 1) (ε / L) 0 ∧
|
| 114 |
+
ENNReal.ofReal c ≤ segmentSausageCharge κ (η ω) 0
|
| 115 |
+
(FirstFrontPassage.frontTime
|
| 116 |
+
(fun t => longitudinalCoordinate d.recenteredChart ribbonStepCompact 0 (η ω t)) 1)
|
| 117 |
+
v (physicalMiddleRegion d.recenteredChart ribbonStepCompact 0 ε)} := by
|
| 118 |
+
have hh := frontSuccess_mass_probability_affine_local P
|
| 119 |
+
(fun _ => η) (fun _ => longitudinalCoordinate d.recenteredChart ribbonStepCompact 0)
|
| 120 |
+
(fun _ => longitudinalCoordinate d.chart closedRibbon d.front) (fun _ => 0)
|
| 121 |
+
(fun _ => physicalPassageRegion d.recenteredChart ribbonStepCompact C ε (ε / L))
|
| 122 |
+
(fun _ => d.recenteredChart 1) (ε / L) (d.trace d.time) (by norm_num : (0 : ℝ) < 1) 0
|
| 123 |
+
(fun z hz => d.step_progress_agrees z (image_mono inter_subset_left hz))
|
| 124 |
+
κ (physicalMiddleRegion d.recenteredChart ribbonStepCompact 0 ε) hv c
|
| 125 |
+
have htarget : affine (d.trace d.time) 1 (d.recenteredChart 1) =
|
| 126 |
+
d.chart ((d.front : ℂ) + 1) := congrFun d.affine_recentered 1
|
| 127 |
+
simpa only [d.passage_translate, d.middle_translate hε, htarget, one_mul,
|
| 128 |
+
Real.one_rpow, mul_one, mem_ofPred_eq, PassageSuccess.FrontSuccess] using hh
|
| 129 |
+
|
| 130 |
+
end SLEExactGauge
|
| 131 |
+
|
| 132 |
+
end
|
| 133 |
+
|
| 134 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/RibbonStoppedMassLaw.lean
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.RibbonStoppedMassTransport
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
/-! Transfer a completed-ribbon experiment through the actual SLE scaling
|
| 6 |
+
law on continuous traces. No uniform step estimate is reapplied to a chart
|
| 7 |
+
whose spatial scale varies with the number of strips. -/
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
open Set Filter MeasureTheory
|
| 11 |
+
open scoped Topology NNReal ENNReal
|
| 12 |
+
|
| 13 |
+
namespace SLEExactGauge
|
| 14 |
+
open RibbonCoordinates ScaleTraceLaw RibbonPassageScaling
|
| 15 |
+
|
| 16 |
+
local instance : MeasurableSpace C(ℝ≥0, ℂ) := borel _
|
| 17 |
+
local instance : BorelSpace C(ℝ≥0, ℂ) := ⟨rfl⟩
|
| 18 |
+
|
| 19 |
+
lemma ribbonStoppedMass_scale_probability
|
| 20 |
+
{Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω)
|
| 21 |
+
(f : Ω → C(ℝ≥0, ℂ)) (hf : Measurable f)
|
| 22 |
+
(c : ℝ≥0) (hc : 0 < c)
|
| 23 |
+
(hlaw : μ.map (fun ω => scalePath c (f ω)) = μ.map f)
|
| 24 |
+
(P : ℂ → ℂ)
|
| 25 |
+
(he : Topology.IsClosedEmbedding (fun z : closedRibbon => (c : ℂ) * P z))
|
| 26 |
+
(g g' : C(ℂ, ℝ)) (hgg' : ∀ z : ℂ, g' ((c : ℂ) * z) = g z)
|
| 27 |
+
(k ε κ : ℝ) {v : ℝ} (hv : 0 < v) (D : Set ℂ) (b : ℝ≥0∞) :
|
| 28 |
+
μ {ω | f ω ∈ ribbonStoppedMassEvent P g k ε κ v D b} ≤
|
| 29 |
+
μ {ω | f ω ∈ ribbonStoppedMassEvent (fun z => (c : ℂ) * P z) g' k ε κ
|
| 30 |
+
((c : ℝ) * v) (affine 0 c '' D) (ENNReal.ofReal ((c : ℝ) ^ dimension κ) * b)} := by
|
| 31 |
+
let E := ribbonStoppedMassEvent (fun z => (c : ℂ) * P z) g' k ε κ
|
| 32 |
+
((c : ℝ) * v) (affine 0 c '' D) (ENNReal.ofReal ((c : ℝ) ^ dimension κ) * b)
|
| 33 |
+
have hE : MeasurableSet E := measurableSet_ribbonStoppedMassEvent _ he g' k ε κ _ _ _
|
| 34 |
+
calc
|
| 35 |
+
_ ≤ μ {ω | scalePath c (f ω) ∈ E} := measure_mono (fun ω hω =>
|
| 36 |
+
mem_ribbonStoppedMassEvent_scalePath c hc (f ω) P g g' hgg' k ε κ hv D b hω)
|
| 37 |
+
_ = (μ.map (fun ω => scalePath c (f ω))) E :=
|
| 38 |
+
(Measure.map_apply ((measurable_scalePath c).comp hf) hE).symm
|
| 39 |
+
_ = (μ.map f) E := by rw [hlaw]
|
| 40 |
+
_ = _ := Measure.map_apply hf hE
|
| 41 |
+
|
| 42 |
+
end SLEExactGauge
|
| 43 |
+
|
| 44 |
+
end
|
| 45 |
+
|
| 46 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/RibbonStoppedMassTransport.lean
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.RibbonPrefixTransport
|
| 2 |
+
import OAI.Probability.SLE.Gauge.RibbonStepSuccess
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-! Exact spatial and capacity transport of a completed ribbon's stopped
|
| 7 |
+
mass. The completion is the actual first front of the transported trace. -/
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
open Set Filter MeasureTheory ProbabilityTheory
|
| 11 |
+
open scoped Topology NNReal ENNReal
|
| 12 |
+
|
| 13 |
+
namespace SLEExactGauge
|
| 14 |
+
open RibbonCoordinates FirstFrontPassage FrontClockChange ScaleTraceLaw
|
| 15 |
+
open FrontSuccessMeasurability RibbonPassageScaling
|
| 16 |
+
|
| 17 |
+
local instance : MeasurableSpace C(ℝ≥0, ℂ) := borel _
|
| 18 |
+
local instance : BorelSpace C(ℝ≥0, ℂ) := ⟨rfl⟩
|
| 19 |
+
|
| 20 |
+
lemma firstFrontTime_scalePath_of_finite
|
| 21 |
+
(c : ℝ≥0) (hc : 0 < c) (p : C(ℝ≥0, ℂ)) (g g' : C(ℂ, ℝ))
|
| 22 |
+
(hgg' : ∀ z : ℂ, g' ((c : ℂ) * z) = g z) (k : ℝ) (T : ℝ≥0)
|
| 23 |
+
(hT : firstFrontTime (fun t => g (p t)) k = (T : WithTop ℝ≥0)) :
|
| 24 |
+
firstFrontTime (fun t => g' (scalePath c p t)) k = ((c ^ 2 * T : ℝ≥0) : WithTop ℝ≥0) := by
|
| 25 |
+
let e := OrderIso.mulLeft₀ (c ^ 2) (pow_pos hc 2)
|
| 26 |
+
have heval (t : ℝ≥0) : scalePath c p (e t) = (c : ℂ) * p t :=
|
| 27 |
+
scalePath_at_scaled_time c hc p t
|
| 28 |
+
have hclock : (fun t => g' (scalePath c p (e t))) = (fun t => g (p t)) := by
|
| 29 |
+
funext t
|
| 30 |
+
rw [heval, hgg']
|
| 31 |
+
have hhit := firstFrontTime_attained _ (g.continuous.comp p.continuous) k T hT
|
| 32 |
+
exact firstFrontTime_of_clock_hit e (fun t => g' (scalePath c p t)) k T
|
| 33 |
+
(by rw [hclock]; exact hT) (by rw [heval, hgg']; exact hhit)
|
| 34 |
+
|
| 35 |
+
lemma segmentSausageCharge_scalePath
|
| 36 |
+
(κ : ℝ) (c : ℝ≥0) (hc : 0 < c) (p : C(ℝ≥0, ℂ)) (T : ℝ≥0)
|
| 37 |
+
{v : ℝ} (hv : 0 < v) (D : Set ℂ) :
|
| 38 |
+
segmentSausageCharge κ (scalePath c p) 0 (c ^ 2 * T) ((c : ℝ) * v) (affine 0 c '' D) =
|
| 39 |
+
ENNReal.ofReal ((c : ℝ) ^ dimension κ) * segmentSausageCharge κ p 0 T v D := by
|
| 40 |
+
let e := OrderIso.mulLeft₀ (c ^ 2) (pow_pos hc 2)
|
| 41 |
+
have he0 : e 0 = 0 := by change c ^ 2 * 0 = 0; exact mul_zero _
|
| 42 |
+
have hpath : (fun t => scalePath c p (e t)) = (fun t => affine 0 c (p t)) := by
|
| 43 |
+
funext t
|
| 44 |
+
change scalePath c p (c ^ 2 * t) = affine 0 c (p t)
|
| 45 |
+
simpa only [affine, zero_add] using scalePath_at_scaled_time c hc p t
|
| 46 |
+
calc
|
| 47 |
+
_ = segmentSausageCharge κ (fun t => scalePath c p (e t)) 0 T ((c : ℝ) * v)
|
| 48 |
+
(affine 0 c '' D) := by rw [segmentSausageCharge_clock, he0]; rfl
|
| 49 |
+
_ = segmentSausageCharge κ (fun t => affine 0 c (p t)) 0 T ((c : ℝ) * v)
|
| 50 |
+
(affine 0 c '' D) := by rw [hpath]
|
| 51 |
+
_ = _ := segmentSausageCharge_affine κ 0 (show 0 < (c : ℝ) from hc) p 0 T hv D
|
| 52 |
+
|
| 53 |
+
def ribbonStoppedMassEvent (P : ℂ → ℂ) (g : C(ℂ, ℝ)) (k ε κ v : ℝ)
|
| 54 |
+
(D : Set ℂ) (b : ℝ≥0∞) : Set C(ℝ≥0, ℂ) :=
|
| 55 |
+
{p | p ∈ GoodRibbonPrefix (fun p : C(ℝ≥0, ℂ) => (p : ℝ≥0 → ℂ))
|
| 56 |
+
(ribbonFrontStop g (fun p : C(ℝ≥0, ℂ) => (p : ℝ≥0 → ℂ)) k) P ε ∧
|
| 57 |
+
b ≤ segmentSausageCharge κ p 0 ((firstFrontTime (fun t => g (p t)) k).untopD 0) v D}
|
| 58 |
+
|
| 59 |
+
lemma measurableSet_ribbonStoppedMassEvent
|
| 60 |
+
(P : ℂ → ℂ) (he : Topology.IsClosedEmbedding (fun z : closedRibbon => P z))
|
| 61 |
+
(g : C(ℂ, ℝ)) (k ε κ v : ℝ) (D : Set ℂ) (b : ℝ≥0∞) :
|
| 62 |
+
MeasurableSet (ribbonStoppedMassEvent P g k ε κ v D b) := by
|
| 63 |
+
let ℱ : Filtration ℝ≥0 (borel C(ℝ≥0, ℂ)) :=
|
| 64 |
+
Filtration.const ℝ≥0 (borel C(ℝ≥0, ℂ)) le_rfl
|
| 65 |
+
let γ := fun p : C(ℝ≥0, ℂ) => (p : ℝ≥0 → ℂ)
|
| 66 |
+
have ha : Adapted ℱ (fun t p => γ p t) := by
|
| 67 |
+
intro t
|
| 68 |
+
change @Measurable C(ℝ≥0, ℂ) ℂ (borel C(ℝ≥0, ℂ)) _ (fun p => p t)
|
| 69 |
+
exact (continuous_eval_const t).measurable
|
| 70 |
+
have hτ := ribbonFrontStop_stopping ℱ g γ ha (fun p => p.continuous) k
|
| 71 |
+
have hg : MeasurableSet (GoodRibbonPrefix γ (ribbonFrontStop g γ k) P ε) :=
|
| 72 |
+
hτ.measurableSpace_le _ (goodRibbonPrefix_measurable ℱ γ ha (fun p => p.continuous) _ hτ P he ε)
|
| 73 |
+
exact hg.inter (measurableSet_le measurable_const
|
| 74 |
+
(segmentSausageCharge_measurable id measurable_id (fun _ => 0)
|
| 75 |
+
(fun p => (firstFrontTime (fun t => g (p t)) k).untopD 0)
|
| 76 |
+
measurable_const (hτ.measurable'.untopD 0) κ v D))
|
| 77 |
+
|
| 78 |
+
/-- Transport uses the same actual completed prefix and a deterministically
|
| 79 |
+
scaled mesh, region and mass threshold. -/
|
| 80 |
+
theorem mem_ribbonStoppedMassEvent_scalePath
|
| 81 |
+
(c : ℝ≥0) (hc : 0 < c) (p : C(ℝ≥0, ℂ)) (P : ℂ → ℂ)
|
| 82 |
+
(g g' : C(ℂ, ℝ)) (hgg' : ∀ z : ℂ, g' ((c : ℂ) * z) = g z)
|
| 83 |
+
(k ε κ : ℝ) {v : ℝ} (hv : 0 < v) (D : Set ℂ) (b : ℝ≥0∞)
|
| 84 |
+
(hp : p ∈ ribbonStoppedMassEvent P g k ε κ v D b) :
|
| 85 |
+
scalePath c p ∈ ribbonStoppedMassEvent (fun z => (c : ℂ) * P z) g' k ε κ
|
| 86 |
+
((c : ℝ) * v) (affine 0 c '' D) (ENNReal.ofReal ((c : ℝ) ^ dimension κ) * b) := by
|
| 87 |
+
have hpref : () ∈ GoodRibbonPrefix (fun _ : Unit => (p : ℝ≥0 → ℂ))
|
| 88 |
+
(fun _ => firstFrontTime (fun t => g (p t)) k) P ε := hp.1
|
| 89 |
+
have hnew := goodRibbonPrefix_scalePath c hc p P g g' hgg' k ε hpref
|
| 90 |
+
refine ⟨hnew, ?_⟩
|
| 91 |
+
cases hT : firstFrontTime (fun t => g (p t)) k with
|
| 92 |
+
| top => exact False.elim (hpref.1 hT)
|
| 93 |
+
| coe T =>
|
| 94 |
+
have ht := firstFrontTime_scalePath_of_finite c hc p g g' hgg' k T hT
|
| 95 |
+
change _ ≤ segmentSausageCharge κ (scalePath c p) 0
|
| 96 |
+
((firstFrontTime (fun t => g' (scalePath c p t)) k).untopD 0) _ _
|
| 97 |
+
rw [ht, WithTop.untopD_coe, segmentSausageCharge_scalePath κ c hc p T hv]
|
| 98 |
+
apply mul_le_mul' le_rfl
|
| 99 |
+
simpa only [hT, WithTop.untopD_coe] using hp.2
|
| 100 |
+
|
| 101 |
+
end SLEExactGauge
|
| 102 |
+
|
| 103 |
+
end
|
| 104 |
+
|
| 105 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/RibbonSurvival.lean
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Geometry.GuideTube
|
| 2 |
+
import OAI.Probability.SLE.NearRealContraction
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-! Actual surviving-component assertions for access rays and the splice.
|
| 7 |
+
Containment of the past in the initial rectangle implies that every point
|
| 8 |
+
above or beside it belongs to the unbounded surviving component. -/
|
| 9 |
+
|
| 10 |
+
noncomputable section
|
| 11 |
+
open Set Filter MeasureTheory Metric
|
| 12 |
+
open scoped Topology NNReal
|
| 13 |
+
|
| 14 |
+
namespace SLEExactGauge
|
| 15 |
+
|
| 16 |
+
theorem survives_of_unbounded_free_curve
|
| 17 |
+
(γ : ℝ≥0 → ℂ) (T : ℝ≥0) (α : ℝ≥0 → ℂ) (hα : Continuous α)
|
| 18 |
+
(hfree : range α ⊆ upperHalfPlane \ (γ '' Icc 0 T))
|
| 19 |
+
(hunbounded : ¬ Bornology.IsBounded (range α)) :
|
| 20 |
+
range α ⊆ survivingDomain γ T := by
|
| 21 |
+
rintro z ⟨u, rfl⟩
|
| 22 |
+
refine ⟨hfree (mem_range_self u), ?_⟩
|
| 23 |
+
intro hb
|
| 24 |
+
apply hunbounded
|
| 25 |
+
exact hb.subset ((isPreconnected_range hα).subset_connectedComponentIn
|
| 26 |
+
(mem_range_self u) hfree)
|
| 27 |
+
|
| 28 |
+
def upwardRay (z : ℂ) (u : ℝ≥0) : ℂ := z + (u : ℝ) * Complex.I
|
| 29 |
+
|
| 30 |
+
theorem upwardRay_continuous (z : ℂ) : Continuous (upwardRay z) :=
|
| 31 |
+
continuous_const.add ((Complex.continuous_ofReal.comp NNReal.continuous_coe).mul continuous_const)
|
| 32 |
+
|
| 33 |
+
theorem upwardRay_unbounded (z : ℂ) : ¬ Bornology.IsBounded (range (upwardRay z)) := by
|
| 34 |
+
intro hb
|
| 35 |
+
obtain ⟨R, hR, hbound⟩ := hb.exists_pos_norm_lt
|
| 36 |
+
let u : ℝ≥0 := ⟨R + |z.im| + 1, by positivity⟩
|
| 37 |
+
have hu := hbound (upwardRay z u) (mem_range_self u)
|
| 38 |
+
have hi := Complex.im_le_norm (upwardRay z u)
|
| 39 |
+
simp only [upwardRay, Complex.add_im, Complex.mul_im, Complex.ofReal_re,
|
| 40 |
+
Complex.I_im, mul_one, Complex.ofReal_im, Complex.I_re, mul_zero, add_zero] at hi
|
| 41 |
+
change z.im + (R + |z.im| + 1) ≤ ‖upwardRay z u‖ at hi
|
| 42 |
+
linarith [neg_le_abs z.im]
|
| 43 |
+
|
| 44 |
+
theorem outside_initial_rectangle_survives
|
| 45 |
+
(γ : ℝ≥0 → ℂ) (T : ℝ≥0) (B : ℝ)
|
| 46 |
+
(hpast : γ '' Icc 0 T ⊆ GuideSplice.closedInitialRectangle B) :
|
| 47 |
+
upperHalfPlane \ GuideSplice.closedInitialRectangle B ⊆ survivingDomain γ T := by
|
| 48 |
+
intro z hz
|
| 49 |
+
have hfree : range (upwardRay z) ⊆ upperHalfPlane \ (γ '' Icc 0 T) := by
|
| 50 |
+
rintro w ⟨u, rfl⟩
|
| 51 |
+
have him : (upwardRay z u).im = z.im + (u : ℝ) := by simp [upwardRay]
|
| 52 |
+
have hre : (upwardRay z u).re = z.re := by simp [upwardRay]
|
| 53 |
+
refine ⟨by change 0 < (upwardRay z u).im; rw [him]; exact add_pos_of_pos_of_nonneg hz.1 u.coe_nonneg, ?_⟩
|
| 54 |
+
intro hp
|
| 55 |
+
have hrect := hpast hp
|
| 56 |
+
change |(upwardRay z u).re| ≤ B / 16 ∧
|
| 57 |
+
0 ≤ (upwardRay z u).im ∧ (upwardRay z u).im ≤ B / 4 at hrect
|
| 58 |
+
apply hz.2
|
| 59 |
+
change |z.re| ≤ B / 16 ∧ 0 ≤ z.im ∧ z.im ≤ B / 4
|
| 60 |
+
refine ⟨by simpa only [hre] using hrect.1, hz.1.le, ?_⟩
|
| 61 |
+
rw [him] at hrect
|
| 62 |
+
linarith [u.coe_nonneg, hrect.2.2]
|
| 63 |
+
have hs := survives_of_unbounded_free_curve γ T (upwardRay z)
|
| 64 |
+
(upwardRay_continuous z) hfree (upwardRay_unbounded z) (mem_range_self 0)
|
| 65 |
+
simpa only [upwardRay, NNReal.coe_zero, Complex.ofReal_zero, zero_mul, add_zero] using hs
|
| 66 |
+
|
| 67 |
+
/-- The open continuation tube avoids the actual filled hull whenever the
|
| 68 |
+
past lies in the containing rectangle; no filled-hull containment is assumed. -/
|
| 69 |
+
theorem continuationTube_subset_survivingDomain
|
| 70 |
+
(γ : ℝ≥0 → ℂ) (T : ℝ≥0) (B : ℝ)
|
| 71 |
+
(hpast : γ '' Icc 0 T ⊆ GuideSplice.closedInitialRectangle B)
|
| 72 |
+
(F : ℂ → ℂ) (a : ℂ) (r : ℝ) (O : Set ℂ) :
|
| 73 |
+
GuideSplice.continuationTube F a r B O ⊆ survivingDomain γ T := by
|
| 74 |
+
intro z hz
|
| 75 |
+
exact outside_initial_rectangle_survives γ T B hpast ⟨hz.1.1, hz.2⟩
|
| 76 |
+
|
| 77 |
+
end SLEExactGauge
|
| 78 |
+
|
| 79 |
+
end
|
| 80 |
+
|
| 81 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SequencePassage.lean
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Geometry.BoundedSpliceProbability
|
| 2 |
+
import OAI.Probability.SLE.Gauge.FirstFrontPassage
|
| 3 |
+
import OAI.Probability.SLE.Geometry.UniformAccessLocalization
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
/-! Sequencewise ribbon passage from the actual bounded first-height event.
|
| 8 |
+
The early event is stopped-image containment, and the retained mass window is
|
| 9 |
+
the actual first front crossing constructed from the continuation. -/
|
| 10 |
+
|
| 11 |
+
noncomputable section
|
| 12 |
+
open Set Filter MeasureTheory ProbabilityTheory Metric
|
| 13 |
+
open scoped Topology NNReal ENNReal
|
| 14 |
+
|
| 15 |
+
namespace SLEExactGauge.SequencePassage
|
| 16 |
+
open FirstHeightSupport EarlyPassageLocalization FirstFrontPassage
|
| 17 |
+
|
| 18 |
+
/-- The actual stopped-image events give one positive splice probability.
|
| 19 |
+
The finite initial part of the sequence does not need an early-loss estimate. -/
|
| 20 |
+
theorem eventual_bounded_splice_probability
|
| 21 |
+
{Ω : Type*} [mΩ : MeasurableSpace Ω] {P : Measure Ω}
|
| 22 |
+
(κ : ℝ) (hκ : 0 < κ) (hκ8 : κ < 8)
|
| 23 |
+
(B₀ : ℝ≥0 → Ω → ℝ) (hB₀ : IsBrownianReal B₀ P)
|
| 24 |
+
(hm : ∀ t, Measurable (B₀ t)) (hc : ∀ ω, Continuous (fun t => B₀ t ω))
|
| 25 |
+
(γ : Ω → ℝ≥0 → ℂ) (G F₀ : Ω → ℝ≥0 → ℂ → ℂ)
|
| 26 |
+
(hw : ∀ ω, IsCapacityTwoWitness (fun t => Real.sqrt κ * B₀ t ω)
|
| 27 |
+
(γ ω) (G ω) (F₀ ω))
|
| 28 |
+
(hboundary : PublishedLoewnerBoundaryExtension)
|
| 29 |
+
(hsupport : PublishedGeometricTubeSupport P γ)
|
| 30 |
+
(B r : ℝ) (hB : 0 < B) (hr : 0 < r) (Tc : ℝ≥0)
|
| 31 |
+
(F : ℂ → ℂ) (hF : ContinuousOn F upperHalfPlane) (a : ℂ)
|
| 32 |
+
(O W : Set ℂ) (hO : IsOpen O) (hW : IsOpen W)
|
| 33 |
+
(β : ℝ → ℂ) (tB T : ℝ) (htB : 0 < tB) (htBT : tB < T)
|
| 34 |
+
(hβ : ContinuousOn β (Icc 0 T)) (hi : InjOn β (Icc 0 T))
|
| 35 |
+
(hβH : ∀ t ∈ Ioc 0 T, 0 < (β t).im)
|
| 36 |
+
(hcross : ‖β tB‖ = B) (hafter : ∀ t ∈ Ioc tB T, B < ‖β t‖)
|
| 37 |
+
(hcircle : ∀ θ ∈ Ioo 0 Real.pi, ‖F (GuideSplice.circlePoint B θ) - a‖ < r / 4)
|
| 38 |
+
(hsector : ∀ z : ℂ, B / 8 ≤ ‖z‖ → ‖z‖ ≤ B → ‖z‖ / 2 ≤ z.im →
|
| 39 |
+
‖F z - a‖ < r / 4)
|
| 40 |
+
(htail : F '' (β '' Icc tB T) ⊆ O) (hend : β T ∈ W)
|
| 41 |
+
(Fbar : ℕ → ℂ → OnePoint ℂ)
|
| 42 |
+
(hbar : ∀ n, ContinuousOn (Fbar n) closedHalfPlane)
|
| 43 |
+
(aₙ : ℕ → ℂ) (ρ : ℝ)
|
| 44 |
+
(hpositive : 0 < P (stoppedNarrowCertificate γ
|
| 45 |
+
(fun ω => boundedFirstHeightTime (γ ω) B Tc) B Tc))
|
| 46 |
+
(hmissing : ∀ᶠ n in atTop, P (stoppedNarrowCertificate γ
|
| 47 |
+
(fun ω => boundedFirstHeightTime (γ ω) B Tc) B Tc \
|
| 48 |
+
stoppedImageEvent γ (fun ω => boundedFirstHeightTime (γ ω) B Tc)
|
| 49 |
+
(Fbar n) (aₙ n) ρ) ≤
|
| 50 |
+
P (stoppedNarrowCertificate γ (fun ω => boundedFirstHeightTime (γ ω) B Tc) B Tc) / 2) :
|
| 51 |
+
∃ q : ℝ, 0 < q ∧ ∀ᶠ n in atTop, ENNReal.ofReal q ≤ P
|
| 52 |
+
(stoppedImageEvent γ (fun ω => boundedFirstHeightTime (γ ω) B Tc)
|
| 53 |
+
(Fbar n) (aₙ n) ρ ∩
|
| 54 |
+
(stoppedNarrowCertificate γ (fun ω => boundedFirstHeightTime (γ ω) B Tc) B Tc ∩
|
| 55 |
+
stoppedPhysicalTube γ (fun ω => boundedFirstHeightTime (γ ω) B Tc)
|
| 56 |
+
(parameterContinuationRegion F a r O) W)) := by
|
| 57 |
+
classical
|
| 58 |
+
let : IsProbabilityMeasure P := hB₀.isGaussianProcess.isProbabilityMeasure
|
| 59 |
+
let ℱ := Filtration.natural B₀ (fun t => (hm t).stronglyMeasurable)
|
| 60 |
+
let σ := fun ω => boundedFirstHeightTime (γ ω) B Tc
|
| 61 |
+
have ha := brownian_capacity_trace_adapted B₀ hm hc κ γ G F₀ hw
|
| 62 |
+
have hσ := boundedFirstHeightTime_isStoppingTime ℱ γ ha (fun ω => (hw ω).1) B Tc
|
| 63 |
+
let E := stoppedNarrowCertificate γ σ B Tc
|
| 64 |
+
let H : ℕ → Set Ω := fun n => stoppedImageEvent γ σ (Fbar n) (aₙ n) ρ
|
| 65 |
+
let C := stoppedPhysicalTube γ σ (parameterContinuationRegion F a r O) W
|
| 66 |
+
have hH : ∀ n, MeasurableSet[hσ.measurableSpace] (H n) := fun n =>
|
| 67 |
+
stoppedImageEvent_measurable ℱ γ ha (fun ω => (hw ω).1)
|
| 68 |
+
(fun ω t => (hw ω).2.2.1 t) σ hσ Tc
|
| 69 |
+
(fun ω => boundedFirstHeightTime_le (γ ω) B Tc) (Fbar n) (hbar n) (aₙ n) ρ
|
| 70 |
+
let H' : ℕ → Set Ω := fun n => if P (E \ H n) ≤ P E / 2 then H n else univ
|
| 71 |
+
have hH' : ∀ n, MeasurableSet[hσ.measurableSpace] (H' n) := by
|
| 72 |
+
intro n
|
| 73 |
+
dsimp only [H']
|
| 74 |
+
split_ifs
|
| 75 |
+
· exact hH n
|
| 76 |
+
· exact MeasurableSet.univ
|
| 77 |
+
have hmiss : ∀ n, P (E \ H' n) ≤ P E / 2 := by
|
| 78 |
+
intro n
|
| 79 |
+
dsimp only [H']
|
| 80 |
+
split_ifs with hn
|
| 81 |
+
· exact hn
|
| 82 |
+
· simp only [sdiff_univ, measure_empty, zero_le]
|
| 83 |
+
obtain ⟨q, hq, hqH⟩ := bounded_firstHeight_splice_varying_probability
|
| 84 |
+
κ hκ hκ8 B₀ hB₀ hm hc γ G F₀ hw hboundary hsupport B r hB hr Tc
|
| 85 |
+
F hF a O W hO hW β tB T htB htBT hβ hi hβH hcross hafter hcircle hsector htail hend
|
| 86 |
+
H' hH' hpositive hmiss
|
| 87 |
+
have hqtop : q ≠ ⊤ := ne_top_of_le_ne_top (measure_ne_top P _) (hqH 0)
|
| 88 |
+
refine ⟨q.toReal, ENNReal.toReal_pos hq.ne' hqtop, ?_⟩
|
| 89 |
+
filter_upwards [hmissing] with n hn
|
| 90 |
+
have heq : H' n = H n := ite_eq_left hn
|
| 91 |
+
rw [ENNReal.ofReal_toReal hqtop]
|
| 92 |
+
have hh := hqH n
|
| 93 |
+
rw [heq] at hh
|
| 94 |
+
exact hh.trans (measure_mono (fun _ hω => ⟨hω.1.2, hω.1.1, hω.2⟩))
|
| 95 |
+
|
| 96 |
+
/-- The published support input and proved scaling law give a real positive
|
| 97 |
+
lower probability, uniformly in the first-height scale. -/
|
| 98 |
+
theorem uniform_bounded_firstHeight_real_probability
|
| 99 |
+
{Ω : Type*} [MeasurableSpace Ω] {P : Measure Ω}
|
| 100 |
+
(κ : ℝ) (hκ : 0 < κ) (hκ8 : κ < 8)
|
| 101 |
+
(B₀ : ℝ≥0 → Ω → ℝ) (hB₀ : IsBrownianReal B₀ P)
|
| 102 |
+
(hm : ∀ t, Measurable (B₀ t)) (hc : ∀ ω, Continuous (fun t => B₀ t ω))
|
| 103 |
+
(γ : Ω → ℝ≥0 → ℂ) (G F₀ : Ω → ℝ≥0 → ℂ → ℂ)
|
| 104 |
+
(hw : ∀ ω, IsCapacityTwoWitness (fun t => Real.sqrt κ * B₀ t ω)
|
| 105 |
+
(γ ω) (G ω) (F₀ ω))
|
| 106 |
+
(hsupport : PublishedGeometricTubeSupport P γ) :
|
| 107 |
+
∃ T₀ : ℝ≥0, 0 < T₀ ∧ ∃ q : ℝ, 0 < q ∧ ∀ B : ℝ, 0 < B →
|
| 108 |
+
ENNReal.ofReal q ≤ P (stoppedNarrowCertificate γ
|
| 109 |
+
(fun ω => boundedFirstHeightTime (γ ω) B (T₀ * (Real.toNNReal B) ^ 2))
|
| 110 |
+
B (T₀ * (Real.toNNReal B) ^ 2)) := by
|
| 111 |
+
let : IsProbabilityMeasure P := hB₀.isGaussianProcess.isProbabilityMeasure
|
| 112 |
+
obtain ⟨T₀, hT₀, q, hq, hprob⟩ := uniform_boundedFirstHeight_probability
|
| 113 |
+
κ hκ hκ8 B₀ hB₀ hm hc γ G F₀ hw hsupport
|
| 114 |
+
have hqtop : q ≠ ⊤ := ne_top_of_le_ne_top (measure_ne_top P _) (hprob 1 zero_lt_one)
|
| 115 |
+
refine ⟨T₀, hT₀, q.toReal, ENNReal.toReal_pos hq.ne' hqtop, ?_⟩
|
| 116 |
+
intro B hB
|
| 117 |
+
have hh := hprob (Real.toNNReal B) (Real.toNNReal_pos.mpr hB)
|
| 118 |
+
simpa only [ENNReal.ofReal_toReal hqtop, Real.coe_toNNReal B hB.le] using hh
|
| 119 |
+
|
| 120 |
+
end SLEExactGauge.SequencePassage
|
| 121 |
+
|
| 122 |
+
end
|
| 123 |
+
|
| 124 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SequencePassageRegions.lean
ADDED
|
@@ -0,0 +1,253 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SequencePassage
|
| 2 |
+
import OAI.Probability.SLE.Gauge.PassageSuccessRegions
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-! Sequence passage with compact-dependent moving middle-strip margins.
|
| 7 |
+
No inclusion of the entire limiting open middle strip is required. -/
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
open Set Filter MeasureTheory ProbabilityTheory Metric
|
| 11 |
+
open scoped Topology NNReal ENNReal
|
| 12 |
+
|
| 13 |
+
namespace SLEExactGauge.SequencePassage
|
| 14 |
+
open FirstHeightSupport EarlyPassageLocalization FirstFrontPassage PassageSuccess
|
| 15 |
+
|
| 16 |
+
local instance regionSequencePathMeasurable : MeasurableSpace C(ℝ≥0, ℂ) := borel _
|
| 17 |
+
local instance regionSequencePathBorel : BorelSpace C(ℝ≥0, ℂ) := ⟨rfl⟩
|
| 18 |
+
|
| 19 |
+
theorem bounded_splice_sequence_success_middle_regions
|
| 20 |
+
{Ω : Type*} [mΩ : MeasurableSpace Ω] {P : Measure Ω}
|
| 21 |
+
(κ : ℝ) (hκ : 0 < κ) (hκ8 : κ < 8)
|
| 22 |
+
(B₀ : ℝ≥0 → Ω → ℝ) (hB₀ : IsBrownianReal B₀ P)
|
| 23 |
+
(hm : ∀ t, Measurable (B₀ t)) (hc : ∀ ω, Continuous (fun t => B₀ t ω))
|
| 24 |
+
(γ : Ω → ℝ≥0 → ℂ) (G F₀ : Ω → ℝ≥0 → ℂ → ℂ)
|
| 25 |
+
(hw : ∀ ω, IsCapacityTwoWitness (fun t => Real.sqrt κ * B₀ t ω)
|
| 26 |
+
(γ ω) (G ω) (F₀ ω))
|
| 27 |
+
(hboundary : PublishedLoewnerBoundaryExtension)
|
| 28 |
+
(hsupport : PublishedGeometricTubeSupport P γ)
|
| 29 |
+
(B r : ℝ) (hB : 0 < B) (hr : 0 < r) (Tc : ℝ≥0)
|
| 30 |
+
(F : ℂ → ℂ) (hF : DifferentiableOn ℂ F upperHalfPlane) (a : ℂ)
|
| 31 |
+
(O W : Set ℂ) (hO : IsOpen O) (hW : IsOpen W)
|
| 32 |
+
(β : ℝ → ℂ) (tB T : ℝ) (htB : 0 < tB) (htBT : tB < T)
|
| 33 |
+
(hβ : ContinuousOn β (Icc 0 T)) (hi : InjOn β (Icc 0 T))
|
| 34 |
+
(hβH : ∀ t ∈ Ioc 0 T, 0 < (β t).im)
|
| 35 |
+
(hcross : ‖β tB‖ = B) (hafter : ∀ t ∈ Ioc tB T, B < ‖β t‖)
|
| 36 |
+
(hcircle : ∀ θ ∈ Ioo 0 Real.pi, ‖F (GuideSplice.circlePoint B θ) - a‖ < r / 4)
|
| 37 |
+
(hsector : ∀ z : ℂ, B / 8 ≤ ‖z‖ → ‖z‖ ≤ B → ‖z‖ / 2 ≤ z.im →
|
| 38 |
+
‖F z - a‖ < r / 4)
|
| 39 |
+
(htail : F '' (β '' Icc tB T) ⊆ O) (hend : β T ∈ W)
|
| 40 |
+
(Fbar : ℕ → ℂ → OnePoint ℂ)
|
| 41 |
+
(hbar : ∀ n, ContinuousOn (Fbar n) closedHalfPlane)
|
| 42 |
+
(aₙ : ℕ → ℂ) (ρ : ℝ)
|
| 43 |
+
(Fₙ : ℕ → ℂ → ℂ)
|
| 44 |
+
(hFn : ∀ n, DifferentiableOn ℂ (Fₙ n) upperHalfPlane)
|
| 45 |
+
(hinj : ∀ n, InjOn (Fₙ n) upperHalfPlane)
|
| 46 |
+
(hne : ∀ z ∈ upperHalfPlane, deriv F z ≠ 0)
|
| 47 |
+
(hconv : TendstoLocallyUniformlyOn Fₙ F atTop upperHalfPlane)
|
| 48 |
+
(hext : ∀ n z, z ∈ upperHalfPlane → Fbar n z = (Fₙ n z : OnePoint ℂ))
|
| 49 |
+
(pₙ : ℕ → ℂ → ℝ) (p : ℂ → ℝ) (U : Set ℂ) (hU : IsOpen U)
|
| 50 |
+
(hp : ContinuousOn p U) (hpn : ∀ᶠ n in atTop, ContinuousOn (pₙ n) U)
|
| 51 |
+
(hpconv : TendstoLocallyUniformlyOn pₙ p atTop U)
|
| 52 |
+
(hOU : ball a (r / 2) ∪ O ⊆ U)
|
| 53 |
+
(hWfront : ∀ z ∈ W, 1 < p (F z))
|
| 54 |
+
(hstartBall : ∀ z ∈ ball a (r / 4), p z < 1 / 3)
|
| 55 |
+
(hearlyBall : ∀ᶠ n in atTop, ball (aₙ n) ρ ⊆ U ∩ {z | pₙ n z < 1})
|
| 56 |
+
(V : Set ℂ) (hV : IsOpen V) (hOV : ball a (r / 2) ∪ O ⊆ V)
|
| 57 |
+
(Vₙ : ℕ → Set ℂ) (hVVₙ : ∀ᶠ n in atTop, V ⊆ Vₙ n)
|
| 58 |
+
(bₙ : ℕ → ℂ) (ε : ℝ)
|
| 59 |
+
(hterminal : ∀ n z, z ∈ Vₙ n → pₙ n z = 1 → ‖z - bₙ n‖ < ε / 4)
|
| 60 |
+
(hearlyAllowed : ∀ᶠ n in atTop, ball (aₙ n) ρ ⊆ Vₙ n)
|
| 61 |
+
(v : ℕ → ℝ) (hv : ∀ n, 0 < v n) (hlim : Tendsto v atTop (𝓝 0))
|
| 62 |
+
(η : ℕ → Ω → ℝ≥0 → ℂ) (hηc : ∀ n, ∀ᵐ ω ∂P, Continuous (η n ω))
|
| 63 |
+
(hηbar : ∀ n, ∀ᵐ ω ∂P, ∀ t, Fbar n (γ ω t) = (η n ω t : OnePoint ℂ))
|
| 64 |
+
(Rₙ : ℕ → Set ℂ) (hregion : ∀ᶠ n in atTop, U ∩ {z | (1 / 3 : ℝ) < pₙ n z ∧ pₙ n z < 2 / 3} ⊆ Rₙ n)
|
| 65 |
+
(hpositive : 0 < P (stoppedNarrowCertificate γ
|
| 66 |
+
(fun ω => boundedFirstHeightTime (γ ω) B Tc) B Tc))
|
| 67 |
+
(hmissing : ∀ᶠ n in atTop, P (stoppedNarrowCertificate γ
|
| 68 |
+
(fun ω => boundedFirstHeightTime (γ ω) B Tc) B Tc \
|
| 69 |
+
stoppedImageEvent γ (fun ω => boundedFirstHeightTime (γ ω) B Tc)
|
| 70 |
+
(Fbar n) (aₙ n) ρ) ≤
|
| 71 |
+
P (stoppedNarrowCertificate γ (fun ω => boundedFirstHeightTime (γ ω) B Tc) B Tc) / 2) :
|
| 72 |
+
∃ c q : ℝ, 0 < c ∧ 0 < q ∧ ∀ᶠ n in atTop, ENNReal.ofReal q ≤ P {ω |
|
| 73 |
+
ω ∈ FrontSuccess η pₙ (fun ω => boundedFirstHeightTime (γ ω) B Tc) Vₙ bₙ ε n ∧
|
| 74 |
+
ENNReal.ofReal c ≤ segmentSausageCharge κ (η n ω)
|
| 75 |
+
(boundedFirstHeightTime (γ ω) B Tc)
|
| 76 |
+
(frontTime (fun t => pₙ n (η n ω t)) 1) (v n) (Rₙ n)} := by
|
| 77 |
+
let : IsProbabilityMeasure P := hB₀.isGaussianProcess.isProbabilityMeasure
|
| 78 |
+
let ℱ := Filtration.natural B₀ (fun t => (hm t).stronglyMeasurable)
|
| 79 |
+
let σ := fun ω => boundedFirstHeightTime (γ ω) B Tc
|
| 80 |
+
have ha := brownian_capacity_trace_adapted B₀ hm hc κ γ G F₀ hw
|
| 81 |
+
have hγm (t : ℝ≥0) : Measurable (fun ω => γ ω t) := (ha t).mono (ℱ.le t) le_rfl
|
| 82 |
+
have hSLE : IsOrdinaryChordalSLE κ γ P :=
|
| 83 |
+
⟨hγm, B₀, hB₀, Eventually.of_forall (fun �� => ⟨G ω, F₀ ω, hw ω⟩)⟩
|
| 84 |
+
have hσ := boundedFirstHeightTime_isStoppingTime ℱ γ ha (fun ω => (hw ω).1) B Tc
|
| 85 |
+
have hσm : Measurable σ := stopping_time_measurable_nnreal hσ
|
| 86 |
+
let f := sourceTracePath γ (fun ω => (hw ω).1)
|
| 87 |
+
have hfm : Measurable f := source_path_measurable f hγm
|
| 88 |
+
let Uparam := parameterContinuationRegion F a r O
|
| 89 |
+
have hUparam : IsOpen Uparam := parameterContinuationRegion_isOpen hF.continuousOn a r hO
|
| 90 |
+
let C := stoppedPhysicalTube γ σ Uparam W
|
| 91 |
+
let E := stoppedNarrowCertificate γ σ B Tc ∩ C
|
| 92 |
+
let H : ℕ → Set Ω := fun n => stoppedImageEvent γ σ (Fbar n) (aₙ n) ρ
|
| 93 |
+
have hEm : MeasurableSet E := by
|
| 94 |
+
apply MeasurableSet.inter
|
| 95 |
+
· exact hσ.measurableSpace_le _
|
| 96 |
+
(boundedFirstHeight_certificate_measurable ℱ γ ha (fun ω => (hw ω).1) B Tc)
|
| 97 |
+
· exact measurableSet_stoppedPhysicalTube γ (fun ω => (hw ω).1) hγm σ hσm Uparam W hUparam hW
|
| 98 |
+
have hstart : ∀ ω ∈ E, p (F (γ ω (σ ω))) < 1 / 3 := by
|
| 99 |
+
intro ω hω
|
| 100 |
+
have hnorm := bounded_firstHeight_norm (f ω) (hw ω).2.1 (hw ω).2.2.1
|
| 101 |
+
hB Tc hω.1 (σ ω) ⟨bot_le, le_rfl⟩
|
| 102 |
+
change ‖γ ω (σ ω)‖ < B / 2 at hnorm
|
| 103 |
+
have hheight : (γ ω (σ ω)).im = B / 4 := hω.1.2.1
|
| 104 |
+
have him := Complex.im_le_norm (γ ω (σ ω))
|
| 105 |
+
have hsmall := hsector (γ ω (σ ω)) (by linarith) (by linarith)
|
| 106 |
+
(by rw [hheight]; linarith)
|
| 107 |
+
exact hstartBall _ (by simpa only [mem_ball, dist_eq_norm] using hsmall)
|
| 108 |
+
obtain ⟨q, hq, hprob⟩ := eventual_bounded_splice_probability κ hκ hκ8 B₀ hB₀ hm hc
|
| 109 |
+
γ G F₀ hw hboundary hsupport B r hB hr Tc F hF.continuousOn a O W hO hW
|
| 110 |
+
β tB T htB htBT hβ hi hβH hcross hafter hcircle hsector htail hend Fbar hbar aₙ ρ
|
| 111 |
+
hpositive hmissing
|
| 112 |
+
have hη : ∀ n, ∀ᵐ ω ∂P, ∀ t : ℝ≥0, σ ω ≤ t → γ ω t ∈ upperHalfPlane →
|
| 113 |
+
η n ω t = Fₙ n (γ ω t) := by
|
| 114 |
+
intro n
|
| 115 |
+
filter_upwards [hηbar n] with ω hω
|
| 116 |
+
intro t _ ht
|
| 117 |
+
exact OnePoint.coe_injective ((hω t).symm.trans (hext n _ ht))
|
| 118 |
+
have hearly : ∀ᶠ n in atTop, ∀ᵐ ω ∂P, ω ∈ H n ∩ E →
|
| 119 |
+
MapsTo (η n ω) (Icc 0 (σ ω)) U ∧
|
| 120 |
+
∀ t ∈ Icc 0 (σ ω), pₙ n (η n ω t) < 1 := by
|
| 121 |
+
filter_upwards [hearlyBall] with n hn
|
| 122 |
+
filter_upwards [hηbar n] with ω hω
|
| 123 |
+
intro hmem
|
| 124 |
+
have himage : MapsTo (η n ω) (Icc 0 (σ ω)) (ball (aₙ n) ρ) := by
|
| 125 |
+
intro t ht
|
| 126 |
+
obtain ⟨z, hz, he⟩ := hmem.1 t ht
|
| 127 |
+
have heq : z = η n ω t := OnePoint.coe_injective (he.trans (hω t))
|
| 128 |
+
exact heq ▸ hz
|
| 129 |
+
exact ⟨fun _ ht => (hn (himage ht)).1, fun _ ht => (hn (himage ht)).2⟩
|
| 130 |
+
have hearlyV : ∀ᶠ n in atTop, ∀ᵐ ω ∂P, ω ∈ H n ∩ E →
|
| 131 |
+
MapsTo (η n ω) (Icc 0 (σ ω)) (Vₙ n) := by
|
| 132 |
+
filter_upwards [hearlyAllowed] with n hn
|
| 133 |
+
filter_upwards [hηbar n] with ω hω
|
| 134 |
+
intro hmem t ht
|
| 135 |
+
obtain ⟨z, hz, he⟩ := hmem.1 t ht
|
| 136 |
+
have heq : z = η n ω t := OnePoint.coe_injective (he.trans (hω t))
|
| 137 |
+
exact hn (heq ▸ hz)
|
| 138 |
+
obtain ⟨c, hcpos, hmass⟩ := retained_tube_firstFront_success_mass_middle_regions P κ hκ hκ8
|
| 139 |
+
f hfm hSLE σ hσm Fₙ F hFn hinj hF hne hconv Uparam W hUparam inter_subset_left
|
| 140 |
+
pₙ p U hU hp hpn hpconv (fun _ hz => hOU hz.2) hWfront E hEm inter_subset_right
|
| 141 |
+
hstart V hV (fun _ hz => hOV hz.2) Vₙ hVVₙ bₙ ε hterminal
|
| 142 |
+
v hv hlim η Rₙ hregion H q hq hprob hη hηc hearly hearlyV
|
| 143 |
+
exact ⟨c, q / 8, hcpos, by positivity, hmass⟩
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
theorem localized_sequence_passage_success_middle_regions
|
| 147 |
+
{Ω : Type*} [mΩ : MeasurableSpace Ω] {P : Measure Ω}
|
| 148 |
+
(κ : ℝ) (hκ : 0 < κ) (hκ8 : κ < 8)
|
| 149 |
+
(B₀ : ℝ≥0 → Ω → ℝ) (hB₀ : IsBrownianReal B₀ P)
|
| 150 |
+
(hm : ∀ t, Measurable (B₀ t)) (hc : ∀ ω, Continuous (fun t => B₀ t ω))
|
| 151 |
+
(γ : Ω → ℝ≥0 → ℂ) (G F₀ : Ω → ℝ≥0 → ℂ → ℂ)
|
| 152 |
+
(hw : ∀ ω, IsCapacityTwoWitness (fun t => Real.sqrt κ * B₀ t ω)
|
| 153 |
+
(γ ω) (G ω) (F₀ ω))
|
| 154 |
+
(hboundary : PublishedLoewnerBoundaryExtension)
|
| 155 |
+
(hsupport : PublishedGeometricTubeSupport P γ)
|
| 156 |
+
(Fₙ : ℕ → ℂ → ℂ) (Fbar : ℕ → ℂ → OnePoint ℂ)
|
| 157 |
+
(hFn : ∀ n, DifferentiableOn ℂ (Fₙ n) upperHalfPlane)
|
| 158 |
+
(hinj : ∀ n, InjOn (Fₙ n) upperHalfPlane)
|
| 159 |
+
(hbar : ∀ n, ContinuousOn (Fbar n) closedHalfPlane)
|
| 160 |
+
(hext : ∀ n z, z ∈ upperHalfPlane → Fbar n z = (Fₙ n z : OnePoint ℂ))
|
| 161 |
+
(δ : ℝ) (hδ : 0 < δ) (βₙ : ℕ → ℝ → ℂ)
|
| 162 |
+
(hβc : ∀ n, ContinuousOn (βₙ n) (Icc 0 δ)) (hβ0 : ∀ n, βₙ n 0 = 0)
|
| 163 |
+
(hβHn : ∀ n t, t ∈ Icc 0 δ → 0 ≤ (βₙ n t).im)
|
| 164 |
+
(z : ℂ) (hz : z ≠ 0) (hβconv : Tendsto (fun n => βₙ n δ) atTop (𝓝 z))
|
| 165 |
+
(αₙ : ℕ → ℝ → ℂ) (aₙ : ℕ → ℂ) (Cg : ℝ≥0)
|
| 166 |
+
(hα : ∀ n, LipschitzOnWith Cg (αₙ n) (Icc 0 δ)) (hα0 : ∀ n, αₙ n 0 = aₙ n)
|
| 167 |
+
(hmap : ∀ n t, t ∈ Icc 0 δ → Fbar n (βₙ n t) = (αₙ n t : OnePoint ℂ))
|
| 168 |
+
(r₀ : ℝ) (hr₀ : 0 < r₀) (hsmallGuide : (Cg : ℝ) * δ ≤ r₀) :
|
| 169 |
+
∃ T₀ : ℝ≥0, 0 < T₀ ∧ ∃ q₀ b₀ b A d L₀ : ℝ,
|
| 170 |
+
0 < q₀ ∧ 0 < b₀ ∧ 0 < b ∧ 0 < A ∧ 0 < d ∧ 1 < L₀ ∧
|
| 171 |
+
∀ (L : ℝ), L₀ ≤ L → A * L ^ (-d) ≤ q₀ / 2 →
|
| 172 |
+
∀ (B r : ℝ), 0 < B → 0 < r → B / 2 ≤ b₀ * L ^ b →
|
| 173 |
+
∀ (F : ℂ → ℂ), DifferentiableOn ℂ F upperHalfPlane →
|
| 174 |
+
∀ (a : ℂ) (O W : Set ℂ), IsOpen O → IsOpen W →
|
| 175 |
+
∀ (β : ℝ → ℂ) (tB T : ℝ), 0 < tB → tB < T →
|
| 176 |
+
ContinuousOn β (Icc 0 T) → InjOn β (Icc 0 T) →
|
| 177 |
+
(∀ t ∈ Ioc 0 T, 0 < (β t).im) → ‖β tB‖ = B →
|
| 178 |
+
(∀ t ∈ Ioc tB T, B < ‖β t‖) →
|
| 179 |
+
(∀ θ ∈ Ioo 0 Real.pi, ‖F (GuideSplice.circlePoint B θ) - a‖ < r / 4) →
|
| 180 |
+
(∀ w : ℂ, B / 8 ≤ ‖w‖ → ‖w‖ ≤ B → ‖w‖ / 2 ≤ w.im → ‖F w - a‖ < r / 4) →
|
| 181 |
+
F '' (β '' Icc tB T) ⊆ O → β T ∈ W →
|
| 182 |
+
(∀ w ∈ upperHalfPlane, deriv F w ≠ 0) →
|
| 183 |
+
TendstoLocallyUniformlyOn Fₙ F atTop upperHalfPlane →
|
| 184 |
+
∀ (pₙ : ℕ → ℂ → ℝ) (p : ℂ → ℝ) (U : Set ℂ), IsOpen U →
|
| 185 |
+
ContinuousOn p U → (∀ᶠ n in atTop, ContinuousOn (pₙ n) U) →
|
| 186 |
+
TendstoLocallyUniformlyOn pₙ p atTop U →
|
| 187 |
+
ball a (r / 2) ∪ O ⊆ U → (∀ w ∈ W, 1 < p (F w)) →
|
| 188 |
+
(∀ w ∈ ball a (r / 4), p w < 1 / 3) →
|
| 189 |
+
(∀ᶠ n in atTop, ball (aₙ n) (L * r₀) ⊆ U ∩ {w | pₙ n w < 1}) →
|
| 190 |
+
∀ (V : Set ℂ), IsOpen V → ball a (r / 2) ∪ O ⊆ V →
|
| 191 |
+
∀ (Vₙ : ℕ → Set ℂ), (∀ᶠ n in atTop, V ⊆ Vₙ n) →
|
| 192 |
+
∀ (bₙ : ℕ → ℂ) (ε : ℝ),
|
| 193 |
+
(∀ n w, w ∈ Vₙ n → pₙ n w = 1 → ‖w - bₙ n‖ < ε / 4) →
|
| 194 |
+
(∀ᶠ n in atTop, ball (aₙ n) (L * r₀) ⊆ Vₙ n) →
|
| 195 |
+
∀ (v : ℕ → ℝ), (∀ n, 0 < v n) → Tendsto v atTop (𝓝 0) →
|
| 196 |
+
∀ (η : ℕ → Ω → ℝ≥0 → ℂ), (∀ n, ∀ᵐ ω ∂P, Continuous (η n ω)) →
|
| 197 |
+
(∀ n, ∀ᵐ ω ∂P, ∀ t, Fbar n (γ ω t) = (η n ω t : OnePoint ℂ)) →
|
| 198 |
+
∀ (Rₙ : ℕ → Set ℂ),
|
| 199 |
+
(∀ᶠ n in atTop, U ∩ {w | (1 / 3 : ℝ) < pₙ n w ∧ pₙ n w < 2 / 3} ⊆ Rₙ n) →
|
| 200 |
+
∃ c q : ℝ, 0 < c ∧ 0 < q ∧ ∀ᶠ n in atTop, ENNReal.ofReal q ≤ P {ω |
|
| 201 |
+
ω ∈ FrontSuccess η pₙ
|
| 202 |
+
(fun ω => boundedFirstHeightTime (γ ω) B (T₀ * (Real.toNNReal B) ^ 2)) Vₙ bₙ ε n ∧
|
| 203 |
+
ENNReal.ofReal c ≤ segmentSausageCharge κ (η n ω)
|
| 204 |
+
(boundedFirstHeightTime (γ ω) B (T₀ * (Real.toNNReal B) ^ 2))
|
| 205 |
+
(frontTime (fun t => pₙ n (η n ω t)) 1) (v n) (Rₙ n)} := by
|
| 206 |
+
let : IsProbabilityMeasure P := hB₀.isGaussianProcess.isProbabilityMeasure
|
| 207 |
+
let ℱ := Filtration.natural B₀ (fun t => (hm t).stronglyMeasurable)
|
| 208 |
+
have ha := brownian_capacity_trace_adapted B₀ hm hc κ γ G F₀ hw
|
| 209 |
+
have hγm (t : ℝ≥0) : Measurable (fun ω => γ ω t) := (ha t).mono (ℱ.le t) le_rfl
|
| 210 |
+
have hSLE : IsOrdinaryChordalSLE κ γ P :=
|
| 211 |
+
⟨hγm, B₀, hB₀, Eventually.of_forall (fun ω => ⟨G ω, F₀ ω, hw ω⟩)⟩
|
| 212 |
+
obtain ⟨T₀, hT₀, q₀, hq₀, hheight⟩ := uniform_bounded_firstHeight_real_probability
|
| 213 |
+
κ hκ hκ8 B₀ hB₀ hm hc γ G F₀ hw hsupport
|
| 214 |
+
obtain ⟨b, A, d, L₀, hb, hA, hd, hL₀, hloc⟩ :=
|
| 215 |
+
common_access_gives_firstHeight_localization κ hκ hκ8
|
| 216 |
+
obtain ⟨b₀, hb₀, hlocseq⟩ := hloc Ω P γ hSLE (fun ω => (hw ω).1)
|
| 217 |
+
(fun ω => (hw ω).2.1) (fun ω t => (hw ω).2.2.1 t)
|
| 218 |
+
Fₙ Fbar hFn hinj hbar hext δ hδ βₙ hβc hβ0 hβHn z hz hβconv
|
| 219 |
+
αₙ aₙ Cg hα hα0 hmap r₀ hr₀ hsmallGuide
|
| 220 |
+
refine ⟨T₀, hT₀, q₀, b₀, b, A, d, L₀, hq₀, hb₀, hb, hA, hd, hL₀, ?_⟩
|
| 221 |
+
intro L hL hsmall B r hB hr hBL F hF a O W hO hW β tB T htB htBT hβ hi hβH
|
| 222 |
+
hcross hafter hcircle hsector htail hend hne hconv pₙ p U hU hp hpn hpconv hOU
|
| 223 |
+
hWfront hstartBall hearlyBall V hV hOV Vₙ hVVₙ bₙ ε hterminal hearlyAllowed
|
| 224 |
+
v hv hlim η hηc hηbar Rₙ hregion
|
| 225 |
+
let Tc := T₀ * (Real.toNNReal B) ^ 2
|
| 226 |
+
have hheightB := hheight B hB
|
| 227 |
+
have hpositive : 0 < P (stoppedNarrowCertificate γ
|
| 228 |
+
(fun ω => boundedFirstHeightTime (γ ω) B Tc) B Tc) :=
|
| 229 |
+
(ENNReal.ofReal_pos.mpr hq₀).trans_le hheightB
|
| 230 |
+
have hmissing : ∀ᶠ n in atTop, P (stoppedNarrowCertificate γ
|
| 231 |
+
(fun ω => boundedFirstHeightTime (γ ω) B Tc) B Tc \
|
| 232 |
+
stoppedImageEvent γ (fun ω => boundedFirstHeightTime (γ ω) B Tc)
|
| 233 |
+
(Fbar n) (aₙ n) (L * r₀)) ≤
|
| 234 |
+
P (stoppedNarrowCertificate γ (fun ω => boundedFirstHeightTime (γ ω) B Tc) B Tc) / 2 := by
|
| 235 |
+
filter_upwards [hlocseq] with n hn
|
| 236 |
+
calc
|
| 237 |
+
_ ≤ ENNReal.ofReal (A * L ^ (-d)) := hn L hL B hB hBL Tc
|
| 238 |
+
_ ≤ ENNReal.ofReal (q₀ / 2) := ENNReal.ofReal_le_ofReal hsmall
|
| 239 |
+
_ = ENNReal.ofReal q₀ / 2 := by
|
| 240 |
+
rw [ENNReal.ofReal_div_of_pos (by norm_num : (0 : ℝ) < 2)]
|
| 241 |
+
norm_num
|
| 242 |
+
_ ≤ _ := ENNReal.div_le_div_right hheightB 2
|
| 243 |
+
exact bounded_splice_sequence_success_middle_regions κ hκ hκ8 B₀ hB₀ hm hc γ G F₀ hw hboundary hsupport
|
| 244 |
+
B r hB hr Tc F hF a O W hO hW β tB T htB htBT hβ hi hβH hcross hafter hcircle hsector
|
| 245 |
+
htail hend Fbar hbar aₙ (L * r₀) Fₙ hFn hinj hne hconv hext pₙ p U hU hp hpn hpconv
|
| 246 |
+
hOU hWfront hstartBall hearlyBall V hV hOV Vₙ hVVₙ bₙ ε hterminal hearlyAllowed
|
| 247 |
+
v hv hlim η hηc hηbar Rₙ hregion hpositive hmissing
|
| 248 |
+
|
| 249 |
+
end SLEExactGauge.SequencePassage
|
| 250 |
+
|
| 251 |
+
end
|
| 252 |
+
|
| 253 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SequencePassageSuccess.lean
ADDED
|
@@ -0,0 +1,256 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SequencePassage
|
| 2 |
+
import OAI.Probability.SLE.Gauge.PassageSuccess
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-! Successful sequence passage: full allowed-ribbon containment and the
|
| 7 |
+
terminal tip offset accompany the actual stopped sausage lower bound. -/
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
open Set Filter MeasureTheory ProbabilityTheory Metric
|
| 11 |
+
open scoped Topology NNReal ENNReal
|
| 12 |
+
|
| 13 |
+
namespace SLEExactGauge.SequencePassage
|
| 14 |
+
open FirstHeightSupport EarlyPassageLocalization FirstFrontPassage PassageSuccess
|
| 15 |
+
|
| 16 |
+
local instance successSequencePathMeasurable : MeasurableSpace C(ℝ≥0, ℂ) := borel _
|
| 17 |
+
local instance successSequencePathBorel : BorelSpace C(ℝ≥0, ℂ) := ⟨rfl⟩
|
| 18 |
+
|
| 19 |
+
theorem bounded_splice_sequence_success
|
| 20 |
+
{Ω : Type*} [mΩ : MeasurableSpace Ω] {P : Measure Ω}
|
| 21 |
+
(κ : ℝ) (hκ : 0 < κ) (hκ8 : κ < 8)
|
| 22 |
+
(B₀ : ℝ≥0 → Ω → ℝ) (hB₀ : IsBrownianReal B₀ P)
|
| 23 |
+
(hm : ∀ t, Measurable (B₀ t)) (hc : ∀ ω, Continuous (fun t => B₀ t ω))
|
| 24 |
+
(γ : Ω → ℝ≥0 → ℂ) (G F₀ : Ω → ℝ≥0 → ℂ → ℂ)
|
| 25 |
+
(hw : ∀ ω, IsCapacityTwoWitness (fun t => Real.sqrt κ * B₀ t ω)
|
| 26 |
+
(γ ω) (G ω) (F₀ ω))
|
| 27 |
+
(hboundary : PublishedLoewnerBoundaryExtension)
|
| 28 |
+
(hsupport : PublishedGeometricTubeSupport P γ)
|
| 29 |
+
(B r : ℝ) (hB : 0 < B) (hr : 0 < r) (Tc : ℝ≥0)
|
| 30 |
+
(F : ℂ → ℂ) (hF : DifferentiableOn ℂ F upperHalfPlane) (a : ℂ)
|
| 31 |
+
(O W : Set ℂ) (hO : IsOpen O) (hW : IsOpen W)
|
| 32 |
+
(β : ℝ → ℂ) (tB T : ℝ) (htB : 0 < tB) (htBT : tB < T)
|
| 33 |
+
(hβ : ContinuousOn β (Icc 0 T)) (hi : InjOn β (Icc 0 T))
|
| 34 |
+
(hβH : ∀ t ∈ Ioc 0 T, 0 < (β t).im)
|
| 35 |
+
(hcross : ‖β tB‖ = B) (hafter : ∀ t ∈ Ioc tB T, B < ‖β t‖)
|
| 36 |
+
(hcircle : ∀ θ ∈ Ioo 0 Real.pi, ‖F (GuideSplice.circlePoint B θ) - a‖ < r / 4)
|
| 37 |
+
(hsector : ∀ z : ℂ, B / 8 ≤ ‖z‖ → ‖z‖ ≤ B → ‖z‖ / 2 ≤ z.im →
|
| 38 |
+
‖F z - a‖ < r / 4)
|
| 39 |
+
(htail : F '' (β '' Icc tB T) ⊆ O) (hend : β T ∈ W)
|
| 40 |
+
(Fbar : ℕ → ℂ → OnePoint ℂ)
|
| 41 |
+
(hbar : ∀ n, ContinuousOn (Fbar n) closedHalfPlane)
|
| 42 |
+
(aₙ : ℕ → ℂ) (ρ : ℝ)
|
| 43 |
+
(Fₙ : ℕ → ℂ → ℂ)
|
| 44 |
+
(hFn : ∀ n, DifferentiableOn ℂ (Fₙ n) upperHalfPlane)
|
| 45 |
+
(hinj : ∀ n, InjOn (Fₙ n) upperHalfPlane)
|
| 46 |
+
(hne : ∀ z ∈ upperHalfPlane, deriv F z ≠ 0)
|
| 47 |
+
(hconv : TendstoLocallyUniformlyOn Fₙ F atTop upperHalfPlane)
|
| 48 |
+
(hext : ∀ n z, z ∈ upperHalfPlane → Fbar n z = (Fₙ n z : OnePoint ℂ))
|
| 49 |
+
(pₙ : ℕ → ℂ → ℝ) (p : ℂ → ℝ) (U : Set ℂ) (hU : IsOpen U)
|
| 50 |
+
(hp : ContinuousOn p U) (hpn : ∀ n, ContinuousOn (pₙ n) U)
|
| 51 |
+
(hpconv : TendstoLocallyUniformlyOn pₙ p atTop U)
|
| 52 |
+
(hOU : ball a (r / 2) ∪ O ⊆ U)
|
| 53 |
+
(hWfront : ∀ z ∈ W, 1 < p (F z))
|
| 54 |
+
(hstartBall : ∀ z ∈ ball a (r / 4), p z < 1 / 3)
|
| 55 |
+
(hearlyBall : ∀ᶠ n in atTop, ball (aₙ n) ρ ⊆ U ∩ {z | pₙ n z < 1})
|
| 56 |
+
(V : Set ℂ) (hV : IsOpen V) (hOV : ball a (r / 2) ∪ O ⊆ V)
|
| 57 |
+
(Vₙ : ℕ → Set ℂ) (hVVₙ : ∀ᶠ n in atTop, V ⊆ Vₙ n)
|
| 58 |
+
(bₙ : ℕ → ℂ) (ε : ℝ)
|
| 59 |
+
(hterminal : ∀ n z, z ∈ Vₙ n → pₙ n z = 1 → ‖z - bₙ n‖ < ε / 4)
|
| 60 |
+
(hearlyAllowed : ∀ᶠ n in atTop, ball (aₙ n) ρ ⊆ Vₙ n)
|
| 61 |
+
(R : Set ℂ) (hR : IsOpen R)
|
| 62 |
+
(hmiddle : ∀ z ∈ ball a (r / 2) ∪ O, 1 / 3 < p z → p z < 2 / 3 → z ∈ R)
|
| 63 |
+
(v : ℕ → ℝ) (hv : ∀ n, 0 < v n) (hlim : Tendsto v atTop (𝓝 0))
|
| 64 |
+
(η : ℕ → Ω → ℝ≥0 → ℂ) (hηc : ∀ n, ∀ᵐ ω ∂P, Continuous (η n ω))
|
| 65 |
+
(hηbar : ∀ n, ∀ᵐ ω ∂P, ∀ t, Fbar n (γ ω t) = (η n ω t : OnePoint ℂ))
|
| 66 |
+
(Rₙ : ℕ → Set ℂ) (hregion : ∀ᶠ n in atTop, R ⊆ Rₙ n)
|
| 67 |
+
(hpositive : 0 < P (stoppedNarrowCertificate γ
|
| 68 |
+
(fun ω => boundedFirstHeightTime (γ ω) B Tc) B Tc))
|
| 69 |
+
(hmissing : ∀ᶠ n in atTop, P (stoppedNarrowCertificate γ
|
| 70 |
+
(fun ω => boundedFirstHeightTime (γ ω) B Tc) B Tc \
|
| 71 |
+
stoppedImageEvent γ (fun ω => boundedFirstHeightTime (γ ω) B Tc)
|
| 72 |
+
(Fbar n) (aₙ n) ρ) ≤
|
| 73 |
+
P (stoppedNarrowCertificate γ (fun ω => boundedFirstHeightTime (γ ω) B Tc) B Tc) / 2) :
|
| 74 |
+
∃ c q : ℝ, 0 < c ∧ 0 < q ∧ ∀ᶠ n in atTop, ENNReal.ofReal q ≤ P {ω |
|
| 75 |
+
ω ∈ FrontSuccess η pₙ (fun ω => boundedFirstHeightTime (γ ω) B Tc) Vₙ bₙ ε n ∧
|
| 76 |
+
ENNReal.ofReal c ≤ segmentSausageCharge κ (η n ω)
|
| 77 |
+
(boundedFirstHeightTime (γ ω) B Tc)
|
| 78 |
+
(frontTime (fun t => pₙ n (η n ω t)) 1) (v n) (Rₙ n)} := by
|
| 79 |
+
let : IsProbabilityMeasure P := hB₀.isGaussianProcess.isProbabilityMeasure
|
| 80 |
+
let ℱ := Filtration.natural B₀ (fun t => (hm t).stronglyMeasurable)
|
| 81 |
+
let σ := fun ω => boundedFirstHeightTime (γ ω) B Tc
|
| 82 |
+
have ha := brownian_capacity_trace_adapted B₀ hm hc κ γ G F₀ hw
|
| 83 |
+
have hγm (t : ℝ≥0) : Measurable (fun ω => γ ω t) := (ha t).mono (ℱ.le t) le_rfl
|
| 84 |
+
have hSLE : IsOrdinaryChordalSLE κ γ P :=
|
| 85 |
+
⟨hγm, B₀, hB₀, Eventually.of_forall (fun ω => ⟨G ω, F₀ ω, hw ω⟩)⟩
|
| 86 |
+
have hσ := boundedFirstHeightTime_isStoppingTime ℱ γ ha (fun ω => (hw ω).1) B Tc
|
| 87 |
+
have hσm : Measurable σ := stopping_time_measurable_nnreal hσ
|
| 88 |
+
let f := sourceTracePath γ (fun ω => (hw ω).1)
|
| 89 |
+
have hfm : Measurable f := source_path_measurable f hγm
|
| 90 |
+
let Uparam := parameterContinuationRegion F a r O
|
| 91 |
+
have hUparam : IsOpen Uparam := parameterContinuationRegion_isOpen hF.continuousOn a r hO
|
| 92 |
+
let C := stoppedPhysicalTube γ σ Uparam W
|
| 93 |
+
let E := stoppedNarrowCertificate γ σ B Tc ∩ C
|
| 94 |
+
let H : ℕ → Set Ω := fun n => stoppedImageEvent γ σ (Fbar n) (aₙ n) ρ
|
| 95 |
+
have hEm : MeasurableSet E := by
|
| 96 |
+
apply MeasurableSet.inter
|
| 97 |
+
· exact hσ.measurableSpace_le _
|
| 98 |
+
(boundedFirstHeight_certificate_measurable ℱ γ ha (fun ω => (hw ω).1) B Tc)
|
| 99 |
+
· exact measurableSet_stoppedPhysicalTube γ (fun ω => (hw ω).1) hγm σ hσm Uparam W hUparam hW
|
| 100 |
+
have hstart : ∀ ω ∈ E, p (F (γ ω (σ ω))) < 1 / 3 := by
|
| 101 |
+
intro ω hω
|
| 102 |
+
have hnorm := bounded_firstHeight_norm (f ω) (hw ω).2.1 (hw ω).2.2.1
|
| 103 |
+
hB Tc hω.1 (σ ω) ⟨bot_le, le_rfl⟩
|
| 104 |
+
change ‖γ ω (σ ω)‖ < B / 2 at hnorm
|
| 105 |
+
have hheight : (γ ω (σ ω)).im = B / 4 := hω.1.2.1
|
| 106 |
+
have him := Complex.im_le_norm (γ ω (σ ω))
|
| 107 |
+
have hsmall := hsector (γ ω (σ ω)) (by linarith) (by linarith)
|
| 108 |
+
(by rw [hheight]; linarith)
|
| 109 |
+
exact hstartBall _ (by simpa only [mem_ball, dist_eq_norm] using hsmall)
|
| 110 |
+
obtain ⟨q, hq, hprob⟩ := eventual_bounded_splice_probability κ hκ hκ8 B₀ hB₀ hm hc
|
| 111 |
+
γ G F₀ hw hboundary hsupport B r hB hr Tc F hF.continuousOn a O W hO hW
|
| 112 |
+
β tB T htB htBT hβ hi hβH hcross hafter hcircle hsector htail hend Fbar hbar aₙ ρ
|
| 113 |
+
hpositive hmissing
|
| 114 |
+
have hη : ∀ n, ∀ᵐ ω ∂P, ∀ t : ℝ≥0, σ ω ≤ t → γ ω t ∈ upperHalfPlane →
|
| 115 |
+
η n ω t = Fₙ n (γ ω t) := by
|
| 116 |
+
intro n
|
| 117 |
+
filter_upwards [hηbar n] with ω hω
|
| 118 |
+
intro t _ ht
|
| 119 |
+
exact OnePoint.coe_injective ((hω t).symm.trans (hext n _ ht))
|
| 120 |
+
have hearly : ∀ᶠ n in atTop, ∀ᵐ ω ∂P, ω ∈ H n ∩ E →
|
| 121 |
+
MapsTo (η n ω) (Icc 0 (σ ω)) U ∧
|
| 122 |
+
∀ t ∈ Icc 0 (σ ω), pₙ n (η n ω t) < 1 := by
|
| 123 |
+
filter_upwards [hearlyBall] with n hn
|
| 124 |
+
filter_upwards [hηbar n] with ω hω
|
| 125 |
+
intro hmem
|
| 126 |
+
have himage : MapsTo (η n ω) (Icc 0 (σ ω)) (ball (aₙ n) ρ) := by
|
| 127 |
+
intro t ht
|
| 128 |
+
obtain ⟨z, hz, he⟩ := hmem.1 t ht
|
| 129 |
+
have heq : z = η n ω t := OnePoint.coe_injective (he.trans (hω t))
|
| 130 |
+
exact heq ▸ hz
|
| 131 |
+
exact ⟨fun _ ht => (hn (himage ht)).1, fun _ ht => (hn (himage ht)).2⟩
|
| 132 |
+
have hearlyV : ∀ᶠ n in atTop, ∀ᵐ ω ∂P, ω ∈ H n ∩ E →
|
| 133 |
+
MapsTo (η n ω) (Icc 0 (σ ω)) (Vₙ n) := by
|
| 134 |
+
filter_upwards [hearlyAllowed] with n hn
|
| 135 |
+
filter_upwards [hηbar n] with ω hω
|
| 136 |
+
intro hmem t ht
|
| 137 |
+
obtain ⟨z, hz, he⟩ := hmem.1 t ht
|
| 138 |
+
have heq : z = η n ω t := OnePoint.coe_injective (he.trans (hω t))
|
| 139 |
+
exact hn (heq ▸ hz)
|
| 140 |
+
obtain ⟨c, hcpos, hmass⟩ := retained_tube_firstFront_success_mass P κ hκ hκ8
|
| 141 |
+
f hfm hSLE σ hσm Fₙ F hFn hinj hF hne hconv Uparam W hUparam inter_subset_left
|
| 142 |
+
pₙ p U hU hp hpn hpconv (fun _ hz => hOU hz.2) hWfront E hEm inter_subset_right
|
| 143 |
+
hstart V hV (fun _ hz => hOV hz.2) Vₙ hVVₙ bₙ ε hterminal
|
| 144 |
+
R hR (fun _ hz => hmiddle _ hz.2) v hv hlim η Rₙ hregion H q hq hprob hη hηc hearly hearlyV
|
| 145 |
+
exact ⟨c, q / 8, hcpos, by positivity, hmass⟩
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
theorem localized_sequence_passage_success
|
| 149 |
+
{Ω : Type*} [mΩ : MeasurableSpace Ω] {P : Measure Ω}
|
| 150 |
+
(κ : ℝ) (hκ : 0 < κ) (hκ8 : κ < 8)
|
| 151 |
+
(B₀ : ℝ≥0 → Ω → ℝ) (hB₀ : IsBrownianReal B₀ P)
|
| 152 |
+
(hm : ∀ t, Measurable (B₀ t)) (hc : ∀ ω, Continuous (fun t => B₀ t ω))
|
| 153 |
+
(γ : Ω → ℝ≥0 → ℂ) (G F₀ : Ω → ℝ≥0 → ℂ → ℂ)
|
| 154 |
+
(hw : ∀ ω, IsCapacityTwoWitness (fun t => Real.sqrt κ * B₀ t ω)
|
| 155 |
+
(γ ω) (G ω) (F₀ ω))
|
| 156 |
+
(hboundary : PublishedLoewnerBoundaryExtension)
|
| 157 |
+
(hsupport : PublishedGeometricTubeSupport P γ)
|
| 158 |
+
(Fₙ : ℕ → ℂ → ℂ) (Fbar : ℕ → ℂ → OnePoint ℂ)
|
| 159 |
+
(hFn : ∀ n, DifferentiableOn ℂ (Fₙ n) upperHalfPlane)
|
| 160 |
+
(hinj : ∀ n, InjOn (Fₙ n) upperHalfPlane)
|
| 161 |
+
(hbar : ∀ n, ContinuousOn (Fbar n) closedHalfPlane)
|
| 162 |
+
(hext : ∀ n z, z ∈ upperHalfPlane → Fbar n z = (Fₙ n z : OnePoint ℂ))
|
| 163 |
+
(δ : ℝ) (hδ : 0 < δ) (βₙ : ℕ → ℝ → ℂ)
|
| 164 |
+
(hβc : ∀ n, ContinuousOn (βₙ n) (Icc 0 δ)) (hβ0 : ∀ n, βₙ n 0 = 0)
|
| 165 |
+
(hβHn : ∀ n t, t ∈ Icc 0 δ → 0 ≤ (βₙ n t).im)
|
| 166 |
+
(z : ℂ) (hz : z ≠ 0) (hβconv : Tendsto (fun n => βₙ n δ) atTop (𝓝 z))
|
| 167 |
+
(αₙ : ℕ → ℝ → ℂ) (aₙ : ℕ → ℂ) (Cg : ℝ≥0)
|
| 168 |
+
(hα : ∀ n, LipschitzOnWith Cg (αₙ n) (Icc 0 δ)) (hα0 : ∀ n, αₙ n 0 = aₙ n)
|
| 169 |
+
(hmap : ∀ n t, t ∈ Icc 0 δ → Fbar n (βₙ n t) = (αₙ n t : OnePoint ℂ))
|
| 170 |
+
(r₀ : ℝ) (hr₀ : 0 < r₀) (hsmallGuide : (Cg : ℝ) * δ ≤ r₀) :
|
| 171 |
+
∃ T₀ : ℝ≥0, 0 < T₀ ∧ ∃ q₀ b₀ b A d L₀ : ℝ,
|
| 172 |
+
0 < q₀ ∧ 0 < b₀ ∧ 0 < b ∧ 0 < A ∧ 0 < d ∧ 1 < L₀ ∧
|
| 173 |
+
∀ (L : ℝ), L₀ ≤ L → A * L ^ (-d) ≤ q₀ / 2 →
|
| 174 |
+
∀ (B r : ℝ), 0 < B → 0 < r → B / 2 ≤ b₀ * L ^ b →
|
| 175 |
+
∀ (F : ℂ → ℂ), DifferentiableOn ℂ F upperHalfPlane →
|
| 176 |
+
∀ (a : ℂ) (O W : Set ℂ), IsOpen O → IsOpen W →
|
| 177 |
+
∀ (β : ℝ → ℂ) (tB T : ℝ), 0 < tB → tB < T →
|
| 178 |
+
ContinuousOn β (Icc 0 T) → InjOn β (Icc 0 T) →
|
| 179 |
+
(∀ t ∈ Ioc 0 T, 0 < (β t).im) → ‖β tB‖ = B →
|
| 180 |
+
(∀ t ∈ Ioc tB T, B < ‖β t‖) →
|
| 181 |
+
(∀ θ ∈ Ioo 0 Real.pi, ‖F (GuideSplice.circlePoint B θ) - a‖ < r / 4) →
|
| 182 |
+
(∀ w : ℂ, B / 8 ≤ ‖w‖ → ‖w‖ ≤ B → ‖w‖ / 2 ≤ w.im → ‖F w - a‖ < r / 4) →
|
| 183 |
+
F '' (β '' Icc tB T) ⊆ O → β T ∈ W →
|
| 184 |
+
(∀ w ∈ upperHalfPlane, deriv F w ≠ 0) →
|
| 185 |
+
TendstoLocallyUniformlyOn Fₙ F atTop upperHalfPlane →
|
| 186 |
+
∀ (pₙ : ℕ → ℂ → ℝ) (p : ℂ → ℝ) (U : Set ℂ), IsOpen U →
|
| 187 |
+
ContinuousOn p U → (∀ n, ContinuousOn (pₙ n) U) →
|
| 188 |
+
TendstoLocallyUniformlyOn pₙ p atTop U →
|
| 189 |
+
ball a (r / 2) ∪ O ⊆ U → (∀ w ∈ W, 1 < p (F w)) →
|
| 190 |
+
(∀ w ∈ ball a (r / 4), p w < 1 / 3) →
|
| 191 |
+
(∀ᶠ n in atTop, ball (aₙ n) (L * r₀) ⊆ U ∩ {w | pₙ n w < 1}) →
|
| 192 |
+
∀ (V : Set ℂ), IsOpen V → ball a (r / 2) ∪ O ⊆ V →
|
| 193 |
+
∀ (Vₙ : ℕ → Set ℂ), (∀ᶠ n in atTop, V ⊆ Vₙ n) →
|
| 194 |
+
∀ (bₙ : ℕ → ℂ) (ε : ℝ),
|
| 195 |
+
(∀ n w, w ∈ Vₙ n → pₙ n w = 1 → ‖w - bₙ n‖ < ε / 4) →
|
| 196 |
+
(∀ᶠ n in atTop, ball (aₙ n) (L * r₀) ⊆ Vₙ n) →
|
| 197 |
+
∀ (R : Set ℂ), IsOpen R →
|
| 198 |
+
(∀ w ∈ ball a (r / 2) ∪ O, 1 / 3 < p w → p w < 2 / 3 → w ∈ R) →
|
| 199 |
+
∀ (v : ℕ → ℝ), (∀ n, 0 < v n) → Tendsto v atTop (𝓝 0) →
|
| 200 |
+
∀ (η : ℕ → Ω → ℝ≥0 → ℂ), (∀ n, ∀ᵐ ω ∂P, Continuous (η n ω)) →
|
| 201 |
+
(∀ n, ∀ᵐ ω ∂P, ∀ t, Fbar n (γ ω t) = (η n ω t : OnePoint ℂ)) →
|
| 202 |
+
∀ (Rₙ : ℕ → Set ℂ), (∀ᶠ n in atTop, R ⊆ Rₙ n) →
|
| 203 |
+
∃ c q : ℝ, 0 < c ∧ 0 < q ∧ ∀ᶠ n in atTop, ENNReal.ofReal q ≤ P {ω |
|
| 204 |
+
ω ∈ FrontSuccess η pₙ
|
| 205 |
+
(fun ω => boundedFirstHeightTime (γ ω) B (T₀ * (Real.toNNReal B) ^ 2)) Vₙ bₙ ε n ∧
|
| 206 |
+
ENNReal.ofReal c ≤ segmentSausageCharge κ (η n ω)
|
| 207 |
+
(boundedFirstHeightTime (γ ω) B (T₀ * (Real.toNNReal B) ^ 2))
|
| 208 |
+
(frontTime (fun t => pₙ n (η n ω t)) 1) (v n) (Rₙ n)} := by
|
| 209 |
+
let : IsProbabilityMeasure P := hB₀.isGaussianProcess.isProbabilityMeasure
|
| 210 |
+
let ℱ := Filtration.natural B₀ (fun t => (hm t).stronglyMeasurable)
|
| 211 |
+
have ha := brownian_capacity_trace_adapted B₀ hm hc κ γ G F₀ hw
|
| 212 |
+
have hγm (t : ℝ≥0) : Measurable (fun ω => γ ω t) := (ha t).mono (ℱ.le t) le_rfl
|
| 213 |
+
have hSLE : IsOrdinaryChordalSLE κ γ P :=
|
| 214 |
+
⟨hγm, B₀, hB₀, Eventually.of_forall (fun ω => ⟨G ω, F₀ ω, hw ω⟩)⟩
|
| 215 |
+
obtain ⟨T₀, hT₀, q₀, hq₀, hheight⟩ := uniform_bounded_firstHeight_real_probability
|
| 216 |
+
κ hκ hκ8 B₀ hB₀ hm hc γ G F₀ hw hsupport
|
| 217 |
+
obtain ⟨b, A, d, L₀, hb, hA, hd, hL₀, hloc⟩ :=
|
| 218 |
+
common_access_gives_firstHeight_localization κ hκ hκ8
|
| 219 |
+
obtain ⟨b₀, hb₀, hlocseq⟩ := hloc Ω P γ hSLE (fun ω => (hw ω).1)
|
| 220 |
+
(fun ω => (hw ω).2.1) (fun ω t => (hw ω).2.2.1 t)
|
| 221 |
+
Fₙ Fbar hFn hinj hbar hext δ hδ βₙ hβc hβ0 hβHn z hz hβconv
|
| 222 |
+
αₙ aₙ Cg hα hα0 hmap r₀ hr₀ hsmallGuide
|
| 223 |
+
refine ⟨T₀, hT₀, q₀, b₀, b, A, d, L₀, hq₀, hb₀, hb, hA, hd, hL₀, ?_⟩
|
| 224 |
+
intro L hL hsmall B r hB hr hBL F hF a O W hO hW β tB T htB htBT hβ hi hβH
|
| 225 |
+
hcross hafter hcircle hsector htail hend hne hconv pₙ p U hU hp hpn hpconv hOU
|
| 226 |
+
hWfront hstartBall hearlyBall V hV hOV Vₙ hVVₙ bₙ ε hterminal hearlyAllowed
|
| 227 |
+
R hR hmiddle v hv hlim η hηc hηbar Rₙ hregion
|
| 228 |
+
let Tc := T₀ * (Real.toNNReal B) ^ 2
|
| 229 |
+
have hheightB := hheight B hB
|
| 230 |
+
have hpositive : 0 < P (stoppedNarrowCertificate γ
|
| 231 |
+
(fun ω => boundedFirstHeightTime (γ ω) B Tc) B Tc) :=
|
| 232 |
+
(ENNReal.ofReal_pos.mpr hq₀).trans_le hheightB
|
| 233 |
+
have hmissing : ∀ᶠ n in atTop, P (stoppedNarrowCertificate γ
|
| 234 |
+
(fun ω => boundedFirstHeightTime (γ ω) B Tc) B Tc \
|
| 235 |
+
stoppedImageEvent γ (fun ω => boundedFirstHeightTime (γ ω) B Tc)
|
| 236 |
+
(Fbar n) (aₙ n) (L * r₀)) ≤
|
| 237 |
+
P (stoppedNarrowCertificate γ (fun ω => boundedFirstHeightTime (γ ω) B Tc) B Tc) / 2 := by
|
| 238 |
+
filter_upwards [hlocseq] with n hn
|
| 239 |
+
calc
|
| 240 |
+
_ ≤ ENNReal.ofReal (A * L ^ (-d)) := hn L hL B hB hBL Tc
|
| 241 |
+
_ ≤ ENNReal.ofReal (q₀ / 2) := ENNReal.ofReal_le_ofReal hsmall
|
| 242 |
+
_ = ENNReal.ofReal q₀ / 2 := by
|
| 243 |
+
rw [ENNReal.ofReal_div_of_pos (by norm_num : (0 : ℝ) < 2)]
|
| 244 |
+
norm_num
|
| 245 |
+
_ ≤ _ := ENNReal.div_le_div_right hheightB 2
|
| 246 |
+
exact bounded_splice_sequence_success κ hκ hκ8 B₀ hB₀ hm hc γ G F₀ hw hboundary hsupport
|
| 247 |
+
B r hB hr Tc F hF a O W hO hW β tB T htB htBT hβ hi hβH hcross hafter hcircle hsector
|
| 248 |
+
htail hend Fbar hbar aₙ (L * r₀) Fₙ hFn hinj hne hconv hext pₙ p U hU hp hpn hpconv
|
| 249 |
+
hOU hWfront hstartBall hearlyBall V hV hOV Vₙ hVVₙ bₙ ε hterminal hearlyAllowed
|
| 250 |
+
R hR hmiddle v hv hlim η hηc hηbar Rₙ hregion hpositive hmissing
|
| 251 |
+
|
| 252 |
+
end SLEExactGauge.SequencePassage
|
| 253 |
+
|
| 254 |
+
end
|
| 255 |
+
|
| 256 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineActualAngle.lean
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineActualGuide
|
| 2 |
+
import OAI.Probability.SLE.Geometry.GoodPrefixCoordinates
|
| 3 |
+
import OAI.Probability.SLE.Geometry.MarkedAccessAngle
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
/-! Successful actual serpentine completion gives the marked-point angle
|
| 8 |
+
uniformly in the number of retained strips and in the trace history. -/
|
| 9 |
+
|
| 10 |
+
noncomputable section
|
| 11 |
+
open Set Filter Metric
|
| 12 |
+
open scoped Topology NNReal ENNReal
|
| 13 |
+
|
| 14 |
+
namespace SLEExactGauge.Serpentine
|
| 15 |
+
open RibbonCoordinates FirstFrontPassage Target
|
| 16 |
+
|
| 17 |
+
theorem uniform_serpentine_actual_angle_nonneg
|
| 18 |
+
(hopen : PublishedPlanarDiskOpenness)
|
| 19 |
+
(hstraight : PublishedHalfPlaneCrosscutStraightening)
|
| 20 |
+
(hexit : PublishedHalfPlaneConformalExitLaw)
|
| 21 |
+
(hsupport : PublishedPlanarWienerUnitSupport) (W : WienerLaw) (hW : IsWiener W)
|
| 22 |
+
{s : ℝ} (hs : 0 < s) (hs1 : s ≤ 1) :
|
| 23 |
+
∃ s₀ : ℝ, 0 < s₀ ∧ ∀ (U : ℝ≥0 → ℝ) (γ : ℝ≥0 → ℂ)
|
| 24 |
+
(G F : ℝ≥0 → ℂ → ℂ), IsCapacityTwoWitness U γ G F → Continuous U →
|
| 25 |
+
∀ w : ℂ, ‖w‖ ≤ 1 → s ≤ w.im → 0 ≤ w.re →
|
| 26 |
+
∀ m : ℕ, 0 < m → ∀ g : C(ℂ, ℝ),
|
| 27 |
+
(∀ z ∈ closedRibbon, g (physicalFitChart s w m z) = z.re) →
|
| 28 |
+
∀ ε : ℝ, ε ≤ 1 / 8 →
|
| 29 |
+
() ∈ GoodRibbonPrefix (fun _ : Unit => γ)
|
| 30 |
+
(fun _ => firstFrontTime (fun t => g (γ t)) (fitCompletion s w m))
|
| 31 |
+
(physicalFitChart s w m) ε →
|
| 32 |
+
let T := (firstFrontTime (fun t => g (γ t)) (fitCompletion s w m)).untopD 0
|
| 33 |
+
s₀ ≤ (G T w - (U T : ℂ)).im / ‖G T w - (U T : ℂ)‖ := by
|
| 34 |
+
obtain ⟨s₀, hs₀, hangle⟩ := uniform_marked_access_angle hopen hstraight hexit hsupport W hW
|
| 35 |
+
(show 0 < s / 20 by positivity) (show s / 20 ≤ 1 by linarith)
|
| 36 |
+
refine ⟨s₀, hs₀, ?_⟩
|
| 37 |
+
intro U γ G F hw hU w hwn hwy hwr m hm g hg ε hε hpref
|
| 38 |
+
have hchart : physicalExperimentChart s w m = physicalFitChart s w m := by
|
| 39 |
+
funext z
|
| 40 |
+
simp only [physicalExperimentChart, ite_eq_left hwr]
|
| 41 |
+
have hemb : Topology.IsClosedEmbedding (fun z : closedRibbon => physicalFitChart s w m z) := by
|
| 42 |
+
simpa only [hchart] using physicalExperimentChart_closedEmbedding hs w hwy hm
|
| 43 |
+
obtain ⟨hP, hi, hH, hescape⟩ := physicalFitChart_geometry hs w hwy hm
|
| 44 |
+
have hg0 : g (γ 0) = 0 := by
|
| 45 |
+
rw [hw.2.1, ← physicalFitChart_zero hs w hwy hm]
|
| 46 |
+
exact hg 0 (by simp [closedRibbon])
|
| 47 |
+
have hk : 0 < (fitCompletion s w m : ℝ) := by
|
| 48 |
+
have hbound := (fitCompletion_bounds hs w hwy hm).1
|
| 49 |
+
have hEntry : 0 ≤ fitEntry s w m :=
|
| 50 |
+
(by unfold fitHeight; positivity : (0 : ℝ) ≤ fitHeight m).trans (fit_entry_lower hs w hwy hm)
|
| 51 |
+
have hcol : 0 ≤ columnEntry 0 m (2 * m) := columnEntry_nonneg le_rfl _ _
|
| 52 |
+
have hmR : (0 : ℝ) < m := by exact_mod_cast hm
|
| 53 |
+
linarith
|
| 54 |
+
obtain ⟨T, x, xp, hfirst, hT, hx, hxpc, hγeq, hxp0, htip, hcoords, hcore, hstrict⟩ :=
|
| 55 |
+
goodRibbonPrefix_coordinates γ hw.1 _ hemb hi g hg hg0 hk hpref
|
| 56 |
+
have hxq : |x| ≤ 1 / 4 := hx.trans (by linarith)
|
| 57 |
+
have hx1 : |x| ≤ 1 := hxq.trans (by norm_num)
|
| 58 |
+
have htipre : (xp T).re = fitCompletion s w m := by simp [htip]
|
| 59 |
+
have htipim : (xp T).im = x := by simp [htip]
|
| 60 |
+
have hfresh := ribbon_front_tip_survives_prior _ hP.continuousOn hi hH hescape γ xp T
|
| 61 |
+
hxpc hxp0 hcoords hγeq (fun t ht => by rw [htipre]; exact hstrict t ht)
|
| 62 |
+
(by rw [htipim]; exact hxq.trans_lt (by norm_num))
|
| 63 |
+
have htipphysical : physicalFitChart s w m ((fitCompletion s w m : ℂ) + (x : ℂ) * Complex.I) = γ T := by
|
| 64 |
+
push_cast at htip
|
| 65 |
+
rw [← htip]
|
| 66 |
+
exact (hγeq ⟨bot_le, le_rfl⟩).symm
|
| 67 |
+
let α := fun u : ℝ≥0 => completeMarkedAccess s w m x u
|
| 68 |
+
have hαc : Continuous α :=
|
| 69 |
+
(completeMarkedAccess_continuous hs hs1 w hwy hwn hwr hm x).comp NNReal.continuous_coe
|
| 70 |
+
have hαi : Function.Injective α := by
|
| 71 |
+
intro t u he
|
| 72 |
+
apply NNReal.coe_injective
|
| 73 |
+
exact completeMarkedAccess_injective hs hs1 w hwy hwn hwr hm hx1 t.coe_nonneg u.coe_nonneg he
|
| 74 |
+
have hα0 : α 0 = γ T := by
|
| 75 |
+
change completeMarkedAccess s w m x (0 : ℝ) = γ T
|
| 76 |
+
rw [completeMarkedAccess_zero hs hs1 w hwy hwn hm x, htipphysical]
|
| 77 |
+
have hαD := completeMarkedAccess_survives hs hs1 w hwy hwn hwr hm hxq γ xp T hcoords hγeq
|
| 78 |
+
(fun t ht => (hcore t ht).1)
|
| 79 |
+
have hαescape : Tendsto α atTop (cocompact ℂ) := by
|
| 80 |
+
apply tendsto_cocompact_of_tendsto_dist_comp_atTop 0
|
| 81 |
+
simp only [dist_zero_right]
|
| 82 |
+
exact (completeMarkedAccess_norm_tendsto hs w hwn hwr m x).comp
|
| 83 |
+
(NNReal.tendsto_coe_atTop.mpr tendsto_id)
|
| 84 |
+
have hlocus (z : ℂ) (hz : z ∈ ball (0 : ℂ) ((s / 20) / 12)) :
|
| 85 |
+
(∃ u : ℝ≥0, 0 < u ∧ α u = markedCornerChart w z) ↔ z.im = 0 :=
|
| 86 |
+
completeMarkedAccess_corner_nnreal_iff hs hs1 w hwy hwn hwr hm hx1 hz
|
| 87 |
+
have hclear (right : Bool) (t : ℝ) (ht : t ∈ Icc (1 / 64 : ℝ) 3) (u : ℝ≥0) (_hu : 0 < u) :
|
| 88 |
+
(s / 20) / 1000 ≤ dist (markedWindowRoute right w (s / 20) t) (α u) := by
|
| 89 |
+
have hh := completeMarkedAccess_route_clearance hs hs1 w hwy hwn hwr hm hx1
|
| 90 |
+
(show 1 / 64 ≤ 4 / 3 * t by linarith [ht.1]) u.coe_nonneg
|
| 91 |
+
cases right
|
| 92 |
+
· exact hh.1
|
| 93 |
+
· exact hh.2
|
| 94 |
+
have hpast := physicalFit_prefix_low_right hs w hwy hwr hm γ xp T hcoords hγeq
|
| 95 |
+
have hh := hangle U γ G F hw hU T hT hfresh w hwn (show 2 * (s / 20) < w.im by linarith)
|
| 96 |
+
hpast α hαc hαi hα0 hαD hαescape hlocus hclear
|
| 97 |
+
simpa only [hfirst, WithTop.untopD_coe] using hh
|
| 98 |
+
|
| 99 |
+
end SLEExactGauge.Serpentine
|
| 100 |
+
|
| 101 |
+
end
|
| 102 |
+
|
| 103 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineActualAngleReflection.lean
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineActualAngle
|
| 2 |
+
import OAI.Probability.SLE.Geometry.MarkedWitnessReflection
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-! Reflection removes the sign restriction on the marked point, with
|
| 7 |
+
exactly the same uniform angle constant as the right-hand experiment. -/
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
open Set Filter Metric ComplexConjugate
|
| 11 |
+
open scoped Topology NNReal ENNReal
|
| 12 |
+
|
| 13 |
+
namespace SLEExactGauge.Serpentine
|
| 14 |
+
open RibbonCoordinates FirstFrontPassage Target
|
| 15 |
+
|
| 16 |
+
theorem uniform_serpentine_actual_angle
|
| 17 |
+
(hopen : PublishedPlanarDiskOpenness)
|
| 18 |
+
(hstraight : PublishedHalfPlaneCrosscutStraightening)
|
| 19 |
+
(hexit : PublishedHalfPlaneConformalExitLaw)
|
| 20 |
+
(hsupport : PublishedPlanarWienerUnitSupport) (W : WienerLaw) (hW : IsWiener W)
|
| 21 |
+
{s : ℝ} (hs : 0 < s) (hs1 : s ≤ 1) :
|
| 22 |
+
∃ s₀ : ℝ, 0 < s₀ ∧ ∀ (U : ℝ≥0 → ℝ) (γ : ℝ≥0 → ℂ)
|
| 23 |
+
(G F : ℝ≥0 → ℂ → ℂ), IsCapacityTwoWitness U γ G F → Continuous U →
|
| 24 |
+
∀ w : ℂ, ‖w‖ ≤ 1 → s ≤ w.im →
|
| 25 |
+
∀ m : ℕ, 0 < m → ∀ g : C(ℂ, ℝ),
|
| 26 |
+
(∀ z ∈ closedRibbon, g (physicalExperimentChart s w m z) = z.re) →
|
| 27 |
+
∀ ε : ℝ, ε ≤ 1 / 8 →
|
| 28 |
+
() ∈ GoodRibbonPrefix (fun _ : Unit => γ)
|
| 29 |
+
(fun _ => firstFrontTime (fun t => g (γ t)) (fitCompletion s w m))
|
| 30 |
+
(physicalExperimentChart s w m) ε →
|
| 31 |
+
let T := (firstFrontTime (fun t => g (γ t)) (fitCompletion s w m)).untopD 0
|
| 32 |
+
s₀ ≤ (G T w - (U T : ℂ)).im / ‖G T w - (U T : ℂ)‖ := by
|
| 33 |
+
obtain ⟨s₀, hs₀, hangle⟩ :=
|
| 34 |
+
uniform_serpentine_actual_angle_nonneg hopen hstraight hexit hsupport W hW hs hs1
|
| 35 |
+
refine ⟨s₀, hs₀, ?_⟩
|
| 36 |
+
intro U γ G F hw hU w hwn hwy m hm g hg ε hε hpref
|
| 37 |
+
by_cases hwr : 0 ≤ w.re
|
| 38 |
+
· have hchart : physicalExperimentChart s w m = physicalFitChart s w m := by
|
| 39 |
+
funext z
|
| 40 |
+
simp only [physicalExperimentChart, ite_eq_left hwr]
|
| 41 |
+
exact hangle U γ G F hw hU w hwn hwy hwr m hm g
|
| 42 |
+
(by simpa only [hchart] using hg) ε hε (by simpa only [hchart] using hpref)
|
| 43 |
+
· have hwneg : w.re < 0 := lt_of_not_ge hwr
|
| 44 |
+
let γ' : ℝ≥0 → ℂ := loewnerMirror ∘ γ
|
| 45 |
+
let U' : ℝ≥0 → ℝ := fun t => -U t
|
| 46 |
+
let G' : ℝ≥0 → ℂ → ℂ := fun t z => loewnerMirror (G t (loewnerMirror z))
|
| 47 |
+
let F' : ℝ≥0 → ℂ → ℂ := fun t z => loewnerMirror (F t (loewnerMirror z))
|
| 48 |
+
let g' := mirroredProgress g
|
| 49 |
+
have hg' : ∀ z ∈ closedRibbon,
|
| 50 |
+
g' (physicalFitChart s (loewnerMirror w) m z) = z.re := by
|
| 51 |
+
intro z hz
|
| 52 |
+
have hh := hg (conj z) (conj_mem_closedRibbon hz)
|
| 53 |
+
rw [physicalExperimentChart_negative hwneg m] at hh
|
| 54 |
+
simpa only [g', mirroredProgress, ContinuousMap.coe_mk, reflectedChart,
|
| 55 |
+
Complex.conj_conj, Complex.conj_re] using hh
|
| 56 |
+
have hclock : firstFrontTime (fun t => g' (γ' t))
|
| 57 |
+
(fitCompletion s (loewnerMirror w) m) =
|
| 58 |
+
firstFrontTime (fun t => g (γ t)) (fitCompletion s w m) := by
|
| 59 |
+
rw [fitCompletion_mirror]
|
| 60 |
+
exact mirroredProgress_firstFrontTime g γ _
|
| 61 |
+
have hpref' : () ∈ GoodRibbonPrefix (fun _ : Unit => γ')
|
| 62 |
+
(fun _ => firstFrontTime (fun t => g' (γ' t))
|
| 63 |
+
(fitCompletion s (loewnerMirror w) m))
|
| 64 |
+
(physicalFitChart s (loewnerMirror w) m) ε := by
|
| 65 |
+
rw [hclock]
|
| 66 |
+
rw [goodRibbonPrefix_physical_negative _ _ hwneg m ε] at hpref
|
| 67 |
+
simpa only [γ', Function.comp_def] using hpref
|
| 68 |
+
have hh := hangle U' γ' G' F' hw.mirror hU.neg (loewnerMirror w)
|
| 69 |
+
(by simpa only [loewnerMirror_norm] using hwn)
|
| 70 |
+
(by simpa only [loewnerMirror_im] using hwy)
|
| 71 |
+
(by simp only [loewnerMirror_re]; linarith)
|
| 72 |
+
m hm g' hg' ε hε hpref'
|
| 73 |
+
dsimp only at hh ⊢
|
| 74 |
+
rw [hclock] at hh
|
| 75 |
+
simpa only [U', G', loewnerMirror_twice, mirrored_centered_sine] using hh
|
| 76 |
+
|
| 77 |
+
end SLEExactGauge.Serpentine
|
| 78 |
+
|
| 79 |
+
end
|
| 80 |
+
|
| 81 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineActualGuide.lean
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentinePhysicalGeometry
|
| 2 |
+
import OAI.Probability.SLE.Gauge.SerpentineMarkedRouteClearance
|
| 3 |
+
import OAI.Probability.SLE.Geometry.ActualWaypointStraightening
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
/-! The concrete terminal access guide lies in the actual surviving
|
| 8 |
+
component of a successful stopped serpentine trace. -/
|
| 9 |
+
|
| 10 |
+
noncomputable section
|
| 11 |
+
open Set Filter Metric
|
| 12 |
+
open scoped Topology NNReal
|
| 13 |
+
|
| 14 |
+
namespace SLEExactGauge.Serpentine
|
| 15 |
+
open RibbonCoordinates
|
| 16 |
+
|
| 17 |
+
lemma physicalFit_prefix_low_right {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 18 |
+
(hwr : 0 ≤ w.re) {m : ℕ} (hm : 0 < m)
|
| 19 |
+
(γ xp : ℝ≥0 → ℂ) (T : ℝ≥0)
|
| 20 |
+
(hcoords : MapsTo xp (Icc 0 T) closedRibbon)
|
| 21 |
+
(hγ : EqOn γ (physicalFitChart s w m ∘ xp) (Icc 0 T)) :
|
| 22 |
+
∀ q ∈ γ '' Icc 0 T, q.im ≤ w.im - 2 * (s / 20) ∨ w.re + 2 * (s / 20) ≤ q.re := by
|
| 23 |
+
rintro q ⟨t, ht, rfl⟩
|
| 24 |
+
rw [hγ ht]
|
| 25 |
+
rcases physicalFitChart_low_or_right hs w hw hm (hcoords ht).2 with hlo | hright
|
| 26 |
+
· left
|
| 27 |
+
change (physicalFitChart s w m (xp t)).im ≤ _
|
| 28 |
+
linarith
|
| 29 |
+
· right
|
| 30 |
+
rw [abs_of_nonneg hwr] at hright
|
| 31 |
+
change _ ≤ (physicalFitChart s w m (xp t)).re
|
| 32 |
+
linarith
|
| 33 |
+
|
| 34 |
+
theorem completeMarkedAccess_survives {s : ℝ} (hs : 0 < s) (hs1 : s ≤ 1)
|
| 35 |
+
(w : ℂ) (hw : s ≤ w.im) (hw1 : ‖w‖ ≤ 1) (hwr : 0 ≤ w.re)
|
| 36 |
+
{m : ℕ} (hm : 0 < m) {x : ℝ} (hx : |x| ≤ 1 / 4)
|
| 37 |
+
(γ xp : ℝ≥0 → ℂ) (T : ℝ≥0)
|
| 38 |
+
(hcoords : MapsTo xp (Icc 0 T) closedRibbon)
|
| 39 |
+
(hγ : EqOn γ (physicalFitChart s w m ∘ xp) (Icc 0 T))
|
| 40 |
+
(hfront : ∀ t ∈ Icc 0 T, (xp t).re ≤ fitCompletion s w m) :
|
| 41 |
+
∀ u : ℝ≥0, 0 < u → completeMarkedAccess s w m x u ∈ survivingDomain γ T := by
|
| 42 |
+
obtain ⟨hP, hi, hH, hescape⟩ := physicalFitChart_geometry hs w hw hm
|
| 43 |
+
have hpast : γ '' Icc 0 T ⊆ physicalFitChart s w m ''
|
| 44 |
+
{z ∈ closedRibbon | z.re ≤ fitCompletion s w m} := by
|
| 45 |
+
rintro q ⟨t, ht, rfl⟩
|
| 46 |
+
exact ⟨xp t, ⟨hcoords ht, hfront t ht⟩, (hγ ht).symm⟩
|
| 47 |
+
have hfuture := futureRibbon_survives _ hP.continuousOn hi
|
| 48 |
+
(Nat.cast_nonneg (fitCompletion s w m)) hH γ T hpast
|
| 49 |
+
(futureRibbon_unbounded_of_centerline_escape _ (fitCompletion s w m) hescape)
|
| 50 |
+
have hwi := (Complex.im_le_norm w).trans hw1
|
| 51 |
+
have hR : w.re < fitTerminalX s w := by
|
| 52 |
+
unfold fitTerminalX
|
| 53 |
+
rw [abs_of_nonneg hwr]
|
| 54 |
+
linarith
|
| 55 |
+
have hhook := markedHook_survives γ T w (lt_of_lt_of_le hs hw) hR
|
| 56 |
+
(show w.im < 2 by linarith) (show 0 < s / 20 by positivity) (by
|
| 57 |
+
rintro q ⟨t, ht, rfl⟩
|
| 58 |
+
rw [hγ ht]
|
| 59 |
+
refine ⟨physicalFitChart_finite_height_lt_two hs hs1 w hw hw1 hm (hcoords ht) (hfront t ht), ?_⟩
|
| 60 |
+
rcases physicalFitChart_low_or_right hs w hw hm (hcoords ht).2 with hlo | hright
|
| 61 |
+
· left
|
| 62 |
+
change (physicalFitChart s w m (xp t)).im < w.im
|
| 63 |
+
linarith
|
| 64 |
+
· right
|
| 65 |
+
rw [abs_of_nonneg hwr] at hright
|
| 66 |
+
change w.re < (physicalFitChart s w m (xp t)).re
|
| 67 |
+
linarith)
|
| 68 |
+
intro u hu
|
| 69 |
+
by_cases huT : (u : ℝ) ≤ fitHighTime s w m
|
| 70 |
+
· rw [completeMarkedAccess, appendMarkedHook, curveJoin_of_le huT]
|
| 71 |
+
apply hfuture
|
| 72 |
+
exact mem_image_of_mem _ (guideCoordinate_mem_future hx (by exact_mod_cast hu))
|
| 73 |
+
· rw [completeMarkedAccess, appendMarkedHook, curveJoin_of_gt (lt_of_not_ge huT)]
|
| 74 |
+
exact hhook ⟨⟨(u : ℝ) - fitHighTime s w m, by linarith⟩, rfl⟩
|
| 75 |
+
|
| 76 |
+
end SLEExactGauge.Serpentine
|
| 77 |
+
|
| 78 |
+
end
|
| 79 |
+
|
| 80 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineActualRadius.lean
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineActualGuide
|
| 2 |
+
import OAI.Probability.SLE.Gauge.SerpentineMarkedReflection
|
| 3 |
+
import OAI.Probability.SLE.Gauge.ExperimentClearance
|
| 4 |
+
import OAI.Probability.SLE.Geometry.MarkedSurvivingBall
|
| 5 |
+
|
| 6 |
+
namespace OAI
|
| 7 |
+
|
| 8 |
+
/-! Successful physical prefixes leave a definite ball around the marked
|
| 9 |
+
point in the actual surviving domain, hence finish before a fixed radius level. -/
|
| 10 |
+
|
| 11 |
+
noncomputable section
|
| 12 |
+
open Set Filter Metric
|
| 13 |
+
open scoped Topology NNReal ENNReal
|
| 14 |
+
|
| 15 |
+
namespace SLEExactGauge.Serpentine
|
| 16 |
+
open RibbonCoordinates
|
| 17 |
+
|
| 18 |
+
lemma good_physicalFit_ball_survives {s : ℝ} (hs : 0 < s) (w : ℂ)
|
| 19 |
+
(hwy : s ≤ w.im) (hwr : 0 ≤ w.re) {m : ℕ} (hm : 0 < m)
|
| 20 |
+
(γ : ℝ≥0 → ℂ) (τ : WithTop ℝ≥0) (ε : ℝ)
|
| 21 |
+
(hpref : () ∈ GoodRibbonPrefix (fun _ : Unit => γ) (fun _ => τ)
|
| 22 |
+
(physicalFitChart s w m) ε) :
|
| 23 |
+
ball w (s / 20) ⊆ survivingDomain γ (τ.untopD 0) := by
|
| 24 |
+
apply marked_ball_survives γ (τ.untopD 0) w (by positivity) (by linarith)
|
| 25 |
+
rintro q ⟨t, ht, rfl⟩
|
| 26 |
+
obtain ⟨z, ⟨hz, _⟩, he⟩ := hpref.2.1 ht
|
| 27 |
+
change physicalFitChart s w m z = γ t at he
|
| 28 |
+
rw [← he]
|
| 29 |
+
rcases physicalFitChart_low_or_right hs w hwy hm hz.2 with hlo | hright
|
| 30 |
+
· left
|
| 31 |
+
linarith
|
| 32 |
+
· right
|
| 33 |
+
rw [abs_of_nonneg hwr] at hright
|
| 34 |
+
linarith
|
| 35 |
+
|
| 36 |
+
theorem good_physicalExperiment_ball_survives {s : ℝ} (hs : 0 < s) (w : ℂ)
|
| 37 |
+
(hwy : s ≤ w.im) {m : ℕ} (hm : 0 < m)
|
| 38 |
+
(γ : ℝ≥0 → ℂ) (τ : WithTop ℝ≥0) (ε : ℝ)
|
| 39 |
+
(hpref : () ∈ GoodRibbonPrefix (fun _ : Unit => γ) (fun _ => τ)
|
| 40 |
+
(physicalExperimentChart s w m) ε) :
|
| 41 |
+
ball w (s / 20) ⊆ survivingDomain γ (τ.untopD 0) := by
|
| 42 |
+
by_cases hwr : 0 ≤ w.re
|
| 43 |
+
· have hchart : physicalExperimentChart s w m = physicalFitChart s w m := by
|
| 44 |
+
funext z
|
| 45 |
+
simp only [physicalExperimentChart, ite_eq_left hwr]
|
| 46 |
+
apply good_physicalFit_ball_survives hs w hwy hwr hm γ τ ε
|
| 47 |
+
simpa only [hchart] using hpref
|
| 48 |
+
· have hneg : w.re < 0 := lt_of_not_ge hwr
|
| 49 |
+
have hp : () ∈ GoodRibbonPrefix (fun _ : Unit => (loewnerMirror ∘ γ)) (fun _ => τ)
|
| 50 |
+
(physicalFitChart s (loewnerMirror w) m) ε := by
|
| 51 |
+
rw [goodRibbonPrefix_physical_negative _ _ hneg m ε] at hpref
|
| 52 |
+
simpa only [Function.comp_def] using hpref
|
| 53 |
+
have hb := good_physicalFit_ball_survives hs (loewnerMirror w)
|
| 54 |
+
(by simpa only [loewnerMirror_im] using hwy)
|
| 55 |
+
(by simp only [loewnerMirror_re]; linarith) hm (loewnerMirror ∘ γ) τ ε hp
|
| 56 |
+
intro z hz
|
| 57 |
+
apply (loewnerMirror_surviving γ (τ.untopD 0) z).mp
|
| 58 |
+
apply hb
|
| 59 |
+
simpa only [mem_ball, loewnerMirror_dist] using hz
|
| 60 |
+
|
| 61 |
+
def experimentRadiusLevel (s : ℝ) : ℝ := -Real.log (s / 80)
|
| 62 |
+
|
| 63 |
+
lemma experimentRadiusLevel_nonneg {s : ℝ} (hs : 0 < s) (hs1 : s ≤ 1) :
|
| 64 |
+
0 ≤ experimentRadiusLevel s := by
|
| 65 |
+
unfold experimentRadiusLevel
|
| 66 |
+
exact neg_nonneg.mpr (Real.log_nonpos (by positivity) (by linarith))
|
| 67 |
+
|
| 68 |
+
lemma experimentRadiusLevel_cutoff {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : ‖w‖ ≤ 1) :
|
| 69 |
+
(2 * w.im) * Real.exp (-experimentRadiusLevel s) < s / 20 := by
|
| 70 |
+
have hy := (Complex.im_le_norm w).trans hw
|
| 71 |
+
rw [experimentRadiusLevel, neg_neg, Real.exp_log (by positivity : 0 < s / 80)]
|
| 72 |
+
nlinarith
|
| 73 |
+
|
| 74 |
+
theorem good_physicalExperiment_before_radius
|
| 75 |
+
{U : ℝ≥0 → ℝ} {γ : ℝ≥0 → ℂ} {G F : ℝ≥0 → ℂ → ℂ}
|
| 76 |
+
(hU : Continuous U) (hw : IsCapacityTwoWitness U γ G F)
|
| 77 |
+
{s : ℝ} (hs : 0 < s) (w : ℂ) (hwn : ‖w‖ ≤ 1) (hwy : s ≤ w.im)
|
| 78 |
+
{m : ℕ} (hm : 0 < m) (τ : WithTop ℝ≥0) (ε : ℝ)
|
| 79 |
+
(hpref : () ∈ GoodRibbonPrefix (fun _ : Unit => γ) (fun _ => τ)
|
| 80 |
+
(physicalExperimentChart s w m) ε) :
|
| 81 |
+
τ < radiusLevelTime γ G w (experimentRadiusLevel s) ∧
|
| 82 |
+
w ∈ survivingDomain γ (τ.untopD 0) := by
|
| 83 |
+
have hb := good_physicalExperiment_ball_survives hs w hwy hm γ τ ε hpref
|
| 84 |
+
have hlive := hb (mem_ball_self (by positivity : 0 < s / 20))
|
| 85 |
+
refine ⟨?_, hlive⟩
|
| 86 |
+
have hh := completion_before_radiusLevelTime_of_prefix_lower hU hw (τ.untopD 0) w
|
| 87 |
+
(experimentRadiusLevel s) (s / 20) (fun t ht => by
|
| 88 |
+
have hbt := hb.trans (survivingDomain_antitone γ ht)
|
| 89 |
+
exact ⟨hbt (mem_ball_self (by positivity)),
|
| 90 |
+
fullRadius_lower_of_surviving_ball hU hw t w (by positivity) hbt⟩)
|
| 91 |
+
(experimentRadiusLevel_cutoff hs w hwn)
|
| 92 |
+
cases he : τ with
|
| 93 |
+
| top => exact (hpref.1 he).elim
|
| 94 |
+
| coe T =>
|
| 95 |
+
have hh' : (T : ℝ≥0∞) < radiusLevelTime γ G w (experimentRadiusLevel s) := by
|
| 96 |
+
simpa only [he, WithTop.untopD_coe] using hh
|
| 97 |
+
exact_mod_cast hh'
|
| 98 |
+
|
| 99 |
+
end SLEExactGauge.Serpentine
|
| 100 |
+
|
| 101 |
+
end
|
| 102 |
+
|
| 103 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineArrayEmbedding.lean
ADDED
|
@@ -0,0 +1,198 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineCurve
|
| 2 |
+
import OAI.Probability.SLE.Gauge.SerpentineEmbedding
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-! Global normal coordinates for the actual finite serpentine array.
|
| 7 |
+
Every parameter belongs to a straight or circular piece, and the only
|
| 8 |
+
possible normal-band contacts are the prescribed common end sections. -/
|
| 9 |
+
|
| 10 |
+
noncomputable section
|
| 11 |
+
open Set Metric
|
| 12 |
+
|
| 13 |
+
namespace SLEExactGauge.Serpentine
|
| 14 |
+
|
| 15 |
+
def arrayEnd (m j : ℕ) : ℝ := columnEntry 0 m j + 200 * m
|
| 16 |
+
|
| 17 |
+
lemma array_pieces (m j : ℕ) {t : ℝ} (ht : t ∈ Icc 0 (arrayEnd m j)) :
|
| 18 |
+
(∃ i ≤ j, ∃ u ∈ Icc (0 : ℝ) (200 * m),
|
| 19 |
+
t = columnEntry 0 m i + u ∧
|
| 20 |
+
arraySpine m j t = straightPiece m i u ∧ arrayTangent m j t = straightTangent i) ∨
|
| 21 |
+
(∃ i < j, ∃ u ∈ Icc (0 : ℝ) (50 * Real.pi),
|
| 22 |
+
t = columnEntry 0 m i + 200 * m + u ∧
|
| 23 |
+
arraySpine m j t = circularPiece m i u ∧ arrayTangent m j t = circularTangent i u) := by
|
| 24 |
+
induction j with
|
| 25 |
+
| zero =>
|
| 26 |
+
exact Or.inl ⟨0, le_rfl, t, ⟨ht.1, by simpa only [arrayEnd, columnEntry, Nat.cast_zero, zero_mul, add_zero, zero_add] using ht.2⟩,
|
| 27 |
+
by simp [columnEntry], rfl, rfl⟩
|
| 28 |
+
| succ j ih =>
|
| 29 |
+
have ha : arrayEnd m j < columnEntry 0 m (j + 1) := by
|
| 30 |
+
rw [arrayEnd, columnEntry_succ]
|
| 31 |
+
linarith [Real.pi_pos]
|
| 32 |
+
by_cases hta : t ≤ arrayEnd m j
|
| 33 |
+
· change t ≤ columnEntry 0 m j + 200 * m at hta
|
| 34 |
+
rcases ih ⟨ht.1, hta⟩ with ⟨i, hi, u, hu, htu, hs, hT⟩ | ⟨i, hi, u, hu, htu, hs, hT⟩
|
| 35 |
+
· refine Or.inl ⟨i, hi.trans (Nat.le_succ j), u, hu, htu, ?_, ?_⟩
|
| 36 |
+
· simpa only [arraySpine, curveJoin_of_le (hta.trans ha.le), curveJoin_of_le hta] using hs
|
| 37 |
+
· simpa only [arrayTangent, curveJoin_of_le (hta.trans ha.le), curveJoin_of_le hta] using hT
|
| 38 |
+
· refine Or.inr ⟨i, hi.trans_le (Nat.le_succ j), u, hu, htu, ?_, ?_⟩
|
| 39 |
+
· simpa only [arraySpine, curveJoin_of_le (hta.trans ha.le), curveJoin_of_le hta] using hs
|
| 40 |
+
· simpa only [arrayTangent, curveJoin_of_le (hta.trans ha.le), curveJoin_of_le hta] using hT
|
| 41 |
+
· have hat : columnEntry 0 m j + 200 * m < t := lt_of_not_ge hta
|
| 42 |
+
by_cases htb : t ≤ columnEntry 0 m (j + 1)
|
| 43 |
+
· refine Or.inr ⟨j, Nat.lt_succ_self j, t - arrayEnd m j, ?_, ?_, ?_, ?_⟩
|
| 44 |
+
· constructor
|
| 45 |
+
· linarith
|
| 46 |
+
· rw [columnEntry_succ] at htb
|
| 47 |
+
dsimp [arrayEnd]
|
| 48 |
+
linarith
|
| 49 |
+
· dsimp [arrayEnd]; ring
|
| 50 |
+
· simp only [arraySpine, curveJoin_of_le htb, curveJoin_of_gt hat, arrayEnd]
|
| 51 |
+
· simp only [arrayTangent, curveJoin_of_le htb, curveJoin_of_gt hat, arrayEnd]
|
| 52 |
+
· have hbt : columnEntry 0 m (j + 1) < t := lt_of_not_ge htb
|
| 53 |
+
refine Or.inl ⟨j + 1, le_rfl, t - columnEntry 0 m (j + 1), ?_, by ring, ?_, ?_⟩
|
| 54 |
+
· constructor
|
| 55 |
+
· linarith
|
| 56 |
+
· dsimp only [arrayEnd] at ht
|
| 57 |
+
linarith [ht.2]
|
| 58 |
+
· exact arraySpine_tail m (j + 1) hbt.le
|
| 59 |
+
· exact arrayTangent_tail m (j + 1) hbt.le
|
| 60 |
+
|
| 61 |
+
lemma normalized_width {m : ℕ} (hm : 0 < m) : ribbonWidth (100 * m) m = 1 := by
|
| 62 |
+
unfold ribbonWidth
|
| 63 |
+
have hm' : (m : ℝ) ≠ 0 := by exact_mod_cast hm.ne'
|
| 64 |
+
field_simp
|
| 65 |
+
|
| 66 |
+
lemma normalized_spacing {m : ℕ} (hm : 0 < m) : spacing (100 * m) m = 100 := by
|
| 67 |
+
rw [spacing_eq_width, normalized_width hm, mul_one]
|
| 68 |
+
|
| 69 |
+
lemma normalized_radius {m : ℕ} (hm : 0 < m) : turnRadius (100 * m) m = 50 := by
|
| 70 |
+
rw [turnRadius_eq_width, normalized_width hm, mul_one]
|
| 71 |
+
|
| 72 |
+
lemma normal_straight_eq {m : ℕ} (hm : 0 < m) (j : ℕ) (u a : ℝ) :
|
| 73 |
+
straightPiece m j u + (a : ℂ) * Complex.I * straightTangent j =
|
| 74 |
+
columnPoint 0 (100 * m) m j (side j * (-100 * m + u)) a := by
|
| 75 |
+
apply Complex.ext <;>
|
| 76 |
+
simp only [straightPiece, straightTangent, columnPoint, columnOffset,
|
| 77 |
+
normalized_spacing hm, normalized_width hm, Complex.add_re, Complex.add_im,
|
| 78 |
+
Complex.mul_re, Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im,
|
| 79 |
+
Complex.I_re, Complex.I_im, Complex.zero_re, Complex.zero_im] <;> ring
|
| 80 |
+
|
| 81 |
+
lemma normal_circular_eq {m : ℕ} (hm : 0 < m) (j : ℕ) (u a : ℝ) :
|
| 82 |
+
circularPiece m j u + (a : ℂ) * Complex.I * circularTangent j u =
|
| 83 |
+
turnPoint 0 (100 * m) m j (u / 50) a := by
|
| 84 |
+
apply Complex.ext
|
| 85 |
+
· simp only [circularPiece, circularTangent, turnPoint, columnOffset,
|
| 86 |
+
normalized_spacing hm, normalized_radius hm, normalized_width hm,
|
| 87 |
+
Complex.add_re, Complex.add_im, Complex.mul_re, Complex.mul_im,
|
| 88 |
+
Complex.ofReal_re, Complex.ofReal_im, Complex.I_re, Complex.I_im,
|
| 89 |
+
Complex.zero_re]
|
| 90 |
+
ring
|
| 91 |
+
· simp only [circularPiece, circularTangent, turnPoint, columnOffset,
|
| 92 |
+
normalized_spacing hm, normalized_radius hm, normalized_width hm,
|
| 93 |
+
Complex.add_re, Complex.add_im, Complex.mul_re, Complex.mul_im,
|
| 94 |
+
Complex.ofReal_re, Complex.ofReal_im, Complex.I_re, Complex.I_im,
|
| 95 |
+
Complex.zero_im]
|
| 96 |
+
ring_nf
|
| 97 |
+
rw [side_sq]
|
| 98 |
+
ring
|
| 99 |
+
|
| 100 |
+
lemma straight_height_bound (m j : ℕ) {u : ℝ} (hu : u ∈ Icc (0 : ℝ) (200 * m)) :
|
| 101 |
+
|side j * (-100 * m + u)| ≤ 100 * m := by
|
| 102 |
+
rw [abs_mul, side_abs, one_mul]
|
| 103 |
+
exact abs_le.mpr ⟨by linarith [hu.1], by linarith [hu.2]⟩
|
| 104 |
+
|
| 105 |
+
lemma circular_angle_bound {u : ℝ} (hu : u ∈ Icc (0 : ℝ) (50 * Real.pi)) :
|
| 106 |
+
u / 50 ∈ Icc (0 : ℝ) Real.pi := by
|
| 107 |
+
constructor <;> linarith [hu.1, hu.2]
|
| 108 |
+
|
| 109 |
+
lemma turn_column_time {m : ℕ} (hm : 0 < m) (j k : ℕ) {θ y a b : ℝ}
|
| 110 |
+
(hθ : θ ∈ Icc (0 : ℝ) Real.pi) (hy : |y| ≤ 100 * m)
|
| 111 |
+
(ha : |a| ≤ 1) (hb : |b| ≤ 1)
|
| 112 |
+
(he : turnPoint 0 (100 * m) m j θ a = columnPoint 0 (100 * m) m k y b) :
|
| 113 |
+
columnEntry 0 m j + 200 * m + 50 * θ =
|
| 114 |
+
columnEntry 0 m k + (side k * y + 100 * m) ∧ a = b := by
|
| 115 |
+
have hh : (0 : ℝ) < 100 * m := by positivity
|
| 116 |
+
rcases turnPoint_column_gluing hh hm 0 hθ hy ha hb he with
|
| 117 |
+
⟨hθ, hk, hy, hab⟩ | ⟨hθ, hk, hy, hab⟩
|
| 118 |
+
· subst θ
|
| 119 |
+
subst k
|
| 120 |
+
subst y
|
| 121 |
+
refine ⟨?_, hab⟩
|
| 122 |
+
have hs : side j * (side j * (100 * (m : ℝ))) = 100 * m := by
|
| 123 |
+
rw [← mul_assoc, ← pow_two, side_sq, one_mul]
|
| 124 |
+
rw [hs]
|
| 125 |
+
ring
|
| 126 |
+
· subst θ
|
| 127 |
+
subst k
|
| 128 |
+
subst y
|
| 129 |
+
refine ⟨?_, hab⟩
|
| 130 |
+
have hs : side (j + 1) * (side j * (100 * (m : ℝ))) = -(100 * m) := by
|
| 131 |
+
rw [side_succ, neg_mul, ← mul_assoc, ← pow_two, side_sq, one_mul]
|
| 132 |
+
rw [hs, columnEntry_succ]
|
| 133 |
+
ring
|
| 134 |
+
|
| 135 |
+
/-- Normal coordinates over the complete finite array are injective,
|
| 136 |
+
including the endpoints shared by adjacent straight and circular pieces. -/
|
| 137 |
+
theorem array_normal_injective {m : ℕ} (hm : 0 < m) (last : ℕ) :
|
| 138 |
+
InjOn (normalRibbon (arraySpine m last) (arrayTangent m last))
|
| 139 |
+
{z : ℂ | z.re ∈ Icc (0 : ℝ) (arrayEnd m last) ∧ |z.im| ≤ 1} := by
|
| 140 |
+
intro z hz w hw he
|
| 141 |
+
have hh : (0 : ℝ) < 100 * m := by positivity
|
| 142 |
+
rcases array_pieces m last hz.1 with ⟨i, _, u, hu, hzu, hzs, hzT⟩ |
|
| 143 |
+
⟨i, _, u, hu, hzu, hzs, hzT⟩ <;>
|
| 144 |
+
rcases array_pieces m last hw.1 with ⟨j, _, v, hv, hwv, hws, hwT⟩ |
|
| 145 |
+
⟨j, _, v, hv, hwv, hws, hwT⟩
|
| 146 |
+
· simp only [normalRibbon] at he
|
| 147 |
+
rw [hzs, hzT, hws, hwT,
|
| 148 |
+
normal_straight_eq hm, normal_straight_eq hm] at he
|
| 149 |
+
have hij := columnPoint_equal_forces_index hh hm 0 _ _ hz.2 hw.2 he
|
| 150 |
+
subst j
|
| 151 |
+
obtain ⟨hy, hab⟩ := columnPoint_injective hh hm 0 i he
|
| 152 |
+
have hs : side i ≠ 0 := by
|
| 153 |
+
intro h
|
| 154 |
+
have hh := side_abs i
|
| 155 |
+
rw [h, abs_zero] at hh
|
| 156 |
+
norm_num at hh
|
| 157 |
+
have huv : u = v := by
|
| 158 |
+
have h := mul_left_cancel₀ hs hy
|
| 159 |
+
linarith
|
| 160 |
+
exact Complex.ext (by rw [hzu, hwv, huv]) hab
|
| 161 |
+
· simp only [normalRibbon] at he
|
| 162 |
+
rw [hzs, hzT, hws, hwT,
|
| 163 |
+
normal_straight_eq hm, normal_circular_eq hm] at he
|
| 164 |
+
obtain ⟨ht, hab⟩ := turn_column_time hm j i (circular_angle_bound hv)
|
| 165 |
+
(straight_height_bound m i hu) hw.2 hz.2 he.symm
|
| 166 |
+
have hs : side i * (side i * (-100 * (m : ℝ) + u)) = -100 * m + u := by
|
| 167 |
+
rw [← mul_assoc, ← pow_two, side_sq, one_mul]
|
| 168 |
+
rw [hs] at ht
|
| 169 |
+
exact Complex.ext (by rw [hzu, hwv]; linarith) hab.symm
|
| 170 |
+
· simp only [normalRibbon] at he
|
| 171 |
+
rw [hzs, hzT, hws, hwT,
|
| 172 |
+
normal_circular_eq hm, normal_straight_eq hm] at he
|
| 173 |
+
obtain ⟨ht, hab⟩ := turn_column_time hm i j (circular_angle_bound hu)
|
| 174 |
+
(straight_height_bound m j hv) hz.2 hw.2 he
|
| 175 |
+
have hs : side j * (side j * (-100 * (m : ℝ) + v)) = -100 * m + v := by
|
| 176 |
+
rw [← mul_assoc, ← pow_two, side_sq, one_mul]
|
| 177 |
+
rw [hs] at ht
|
| 178 |
+
exact Complex.ext (by rw [hzu, hwv]; linarith) hab
|
| 179 |
+
· simp only [normalRibbon] at he
|
| 180 |
+
rw [hzs, hzT, hws, hwT,
|
| 181 |
+
normal_circular_eq hm, normal_circular_eq hm] at he
|
| 182 |
+
have hij : i = j := by
|
| 183 |
+
by_contra hij
|
| 184 |
+
rcases lt_or_gt_of_ne hij with hij | hji
|
| 185 |
+
· exact turnPoint_ne hh hm hij 0 (circular_angle_bound hu) (circular_angle_bound hv)
|
| 186 |
+
hz.2 hw.2 he
|
| 187 |
+
· exact turnPoint_ne hh hm hji 0 (circular_angle_bound hv) (circular_angle_bound hu)
|
| 188 |
+
hw.2 hz.2 he.symm
|
| 189 |
+
subst j
|
| 190 |
+
obtain ⟨ht, hab⟩ := turnPoint_injective hh hm 0 i (circular_angle_bound hu)
|
| 191 |
+
(circular_angle_bound hv) hz.2 hw.2 he
|
| 192 |
+
exact Complex.ext (by rw [hzu, hwv]; linarith) hab
|
| 193 |
+
|
| 194 |
+
end SLEExactGauge.Serpentine
|
| 195 |
+
|
| 196 |
+
end
|
| 197 |
+
|
| 198 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineArrayRegion.lean
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineAttachments
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
/-! Horizontal confinement of the whole infinite array. This keeps
|
| 6 |
+
every part of the completed experiment away from the marked-point shadow. -/
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
open Set Metric
|
| 10 |
+
|
| 11 |
+
namespace SLEExactGauge.Serpentine
|
| 12 |
+
|
| 13 |
+
lemma array_normal_re_lower {m : ℕ} (hm : 0 < m) {z : ℂ}
|
| 14 |
+
(hz : 0 ≤ z.re ∧ |z.im| ≤ 1) :
|
| 15 |
+
-(400 * (m : ℝ)) ≤ (normalRibbon (arraySpine m (2 * m)) (arrayTangent m (2 * m)) z).re := by
|
| 16 |
+
have hh : (0 : ℝ) < 100 * m := by positivity
|
| 17 |
+
by_cases he : z.re ≤ arrayEnd m (2 * m)
|
| 18 |
+
· rcases array_pieces m (2 * m) ⟨hz.1, he⟩ with ⟨i, hi, u, hu, _, hs, hT⟩ |
|
| 19 |
+
⟨i, hi, u, hu, _, hs, hT⟩
|
| 20 |
+
· simp only [normalRibbon]
|
| 21 |
+
rw [hs, hT, normal_straight_eq hm]
|
| 22 |
+
have hb := columnPoint_bound hh hm hi 0 (straight_height_bound m i hu) hz.2
|
| 23 |
+
rw [dist_zero_right] at hb
|
| 24 |
+
have hi := Complex.abs_re_le_norm (columnPoint 0 (100 * m) m i (side i * (-100 * m + u)) z.im)
|
| 25 |
+
have hl := neg_abs_le (columnPoint 0 (100 * m) m i (side i * (-100 * m + u)) z.im).re
|
| 26 |
+
linarith
|
| 27 |
+
· simp only [normalRibbon]
|
| 28 |
+
rw [hs, hT, normal_circular_eq hm]
|
| 29 |
+
have hb := turnPoint_bound hh hm (show i + 1 ≤ 2 * m by omega) 0 (u / 50) hz.2
|
| 30 |
+
rw [dist_zero_right] at hb
|
| 31 |
+
have hi := Complex.abs_re_le_norm (turnPoint 0 (100 * m) m i (u / 50) z.im)
|
| 32 |
+
have hl := neg_abs_le (turnPoint 0 (100 * m) m i (u / 50) z.im).re
|
| 33 |
+
linarith
|
| 34 |
+
· have hE : columnEntry 0 m (2 * m) ≤ z.re := by
|
| 35 |
+
have h := lt_of_not_ge he
|
| 36 |
+
dsimp only [arrayEnd] at h
|
| 37 |
+
linarith [Nat.cast_nonneg (α := ℝ) m]
|
| 38 |
+
have ht := array_normal_terminal hm (a := z.im) hE
|
| 39 |
+
rw [Complex.re_add_im z] at ht
|
| 40 |
+
rw [ht, columnPoint_re]
|
| 41 |
+
simp only [columnOffset, normalized_spacing hm, normalized_width hm, side_even,
|
| 42 |
+
one_mul, Complex.zero_re, zero_add, Nat.cast_mul, Nat.cast_ofNat]
|
| 43 |
+
have hm' : (1 : ℝ) ≤ m := by exact_mod_cast hm
|
| 44 |
+
linarith [(abs_le.mp hz.2).2]
|
| 45 |
+
|
| 46 |
+
end SLEExactGauge.Serpentine
|
| 47 |
+
|
| 48 |
+
end
|
| 49 |
+
|
| 50 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineAttachments.lean
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineInfiniteArray
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
/-! Clearance below the array and the unique attachment to its first
|
| 6 |
+
column. These facts separate the low connector from the array. -/
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
open Set Metric
|
| 10 |
+
|
| 11 |
+
namespace SLEExactGauge.Serpentine
|
| 12 |
+
|
| 13 |
+
lemma array_normal_im_lower {m : ℕ} (hm : 0 < m) {z : ℂ}
|
| 14 |
+
(hz : 0 ≤ z.re ∧ |z.im| ≤ 1) :
|
| 15 |
+
-(400 * (m : ℝ)) ≤ (normalRibbon (arraySpine m (2 * m)) (arrayTangent m (2 * m)) z).im := by
|
| 16 |
+
have hh : (0 : ℝ) < 100 * m := by positivity
|
| 17 |
+
by_cases he : z.re ≤ arrayEnd m (2 * m)
|
| 18 |
+
· rcases array_pieces m (2 * m) ⟨hz.1, he⟩ with ⟨i, hi, u, hu, _, hs, hT⟩ |
|
| 19 |
+
⟨i, hi, u, hu, _, hs, hT⟩
|
| 20 |
+
· simp only [normalRibbon]
|
| 21 |
+
rw [hs, hT, normal_straight_eq hm]
|
| 22 |
+
have hb := columnPoint_bound hh hm hi 0 (straight_height_bound m i hu) hz.2
|
| 23 |
+
rw [dist_zero_right] at hb
|
| 24 |
+
have hi := Complex.abs_im_le_norm (columnPoint 0 (100 * m) m i (side i * (-100 * m + u)) z.im)
|
| 25 |
+
have hl := neg_abs_le (columnPoint 0 (100 * m) m i (side i * (-100 * m + u)) z.im).im
|
| 26 |
+
linarith
|
| 27 |
+
· simp only [normalRibbon]
|
| 28 |
+
rw [hs, hT, normal_circular_eq hm]
|
| 29 |
+
have hb := turnPoint_bound hh hm (show i + 1 ≤ 2 * m by omega) 0 (u / 50) hz.2
|
| 30 |
+
rw [dist_zero_right] at hb
|
| 31 |
+
have hi := Complex.abs_im_le_norm (turnPoint 0 (100 * m) m i (u / 50) z.im)
|
| 32 |
+
have hl := neg_abs_le (turnPoint 0 (100 * m) m i (u / 50) z.im).im
|
| 33 |
+
linarith
|
| 34 |
+
· have hE : columnEntry 0 m (2 * m) ≤ z.re := by
|
| 35 |
+
have h := lt_of_not_ge he
|
| 36 |
+
dsimp only [arrayEnd] at h
|
| 37 |
+
linarith [Nat.cast_nonneg (α := ℝ) m]
|
| 38 |
+
have ht := array_normal_terminal hm (a := z.im) hE
|
| 39 |
+
rw [Complex.re_add_im z] at ht
|
| 40 |
+
rw [ht, columnPoint_im]
|
| 41 |
+
have h := lt_of_not_ge he
|
| 42 |
+
dsimp only [arrayEnd] at h
|
| 43 |
+
simp only [Complex.zero_im, zero_add]
|
| 44 |
+
linarith
|
| 45 |
+
|
| 46 |
+
/-- The downward extension of the first column meets the array only at
|
| 47 |
+
its initial cross-section, with identical normal coordinate. -/
|
| 48 |
+
theorem array_downward_attachment {m : ℕ} (hm : 0 < m) {z : ℂ}
|
| 49 |
+
(hz : 0 ≤ z.re ∧ |z.im| ≤ 1) {y a : ℝ} (hy : y ≤ -(100 * (m : ℝ)))
|
| 50 |
+
(ha : |a| ≤ 1)
|
| 51 |
+
(he : normalRibbon (arraySpine m (2 * m)) (arrayTangent m (2 * m)) z =
|
| 52 |
+
columnPoint 0 (100 * m) m 0 y a) :
|
| 53 |
+
z.re = 0 ∧ y = -(100 * (m : ℝ)) ∧ z.im = a := by
|
| 54 |
+
have hh : (0 : ℝ) < 100 * m := by positivity
|
| 55 |
+
have hs0 : side 0 = 1 := by simp [side]
|
| 56 |
+
by_cases hE : z.re ≤ arrayEnd m (2 * m)
|
| 57 |
+
· rcases array_pieces m (2 * m) ⟨hz.1, hE⟩ with ⟨i, _, u, hu, hzu, hs, hT⟩ |
|
| 58 |
+
⟨i, hi, u, hu, _, hs, hT⟩
|
| 59 |
+
· simp only [normalRibbon] at he
|
| 60 |
+
rw [hs, hT, normal_straight_eq hm] at he
|
| 61 |
+
have hii := columnPoint_equal_forces_index hh hm 0 _ _ hz.2 ha he
|
| 62 |
+
subst i
|
| 63 |
+
obtain ⟨hy', ha'⟩ := columnPoint_injective hh hm 0 0 he
|
| 64 |
+
rw [hs0, one_mul] at hy'
|
| 65 |
+
have hu0 : u = 0 := by linarith [hu.1]
|
| 66 |
+
subst u
|
| 67 |
+
exact ⟨by simpa [columnEntry] using hzu, by linarith, ha'⟩
|
| 68 |
+
· simp only [normalRibbon] at he
|
| 69 |
+
rw [hs, hT, normal_circular_eq hm] at he
|
| 70 |
+
by_cases hi0 : i = 0
|
| 71 |
+
· subst i
|
| 72 |
+
have him := turn_oriented_height hh hm 0 0 (circular_angle_bound hu) hz.2
|
| 73 |
+
rw [hs0, one_mul, he, columnPoint_im] at him
|
| 74 |
+
simp only [Complex.zero_im, zero_add] at him
|
| 75 |
+
linarith
|
| 76 |
+
· exact (turnPoint_column_ne_nonadjacent hh hm (Or.inl (Nat.pos_of_ne_zero hi0))
|
| 77 |
+
0 (u / 50) y hz.2 ha he).elim
|
| 78 |
+
· have hze : columnEntry 0 m (2 * m) ≤ z.re := by
|
| 79 |
+
have h := lt_of_not_ge hE
|
| 80 |
+
dsimp only [arrayEnd] at h
|
| 81 |
+
linarith [Nat.cast_nonneg (α := ℝ) m]
|
| 82 |
+
have ht := array_normal_terminal hm (a := z.im) hze
|
| 83 |
+
rw [Complex.re_add_im z] at ht
|
| 84 |
+
rw [ht] at he
|
| 85 |
+
have hii := columnPoint_equal_forces_index hh hm 0 _ _ hz.2 ha he
|
| 86 |
+
omega
|
| 87 |
+
|
| 88 |
+
end SLEExactGauge.Serpentine
|
| 89 |
+
|
| 90 |
+
end
|
| 91 |
+
|
| 92 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineCenteredMass.lean
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineActualRadius
|
| 2 |
+
import OAI.Probability.SLE.Gauge.SerpentineActualAngleReflection
|
| 3 |
+
import OAI.Probability.SLE.Gauge.ExtendedExperimentStop
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
/-! The stopped physical experiment under the actual finite centered law.
|
| 8 |
+
Both its mass and its successful completion are observable at the front. -/
|
| 9 |
+
|
| 10 |
+
noncomputable section
|
| 11 |
+
open Set Filter MeasureTheory ProbabilityTheory Metric
|
| 12 |
+
open scoped Topology NNReal ENNReal
|
| 13 |
+
|
| 14 |
+
namespace SLEExactGauge.Serpentine
|
| 15 |
+
open RibbonCoordinates Target FirstFrontPassage
|
| 16 |
+
|
| 17 |
+
lemma experimentSteps_add_one {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 18 |
+
{m : ℕ} (hm : 0 < m) : experimentSteps s w m + 1 = fitCompletion s w m := by
|
| 19 |
+
have hbound := (fitCompletion_bounds hs w hw hm).1
|
| 20 |
+
have hEntry : 0 ≤ fitEntry s w m :=
|
| 21 |
+
(by unfold fitHeight; positivity : (0 : ℝ) ≤ fitHeight m).trans (fit_entry_lower hs w hw hm)
|
| 22 |
+
have hcol : 0 ≤ columnEntry 0 m (2 * m) := columnEntry_nonneg le_rfl _ _
|
| 23 |
+
have hmR : (0 : ℝ) < m := by exact_mod_cast hm
|
| 24 |
+
have hk : (0 : ℝ) < fitCompletion s w m := by linarith
|
| 25 |
+
have hkN : 0 < fitCompletion s w m := by exact_mod_cast hk
|
| 26 |
+
change fitCompletion s w m - 1 + 1 = fitCompletion s w m
|
| 27 |
+
omega
|
| 28 |
+
|
| 29 |
+
lemma experiment_front_eq {Ω : Type*} {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 30 |
+
{m : ℕ} (hm : 0 < m) (g : C(ℂ, ℝ)) (γ : Ω → ℝ≥0 → ℂ) :
|
| 31 |
+
ribbonIntegerFront g γ (experimentSteps s w m) =
|
| 32 |
+
ribbonFrontStop g γ (fitCompletion s w m) := by
|
| 33 |
+
have hh : (experimentSteps s w m : ℝ) + 1 = fitCompletion s w m := by
|
| 34 |
+
exact_mod_cast experimentSteps_add_one hs w hw hm
|
| 35 |
+
simp only [ribbonIntegerFront, hh]
|
| 36 |
+
|
| 37 |
+
lemma exponential_prefactor_quadratic_cost {p C : ℝ} (hp : 0 < p) (hC : 0 < C) :
|
| 38 |
+
∃ D : ℝ, 0 < D ∧ ∀ m : ℕ, 0 < m →
|
| 39 |
+
Real.exp (-D * (m : ℝ) ^ 2) ≤ p * Real.exp (-C * (m : ℝ) ^ 2) := by
|
| 40 |
+
refine ⟨C + |Real.log p| + 1, by positivity, fun m hm => ?_⟩
|
| 41 |
+
have hm1 : (1 : ℝ) ≤ m := by exact_mod_cast hm
|
| 42 |
+
have hlog : -|Real.log p| ≤ Real.log p := neg_abs_le _
|
| 43 |
+
have hmul := mul_nonneg (abs_nonneg (Real.log p))
|
| 44 |
+
(show 0 ≤ (m : ℝ) ^ 2 - 1 by nlinarith)
|
| 45 |
+
calc
|
| 46 |
+
_ ≤ Real.exp (Real.log p + -C * (m : ℝ) ^ 2) := by
|
| 47 |
+
apply Real.exp_le_exp.mpr
|
| 48 |
+
nlinarith [abs_nonneg (Real.log p)]
|
| 49 |
+
_ = _ := by rw [Real.exp_add, Real.exp_log hp]
|
| 50 |
+
|
| 51 |
+
theorem uniform_serpentine_centered_stopped_mass
|
| 52 |
+
{Ω : Type} [mΩ : MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ]
|
| 53 |
+
(κ : ℝ) (hκ : 0 < κ) (hκ8 : κ < 8)
|
| 54 |
+
(B : ℝ≥0 → Ω → ℝ) (hB : IsBrownianReal B μ)
|
| 55 |
+
(hBm : Measurable (fun p : ℝ≥0 × Ω => B p.1 p.2))
|
| 56 |
+
(hc : ∀ ω, Continuous (fun t => B t ω)) (hB0 : ∀ ω, B 0 ω = 0)
|
| 57 |
+
(γ : Ω → ℝ≥0 → ℂ) (G F : Ω → ℝ≥0 → ℂ → ℂ)
|
| 58 |
+
(hw : ∀ ω, IsCapacityTwoWitness (fun t => Real.sqrt κ * B t ω) (γ ω) (G ω) (F ω))
|
| 59 |
+
(hcompact : PublishedHalfPlaneUnivalentCompactness)
|
| 60 |
+
(hboundary : PublishedFiniteLoewnerBoundaryExtension)
|
| 61 |
+
(hsupport : PublishedGeometricTubeSupport μ γ)
|
| 62 |
+
(hplanar : PublishedPlanarDiskOpenness)
|
| 63 |
+
(hstraight : PublishedHalfPlaneCrosscutStraightening)
|
| 64 |
+
(hexit : PublishedHalfPlaneConformalExitLaw)
|
| 65 |
+
(hwiener : PublishedPlanarWienerUnitSupport)
|
| 66 |
+
(W : WienerLaw) (hW : IsWiener W)
|
| 67 |
+
(ε : ℝ) (hε : 0 < ε) (hεsmall : ε ≤ 1 / 8) :
|
| 68 |
+
∃ c v₀ : ℝ, 0 < c ∧ 0 < v₀ ∧ ∀ s : ℝ, 0 < s → s ≤ 1 →
|
| 69 |
+
∃ C : ℝ, 0 < C ∧ ∀ w : ℂ, ‖w‖ ≤ 1 → s ≤ w.im → ∀ m : ℕ, 0 < m →
|
| 70 |
+
∀ v : ℝ, 0 < v → v < ribbonWidth (halfHeight s) m * v₀ → ∀ g : C(ℂ, ℝ),
|
| 71 |
+
(∀ z ∈ closedRibbon, g (physicalExperimentChart s w m z) = z.re) →
|
| 72 |
+
ENNReal.ofReal (Real.exp (-C * (m : ℝ) ^ 2)) ≤
|
| 73 |
+
finiteCenteredLaw μ κ B γ G w (experimentRadiusLevel s)
|
| 74 |
+
(RibbonStepSuccess γ (fun _ => 0) (ribbonFrontStop g γ (fitCompletion s w m))
|
| 75 |
+
(physicalExperimentChart s w m) ε κ v
|
| 76 |
+
(c * (s / 20000) ^ dimension κ * (m : ℝ) ^ codimension κ)
|
| 77 |
+
(closedBall (center s w) (s / 20))) := by
|
| 78 |
+
have hm (t : ℝ≥0) : Measurable (B t) :=
|
| 79 |
+
hBm.comp (measurable_const.prodMk measurable_id)
|
| 80 |
+
obtain ⟨c, v₀, hcm, hv₀, hprob⟩ := uniform_serpentine_physical_stopped_mass μ κ hκ hκ8
|
| 81 |
+
B hB hm hc γ G F hw hcompact hboundary hsupport hplanar hstraight hexit hwiener W hW ε hε hεsmall
|
| 82 |
+
refine ⟨c, v₀, hcm, hv₀, fun s hs hs1 => ?_⟩
|
| 83 |
+
obtain ⟨C, hC, hprob⟩ := hprob s hs
|
| 84 |
+
obtain ⟨s₀, hs₀, hangle⟩ := uniform_serpentine_actual_angle hplanar hstraight hexit hwiener W hW hs hs1
|
| 85 |
+
obtain ⟨D, hD, hcost⟩ := exponential_prefactor_quadratic_cost
|
| 86 |
+
(Real.rpow_pos_of_pos hs₀ (greenExponent κ)) hC
|
| 87 |
+
refine ⟨D, hD, fun w hwn hwy m hmp v hv hvcut g hg => ?_⟩
|
| 88 |
+
let τ := ribbonFrontStop g γ (fitCompletion s w m)
|
| 89 |
+
let E := RibbonStepSuccess γ (fun _ => 0) τ (physicalExperimentChart s w m) ε κ v
|
| 90 |
+
(c * (s / 20000) ^ dimension κ * (m : ℝ) ^ codimension κ)
|
| 91 |
+
(closedBall (center s w) (s / 20))
|
| 92 |
+
let ℱ := Filtration.natural B
|
| 93 |
+
(fun _t => (hBm.comp (measurable_const.prodMk measurable_id)).stronglyMeasurable)
|
| 94 |
+
have ha : Adapted ℱ (fun t ω => γ ω t) :=
|
| 95 |
+
brownian_capacity_trace_adapted B hm hc κ γ G F hw
|
| 96 |
+
have hγc : ∀ ω, Continuous (γ ω) := fun ω => (hw ω).1
|
| 97 |
+
have hτ : IsStoppingTime ℱ τ := ribbonFrontStop_stopping ℱ g γ ha hγc _
|
| 98 |
+
have hE : MeasurableSet[hτ.measurableSpace] E :=
|
| 99 |
+
ribbonStepSuccess_measurable ℱ γ ha hγc (fun _ => 0) τ
|
| 100 |
+
(isStoppingTime_const ℱ 0) hτ (fun _ => bot_le) _
|
| 101 |
+
(physicalExperimentChart_closedEmbedding hs w hwy hmp) ε κ v _ _
|
| 102 |
+
have hordinary : ENNReal.ofReal (Real.exp (-C * (m : ℝ) ^ 2)) ≤ μ E := by
|
| 103 |
+
have hh := hprob w hwn hwy m hmp v hv hvcut g hg
|
| 104 |
+
rw [experiment_front_eq hs w hwy hmp g γ] at hh
|
| 105 |
+
simpa only [E, τ, RibbonStepSuccess, Set.ofPred_and, Set.ofPred_mem_eq,
|
| 106 |
+
WithTop.untopD_zero] using hh
|
| 107 |
+
have hcentered := finiteCenteredLaw_completed_experiment_lower_bound hB hBm hc hB0 κ hκ hκ8
|
| 108 |
+
γ G F (Eventually.of_forall hw) w (show w ∈ upperHalfPlane from lt_of_lt_of_le hs hwy)
|
| 109 |
+
(experimentRadiusLevel s) (experimentRadiusLevel_nonneg hs hs1) τ hτ E hE s₀ hs₀.le (by
|
| 110 |
+
apply Eventually.of_forall
|
| 111 |
+
intro ω hω
|
| 112 |
+
have hpref : () ∈ GoodRibbonPrefix (fun _ : Unit => γ ω) (fun _ => τ ω)
|
| 113 |
+
(physicalExperimentChart s w m) ε := hω.1
|
| 114 |
+
have hbefore := good_physicalExperiment_before_radius ((hc ω).const_mul _) (hw ω)
|
| 115 |
+
hs w hwn hwy hmp (τ ω) ε hpref
|
| 116 |
+
refine ⟨hpref.1, hbefore.1, hbefore.2, ?_⟩
|
| 117 |
+
rw [Complex.sin_arg]
|
| 118 |
+
simpa only [τ, ribbonFrontStop, Complex.ofReal_mul] using
|
| 119 |
+
hangle _ _ _ _ (hw ω) ((hc ω).const_mul _) w hwn hwy m hmp g hg ε hεsmall hpref)
|
| 120 |
+
calc
|
| 121 |
+
_ ≤ ENNReal.ofReal (s₀ ^ greenExponent κ) *
|
| 122 |
+
ENNReal.ofReal (Real.exp (-C * (m : ℝ) ^ 2)) := by
|
| 123 |
+
rw [← ENNReal.ofReal_mul (Real.rpow_nonneg hs₀.le _)]
|
| 124 |
+
exact ENNReal.ofReal_le_ofReal (hcost m hmp)
|
| 125 |
+
_ ≤ ENNReal.ofReal (s₀ ^ greenExponent κ) * μ E := mul_le_mul' le_rfl hordinary
|
| 126 |
+
_ ≤ _ := hcentered
|
| 127 |
+
|
| 128 |
+
end SLEExactGauge.Serpentine
|
| 129 |
+
|
| 130 |
+
end
|
| 131 |
+
|
| 132 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineCompleteCurve.lean
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineInfiniteArray
|
| 2 |
+
import OAI.Probability.SLE.Geometry.RoundedConnectorGeometry
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-! Arclength gluing of the low rounded connector and the upward-continued
|
| 7 |
+
serpentine array. -/
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
open Set Metric
|
| 11 |
+
open scoped NNReal
|
| 12 |
+
|
| 13 |
+
namespace SLEExactGauge.Serpentine
|
| 14 |
+
|
| 15 |
+
lemma arraySpine_zero (m j : ℕ) :
|
| 16 |
+
arraySpine m j 0 = ((-100 * (m : ℝ) : ℝ) : ℂ) +
|
| 17 |
+
((-100 * (m : ℝ) : ℝ) : ℂ) * Complex.I := by
|
| 18 |
+
induction j with
|
| 19 |
+
| zero => simp [arraySpine, straightPiece, side]
|
| 20 |
+
| succ j ih =>
|
| 21 |
+
have hb : (0 : ℝ) ≤ columnEntry 0 m (j + 1) := by unfold columnEntry; positivity
|
| 22 |
+
have ha : (0 : ℝ) ≤ columnEntry 0 m j + 200 * m := by unfold columnEntry; positivity
|
| 23 |
+
simpa only [arraySpine, curveJoin_of_le hb, curveJoin_of_le ha] using ih
|
| 24 |
+
|
| 25 |
+
lemma arrayTangent_zero (m j : ℕ) : arrayTangent m j 0 = Complex.I := by
|
| 26 |
+
induction j with
|
| 27 |
+
| zero => simp [arrayTangent, straightTangent, side]
|
| 28 |
+
| succ j ih =>
|
| 29 |
+
have hb : (0 : ℝ) ≤ columnEntry 0 m (j + 1) := by unfold columnEntry; positivity
|
| 30 |
+
have ha : (0 : ℝ) ≤ columnEntry 0 m j + 200 * m := by unfold columnEntry; positivity
|
| 31 |
+
simpa only [arrayTangent, curveJoin_of_le hb, curveJoin_of_le ha] using ih
|
| 32 |
+
|
| 33 |
+
lemma lowConnector_after {H r X t : ℝ}
|
| 34 |
+
(ht : connectorFourth H r X < t) :
|
| 35 |
+
lowConnector H r X t = connectorTail H r X t ∧
|
| 36 |
+
lowConnectorTangent H r X t = Complex.I := by
|
| 37 |
+
simp only [lowConnector, lowConnectorTangent, curveJoin_of_gt ht, and_self]
|
| 38 |
+
|
| 39 |
+
def connectorEntry (H r X Y : ℝ) : ℝ := connectorFourth H r X + Y - H - 2 * r
|
| 40 |
+
|
| 41 |
+
def arrayCenter (m : ℕ) (X Y : ℝ) : ℂ :=
|
| 42 |
+
((X + 100 * m : ℝ) : ℂ) + ((Y + 100 * m : ℝ) : ℂ) * Complex.I
|
| 43 |
+
|
| 44 |
+
def completeSpine (m : ℕ) (H r X Y : ℝ) : ℝ → ℂ :=
|
| 45 |
+
curveJoin (connectorEntry H r X Y) (lowConnector H r X)
|
| 46 |
+
(fun t => arrayCenter m X Y + arraySpine m (2 * m) (t - connectorEntry H r X Y))
|
| 47 |
+
|
| 48 |
+
def completeTangent (m : ℕ) (H r X Y : ℝ) : ℝ → ℂ :=
|
| 49 |
+
curveJoin (connectorEntry H r X Y) (lowConnectorTangent H r X)
|
| 50 |
+
(fun t => arrayTangent m (2 * m) (t - connectorEntry H r X Y))
|
| 51 |
+
|
| 52 |
+
lemma completeSpine_hasDerivAt {H r X Y : ℝ} (m : ℕ) (hr : 0 < r)
|
| 53 |
+
(hX : 2 * r < X) (hY : H + 2 * r < Y) (t : ℝ) :
|
| 54 |
+
HasDerivAt (completeSpine m H r X Y) (completeTangent m H r X Y t) t := by
|
| 55 |
+
have hentry : connectorFourth H r X < connectorEntry H r X Y := by
|
| 56 |
+
unfold connectorEntry
|
| 57 |
+
linarith
|
| 58 |
+
have hp : lowConnector H r X (connectorEntry H r X Y) =
|
| 59 |
+
arrayCenter m X Y + arraySpine m (2 * m)
|
| 60 |
+
(connectorEntry H r X Y - connectorEntry H r X Y) := by
|
| 61 |
+
rw [(lowConnector_after hentry).1, sub_self, arraySpine_zero]
|
| 62 |
+
simp only [connectorTail, connectorEntry, arrayCenter]
|
| 63 |
+
push_cast
|
| 64 |
+
ring
|
| 65 |
+
have hT : lowConnectorTangent H r X (connectorEntry H r X Y) =
|
| 66 |
+
arrayTangent m (2 * m) (connectorEntry H r X Y - connectorEntry H r X Y) := by
|
| 67 |
+
rw [(lowConnector_after hentry).2, sub_self, arrayTangent_zero]
|
| 68 |
+
exact curveJoin_hasDerivAt _ _ _ _ _ (lowConnector_hasDerivAt hr hX)
|
| 69 |
+
(translate_curve_hasDerivAt _ _ (arraySpine_hasDerivAt m (2 * m)) _ _) hp hT t
|
| 70 |
+
|
| 71 |
+
lemma completeTangent_norm (m : ℕ) (H r X Y t : ℝ) : ‖completeTangent m H r X Y t‖ = 1 := by
|
| 72 |
+
unfold completeTangent curveJoin
|
| 73 |
+
split
|
| 74 |
+
· exact lowConnectorTangent_norm _ _ _ _
|
| 75 |
+
· exact arrayTangent_norm _ _ _
|
| 76 |
+
|
| 77 |
+
lemma completeTangent_lipschitz {H r X Y : ℝ} (m : ℕ) (hr : 50 ≤ r)
|
| 78 |
+
(hX : 2 * r < X) (hY : H + 2 * r < Y) :
|
| 79 |
+
LipschitzWith (1 / 50) (completeTangent m H r X Y) := by
|
| 80 |
+
have hr0 : 0 < r := by linarith
|
| 81 |
+
have hentry : connectorFourth H r X < connectorEntry H r X Y := by
|
| 82 |
+
unfold connectorEntry
|
| 83 |
+
linarith
|
| 84 |
+
apply curveJoin_lipschitz (lowConnectorTangent_lipschitz hr hX)
|
| 85 |
+
(shifted_lipschitz (arrayTangent_lipschitz m (2 * m)) _)
|
| 86 |
+
rw [(lowConnector_after hentry).2, sub_self, arrayTangent_zero]
|
| 87 |
+
|
| 88 |
+
lemma complete_normal_patch_bounds {H r X Y : ℝ} (m : ℕ) (hr : 50 ≤ r)
|
| 89 |
+
(hX : 2 * r < X) (hY : H + 2 * r < Y) (k : ℝ) :
|
| 90 |
+
LipschitzOnWith 2 (normalRibbon (completeSpine m H r X Y) (completeTangent m H r X Y))
|
| 91 |
+
(RibbonCoordinates.ribbonStepPatch k) ∧
|
| 92 |
+
∀ z ∈ RibbonCoordinates.ribbonStepPatch k,
|
| 93 |
+
∀ w ∈ RibbonCoordinates.ribbonStepPatch k,
|
| 94 |
+
dist z w ≤ 2 * dist (normalRibbon (completeSpine m H r X Y) (completeTangent m H r X Y) z)
|
| 95 |
+
(normalRibbon (completeSpine m H r X Y) (completeTangent m H r X Y) w) := by
|
| 96 |
+
have hr0 : 0 < r := by linarith
|
| 97 |
+
have hbound z (hz : z ∈ RibbonCoordinates.ribbonStepPatch k)
|
| 98 |
+
w (hw : w ∈ RibbonCoordinates.ribbonStepPatch k) :=
|
| 99 |
+
normalRibbon_patch_bounds (completeSpine m H r X Y) (completeTangent m H r X Y) (k - 1) (k + 3)
|
| 100 |
+
(by ring_nf; norm_num)
|
| 101 |
+
(fun t _ => (completeSpine_hasDerivAt m hr0 hX hY t).hasDerivWithinAt)
|
| 102 |
+
(fun t _ => completeTangent_norm m H r X Y t)
|
| 103 |
+
(completeTangent_lipschitz m hr hX hY).lipschitzOnWith
|
| 104 |
+
z w ⟨⟨hz.1, hz.2.1⟩, hz.2.2⟩ ⟨⟨hw.1, hw.2.1⟩, hw.2.2⟩
|
| 105 |
+
exact ⟨lipschitzOnWith_iff_dist_le_mul.mpr (fun z hz w hw => (hbound z hz w hw).1),
|
| 106 |
+
fun z hz w hw => (hbound z hz w hw).2⟩
|
| 107 |
+
|
| 108 |
+
end SLEExactGauge.Serpentine
|
| 109 |
+
|
| 110 |
+
end
|
| 111 |
+
|
| 112 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineCompleteEmbedding.lean
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineCompleteCurve
|
| 2 |
+
import OAI.Probability.SLE.Gauge.SerpentineAttachments
|
| 3 |
+
import OAI.Probability.SLE.Geometry.RoundedConnectorRegion
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
/-! The low connector and the complete infinite array have one common
|
| 8 |
+
normal cross-section. Hence the entire prescribed ribbon is embedded. -/
|
| 9 |
+
|
| 10 |
+
noncomputable section
|
| 11 |
+
open Set Metric
|
| 12 |
+
|
| 13 |
+
namespace SLEExactGauge.Serpentine
|
| 14 |
+
|
| 15 |
+
lemma complete_normal_of_le (m : ℕ) (H r X Y : ℝ) {z : ℂ}
|
| 16 |
+
(hz : z.re ≤ connectorEntry H r X Y) :
|
| 17 |
+
normalRibbon (completeSpine m H r X Y) (completeTangent m H r X Y) z =
|
| 18 |
+
normalRibbon (lowConnector H r X) (lowConnectorTangent H r X) z := by
|
| 19 |
+
simp only [normalRibbon, completeSpine, completeTangent, curveJoin_of_le hz]
|
| 20 |
+
|
| 21 |
+
lemma complete_normal_of_gt (m : ℕ) (H r X Y : ℝ) {z : ℂ}
|
| 22 |
+
(hz : connectorEntry H r X Y < z.re) :
|
| 23 |
+
normalRibbon (completeSpine m H r X Y) (completeTangent m H r X Y) z =
|
| 24 |
+
arrayCenter m X Y + normalRibbon (arraySpine m (2 * m)) (arrayTangent m (2 * m))
|
| 25 |
+
(z - (connectorEntry H r X Y : ℂ)) := by
|
| 26 |
+
simp only [normalRibbon, completeSpine, completeTangent, curveJoin_of_gt hz,
|
| 27 |
+
Complex.sub_re, Complex.sub_im, Complex.ofReal_re, Complex.ofReal_im, sub_zero]
|
| 28 |
+
abel
|
| 29 |
+
|
| 30 |
+
lemma complete_normal_cross_disjoint {m : ℕ} (hm : 0 < m) {H r X Y : ℝ}
|
| 31 |
+
(hr : 50 ≤ r) (hX : 2 * r < X) (hY : H + 2 * r + 1 + 300 * m < Y)
|
| 32 |
+
{z w : ℂ} (hz : 0 ≤ z.re ∧ |z.im| ≤ 1) (hwa : |w.im| ≤ 1)
|
| 33 |
+
(hzA : z.re ≤ connectorEntry H r X Y) (hwA : connectorEntry H r X Y < w.re) :
|
| 34 |
+
normalRibbon (completeSpine m H r X Y) (completeTangent m H r X Y) z ≠
|
| 35 |
+
normalRibbon (completeSpine m H r X Y) (completeTangent m H r X Y) w := by
|
| 36 |
+
intro he
|
| 37 |
+
rw [complete_normal_of_le m H r X Y hzA, complete_normal_of_gt m H r X Y hwA] at he
|
| 38 |
+
let w' := w - (connectorEntry H r X Y : ℂ)
|
| 39 |
+
have hw' : 0 ≤ w'.re ∧ |w'.im| ≤ 1 := by
|
| 40 |
+
dsimp [w']
|
| 41 |
+
simp only [sub_zero]
|
| 42 |
+
exact ⟨by linarith, hwa⟩
|
| 43 |
+
have hr1 : 1 < r := by linarith
|
| 44 |
+
by_cases hz4 : z.re ≤ connectorFourth H r X
|
| 45 |
+
· have hlo := lowConnector_normal_im_upper hr1 hX hz4 hz.2
|
| 46 |
+
have hhi := array_normal_im_lower hm hw'
|
| 47 |
+
have him := congrArg Complex.im he
|
| 48 |
+
simp only [arrayCenter, Complex.add_im, Complex.ofReal_im, Complex.mul_im,
|
| 49 |
+
Complex.ofReal_re, Complex.I_re, Complex.I_im, mul_one, mul_zero, add_zero, zero_add] at him
|
| 50 |
+
change -(400 * (m : ℝ)) ≤ (normalRibbon (arraySpine m (2 * m)) (arrayTangent m (2 * m)) w').im at hhi
|
| 51 |
+
change (normalRibbon (lowConnector H r X) (lowConnectorTangent H r X) z).im =
|
| 52 |
+
Y + 100 * m + (normalRibbon (arraySpine m (2 * m)) (arrayTangent m (2 * m)) w').im at him
|
| 53 |
+
linarith
|
| 54 |
+
· have hz4' : connectorFourth H r X < z.re := lt_of_not_ge hz4
|
| 55 |
+
let y := H + 2 * r + (z.re - connectorFourth H r X) - Y - 100 * m
|
| 56 |
+
have hy : y ≤ -(100 * (m : ℝ)) := by
|
| 57 |
+
dsimp [y]
|
| 58 |
+
dsimp only [connectorEntry] at hzA
|
| 59 |
+
linarith
|
| 60 |
+
have hpoint : normalRibbon (arraySpine m (2 * m)) (arrayTangent m (2 * m)) w' =
|
| 61 |
+
columnPoint 0 (100 * m) m 0 y z.im := by
|
| 62 |
+
have hs := congrArg (fun q : ℂ => q - arrayCenter m X Y) he
|
| 63 |
+
simp only [add_sub_cancel_left] at hs
|
| 64 |
+
rw [normalRibbon, (lowConnector_after hz4').1, (lowConnector_after hz4').2] at hs
|
| 65 |
+
have heq : normalRibbon (arraySpine m (2 * m)) (arrayTangent m (2 * m)) w' =
|
| 66 |
+
connectorTail H r X z.re + (z.im : ℂ) * Complex.I * Complex.I - arrayCenter m X Y := by
|
| 67 |
+
exact hs.symm
|
| 68 |
+
rw [heq]
|
| 69 |
+
have hs0 : side 0 = 1 := by simp [side]
|
| 70 |
+
apply Complex.ext <;>
|
| 71 |
+
simp only [connectorTail, arrayCenter, columnPoint, columnOffset, Nat.cast_zero,
|
| 72 |
+
zero_mul, hs0, one_mul, normalized_width hm, Complex.add_re, Complex.add_im,
|
| 73 |
+
Complex.sub_re, Complex.sub_im, Complex.mul_re, Complex.mul_im, Complex.ofReal_re,
|
| 74 |
+
Complex.ofReal_im, Complex.zero_re, Complex.zero_im, Complex.I_re, Complex.I_im, y] <;> ring
|
| 75 |
+
have hzero := (array_downward_attachment hm hw' hy hz.2 hpoint).1
|
| 76 |
+
dsimp [w'] at hzero
|
| 77 |
+
linarith
|
| 78 |
+
|
| 79 |
+
/-- Global embedding of the whole explicit normal ribbon, including its
|
| 80 |
+
real-boundary connector and infinite final vertical continuation. -/
|
| 81 |
+
theorem complete_normal_injective {m : ℕ} (hm : 0 < m) {H r X Y : ℝ}
|
| 82 |
+
(hr : 50 ≤ r) (hX : 2 * r < X) (hY : H + 2 * r + 1 + 300 * m < Y) :
|
| 83 |
+
InjOn (normalRibbon (completeSpine m H r X Y) (completeTangent m H r X Y))
|
| 84 |
+
{z : ℂ | 0 ≤ z.re ∧ |z.im| ≤ 1} := by
|
| 85 |
+
intro z hz w hw he
|
| 86 |
+
by_cases hzA : z.re ≤ connectorEntry H r X Y
|
| 87 |
+
· by_cases hwA : w.re ≤ connectorEntry H r X Y
|
| 88 |
+
· rw [complete_normal_of_le m H r X Y hzA, complete_normal_of_le m H r X Y hwA] at he
|
| 89 |
+
exact lowConnector_normal_injective hr hX hz hw he
|
| 90 |
+
· exact (complete_normal_cross_disjoint hm hr hX hY hz hw.2 hzA (lt_of_not_ge hwA) he).elim
|
| 91 |
+
· by_cases hwA : w.re ≤ connectorEntry H r X Y
|
| 92 |
+
· exact (complete_normal_cross_disjoint hm hr hX hY hw hz.2 hwA (lt_of_not_ge hzA) he.symm).elim
|
| 93 |
+
· rw [complete_normal_of_gt m H r X Y (lt_of_not_ge hzA),
|
| 94 |
+
complete_normal_of_gt m H r X Y (lt_of_not_ge hwA)] at he
|
| 95 |
+
have he' := add_left_cancel he
|
| 96 |
+
have hz' : 0 ≤ (z - (connectorEntry H r X Y : ℂ)).re ∧
|
| 97 |
+
|(z - (connectorEntry H r X Y : ℂ)).im| ≤ 1 := by
|
| 98 |
+
simp only [Complex.sub_re, Complex.sub_im, Complex.ofReal_re, Complex.ofReal_im, sub_zero]
|
| 99 |
+
exact ⟨by linarith, hz.2⟩
|
| 100 |
+
have hw' : 0 ≤ (w - (connectorEntry H r X Y : ℂ)).re ∧
|
| 101 |
+
|(w - (connectorEntry H r X Y : ℂ)).im| ≤ 1 := by
|
| 102 |
+
simp only [Complex.sub_re, Complex.sub_im, Complex.ofReal_re, Complex.ofReal_im, sub_zero]
|
| 103 |
+
exact ⟨by linarith, hw.2⟩
|
| 104 |
+
exact sub_left_injective (array_normal_injective_infinite hm hz' hw' he')
|
| 105 |
+
|
| 106 |
+
end SLEExactGauge.Serpentine
|
| 107 |
+
|
| 108 |
+
end
|
| 109 |
+
|
| 110 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineConformalGeometry.lean
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.RestrictedConformalSausage
|
| 2 |
+
import OAI.Probability.SLE.Geometry.NormalizedConformalBounds
|
| 3 |
+
import OAI.Probability.SLE.Gauge.SerpentineLayout
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
/-! A common small displaced experiment disk in normalized half-plane
|
| 8 |
+
coordinates. Its nearby trace witnesses stay in a controlled conformal
|
| 9 |
+
patch, and its image stays in one physical conformal-radius disk. -/
|
| 10 |
+
|
| 11 |
+
noncomputable section
|
| 12 |
+
open Set Filter MeasureTheory Metric
|
| 13 |
+
open scoped Topology ENNReal NNReal
|
| 14 |
+
|
| 15 |
+
namespace SLEExactGauge.Serpentine
|
| 16 |
+
|
| 17 |
+
def conformalExperimentScale (s C : ℝ) : ℝ := min (s / 10) (s / (100 * C))
|
| 18 |
+
|
| 19 |
+
lemma conformalExperimentScale_bounds {s C : ℝ} (hs : 0 < s) (hC : 0 < C) :
|
| 20 |
+
0 < conformalExperimentScale s C ∧ conformalExperimentScale s C ≤ s / 10 ∧
|
| 21 |
+
C * conformalExperimentScale s C ≤ s / 100 := by
|
| 22 |
+
refine ⟨lt_min (by positivity) (by positivity), min_le_left _ _, ?_⟩
|
| 23 |
+
have hh := (le_div_iff₀ (by positivity : 0 < 100 * C)).mp
|
| 24 |
+
(min_le_right (s / 10) (s / (100 * C)))
|
| 25 |
+
dsimp only [conformalExperimentScale]
|
| 26 |
+
nlinarith
|
| 27 |
+
|
| 28 |
+
lemma experiment_patch_subset_compact {s h : ℝ} (hs : 0 < s) (hs1 : s ≤ 1)
|
| 29 |
+
(hh : h ≤ s / 10) (w : ℂ) (hwn : ‖w‖ = 1) (hwy : s ≤ w.im) :
|
| 30 |
+
closedBall w h ⊆ normalizedInteriorCompact s := by
|
| 31 |
+
intro z hz
|
| 32 |
+
have hn := norm_le_norm_add_const_of_dist_le hz
|
| 33 |
+
have hi := Complex.im_le_norm (w - z)
|
| 34 |
+
have hd : ‖w - z‖ ≤ h := by
|
| 35 |
+
simpa only [mem_closedBall, ← dist_eq_norm, dist_comm] using hz
|
| 36 |
+
rw [Complex.sub_im] at hi
|
| 37 |
+
change ‖z‖ ≤ 2 ∧ s / 2 ≤ z.im
|
| 38 |
+
rw [hwn] at hn
|
| 39 |
+
constructor <;> linarith
|
| 40 |
+
|
| 41 |
+
lemma displaced_experiment_dist {h : ℝ} (hh : 0 ≤ h) (w z : ℂ)
|
| 42 |
+
(hz : z ∈ closedBall (center h w) (h / 20)) :
|
| 43 |
+
dist z w ≤ 3 * h / 10 := by
|
| 44 |
+
have hd := (dist_triangle z (center h w) w).trans
|
| 45 |
+
(add_le_add hz (center_dist hh w).le)
|
| 46 |
+
linarith
|
| 47 |
+
|
| 48 |
+
lemma displaced_experiment_subset_patch {h : ℝ} (hh : 0 ≤ h) (w : ℂ) :
|
| 49 |
+
closedBall (center h w) (h / 20) ⊆ closedBall w h := by
|
| 50 |
+
intro z hz
|
| 51 |
+
exact (displaced_experiment_dist hh w z hz).trans (by linarith)
|
| 52 |
+
|
| 53 |
+
lemma displaced_experiment_near_patch {h u : ℝ} (hh : 0 < h) (hu : u < h / 20)
|
| 54 |
+
(w z y : ℂ) (hz : z ∈ closedBall (center h w) (h / 20)) (hzy : dist z y < u) :
|
| 55 |
+
y ∈ closedBall w h := by
|
| 56 |
+
have hd := dist_triangle y z w
|
| 57 |
+
rw [dist_comm y z] at hd
|
| 58 |
+
have hz' := displaced_experiment_dist hh.le w z hz
|
| 59 |
+
change dist y w ≤ h
|
| 60 |
+
linarith
|
| 61 |
+
|
| 62 |
+
/-- Converting any positive deterministic parameter cutoff into a
|
| 63 |
+
cutoff proportional to the physical conformal radius. -/
|
| 64 |
+
lemma conformal_experiment_mesh_cutoff {C a q v : ℝ}
|
| 65 |
+
(hC : 0 < C) (ha : 0 < a) (hq : 0 < q) (w : ℂ) (hwi : w.im ≤ 1)
|
| 66 |
+
(hv : v < (C * q / 2) * (2 * w.im * a)) :
|
| 67 |
+
v / (C * a) < q := by
|
| 68 |
+
apply (div_lt_iff₀ (mul_pos hC ha)).mpr
|
| 69 |
+
have hm := mul_le_mul_of_nonneg_left hwi (show 0 ≤ C * q * a by positivity)
|
| 70 |
+
nlinarith
|
| 71 |
+
|
| 72 |
+
theorem conformal_experiment_image_subset
|
| 73 |
+
{s h c C : ℝ} (hs : 0 < s) (hs1 : s ≤ 1) (hh : 0 < h)
|
| 74 |
+
(hhs : h ≤ s / 10) (hCh : C * h ≤ s / 100) (hC : 0 < C)
|
| 75 |
+
(F : ℂ → ℂ) (w : ℂ) (hwn : ‖w‖ = 1) (hwy : s ≤ w.im)
|
| 76 |
+
(hF : DifferentiableOn ℂ F upperHalfPlane)
|
| 77 |
+
(hbound : ∀ z ∈ normalizedInteriorCompact s,
|
| 78 |
+
c * ‖deriv F w‖ ≤ ‖deriv F z‖ ∧ ‖deriv F z‖ ≤ C * ‖deriv F w‖) :
|
| 79 |
+
F '' closedBall (center h w) (h / 20) ⊆
|
| 80 |
+
closedBall (F w) (2 * w.im * ‖deriv F w‖) := by
|
| 81 |
+
let B : ℝ≥0 := ⟨C * ‖deriv F w‖, mul_nonneg hC.le (norm_nonneg _)⟩
|
| 82 |
+
have hK := experiment_patch_subset_compact hs hs1 hhs w hwn hwy
|
| 83 |
+
have hKH := hK.trans (normalizedInteriorCompact_subset_halfPlane hs)
|
| 84 |
+
have hLip : LipschitzOnWith B F (closedBall w h) :=
|
| 85 |
+
(convex_closedBall w h).lipschitzOnWith_of_nnnorm_hasDerivWithin_le
|
| 86 |
+
(fun z hz => ((hF.differentiableAt (isOpen_upperHalfPlane.mem_nhds (hKH hz))).hasDerivAt).hasDerivWithinAt)
|
| 87 |
+
(fun z hz => by exact_mod_cast (hbound z (hK hz)).2)
|
| 88 |
+
rintro _ ⟨z, hz, rfl⟩
|
| 89 |
+
have hzK := displaced_experiment_subset_patch hh.le w hz
|
| 90 |
+
have hd := hLip.dist_le_mul z hzK w (mem_closedBall_self hh.le)
|
| 91 |
+
have hzdist := displaced_experiment_dist hh.le w z hz
|
| 92 |
+
have hnonneg := norm_nonneg (deriv F w)
|
| 93 |
+
have hmul := mul_le_mul_of_nonneg_right hCh hnonneg
|
| 94 |
+
have hdist := mul_le_mul_of_nonneg_left hzdist (show 0 ≤ C * ‖deriv F w‖ by positivity)
|
| 95 |
+
change dist (F z) (F w) ≤ 2 * w.im * ‖deriv F w‖
|
| 96 |
+
change dist (F z) (F w) ≤ (C * ‖deriv F w‖) * dist z w at hd
|
| 97 |
+
nlinarith
|
| 98 |
+
|
| 99 |
+
theorem conformal_experiment_restricted_transfer
|
| 100 |
+
(κ : ℝ) {s h c C : ℝ} (hs : 0 < s) (hs1 : s ≤ 1)
|
| 101 |
+
(hh : 0 < h) (hhs : h ≤ s / 10) (hCh : C * h ≤ s / 100)
|
| 102 |
+
(hc : 0 < c) (hC : 0 < C)
|
| 103 |
+
(F : ℂ → ℂ) (w : ℂ) (hwn : ‖w‖ = 1) (hwy : s ≤ w.im)
|
| 104 |
+
(hF : DifferentiableOn ℂ F upperHalfPlane) (hi : InjOn F upperHalfPlane)
|
| 105 |
+
(hne : deriv F w ≠ 0)
|
| 106 |
+
(hbound : ∀ z ∈ normalizedInteriorCompact s,
|
| 107 |
+
c * ‖deriv F w‖ ≤ ‖deriv F z‖ ∧ ‖deriv F z‖ ≤ C * ‖deriv F w‖)
|
| 108 |
+
(γ η : ℝ≥0 → ℂ) (a b : ℝ≥0)
|
| 109 |
+
(heq : ∀ u ∈ Icc a b, γ u ∈ closedBall w h → η u = F (γ u))
|
| 110 |
+
{v : ℝ} (hv : 0 < v)
|
| 111 |
+
(hvc : v < (C * h / 40) * (2 * w.im * ‖deriv F w‖)) :
|
| 112 |
+
ENNReal.ofReal ((c ^ 2 * (1 / C) ^ codimension κ) * ‖deriv F w‖ ^ dimension κ) *
|
| 113 |
+
segmentSausageCharge κ γ a b (v / (C * ‖deriv F w‖))
|
| 114 |
+
(closedBall (center h w) (h / 20)) ≤
|
| 115 |
+
segmentSausageCharge κ η a b v (closedBall (F w) (2 * w.im * ‖deriv F w‖)) := by
|
| 116 |
+
have hnorm : 0 < ‖deriv F w‖ := norm_pos_iff.mpr hne
|
| 117 |
+
have hCa : 0 < C * ‖deriv F w‖ := mul_pos hC hnorm
|
| 118 |
+
have hwi : w.im ≤ 1 := by simpa only [hwn] using Complex.im_le_norm w
|
| 119 |
+
have hmesh : v / (C * ‖deriv F w‖) < h / 20 := by
|
| 120 |
+
apply conformal_experiment_mesh_cutoff hC hnorm (by positivity) w hwi
|
| 121 |
+
convert hvc using 1
|
| 122 |
+
ring
|
| 123 |
+
have hK := experiment_patch_subset_compact hs hs1 hhs w hwn hwy
|
| 124 |
+
have hKH := hK.trans (normalizedInteriorCompact_subset_halfPlane hs)
|
| 125 |
+
let B : ℝ≥0 := ⟨C * ‖deriv F w‖, hCa.le⟩
|
| 126 |
+
have hstep : (1 / (C * ‖deriv F w‖)) * v = v / (C * ‖deriv F w‖) := by ring
|
| 127 |
+
have ht := restricted_segment_sausage_conformal_transfer κ F (deriv F) γ η a b
|
| 128 |
+
(closedBall (center h w) (h / 20)) (closedBall w h)
|
| 129 |
+
(closedBall (F w) (2 * w.im * ‖deriv F w‖)) isClosed_closedBall.measurableSet
|
| 130 |
+
(displaced_experiment_subset_patch hh.le w) (convex_closedBall w h)
|
| 131 |
+
(hi.mono hKH)
|
| 132 |
+
(fun z hz => (hF.differentiableAt (isOpen_upperHalfPlane.mem_nhds (hKH hz))).hasDerivAt)
|
| 133 |
+
(mul_pos hc hnorm).le hv (one_div_pos.mpr hCa)
|
| 134 |
+
(fun z hz => (hbound z (hK (displaced_experiment_subset_patch hh.le w hz))).1)
|
| 135 |
+
B (fun z hz => by exact_mod_cast (hbound z (hK hz)).2)
|
| 136 |
+
(by change (C * ‖deriv F w‖) * (1 / (C * ‖deriv F w‖)) ≤ 1; rw [mul_one_div_cancel hCa.ne'])
|
| 137 |
+
(fun z hz y hd => displaced_experiment_near_patch hh hmesh w z y hz (by simpa only [hstep] using hd))
|
| 138 |
+
heq (conformal_experiment_image_subset hs hs1 hh hhs hCh hC F w hwn hwy hF hbound)
|
| 139 |
+
rw [conformal_transfer_coefficient κ hC hnorm, hstep] at ht
|
| 140 |
+
exact ht
|
| 141 |
+
|
| 142 |
+
theorem uniform_conformal_experiment_restricted_transfer
|
| 143 |
+
(κ : ℝ) (hcompact : PublishedHalfPlaneUnivalentCompactness)
|
| 144 |
+
{s : ℝ} (hs : 0 < s) (hs1 : s ≤ 1) :
|
| 145 |
+
∃ h A C δ : ℝ, 0 < h ∧ h ≤ s ∧ 0 < A ∧ 0 < C ∧ 0 < δ ∧
|
| 146 |
+
∀ (F : ℂ → ℂ) (w : ℂ), DifferentiableOn ℂ F upperHalfPlane →
|
| 147 |
+
InjOn F upperHalfPlane → ‖w‖ = 1 → s ≤ w.im → deriv F w ≠ 0 →
|
| 148 |
+
∀ (γ η : ℝ≥0 → ℂ) (a b : ℝ≥0),
|
| 149 |
+
(∀ u ∈ Icc a b, γ u ∈ closedBall w h → η u = F (γ u)) →
|
| 150 |
+
∀ v : ℝ, 0 < v → v < δ * (2 * w.im * ‖deriv F w‖) →
|
| 151 |
+
ENNReal.ofReal (A * ‖deriv F w‖ ^ dimension κ) *
|
| 152 |
+
segmentSausageCharge κ γ a b (v / (C * ‖deriv F w‖))
|
| 153 |
+
(closedBall (center h w) (h / 20)) ≤
|
| 154 |
+
segmentSausageCharge κ η a b v
|
| 155 |
+
(closedBall (F w) (2 * w.im * ‖deriv F w‖)) := by
|
| 156 |
+
obtain ⟨c, C, hc, hC, hbounds⟩ := uniform_waypoint_derivative_ratios hcompact hs hs1
|
| 157 |
+
let h := conformalExperimentScale s C
|
| 158 |
+
obtain ⟨hh, hhs, hCh⟩ := conformalExperimentScale_bounds hs hC
|
| 159 |
+
refine ⟨h, c ^ 2 * (1 / C) ^ codimension κ, C, C * h / 40, hh,
|
| 160 |
+
hhs.trans (by linarith), by positivity, hC, by positivity, ?_⟩
|
| 161 |
+
intro F w hF hi hwn hwy hne γ η a b heq v hv hvc
|
| 162 |
+
exact conformal_experiment_restricted_transfer κ hs hs1 hh hhs hCh hc hC
|
| 163 |
+
F w hwn hwy hF hi hne (fun z hz => hbounds F w hF hi hwn hwy hne z hz.1 hz.2)
|
| 164 |
+
γ η a b heq hv hvc
|
| 165 |
+
|
| 166 |
+
end SLEExactGauge.Serpentine
|
| 167 |
+
|
| 168 |
+
end
|
| 169 |
+
|
| 170 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineCurve.lean
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentinePieces
|
| 2 |
+
import OAI.Probability.SLE.Gauge.SerpentineStepCount
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-! Explicit arclength parametrization of the finite serpentine array,
|
| 7 |
+
continued vertically along its last column. -/
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
open Set Metric
|
| 11 |
+
open scoped NNReal
|
| 12 |
+
|
| 13 |
+
namespace SLEExactGauge.Serpentine
|
| 14 |
+
|
| 15 |
+
lemma columnEntry_succ (A : ℝ) (m j : ℕ) :
|
| 16 |
+
columnEntry A m (j + 1) = columnEntry A m j + 200 * m + 50 * Real.pi := by
|
| 17 |
+
simp only [columnEntry, Nat.cast_add, Nat.cast_one]
|
| 18 |
+
ring
|
| 19 |
+
|
| 20 |
+
def arraySpine (m : ℕ) : ℕ → ℝ → ℂ
|
| 21 |
+
| 0 => straightPiece m 0
|
| 22 |
+
| j + 1 => curveJoin (columnEntry 0 m (j + 1))
|
| 23 |
+
(curveJoin (columnEntry 0 m j + 200 * m) (arraySpine m j)
|
| 24 |
+
(fun t => circularPiece m j (t - (columnEntry 0 m j + 200 * m))))
|
| 25 |
+
(fun t => straightPiece m (j + 1) (t - columnEntry 0 m (j + 1)))
|
| 26 |
+
|
| 27 |
+
def arrayTangent (m : ℕ) : ℕ → ℝ → ℂ
|
| 28 |
+
| 0 => fun _ => straightTangent 0
|
| 29 |
+
| j + 1 => curveJoin (columnEntry 0 m (j + 1))
|
| 30 |
+
(curveJoin (columnEntry 0 m j + 200 * m) (arrayTangent m j)
|
| 31 |
+
(fun t => circularTangent j (t - (columnEntry 0 m j + 200 * m))))
|
| 32 |
+
(fun _ => straightTangent (j + 1))
|
| 33 |
+
|
| 34 |
+
lemma arraySpine_tail (m j : ℕ) {t : ℝ} (ht : columnEntry 0 m j ≤ t) :
|
| 35 |
+
arraySpine m j t = straightPiece m j (t - columnEntry 0 m j) := by
|
| 36 |
+
cases j with
|
| 37 |
+
| zero => simp [arraySpine, columnEntry]
|
| 38 |
+
| succ j =>
|
| 39 |
+
by_cases hlt : columnEntry 0 m (j + 1) < t
|
| 40 |
+
· simp only [arraySpine, curveJoin_of_gt hlt]
|
| 41 |
+
· have he : t = columnEntry 0 m (j + 1) := le_antisymm (le_of_not_gt hlt) ht
|
| 42 |
+
subst t
|
| 43 |
+
have hcut : columnEntry 0 m j + 200 * m < columnEntry 0 m (j + 1) := by
|
| 44 |
+
rw [columnEntry_succ]
|
| 45 |
+
linarith [Real.pi_pos]
|
| 46 |
+
simp only [arraySpine, curveJoin_of_le le_rfl, curveJoin_of_gt hcut, sub_self]
|
| 47 |
+
rw [columnEntry_succ]
|
| 48 |
+
have he : columnEntry 0 m j + 200 * m + 50 * Real.pi -
|
| 49 |
+
(columnEntry 0 m j + 200 * m) = 50 * Real.pi := by ring
|
| 50 |
+
rw [he, circular_straight_position_match]
|
| 51 |
+
|
| 52 |
+
lemma arrayTangent_tail (m j : ℕ) {t : ℝ} (ht : columnEntry 0 m j ≤ t) :
|
| 53 |
+
arrayTangent m j t = straightTangent j := by
|
| 54 |
+
cases j with
|
| 55 |
+
| zero => rfl
|
| 56 |
+
| succ j =>
|
| 57 |
+
by_cases hlt : columnEntry 0 m (j + 1) < t
|
| 58 |
+
· simp only [arrayTangent, curveJoin_of_gt hlt]
|
| 59 |
+
· have he : t = columnEntry 0 m (j + 1) := le_antisymm (le_of_not_gt hlt) ht
|
| 60 |
+
subst t
|
| 61 |
+
have hcut : columnEntry 0 m j + 200 * m < columnEntry 0 m (j + 1) := by
|
| 62 |
+
rw [columnEntry_succ]
|
| 63 |
+
linarith [Real.pi_pos]
|
| 64 |
+
simp only [arrayTangent, curveJoin_of_le le_rfl, curveJoin_of_gt hcut]
|
| 65 |
+
rw [columnEntry_succ]
|
| 66 |
+
have he : columnEntry 0 m j + 200 * m + 50 * Real.pi -
|
| 67 |
+
(columnEntry 0 m j + 200 * m) = 50 * Real.pi := by ring
|
| 68 |
+
rw [he, circular_straight_tangent_match]
|
| 69 |
+
|
| 70 |
+
lemma arrayTangent_norm (m j : ℕ) (t : ℝ) : ‖arrayTangent m j t‖ = 1 := by
|
| 71 |
+
induction j with
|
| 72 |
+
| zero => exact straightTangent_norm 0
|
| 73 |
+
| succ j ih =>
|
| 74 |
+
unfold arrayTangent curveJoin
|
| 75 |
+
split
|
| 76 |
+
· split
|
| 77 |
+
· exact ih
|
| 78 |
+
· exact circularTangent_norm _ _
|
| 79 |
+
· exact straightTangent_norm _
|
| 80 |
+
|
| 81 |
+
lemma arraySpine_hasDerivAt (m j : ℕ) (t : ℝ) :
|
| 82 |
+
HasDerivAt (arraySpine m j) (arrayTangent m j t) t := by
|
| 83 |
+
induction j generalizing t with
|
| 84 |
+
| zero => exact straightPiece_hasDerivAt m 0 t
|
| 85 |
+
| succ j ih =>
|
| 86 |
+
let a := columnEntry 0 m j + 200 * m
|
| 87 |
+
let b := columnEntry 0 m (j + 1)
|
| 88 |
+
have hc (t : ℝ) : HasDerivAt (fun t => circularPiece m j (t - a))
|
| 89 |
+
(circularTangent j (t - a)) t := by
|
| 90 |
+
convert (circularPiece_hasDerivAt m j (t - a)).scomp t
|
| 91 |
+
((hasDerivAt_id t).sub_const a) using 1 <;> first | rfl | simp only [one_smul]
|
| 92 |
+
have hs (t : ℝ) : HasDerivAt (fun t => straightPiece m (j + 1) (t - b))
|
| 93 |
+
(straightTangent (j + 1)) t := by
|
| 94 |
+
convert (straightPiece_hasDerivAt m (j + 1) (t - b)).scomp t
|
| 95 |
+
((hasDerivAt_id t).sub_const b) using 1 <;> first | rfl | simp only [one_smul]
|
| 96 |
+
have ha0 : columnEntry 0 m j ≤ a := by dsimp [a]; linarith [Nat.cast_nonneg (α := ℝ) m]
|
| 97 |
+
have hab : a < b := by dsimp [a, b]; rw [columnEntry_succ]; linarith [Real.pi_pos]
|
| 98 |
+
have habv : b - a = 50 * Real.pi := by dsimp [a, b]; rw [columnEntry_succ]; ring
|
| 99 |
+
have he₁ : arraySpine m j a = circularPiece m j (a - a) := by
|
| 100 |
+
rw [arraySpine_tail m j ha0]
|
| 101 |
+
have he : a - columnEntry 0 m j = 200 * m := by dsimp [a]; ring
|
| 102 |
+
rw [he, sub_self, straight_circular_position_match]
|
| 103 |
+
have hd₁ : arrayTangent m j a = circularTangent j (a - a) := by
|
| 104 |
+
rw [arrayTangent_tail m j ha0, sub_self, straight_circular_tangent_match]
|
| 105 |
+
have hfirst := curveJoin_hasDerivAt a (arraySpine m j)
|
| 106 |
+
(fun t => circularPiece m j (t - a)) (arrayTangent m j)
|
| 107 |
+
(fun t => circularTangent j (t - a)) ih hc he₁ hd₁
|
| 108 |
+
have he₂ : curveJoin a (arraySpine m j) (fun t => circularPiece m j (t - a)) b =
|
| 109 |
+
straightPiece m (j + 1) (b - b) := by
|
| 110 |
+
rw [curveJoin_of_gt hab, habv, sub_self, circular_straight_position_match]
|
| 111 |
+
have hd₂ : curveJoin a (arrayTangent m j) (fun t => circularTangent j (t - a)) b =
|
| 112 |
+
straightTangent (j + 1) := by
|
| 113 |
+
rw [curveJoin_of_gt hab, habv, circular_straight_tangent_match]
|
| 114 |
+
exact curveJoin_hasDerivAt b _ _ _ _ hfirst hs he₂ hd₂ t
|
| 115 |
+
|
| 116 |
+
lemma arrayTangent_lipschitz (m j : ℕ) : LipschitzWith (1 / 50) (arrayTangent m j) := by
|
| 117 |
+
induction j with
|
| 118 |
+
| zero => exact (LipschitzWith.const _).weaken (by norm_num)
|
| 119 |
+
| succ j ih =>
|
| 120 |
+
let a := columnEntry 0 m j + 200 * m
|
| 121 |
+
let b := columnEntry 0 m (j + 1)
|
| 122 |
+
have hc : LipschitzWith (1 / 50) (fun t => circularTangent j (t - a)) := by
|
| 123 |
+
apply lipschitzWith_iff_dist_le_mul.mpr
|
| 124 |
+
intro u v
|
| 125 |
+
simpa only [dist_sub_right] using (circularTangent_lipschitz j).dist_le_mul (u - a) (v - a)
|
| 126 |
+
have hs : LipschitzWith (1 / 50) (fun _ : ℝ => straightTangent (j + 1)) :=
|
| 127 |
+
(LipschitzWith.const _).weaken (by norm_num)
|
| 128 |
+
have ha0 : columnEntry 0 m j ≤ a := by dsimp [a]; linarith [Nat.cast_nonneg (α := ℝ) m]
|
| 129 |
+
have hab : a < b := by dsimp [a, b]; rw [columnEntry_succ]; linarith [Real.pi_pos]
|
| 130 |
+
have habv : b - a = 50 * Real.pi := by dsimp [a, b]; rw [columnEntry_succ]; ring
|
| 131 |
+
have hd₁ : arrayTangent m j a = circularTangent j (a - a) := by
|
| 132 |
+
rw [arrayTangent_tail m j ha0, sub_self, straight_circular_tangent_match]
|
| 133 |
+
have hfirst := curveJoin_lipschitz ih hc hd₁
|
| 134 |
+
have hd₂ : curveJoin a (arrayTangent m j) (fun t => circularTangent j (t - a)) b =
|
| 135 |
+
straightTangent (j + 1) := by
|
| 136 |
+
rw [curveJoin_of_gt hab, habv, circular_straight_tangent_match]
|
| 137 |
+
exact curveJoin_lipschitz hfirst hs hd₂
|
| 138 |
+
|
| 139 |
+
/-- Every length-four normal coordinate patch of the explicit array has
|
| 140 |
+
uniform upper and inverse Lipschitz constants equal to two. -/
|
| 141 |
+
theorem array_normal_patch_bounds (m j : ℕ) (k : ℝ) :
|
| 142 |
+
LipschitzOnWith 2 (normalRibbon (arraySpine m j) (arrayTangent m j))
|
| 143 |
+
(RibbonCoordinates.ribbonStepPatch k) ∧
|
| 144 |
+
∀ z ∈ RibbonCoordinates.ribbonStepPatch k,
|
| 145 |
+
∀ w ∈ RibbonCoordinates.ribbonStepPatch k,
|
| 146 |
+
dist z w ≤ 2 * dist (normalRibbon (arraySpine m j) (arrayTangent m j) z)
|
| 147 |
+
(normalRibbon (arraySpine m j) (arrayTangent m j) w) := by
|
| 148 |
+
have hbound z (hz : z ∈ RibbonCoordinates.ribbonStepPatch k)
|
| 149 |
+
w (hw : w ∈ RibbonCoordinates.ribbonStepPatch k) :=
|
| 150 |
+
normalRibbon_patch_bounds (arraySpine m j) (arrayTangent m j) (k - 1) (k + 3)
|
| 151 |
+
(by ring_nf; norm_num)
|
| 152 |
+
(fun t _ => (arraySpine_hasDerivAt m j t).hasDerivWithinAt)
|
| 153 |
+
(fun t _ => arrayTangent_norm m j t) (arrayTangent_lipschitz m j).lipschitzOnWith
|
| 154 |
+
z w ⟨⟨hz.1, hz.2.1⟩, hz.2.2⟩ ⟨⟨hw.1, hw.2.1⟩, hw.2.2⟩
|
| 155 |
+
exact ⟨lipschitzOnWith_iff_dist_le_mul.mpr (fun z hz w hw => (hbound z hz w hw).1),
|
| 156 |
+
fun z hz w hw => (hbound z hz w hw).2⟩
|
| 157 |
+
|
| 158 |
+
|
| 159 |
+
end SLEExactGauge.Serpentine
|
| 160 |
+
|
| 161 |
+
end
|
| 162 |
+
|
| 163 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineEmbedding.lean
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineLayout
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
/-! The only contacts between the straight and circular normal bands are
|
| 6 |
+
their prescribed common end sections. These geometric statements support
|
| 7 |
+
the global embedding of the concatenated serpentine. -/
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
open Set
|
| 11 |
+
|
| 12 |
+
namespace SLEExactGauge.Serpentine
|
| 13 |
+
|
| 14 |
+
@[simp] lemma turnPoint_im (c : ℂ) (h : ℝ) (m j : ℕ) (t a : ℝ) :
|
| 15 |
+
(turnPoint c h m j t a).im = c.im + side j * h +
|
| 16 |
+
(turnRadius h m + side j * ribbonWidth h m * a) * (side j * Real.sin t) := by
|
| 17 |
+
simp only [turnPoint, Complex.add_re, Complex.add_im, Complex.ofReal_re,
|
| 18 |
+
Complex.ofReal_im, Complex.mul_re, Complex.mul_im, Complex.I_re, Complex.I_im,
|
| 19 |
+
mul_zero, zero_mul, sub_zero, mul_one, add_zero, zero_add]
|
| 20 |
+
|
| 21 |
+
lemma turnPoint_oriented_im (c : ℂ) (h : ℝ) (m j : ℕ) (t a : ℝ) :
|
| 22 |
+
side j * ((turnPoint c h m j t a).im - c.im) =
|
| 23 |
+
h + (turnRadius h m + side j * ribbonWidth h m * a) * Real.sin t := by
|
| 24 |
+
rw [turnPoint_im]
|
| 25 |
+
let R := turnRadius h m + side j * ribbonWidth h m * a
|
| 26 |
+
change side j * (c.im + side j * h + R * (side j * Real.sin t) - c.im) = h + R * Real.sin t
|
| 27 |
+
calc
|
| 28 |
+
_ = side j ^ 2 * (h + R * Real.sin t) := by ring
|
| 29 |
+
_ = _ := by rw [side_sq, one_mul]
|
| 30 |
+
|
| 31 |
+
lemma columnPoint_equal_forces_index {h : ℝ} (hh : 0 < h) {m i j : ℕ} (hm : 0 < m)
|
| 32 |
+
(c : ℂ) (y y' : ℝ) {a b : ℝ} (ha : |a| ≤ 1) (hb : |b| ≤ 1)
|
| 33 |
+
(he : columnPoint c h m i y a = columnPoint c h m j y' b) : i = j := by
|
| 34 |
+
by_contra hn
|
| 35 |
+
rcases lt_or_gt_of_ne hn with hij | hji
|
| 36 |
+
· exact columnPoint_ne hh hm hij c y y' ha hb he
|
| 37 |
+
· exact columnPoint_ne hh hm hji c y' y hb ha he.symm
|
| 38 |
+
|
| 39 |
+
lemma columnPoint_injective {h : ℝ} (hh : 0 < h) {m : ℕ} (hm : 0 < m)
|
| 40 |
+
(c : ℂ) (j : ℕ) {y y' a b : ℝ}
|
| 41 |
+
(he : columnPoint c h m j y a = columnPoint c h m j y' b) : y = y' ∧ a = b := by
|
| 42 |
+
have hy := congrArg Complex.im he
|
| 43 |
+
simp only [columnPoint_im] at hy
|
| 44 |
+
have ha := congrArg Complex.re he
|
| 45 |
+
simp only [columnPoint_re] at ha
|
| 46 |
+
have hs : side j ≠ 0 := by
|
| 47 |
+
intro hz
|
| 48 |
+
have hh := side_abs j
|
| 49 |
+
rw [hz, abs_zero] at hh
|
| 50 |
+
norm_num at hh
|
| 51 |
+
refine ⟨by linarith, ?_⟩
|
| 52 |
+
apply mul_left_cancel₀ (mul_ne_zero hs (ribbonWidth_pos hh hm).ne')
|
| 53 |
+
nlinarith
|
| 54 |
+
|
| 55 |
+
/-- A circular normal band can meet a straight band only at angle zero
|
| 56 |
+
or pi; its interior lies strictly above or below all straight passes. -/
|
| 57 |
+
theorem turnPoint_column_contact {h : ℝ} (hh : 0 < h) {m j k : ℕ} (hm : 0 < m)
|
| 58 |
+
(c : ℂ) {t y a b : ℝ} (ht : t ∈ Icc 0 Real.pi) (hy : |y| ≤ h)
|
| 59 |
+
(ha : |a| ≤ 1) (he : turnPoint c h m j t a = columnPoint c h m k y b) :
|
| 60 |
+
t = 0 ∨ t = Real.pi := by
|
| 61 |
+
by_contra hn
|
| 62 |
+
push Not at hn
|
| 63 |
+
have hsin : 0 < Real.sin t := Real.sin_pos_of_pos_of_lt_pi
|
| 64 |
+
(lt_of_le_of_ne ht.1 (Ne.symm hn.1)) (lt_of_le_of_ne ht.2 hn.2)
|
| 65 |
+
have hor := turnPoint_oriented_im c h m j t a
|
| 66 |
+
have hcoeff := turn_radial_coefficient_pos hh hm j ha
|
| 67 |
+
have hy' : |(turnPoint c h m j t a).im - c.im| ≤ h := by
|
| 68 |
+
rw [he, columnPoint_im, add_sub_cancel_left]
|
| 69 |
+
exact hy
|
| 70 |
+
have hu : side j * ((turnPoint c h m j t a).im - c.im) ≤ h := by
|
| 71 |
+
calc
|
| 72 |
+
_ ≤ |side j * ((turnPoint c h m j t a).im - c.im)| := le_abs_self _
|
| 73 |
+
_ = |(turnPoint c h m j t a).im - c.im| := by rw [abs_mul, side_abs, one_mul]
|
| 74 |
+
_ ≤ h := hy'
|
| 75 |
+
nlinarith [mul_pos hcoeff hsin]
|
| 76 |
+
|
| 77 |
+
/-- Exact gluing sections, including the matching normal coordinate. -/
|
| 78 |
+
theorem turnPoint_column_gluing {h : ℝ} (hh : 0 < h) {m j k : ℕ} (hm : 0 < m)
|
| 79 |
+
(c : ℂ) {t y a b : ℝ} (ht : t ∈ Icc 0 Real.pi) (hy : |y| ≤ h)
|
| 80 |
+
(ha : |a| ≤ 1) (hb : |b| ≤ 1)
|
| 81 |
+
(he : turnPoint c h m j t a = columnPoint c h m k y b) :
|
| 82 |
+
(t = 0 ∧ k = j ∧ y = side j * h ∧ a = b) ∨
|
| 83 |
+
(t = Real.pi ∧ k = j + 1 ∧ y = side j * h ∧ a = b) := by
|
| 84 |
+
rcases turnPoint_column_contact hh hm c ht hy ha he with rfl | rfl
|
| 85 |
+
· rw [turnPoint_zero] at he
|
| 86 |
+
have hk := columnPoint_equal_forces_index hh hm c (side j * h) y ha hb he
|
| 87 |
+
subst k
|
| 88 |
+
obtain ⟨hy', ha'⟩ := columnPoint_injective hh hm c j he
|
| 89 |
+
exact Or.inl ⟨rfl, rfl, hy'.symm, ha'⟩
|
| 90 |
+
· rw [turnPoint_pi] at he
|
| 91 |
+
have hk := columnPoint_equal_forces_index hh hm c (side j * h) y ha hb he
|
| 92 |
+
subst k
|
| 93 |
+
obtain ⟨hy', ha'⟩ := columnPoint_injective hh hm c (j + 1) he
|
| 94 |
+
exact Or.inr ⟨rfl, rfl, hy'.symm, ha'⟩
|
| 95 |
+
|
| 96 |
+
@[simp] lemma turnPoint_re (c : ℂ) (h : ℝ) (m j : ℕ) (t a : ℝ) :
|
| 97 |
+
(turnPoint c h m j t a).re = c.re + columnOffset h m j + turnRadius h m -
|
| 98 |
+
(turnRadius h m + side j * ribbonWidth h m * a) * Real.cos t := by
|
| 99 |
+
simp only [turnPoint, Complex.add_re, Complex.add_im, Complex.ofReal_re,
|
| 100 |
+
Complex.ofReal_im, Complex.mul_re, Complex.mul_im, Complex.I_re, Complex.I_im,
|
| 101 |
+
mul_zero, zero_mul, sub_zero, mul_one, add_zero, zero_add]
|
| 102 |
+
ring
|
| 103 |
+
|
| 104 |
+
lemma turn_horizontal_bound {h : ℝ} (hh : 0 < h) {m : ℕ} (hm : 0 < m)
|
| 105 |
+
(c : ℂ) (j : ℕ) (t : ℝ) {a : ℝ} (ha : |a| ≤ 1) :
|
| 106 |
+
|(turnPoint c h m j t a).re - (c.re + columnOffset h m j + turnRadius h m)| ≤
|
| 107 |
+
turnRadius h m + ribbonWidth h m := by
|
| 108 |
+
have hr := (turnRadius_pos hh hm).le
|
| 109 |
+
have hw := (ribbonWidth_pos hh hm).le
|
| 110 |
+
have hb : |side j * ribbonWidth h m * a| ≤ ribbonWidth h m := by
|
| 111 |
+
rw [abs_mul, abs_mul, side_abs, one_mul, abs_of_nonneg hw]
|
| 112 |
+
exact mul_le_of_le_one_right hw ha
|
| 113 |
+
have ha' := abs_add_le (turnRadius h m) (side j * ribbonWidth h m * a)
|
| 114 |
+
rw [abs_of_nonneg hr] at ha'
|
| 115 |
+
rw [turnPoint_re]
|
| 116 |
+
have he : c.re + columnOffset h m j + turnRadius h m -
|
| 117 |
+
(turnRadius h m + side j * ribbonWidth h m * a) * Real.cos t -
|
| 118 |
+
(c.re + columnOffset h m j + turnRadius h m) =
|
| 119 |
+
-((turnRadius h m + side j * ribbonWidth h m * a) * Real.cos t) := by ring
|
| 120 |
+
rw [he, abs_neg, abs_mul]
|
| 121 |
+
exact (mul_le_of_le_one_right (abs_nonneg _) (Real.abs_cos_le_one t)).trans (ha'.trans (by linarith))
|
| 122 |
+
|
| 123 |
+
lemma turn_oriented_height {h : ℝ} (hh : 0 < h) {m : ℕ} (hm : 0 < m)
|
| 124 |
+
(c : ℂ) (j : ℕ) {t a : ℝ} (ht : t ∈ Icc 0 Real.pi) (ha : |a| ≤ 1) :
|
| 125 |
+
h ≤ side j * ((turnPoint c h m j t a).im - c.im) := by
|
| 126 |
+
rw [turnPoint_oriented_im]
|
| 127 |
+
exact le_add_of_nonneg_right (mul_nonneg (turn_radial_coefficient_pos hh hm j ha).le
|
| 128 |
+
(Real.sin_nonneg_of_mem_Icc ht))
|
| 129 |
+
|
| 130 |
+
/-- Different circular turns have disjoint full normal bands. Neighboring
|
| 131 |
+
turns lie on opposite sides; all other turn pairs have horizontal clearance. -/
|
| 132 |
+
theorem turnPoint_ne {h : ℝ} (hh : 0 < h) {m i j : ℕ} (hm : 0 < m)
|
| 133 |
+
(hij : i < j) (c : ℂ) {t u a b : ℝ} (ht : t ∈ Icc 0 Real.pi)
|
| 134 |
+
(hu : u ∈ Icc 0 Real.pi) (ha : |a| ≤ 1) (hb : |b| ≤ 1) :
|
| 135 |
+
turnPoint c h m i t a ≠ turnPoint c h m j u b := by
|
| 136 |
+
intro he
|
| 137 |
+
by_cases hnext : j = i + 1
|
| 138 |
+
· subst j
|
| 139 |
+
have h₁ := turn_oriented_height hh hm c i ht ha
|
| 140 |
+
have h₂ := turn_oriented_height hh hm c (i + 1) hu hb
|
| 141 |
+
rw [← he, side_succ] at h₂
|
| 142 |
+
nlinarith
|
| 143 |
+
· have hfar : i + 2 ≤ j := by omega
|
| 144 |
+
have hfar' : (i : ℝ) + 2 ≤ j := by exact_mod_cast hfar
|
| 145 |
+
have hstep := mul_le_mul_of_nonneg_right hfar' (spacing_pos hh hm).le
|
| 146 |
+
have h₁ := abs_le.mp (turn_horizontal_bound hh hm c i t ha)
|
| 147 |
+
have h₂ := abs_le.mp (turn_horizontal_bound hh hm c j u hb)
|
| 148 |
+
rw [← he] at h₂
|
| 149 |
+
simp only [columnOffset] at h₁ h₂
|
| 150 |
+
rw [spacing_eq_width] at hstep h₁ h₂
|
| 151 |
+
rw [turnRadius_eq_width] at h₁ h₂
|
| 152 |
+
have hw := ribbonWidth_pos hh hm
|
| 153 |
+
nlinarith
|
| 154 |
+
|
| 155 |
+
|
| 156 |
+
end SLEExactGauge.Serpentine
|
| 157 |
+
|
| 158 |
+
end
|
| 159 |
+
|
| 160 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineEscape.lean
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineCompleteCurve
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
/-! The final linear tail and bounded normal displacement of the
|
| 6 |
+
complete serpentine. These supply properness of the ribbon chart. -/
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
open Set Filter Metric
|
| 10 |
+
open scoped Topology NNReal
|
| 11 |
+
|
| 12 |
+
namespace SLEExactGauge.Serpentine
|
| 13 |
+
|
| 14 |
+
lemma complete_linear_tail (m : ℕ) (H r X Y : ℝ) {t : ℝ}
|
| 15 |
+
(ht : connectorEntry H r X Y + columnEntry 0 m (2 * m) + 1 ≤ t) :
|
| 16 |
+
completeSpine m H r X Y t = ((X + 200 * m : ℝ) : ℂ) +
|
| 17 |
+
((Y + t - connectorEntry H r X Y - columnEntry 0 m (2 * m) : ℝ) : ℂ) * Complex.I ∧
|
| 18 |
+
completeTangent m H r X Y t = Complex.I := by
|
| 19 |
+
have hc : 0 ≤ columnEntry 0 m (2 * m) := by unfold columnEntry; positivity
|
| 20 |
+
have htA : connectorEntry H r X Y < t := by linarith
|
| 21 |
+
have htC : columnEntry 0 m (2 * m) ≤ t - connectorEntry H r X Y := by linarith
|
| 22 |
+
simp only [completeSpine, completeTangent, curveJoin_of_gt htA]
|
| 23 |
+
rw [arraySpine_tail m (2 * m) htC, arrayTangent_tail m (2 * m) htC]
|
| 24 |
+
constructor
|
| 25 |
+
· apply Complex.ext <;>
|
| 26 |
+
simp only [arrayCenter, straightPiece, side_even, one_mul, Nat.cast_mul, Nat.cast_ofNat,
|
| 27 |
+
Complex.add_re, Complex.add_im, Complex.mul_re, Complex.mul_im, Complex.ofReal_re,
|
| 28 |
+
Complex.ofReal_im, Complex.I_re, Complex.I_im] <;> ring
|
| 29 |
+
· simp only [straightTangent, side_even, Complex.ofReal_one, one_mul]
|
| 30 |
+
|
| 31 |
+
lemma complete_eventually_ray (m : ℕ) (H r X Y : ℝ) :
|
| 32 |
+
∃ T : ℝ, 0 ≤ T ∧ ∀ t : ℝ, T ≤ t →
|
| 33 |
+
completeSpine m H r X Y t = completeSpine m H r X Y T + ((t - T : ℝ) : ℂ) * Complex.I := by
|
| 34 |
+
let T := max 0 (connectorEntry H r X Y + columnEntry 0 m (2 * m) + 1)
|
| 35 |
+
have hT : connectorEntry H r X Y + columnEntry 0 m (2 * m) + 1 ≤ T := le_max_right _ _
|
| 36 |
+
refine ⟨T, le_max_left _ _, fun t ht => ?_⟩
|
| 37 |
+
rw [(complete_linear_tail m H r X Y (hT.trans ht)).1,
|
| 38 |
+
(complete_linear_tail m H r X Y hT).1]
|
| 39 |
+
push_cast
|
| 40 |
+
ring
|
| 41 |
+
|
| 42 |
+
lemma completeSpine_escape (m : ℕ) (H r X Y : ℝ) :
|
| 43 |
+
Tendsto (completeSpine m H r X Y) atTop (cocompact ℂ) := by
|
| 44 |
+
have him : Tendsto (fun t => (completeSpine m H r X Y t).im) atTop atTop := by
|
| 45 |
+
have hh : Tendsto (fun t : ℝ => Y + t - connectorEntry H r X Y - columnEntry 0 m (2 * m))
|
| 46 |
+
atTop atTop := by
|
| 47 |
+
simpa only [sub_eq_add_neg, id_eq] using
|
| 48 |
+
tendsto_atTop_add_const_right atTop (-columnEntry 0 m (2 * m))
|
| 49 |
+
(tendsto_atTop_add_const_right atTop (-connectorEntry H r X Y)
|
| 50 |
+
(tendsto_atTop_add_const_left atTop Y tendsto_id))
|
| 51 |
+
apply hh.congr'
|
| 52 |
+
filter_upwards [eventually_ge_atTop
|
| 53 |
+
(connectorEntry H r X Y + columnEntry 0 m (2 * m) + 1)] with t ht
|
| 54 |
+
rw [(complete_linear_tail m H r X Y ht).1]
|
| 55 |
+
simp
|
| 56 |
+
have hn : Tendsto (fun t => ‖completeSpine m H r X Y t‖) atTop atTop := by
|
| 57 |
+
apply tendsto_atTop_mono (fun t => ?_) him
|
| 58 |
+
exact (le_abs_self _).trans (Complex.abs_im_le_norm _)
|
| 59 |
+
apply tendsto_cocompact_of_tendsto_dist_comp_atTop 0
|
| 60 |
+
simpa only [dist_zero_right] using hn
|
| 61 |
+
|
| 62 |
+
lemma complete_normal_displacement (m : ℕ) (H r X Y : ℝ) {z : ℂ} (hz : |z.im| ≤ 1) :
|
| 63 |
+
dist (normalRibbon (completeSpine m H r X Y) (completeTangent m H r X Y) z)
|
| 64 |
+
(completeSpine m H r X Y z.re) ≤ 1 := by
|
| 65 |
+
rw [normalRibbon, dist_self_add_left, norm_mul, norm_mul, Complex.norm_real,
|
| 66 |
+
Real.norm_eq_abs, Complex.norm_I, completeTangent_norm, mul_one, mul_one]
|
| 67 |
+
exact hz
|
| 68 |
+
|
| 69 |
+
lemma complete_normal_width (m : ℕ) (H r X Y : ℝ) {z : ℂ} (hz : |z.im| ≤ 1) :
|
| 70 |
+
‖normalRibbon (completeSpine m H r X Y) (completeTangent m H r X Y) z -
|
| 71 |
+
completeSpine m H r X Y z.re‖ ≤ 1 := by
|
| 72 |
+
simpa only [dist_eq_norm] using complete_normal_displacement m H r X Y hz
|
| 73 |
+
|
| 74 |
+
lemma complete_normal_continuous {H r X Y : ℝ} (m : ℕ) (hr : 50 ≤ r)
|
| 75 |
+
(hX : 2 * r < X) (hY : H + 2 * r < Y) :
|
| 76 |
+
Continuous (normalRibbon (completeSpine m H r X Y) (completeTangent m H r X Y)) := by
|
| 77 |
+
have hr0 : 0 < r := by linarith
|
| 78 |
+
have hσ : Continuous (completeSpine m H r X Y) :=
|
| 79 |
+
continuous_iff_continuousAt.mpr (fun t => (completeSpine_hasDerivAt m hr0 hX hY t).continuousAt)
|
| 80 |
+
have hT : Continuous (completeTangent m H r X Y) :=
|
| 81 |
+
(completeTangent_lipschitz m hr hX hY).continuous
|
| 82 |
+
exact (hσ.comp Complex.continuous_re).add
|
| 83 |
+
(((Complex.continuous_ofReal.comp Complex.continuous_im).mul continuous_const).mul
|
| 84 |
+
(hT.comp Complex.continuous_re))
|
| 85 |
+
|
| 86 |
+
end SLEExactGauge.Serpentine
|
| 87 |
+
|
| 88 |
+
end
|
| 89 |
+
|
| 90 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineExperimentGeometry.lean
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineFittedShadow
|
| 2 |
+
import OAI.Probability.SLE.Gauge.SerpentineReflection
|
| 3 |
+
import OAI.Probability.SLE.Gauge.ProperRibbonCoordinates
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
/-! The actual left-or-right displaced serpentine. Reflection is applied
|
| 8 |
+
to both the physical image and the normal coordinate, so the initial chart
|
| 9 |
+
is still `z ↦ I*z`. -/
|
| 10 |
+
|
| 11 |
+
noncomputable section
|
| 12 |
+
open Set Filter Metric ComplexConjugate
|
| 13 |
+
open scoped NNReal
|
| 14 |
+
|
| 15 |
+
namespace SLEExactGauge.Serpentine
|
| 16 |
+
open RibbonCoordinates
|
| 17 |
+
|
| 18 |
+
def experimentChart (s : ℝ) (w : ℂ) (m : ℕ) : ℂ → ℂ :=
|
| 19 |
+
if 0 ≤ w.re then fitChart s w m else reflectedChart (fitChart s w m)
|
| 20 |
+
|
| 21 |
+
def experimentSpine (s : ℝ) (w : ℂ) (m : ℕ) (t : ℝ) : ℂ :=
|
| 22 |
+
if 0 ≤ w.re then fitSpine s w m t else loewnerMirror (fitSpine s w m t)
|
| 23 |
+
|
| 24 |
+
def physicalExperimentChart (s : ℝ) (w : ℂ) (m : ℕ) (z : ℂ) : ℂ :=
|
| 25 |
+
if 0 ≤ w.re then physicalFitChart s w m z else loewnerMirror (physicalFitChart s w m (conj z))
|
| 26 |
+
|
| 27 |
+
lemma loewnerMirror_real_mul (c : ℝ) (z : ℂ) :
|
| 28 |
+
loewnerMirror ((c : ℂ) * z) = (c : ℂ) * loewnerMirror z := by
|
| 29 |
+
simp [loewnerMirror, mul_neg]
|
| 30 |
+
|
| 31 |
+
lemma physicalExperimentChart_eq (s : ℝ) (w : ℂ) (m : ℕ) (z : ℂ) :
|
| 32 |
+
physicalExperimentChart s w m z = (ribbonWidth (halfHeight s) m : ℂ) * experimentChart s w m z := by
|
| 33 |
+
by_cases hw : 0 ≤ w.re
|
| 34 |
+
· simp only [physicalExperimentChart, experimentChart, ite_eq_left hw, physicalFitChart]
|
| 35 |
+
· simp only [physicalExperimentChart, experimentChart, ite_eq_right hw, physicalFitChart,
|
| 36 |
+
reflectedChart, loewnerMirror_real_mul]
|
| 37 |
+
|
| 38 |
+
theorem experimentChart_geometry {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 39 |
+
{m : ℕ} (hm : 0 < m) :
|
| 40 |
+
Continuous (experimentChart s w m) ∧ InjOn (experimentChart s w m) closedRibbon ∧
|
| 41 |
+
(∀ k : ℝ, LipschitzOnWith 2 (experimentChart s w m) (ribbonStepPatch k) ∧
|
| 42 |
+
∀ z ∈ ribbonStepPatch k, ∀ z' ∈ ribbonStepPatch k,
|
| 43 |
+
dist z z' ≤ 2 * dist (experimentChart s w m z) (experimentChart s w m z')) ∧
|
| 44 |
+
(∀ z ∈ closedRibbon, 0 < z.re → experimentChart s w m z ∈ upperHalfPlane) ∧
|
| 45 |
+
(∀ z ∈ closedRibbon, z.re ≤ 4 → experimentChart s w m z = Complex.I * z) := by
|
| 46 |
+
have hcont := fitChart_continuous hs w hw hm
|
| 47 |
+
have hinj := fitChart_injective hs w hw hm
|
| 48 |
+
have hpatch := fitChart_patch_bounds hs w hw hm
|
| 49 |
+
have hu := fitChart_upper hs w hw hm
|
| 50 |
+
have hi : ∀ z ∈ closedRibbon, z.re ≤ 4 → fitChart s w m z = Complex.I * z := by
|
| 51 |
+
intro z _ hz
|
| 52 |
+
exact fitChart_initial hs w hw hm (hz.trans (fit_parameters hs w hw hm).2.2.2)
|
| 53 |
+
by_cases hwr : 0 ≤ w.re
|
| 54 |
+
· simpa only [experimentChart, ite_eq_left hwr] using ⟨hcont, hinj, hpatch, hu, hi⟩
|
| 55 |
+
· simp only [experimentChart, ite_eq_right hwr]
|
| 56 |
+
exact ⟨reflectedChart_continuous hcont, reflectedChart_injective hinj,
|
| 57 |
+
fun k => ⟨reflectedChart_patch_upper (hpatch k).1,
|
| 58 |
+
reflectedChart_patch_lower (hpatch k).2⟩,
|
| 59 |
+
reflectedChart_upper hu, reflectedChart_initial hi⟩
|
| 60 |
+
|
| 61 |
+
lemma experimentChart_width (s : ℝ) (w : ℂ) (m : ℕ) {z : ℂ} (hz : z ∈ closedRibbon) :
|
| 62 |
+
‖experimentChart s w m z - experimentSpine s w m z.re‖ ≤ 1 := by
|
| 63 |
+
by_cases hwr : 0 ≤ w.re
|
| 64 |
+
· simpa only [experimentChart, experimentSpine, ite_eq_left hwr] using fitChart_width s w m hz
|
| 65 |
+
· simpa only [experimentChart, experimentSpine, ite_eq_right hwr] using
|
| 66 |
+
reflectedChart_width (P := fitChart s w m) (σ := fitSpine s w m)
|
| 67 |
+
(fun _ hz => fitChart_width s w m hz) z hz
|
| 68 |
+
|
| 69 |
+
lemma experimentSpine_eventually_ray (s : ℝ) (w : ℂ) (m : ℕ) :
|
| 70 |
+
∃ T : ℝ, 0 ≤ T ∧ ∀ t : ℝ, T ≤ t →
|
| 71 |
+
experimentSpine s w m t = experimentSpine s w m T + ((t - T : ℝ) : ℂ) * Complex.I := by
|
| 72 |
+
obtain ⟨T, hT, htail⟩ := fitSpine_eventually_ray s w m
|
| 73 |
+
refine ⟨T, hT, fun t ht => ?_⟩
|
| 74 |
+
by_cases hwr : 0 ≤ w.re
|
| 75 |
+
· simpa only [experimentSpine, ite_eq_left hwr] using htail t ht
|
| 76 |
+
· simp only [experimentSpine, ite_eq_right hwr]
|
| 77 |
+
rw [htail t ht]
|
| 78 |
+
simp [loewnerMirror, mul_neg, add_comm]
|
| 79 |
+
|
| 80 |
+
lemma experimentChart_real_norm (s : ℝ) (w : ℂ) (m : ℕ) (t : ℝ) :
|
| 81 |
+
‖experimentChart s w m (t : ℂ)‖ = ‖fitSpine s w m t‖ := by
|
| 82 |
+
by_cases hwr : 0 ≤ w.re <;>
|
| 83 |
+
simp [experimentChart, hwr, reflectedChart, fitChart, normalRibbon]
|
| 84 |
+
|
| 85 |
+
theorem experimentChart_escape (s : ℝ) (w : ℂ) (m : ℕ) :
|
| 86 |
+
Tendsto (fun t : ℝ => ‖experimentChart s w m (t : ℂ)‖) atTop atTop := by
|
| 87 |
+
simp only [experimentChart_real_norm]
|
| 88 |
+
exact tendsto_norm_cocompact_atTop.comp
|
| 89 |
+
(completeSpine_escape m (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m))
|
| 90 |
+
|
| 91 |
+
theorem experimentChart_zero {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 92 |
+
{m : ℕ} (hm : 0 < m) : experimentChart s w m 0 = 0 := by
|
| 93 |
+
have hh := (experimentChart_geometry hs w hw hm).2.2.2.2 0
|
| 94 |
+
(by simp [closedRibbon]) (by norm_num)
|
| 95 |
+
simpa only [mul_zero] using hh
|
| 96 |
+
|
| 97 |
+
theorem experimentChart_closedEmbedding {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 98 |
+
{m : ℕ} (hm : 0 < m) :
|
| 99 |
+
Topology.IsClosedEmbedding (fun z : closedRibbon => experimentChart s w m z) := by
|
| 100 |
+
obtain ⟨hc, hi, _⟩ := experimentChart_geometry hs w hw hm
|
| 101 |
+
obtain ⟨T, hT, htail⟩ := experimentSpine_eventually_ray s w m
|
| 102 |
+
exact ribbon_closedEmbedding_of_linear_tail _ hc.continuousOn hi _ T hT
|
| 103 |
+
(experimentSpine s w m T) htail (fun _ hz => experimentChart_width s w m hz)
|
| 104 |
+
|
| 105 |
+
theorem experimentChart_global_progress {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 106 |
+
{m : ℕ} (hm : 0 < m) :
|
| 107 |
+
∃ g : C(ℂ, ℝ), ∀ z ∈ closedRibbon, g (experimentChart s w m z) = z.re :=
|
| 108 |
+
exists_global_ribbon_progress _ (experimentChart_closedEmbedding hs w hw hm)
|
| 109 |
+
|
| 110 |
+
lemma reflected_positiveCenter {s : ℝ} {w : ℂ} (hw : w.re < 0) :
|
| 111 |
+
loewnerMirror (positiveCenter s w) = center s w := by
|
| 112 |
+
have hn : ¬ 0 ≤ w.re := not_le.mpr hw
|
| 113 |
+
apply Complex.ext
|
| 114 |
+
· simp only [loewnerMirror_re, positiveCenter, center, Complex.add_re, Complex.mul_re,
|
| 115 |
+
Complex.ofReal_re, Complex.ofReal_im, Complex.I_re, Complex.I_im,
|
| 116 |
+
mul_zero, zero_mul, sub_zero, add_zero]
|
| 117 |
+
rw [abs_of_neg hw]
|
| 118 |
+
simp only [displacementSign, ite_eq_right hn]
|
| 119 |
+
ring
|
| 120 |
+
· simp only [loewnerMirror_im, positiveCenter, center, Complex.add_im, Complex.mul_im,
|
| 121 |
+
Complex.ofReal_re, Complex.ofReal_im, Complex.I_re, Complex.I_im,
|
| 122 |
+
mul_zero, mul_one, add_zero, zero_add]
|
| 123 |
+
|
| 124 |
+
theorem physicalExperimentChart_retained_disk {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 125 |
+
{m j i : ℕ} (hm : 0 < m) (hj : j < m) (hi : i < m) {z : ℂ}
|
| 126 |
+
(hz : z.re ∈ Icc
|
| 127 |
+
((retainedStep (connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m)) m j i : ℝ) + 1 / 3)
|
| 128 |
+
((retainedStep (connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m)) m j i : ℝ) + 2 / 3))
|
| 129 |
+
(ha : |z.im| ≤ 1) :
|
| 130 |
+
physicalExperimentChart s w m z ∈ closedBall (center s w) (s / 20) := by
|
| 131 |
+
by_cases hwr : 0 ≤ w.re
|
| 132 |
+
· simpa only [physicalExperimentChart, ite_eq_left hwr] using
|
| 133 |
+
physicalFitChart_retained_disk hs w hw hwr hm hj hi hz ha
|
| 134 |
+
· have hzc : (conj z).re ∈ Icc
|
| 135 |
+
((retainedStep (connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m)) m j i : ℝ) + 1 / 3)
|
| 136 |
+
((retainedStep (connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m)) m j i : ℝ) + 2 / 3) := by
|
| 137 |
+
simpa only [Complex.conj_re] using hz
|
| 138 |
+
have hac : |(conj z).im| ≤ 1 := by simpa only [Complex.conj_im, abs_neg] using ha
|
| 139 |
+
have hd := physicalFitChart_retained_distance hs w hw hm hj hi hzc hac
|
| 140 |
+
change dist _ _ ≤ _
|
| 141 |
+
rw [physicalExperimentChart, ite_eq_right hwr, ← reflected_positiveCenter (lt_of_not_ge hwr),
|
| 142 |
+
loewnerMirror_dist]
|
| 143 |
+
linarith
|
| 144 |
+
|
| 145 |
+
theorem physicalExperimentChart_avoids_shadow {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 146 |
+
{m : ℕ} (hm : 0 < m) {z : ℂ} (ha : |z.im| ≤ 1) :
|
| 147 |
+
¬ (|(physicalExperimentChart s w m z).re - w.re| < s / 100 ∧
|
| 148 |
+
w.im - s / 100 < (physicalExperimentChart s w m z).im) := by
|
| 149 |
+
by_cases hwr : 0 ≤ w.re
|
| 150 |
+
· simpa only [physicalExperimentChart, ite_eq_left hwr, abs_of_nonneg hwr] using
|
| 151 |
+
physicalFitChart_avoids_shadow hs w hw hm ha
|
| 152 |
+
· have hneg : w.re < 0 := lt_of_not_ge hwr
|
| 153 |
+
have hac : |(conj z).im| ≤ 1 := by simpa only [Complex.conj_im, abs_neg] using ha
|
| 154 |
+
have hn := physicalFitChart_avoids_shadow hs w hw hm hac
|
| 155 |
+
have he : abs (-(physicalFitChart s w m (conj z)).re - w.re) =
|
| 156 |
+
abs ((physicalFitChart s w m (conj z)).re - |w.re|) := by
|
| 157 |
+
rw [abs_of_neg hneg]
|
| 158 |
+
have hh : -(physicalFitChart s w m (conj z)).re - w.re =
|
| 159 |
+
-((physicalFitChart s w m (conj z)).re - -w.re) := by ring
|
| 160 |
+
rw [hh, abs_neg]
|
| 161 |
+
simpa only [physicalExperimentChart, ite_eq_right hwr, loewnerMirror_re, loewnerMirror_im, he] using hn
|
| 162 |
+
|
| 163 |
+
theorem selected_middle_regions_inside {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 164 |
+
{m : ℕ} (hm : 0 < m) {ε : ℝ} (hε : ε ≤ 1) :
|
| 165 |
+
∀ k ∈ retainedSteps (connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m)) m,
|
| 166 |
+
physicalMiddleRegion (physicalExperimentChart s w m) closedRibbon k ε ⊆
|
| 167 |
+
closedBall (center s w) (s / 20) := by
|
| 168 |
+
intro k hk
|
| 169 |
+
obtain ⟨⟨j, i⟩, _, rfl⟩ := Finset.mem_image.mp hk
|
| 170 |
+
rw [physicalMiddleRegion_eq_image_middleStrip _ (Nat.cast_nonneg _) hε]
|
| 171 |
+
rintro y ⟨z, hz, rfl⟩
|
| 172 |
+
exact physicalExperimentChart_retained_disk hs w hw hm j.isLt i.isLt
|
| 173 |
+
⟨by linarith [hz.1], by linarith [hz.2.1]⟩ (hz.2.2.le.trans hε)
|
| 174 |
+
|
| 175 |
+
end SLEExactGauge.Serpentine
|
| 176 |
+
|
| 177 |
+
end
|
| 178 |
+
|
| 179 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineExponentialMass.lean
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineNormalizedMass
|
| 2 |
+
import OAI.Probability.SLE.Gauge.DenseRibbonNumerics
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-! The concrete stopped dense experiment costs at most exponentially
|
| 7 |
+
in m²; the constants are independent of the marked point and mesh. -/
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
open Set Filter MeasureTheory ProbabilityTheory Metric
|
| 11 |
+
open scoped Topology NNReal ENNReal
|
| 12 |
+
|
| 13 |
+
namespace SLEExactGauge.Serpentine
|
| 14 |
+
open RibbonCoordinates Target
|
| 15 |
+
|
| 16 |
+
theorem uniform_serpentine_exponential_stopped_mass
|
| 17 |
+
{Ω : Type} [mΩ : MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ]
|
| 18 |
+
(κ : ℝ) (hκ : 0 < κ) (hκ8 : κ < 8)
|
| 19 |
+
(B : ℝ≥0 → Ω → ℝ) (hB : IsBrownianReal B μ)
|
| 20 |
+
(hm : ∀ t, Measurable (B t)) (hc : ∀ ω, Continuous (fun t => B t ω))
|
| 21 |
+
(γ : Ω → ℝ≥0 → ℂ) (G F : Ω → ℝ≥0 → ℂ → ℂ)
|
| 22 |
+
(hw : ∀ ω, IsCapacityTwoWitness (fun t => Real.sqrt κ * B t ω) (γ ω) (G ω) (F ω))
|
| 23 |
+
(hcompact : PublishedHalfPlaneUnivalentCompactness)
|
| 24 |
+
(hboundary : PublishedFiniteLoewnerBoundaryExtension)
|
| 25 |
+
(hsupport : PublishedGeometricTubeSupport μ γ)
|
| 26 |
+
(hplanar : PublishedPlanarDiskOpenness)
|
| 27 |
+
(hstraight : PublishedHalfPlaneCrosscutStraightening)
|
| 28 |
+
(hexit : PublishedHalfPlaneConformalExitLaw)
|
| 29 |
+
(hwiener : PublishedPlanarWienerUnitSupport)
|
| 30 |
+
(W : WienerLaw) (hW : IsWiener W)
|
| 31 |
+
(ε : ℝ) (hε : 0 < ε) (hεsmall : ε ≤ 1 / 8) :
|
| 32 |
+
∃ c v₀ : ℝ, 0 < c ∧ 0 < v₀ ∧ ∀ s : ℝ, 0 < s →
|
| 33 |
+
∃ C : ℝ, 0 < C ∧ ∀ v : ℝ, 0 < v → v < v₀ →
|
| 34 |
+
∀ w : ℂ, ‖w‖ ≤ 1 → s ≤ w.im → ∀ m : ℕ, 0 < m → ∀ g : C(ℂ, ℝ),
|
| 35 |
+
(∀ z ∈ closedRibbon, g (experimentChart s w m z) = z.re) →
|
| 36 |
+
ENNReal.ofReal (Real.exp (-C * (m : ℝ) ^ 2)) ≤ μ {ω |
|
| 37 |
+
ω ∈ GoodRibbonPrefix γ (ribbonIntegerFront g γ (experimentSteps s w m)) (experimentChart s w m) ε ∧
|
| 38 |
+
((m ^ 2 : ℕ) : ℝ≥0∞) * ENNReal.ofReal c ≤ segmentSausageCharge κ (γ ω) 0
|
| 39 |
+
((ribbonIntegerFront g γ (experimentSteps s w m) ω).untopD 0) v (normalizedExperimentDisk s w m)} := by
|
| 40 |
+
obtain ⟨q₀, q, c, v₀, hq₀, hq₀1, hq, hq1, hcm, hv₀, hprob⟩ :=
|
| 41 |
+
uniform_serpentine_normalized_stopped_mass μ κ hκ hκ8 B hB hm hc γ G F hw
|
| 42 |
+
hcompact hboundary hsupport hplanar hstraight hexit hwiener W hW ε hε hεsmall
|
| 43 |
+
have hq₀fin : q₀ ≠ ⊤ := ne_top_of_le_ne_top (by norm_num : (1 : ℝ≥0∞) ≠ ⊤) hq₀1
|
| 44 |
+
have hp : 0 < q₀.toReal := ENNReal.toReal_pos hq₀.ne' hq₀fin
|
| 45 |
+
refine ⟨c, v₀, hcm, hv₀, fun s hs => ?_⟩
|
| 46 |
+
let D := fitEntryBound s + 601 + 100 * Real.pi
|
| 47 |
+
have hD : 0 ≤ D := by dsimp only [D]; linarith [fitEntryBound_pos hs, Real.pi_pos]
|
| 48 |
+
obtain ⟨C, hC, hcost⟩ := ribbon_initial_and_steps_quadratic_cost hq hq1 hp hD
|
| 49 |
+
refine ⟨C, hC, fun v hv hvcut w hwn hwy m hmp g hg => ?_⟩
|
| 50 |
+
have hcount : (experimentSteps s w m : ℝ) ≤ D * (m : ℝ) ^ 2 := by
|
| 51 |
+
apply le_trans (Nat.cast_le.mpr (Nat.sub_le _ 1))
|
| 52 |
+
exact fit_completion_quadratic hs w hwn hwy hmp
|
| 53 |
+
have hreal := hcost m (experimentSteps s w m) hmp hcount
|
| 54 |
+
have hENN := ENNReal.ofReal_le_ofReal hreal
|
| 55 |
+
rw [ENNReal.ofReal_mul (pow_nonneg hq.le _), ENNReal.ofReal_pow hq.le,
|
| 56 |
+
ENNReal.ofReal_toReal hq₀fin] at hENN
|
| 57 |
+
exact hENN.trans (hprob v hv hvcut s hs w hwy m hmp g hg)
|
| 58 |
+
|
| 59 |
+
end SLEExactGauge.Serpentine
|
| 60 |
+
|
| 61 |
+
end
|
| 62 |
+
|
| 63 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineExteriorBounds.lean
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineHorizontalBound
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
/-! The physical experiment lies strictly between two fixed exterior
|
| 6 |
+
vertical lines. These lines provide unobstructed real-boundary exits. -/
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
open Set Metric
|
| 10 |
+
|
| 11 |
+
namespace SLEExactGauge.Serpentine
|
| 12 |
+
open RibbonCoordinates
|
| 13 |
+
|
| 14 |
+
lemma physicalFitChart_re_bounds {s : ℝ} (hs : 0 < s) (hs1 : s ≤ 1)
|
| 15 |
+
(w : ℂ) (hw : s ≤ w.im) (hw1 : ‖w‖ ≤ 1) {m : ℕ} (hm : 0 < m)
|
| 16 |
+
{z : ℂ} (hz : z ∈ closedRibbon) :
|
| 17 |
+
-2 ≤ (physicalFitChart s w m z).re ∧ (physicalFitChart s w m z).re ≤ 2 := by
|
| 18 |
+
obtain ⟨hr, hx, _, _⟩ := fit_parameters hs w hw hm
|
| 19 |
+
have hH : 0 ≤ fitHeight m := by unfold fitHeight; positivity
|
| 20 |
+
have hℓ := (fit_width_pos hs hm).le
|
| 21 |
+
have hℓ1 := fit_width_le hs hm
|
| 22 |
+
have hX := fit_scaledX hs w hm
|
| 23 |
+
have hwr := (Complex.abs_re_le_norm w).trans hw1
|
| 24 |
+
let A := connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m)
|
| 25 |
+
by_cases hA : z.re ≤ A
|
| 26 |
+
· have hb := lowConnector_normal_re_bounds hH (by linarith : 0 < fitRadius m) hx hz
|
| 27 |
+
have hlo := mul_le_mul_of_nonneg_left hb.1 hℓ
|
| 28 |
+
have hhi := mul_le_mul_of_nonneg_left hb.2 hℓ
|
| 29 |
+
change -2 ≤ ((ribbonWidth (halfHeight s) m : ℂ) *
|
| 30 |
+
normalRibbon (completeSpine m _ _ _ _) (completeTangent m _ _ _ _) z).re ∧
|
| 31 |
+
((ribbonWidth (halfHeight s) m : ℂ) *
|
| 32 |
+
normalRibbon (completeSpine m _ _ _ _) (completeTangent m _ _ _ _) z).re ≤ 2
|
| 33 |
+
rw [complete_normal_of_le m _ _ _ _ hA]
|
| 34 |
+
simp only [Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero]
|
| 35 |
+
constructor <;> nlinarith
|
| 36 |
+
· have hz' : 0 ≤ (z - (A : ℂ)).re ∧ |(z - (A : ℂ)).im| ≤ 1 := by
|
| 37 |
+
simp only [Complex.sub_re, Complex.sub_im, Complex.ofReal_re, Complex.ofReal_im, sub_zero]
|
| 38 |
+
exact ⟨by linarith, hz.2⟩
|
| 39 |
+
have hlo := mul_le_mul_of_nonneg_left (array_normal_re_lower hm hz') hℓ
|
| 40 |
+
have hhi := mul_le_mul_of_nonneg_left (array_normal_re_upper hm hz') hℓ
|
| 41 |
+
have hcenter := congrArg Complex.re (fit_scaled_arrayCenter hs w hm)
|
| 42 |
+
simp only [Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero,
|
| 43 |
+
positiveCenter, Complex.add_re, Complex.mul_re, Complex.I_re, Complex.I_im,
|
| 44 |
+
mul_zero, sub_zero, add_zero] at hcenter
|
| 45 |
+
have hmℓ := fit_width_mul hs hm
|
| 46 |
+
change -2 ≤ ((ribbonWidth (halfHeight s) m : ℂ) *
|
| 47 |
+
normalRibbon (completeSpine m _ _ _ _) (completeTangent m _ _ _ _) z).re ∧
|
| 48 |
+
((ribbonWidth (halfHeight s) m : ℂ) *
|
| 49 |
+
normalRibbon (completeSpine m _ _ _ _) (completeTangent m _ _ _ _) z).re ≤ 2
|
| 50 |
+
rw [complete_normal_of_gt m _ _ _ _ (lt_of_not_ge hA)]
|
| 51 |
+
simp only [Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero,
|
| 52 |
+
Complex.add_re]
|
| 53 |
+
dsimp only [A] at hlo hhi
|
| 54 |
+
constructor <;> nlinarith [abs_nonneg w.re]
|
| 55 |
+
|
| 56 |
+
end SLEExactGauge.Serpentine
|
| 57 |
+
|
| 58 |
+
end
|
| 59 |
+
|
| 60 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineFiniteHeight.lean
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineTerminalGuide
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
/-! Every point in the finite experiment, before its final integer front,
|
| 6 |
+
is below the height used to attach the marked hook. -/
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
open Set Metric
|
| 10 |
+
|
| 11 |
+
namespace SLEExactGauge.Serpentine
|
| 12 |
+
open RibbonCoordinates
|
| 13 |
+
|
| 14 |
+
lemma array_normal_im_upper_before_end {m : ℕ} (hm : 0 < m) {z : ℂ}
|
| 15 |
+
(hz : 0 ≤ z.re ∧ |z.im| ≤ 1) (hze : z.re ≤ arrayEnd m (2 * m) + 1) :
|
| 16 |
+
(normalRibbon (arraySpine m (2 * m)) (arrayTangent m (2 * m)) z).im ≤ 401 * m := by
|
| 17 |
+
have hh : (0 : ℝ) < 100 * m := by positivity
|
| 18 |
+
by_cases he : z.re ≤ arrayEnd m (2 * m)
|
| 19 |
+
· rcases array_pieces m (2 * m) ⟨hz.1, he⟩ with ⟨i, hi, u, hu, _, hs, hT⟩ |
|
| 20 |
+
⟨i, hi, u, hu, _, hs, hT⟩
|
| 21 |
+
· simp only [normalRibbon]
|
| 22 |
+
rw [hs, hT, normal_straight_eq hm]
|
| 23 |
+
have hb := columnPoint_bound hh hm hi 0 (straight_height_bound m i hu) hz.2
|
| 24 |
+
rw [dist_zero_right] at hb
|
| 25 |
+
exact (Complex.im_le_norm _).trans (by linarith)
|
| 26 |
+
· simp only [normalRibbon]
|
| 27 |
+
rw [hs, hT, normal_circular_eq hm]
|
| 28 |
+
have hb := turnPoint_bound hh hm (show i + 1 ≤ 2 * m by omega) 0 (u / 50) hz.2
|
| 29 |
+
rw [dist_zero_right] at hb
|
| 30 |
+
exact (Complex.im_le_norm _).trans (by linarith)
|
| 31 |
+
· have hE : columnEntry 0 m (2 * m) ≤ z.re := by
|
| 32 |
+
have h := lt_of_not_ge he
|
| 33 |
+
dsimp only [arrayEnd] at h
|
| 34 |
+
linarith [Nat.cast_nonneg (α := ℝ) m]
|
| 35 |
+
have ht := array_normal_terminal hm (a := z.im) hE
|
| 36 |
+
rw [Complex.re_add_im z] at ht
|
| 37 |
+
rw [ht, columnPoint_im]
|
| 38 |
+
have hmr : (1 : ℝ) ≤ m := by exact_mod_cast hm
|
| 39 |
+
dsimp only [arrayEnd] at hze
|
| 40 |
+
simp only [Complex.zero_im, zero_add]
|
| 41 |
+
linarith
|
| 42 |
+
|
| 43 |
+
lemma lowConnector_im_mono {r X : ℝ} (hr : 0 < r) (hX : 2 * r < X) (H : ℝ) :
|
| 44 |
+
Monotone (fun t => (lowConnector H r X t).im) :=
|
| 45 |
+
monotone_of_hasDerivAt_nonneg
|
| 46 |
+
(fun t => Complex.imCLM.hasFDerivAt.comp_hasDerivAt t (lowConnector_hasDerivAt hr hX t))
|
| 47 |
+
(fun t => (lowConnectorTangent_nonneg (H := H) hr hX t).2)
|
| 48 |
+
|
| 49 |
+
lemma physicalFitChart_before_entry_height {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 50 |
+
{m : ℕ} (hm : 0 < m) {z : ℂ} (ha : |z.im| ≤ 1) (hz : z.re ≤ fitEntry s w m) :
|
| 51 |
+
(physicalFitChart s w m z).im ≤ w.im := by
|
| 52 |
+
obtain ⟨hr, hx, hy, _⟩ := fit_parameters hs w hw hm
|
| 53 |
+
have hA4 : connectorFourth (fitHeight m) (fitRadius m) (fitX s w m) < fitEntry s w m := by
|
| 54 |
+
unfold fitEntry connectorEntry
|
| 55 |
+
linarith [Nat.cast_nonneg (α := ℝ) m]
|
| 56 |
+
have hcenter := lowConnector_im_mono (by linarith : 0 < fitRadius m) hx (fitHeight m) hz
|
| 57 |
+
dsimp only at hcenter
|
| 58 |
+
rw [(lowConnector_after hA4).1] at hcenter
|
| 59 |
+
simp only [connectorTail, Complex.add_im, Complex.mul_im, Complex.ofReal_re,
|
| 60 |
+
Complex.ofReal_im, Complex.I_re, Complex.I_im, mul_one, mul_zero, zero_add] at hcenter
|
| 61 |
+
have hAeq : fitHeight m + 2 * fitRadius m +
|
| 62 |
+
(fitEntry s w m - connectorFourth (fitHeight m) (fitRadius m) (fitX s w m)) = fitY s w m := by
|
| 63 |
+
unfold fitEntry connectorEntry
|
| 64 |
+
ring
|
| 65 |
+
rw [hAeq] at hcenter
|
| 66 |
+
have hnormal : (normalRibbon (lowConnector (fitHeight m) (fitRadius m) (fitX s w m))
|
| 67 |
+
(lowConnectorTangent (fitHeight m) (fitRadius m) (fitX s w m)) z).im ≤ fitY s w m + 1 := by
|
| 68 |
+
have hb : ‖normalRibbon (lowConnector (fitHeight m) (fitRadius m) (fitX s w m))
|
| 69 |
+
(lowConnectorTangent (fitHeight m) (fitRadius m) (fitX s w m)) z -
|
| 70 |
+
lowConnector (fitHeight m) (fitRadius m) (fitX s w m) z.re‖ ≤ 1 := by
|
| 71 |
+
simp only [normalRibbon, add_sub_cancel_left, norm_mul, Complex.norm_real,
|
| 72 |
+
Real.norm_eq_abs, Complex.norm_I, lowConnectorTangent_norm, mul_one]
|
| 73 |
+
exact ha
|
| 74 |
+
have hi := (Complex.abs_im_le_norm _).trans hb
|
| 75 |
+
rw [Complex.sub_im] at hi
|
| 76 |
+
linarith [le_abs_self ((normalRibbon (lowConnector (fitHeight m) (fitRadius m) (fitX s w m))
|
| 77 |
+
(lowConnectorTangent (fitHeight m) (fitRadius m) (fitX s w m)) z).im -
|
| 78 |
+
(lowConnector (fitHeight m) (fitRadius m) (fitX s w m) z.re).im)]
|
| 79 |
+
have hh := mul_le_mul_of_nonneg_left hnormal (fit_width_pos hs hm).le
|
| 80 |
+
have hY := fit_scaledY hs w hm
|
| 81 |
+
have hwidth := fit_width_le hs hm
|
| 82 |
+
change ((ribbonWidth (halfHeight s) m : ℂ) *
|
| 83 |
+
normalRibbon (completeSpine m _ _ _ _) (completeTangent m _ _ _ _) z).im ≤ _
|
| 84 |
+
rw [complete_normal_of_le m _ _ _ _ hz]
|
| 85 |
+
simp only [Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im, zero_mul, add_zero]
|
| 86 |
+
nlinarith
|
| 87 |
+
|
| 88 |
+
lemma physicalFitChart_finite_height_lt_two {s : ℝ} (hs : 0 < s) (hs1 : s ≤ 1)
|
| 89 |
+
(w : ℂ) (hw : s ≤ w.im) (hw1 : ‖w‖ ≤ 1) {m : ℕ} (hm : 0 < m)
|
| 90 |
+
{z : ℂ} (hz : z ∈ closedRibbon) (hzK : z.re ≤ fitCompletion s w m) :
|
| 91 |
+
(physicalFitChart s w m z).im < 2 := by
|
| 92 |
+
have hwi := (Complex.im_le_norm w).trans hw1
|
| 93 |
+
by_cases hA : z.re ≤ fitEntry s w m
|
| 94 |
+
· exact (physicalFitChart_before_entry_height hs w hw hm hz.2 hA).trans_lt (by linarith)
|
| 95 |
+
· have hz' : 0 ≤ (z - (fitEntry s w m : ℂ)).re ∧
|
| 96 |
+
|(z - (fitEntry s w m : ℂ)).im| ≤ 1 := by
|
| 97 |
+
simp only [Complex.sub_re, Complex.sub_im, Complex.ofReal_re, Complex.ofReal_im, sub_zero]
|
| 98 |
+
exact ⟨by linarith, hz.2⟩
|
| 99 |
+
have hze : (z - (fitEntry s w m : ℂ)).re ≤ arrayEnd m (2 * m) + 1 := by
|
| 100 |
+
have hh := (fitCompletion_bounds hs w hw hm).2
|
| 101 |
+
simp only [Complex.sub_re, Complex.ofReal_re, arrayEnd]
|
| 102 |
+
linarith
|
| 103 |
+
have hb := mul_le_mul_of_nonneg_left (array_normal_im_upper_before_end hm hz' hze)
|
| 104 |
+
(fit_width_pos hs hm).le
|
| 105 |
+
have hmℓ := fit_width_mul hs hm
|
| 106 |
+
have hcenter := congrArg Complex.im (fit_scaled_arrayCenter hs w hm)
|
| 107 |
+
simp only [Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im, zero_mul, add_zero,
|
| 108 |
+
positiveCenter, Complex.add_im, Complex.mul_im, Complex.I_re, Complex.I_im,
|
| 109 |
+
mul_one, mul_zero, zero_add] at hcenter
|
| 110 |
+
change ((ribbonWidth (halfHeight s) m : ℂ) *
|
| 111 |
+
normalRibbon (completeSpine m _ _ _ _) (completeTangent m _ _ _ _) z).im < _
|
| 112 |
+
rw [complete_normal_of_gt m _ _ _ _ (lt_of_not_ge hA)]
|
| 113 |
+
simp only [Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im, zero_mul, add_zero,
|
| 114 |
+
Complex.add_im]
|
| 115 |
+
unfold fitEntry at hb
|
| 116 |
+
nlinarith
|
| 117 |
+
|
| 118 |
+
end SLEExactGauge.Serpentine
|
| 119 |
+
|
| 120 |
+
end
|
| 121 |
+
|
| 122 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineFittedChart.lean
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineParameters
|
| 2 |
+
import OAI.Probability.SLE.Gauge.SerpentineUpperHalfPlane
|
| 3 |
+
import OAI.Probability.SLE.Gauge.SerpentineRetainedStrips
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
/-! The concrete normalized chart, with the universal local constants
|
| 8 |
+
used by the ribbon iteration. The physical width is recorded separately. -/
|
| 9 |
+
|
| 10 |
+
noncomputable section
|
| 11 |
+
open Set Metric
|
| 12 |
+
open scoped NNReal
|
| 13 |
+
|
| 14 |
+
namespace SLEExactGauge.Serpentine
|
| 15 |
+
open RibbonCoordinates
|
| 16 |
+
|
| 17 |
+
def fitSpine (s : ℝ) (w : ℂ) (m : ℕ) : ℝ → ℂ :=
|
| 18 |
+
completeSpine m (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m)
|
| 19 |
+
|
| 20 |
+
def fitTangent (s : ℝ) (w : ℂ) (m : ℕ) : ℝ → ℂ :=
|
| 21 |
+
completeTangent m (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m)
|
| 22 |
+
|
| 23 |
+
def fitChart (s : ℝ) (w : ℂ) (m : ℕ) : ℂ → ℂ :=
|
| 24 |
+
normalRibbon (fitSpine s w m) (fitTangent s w m)
|
| 25 |
+
|
| 26 |
+
def positiveCenter (s : ℝ) (w : ℂ) : ℂ :=
|
| 27 |
+
((|w.re| + s / 4 : ℝ) : ℂ) + (w.im : ℂ) * Complex.I
|
| 28 |
+
|
| 29 |
+
lemma fitChart_continuous {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 30 |
+
{m : ℕ} (hm : 0 < m) : Continuous (fitChart s w m) := by
|
| 31 |
+
obtain ⟨hr, hx, hy, _⟩ := fit_parameters hs w hw hm
|
| 32 |
+
exact complete_normal_continuous m hr hx (by linarith [Nat.cast_nonneg (α := ℝ) m])
|
| 33 |
+
|
| 34 |
+
lemma fitChart_injective {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 35 |
+
{m : ℕ} (hm : 0 < m) : InjOn (fitChart s w m) closedRibbon := by
|
| 36 |
+
obtain ⟨hr, hx, hy, _⟩ := fit_parameters hs w hw hm
|
| 37 |
+
exact complete_normal_injective hm hr hx hy
|
| 38 |
+
|
| 39 |
+
lemma fitChart_patch_bounds {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 40 |
+
{m : ℕ} (hm : 0 < m) (k : ℝ) :
|
| 41 |
+
LipschitzOnWith 2 (fitChart s w m) (ribbonStepPatch k) ∧
|
| 42 |
+
∀ z ∈ ribbonStepPatch k, ∀ z' ∈ ribbonStepPatch k,
|
| 43 |
+
dist z z' ≤ 2 * dist (fitChart s w m z) (fitChart s w m z') := by
|
| 44 |
+
obtain ⟨hr, hx, hy, _⟩ := fit_parameters hs w hw hm
|
| 45 |
+
exact complete_normal_patch_bounds m hr hx (by linarith [Nat.cast_nonneg (α := ℝ) m]) k
|
| 46 |
+
|
| 47 |
+
lemma fitChart_upper {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 48 |
+
{m : ℕ} (hm : 0 < m) :
|
| 49 |
+
∀ z ∈ closedRibbon, 0 < z.re → fitChart s w m z ∈ upperHalfPlane := by
|
| 50 |
+
obtain ⟨hr, hx, hy, hH⟩ := fit_parameters hs w hw hm
|
| 51 |
+
intro z hz hz0
|
| 52 |
+
exact complete_normal_upper hm (by linarith) (by linarith) hx
|
| 53 |
+
(by linarith [Nat.cast_nonneg (α := ℝ) m]) hz0 hz.2
|
| 54 |
+
|
| 55 |
+
lemma fitChart_initial {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 56 |
+
{m : ℕ} (hm : 0 < m) {z : ℂ} (hz : z.re ≤ fitHeight m) :
|
| 57 |
+
fitChart s w m z = Complex.I * z := by
|
| 58 |
+
obtain ⟨hr, hx, _, _⟩ := fit_parameters hs w hw hm
|
| 59 |
+
have hA := fit_entry_lower hs w hw hm
|
| 60 |
+
change normalRibbon (completeSpine m (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m))
|
| 61 |
+
(completeTangent m (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m)) z = _
|
| 62 |
+
rw [complete_normal_of_le m _ _ _ _ (hz.trans hA)]
|
| 63 |
+
obtain ⟨hσ, hT⟩ := lowConnector_initial (by linarith : 0 < fitRadius m) hx hz
|
| 64 |
+
rw [normalRibbon, hσ, hT]
|
| 65 |
+
apply Complex.ext <;>
|
| 66 |
+
simp only [Complex.add_re, Complex.add_im, Complex.mul_re, Complex.mul_im,
|
| 67 |
+
Complex.ofReal_re, Complex.ofReal_im, Complex.I_re, Complex.I_im] <;> ring
|
| 68 |
+
|
| 69 |
+
lemma fitChart_width (s : ℝ) (w : ℂ) (m : ℕ) {z : ℂ} (hz : z ∈ closedRibbon) :
|
| 70 |
+
‖fitChart s w m z - fitSpine s w m z.re‖ ≤ 1 :=
|
| 71 |
+
complete_normal_width m _ _ _ _ hz.2
|
| 72 |
+
|
| 73 |
+
lemma fitSpine_eventually_ray (s : ℝ) (w : ℂ) (m : ℕ) :
|
| 74 |
+
∃ T : ℝ, 0 ≤ T ∧ ∀ t : ℝ, T ≤ t →
|
| 75 |
+
fitSpine s w m t = fitSpine s w m T + ((t - T : ℝ) : ℂ) * Complex.I :=
|
| 76 |
+
complete_eventually_ray m _ _ _ _
|
| 77 |
+
|
| 78 |
+
lemma fit_scaled_arrayCenter {s : ℝ} (hs : 0 < s) (w : ℂ) {m : ℕ} (hm : 0 < m) :
|
| 79 |
+
(ribbonWidth (halfHeight s) m : ℂ) * arrayCenter m (fitX s w m) (fitY s w m) =
|
| 80 |
+
positiveCenter s w := by
|
| 81 |
+
have hℓ := (fit_width_pos hs hm).ne'
|
| 82 |
+
have hmul := fit_width_mul hs hm
|
| 83 |
+
apply Complex.ext <;>
|
| 84 |
+
simp only [arrayCenter, positiveCenter, Complex.add_re, Complex.add_im,
|
| 85 |
+
Complex.mul_re, Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im,
|
| 86 |
+
Complex.I_re, Complex.I_im, mul_zero, mul_one, sub_zero, add_zero, zero_add]
|
| 87 |
+
· unfold fitX
|
| 88 |
+
rw [mul_add, mul_div_cancel₀ _ hℓ]
|
| 89 |
+
unfold halfHeight at *
|
| 90 |
+
nlinarith
|
| 91 |
+
· unfold fitY
|
| 92 |
+
rw [mul_add, mul_div_cancel₀ _ hℓ]
|
| 93 |
+
unfold halfHeight at *
|
| 94 |
+
nlinarith
|
| 95 |
+
|
| 96 |
+
end SLEExactGauge.Serpentine
|
| 97 |
+
|
| 98 |
+
end
|
| 99 |
+
|
| 100 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineFittedRegion.lean
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineFittedChart
|
| 2 |
+
import OAI.Probability.SLE.Gauge.SerpentineArrayRegion
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-! The retained integer strips lie in the prescribed displaced disk
|
| 7 |
+
after multiplication by the physical width. -/
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
open Set Metric
|
| 11 |
+
|
| 12 |
+
namespace SLEExactGauge.Serpentine
|
| 13 |
+
|
| 14 |
+
def physicalFitChart (s : ℝ) (w : ℂ) (m : ℕ) (z : ℂ) : ℂ :=
|
| 15 |
+
(ribbonWidth (halfHeight s) m : ℂ) * fitChart s w m z
|
| 16 |
+
|
| 17 |
+
lemma fitChart_retained_distance {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 18 |
+
{m j i : ℕ} (hm : 0 < m) (hj : j < m) (hi : i < m) {z : ℂ}
|
| 19 |
+
(hz : z.re ∈ Icc
|
| 20 |
+
((retainedStep (connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m)) m j i : ℝ) + 1 / 3)
|
| 21 |
+
((retainedStep (connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m)) m j i : ℝ) + 2 / 3))
|
| 22 |
+
(ha : |z.im| ≤ 1) :
|
| 23 |
+
dist (fitChart s w m z) (arrayCenter m (fitX s w m) (fitY s w m)) ≤ 300 * m := by
|
| 24 |
+
have hA : 0 ≤ connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m) :=
|
| 25 |
+
(by unfold fitHeight; positivity : (0 : ℝ) ≤ fitHeight m).trans (fit_entry_lower hs w hw hm)
|
| 26 |
+
have hmid := retained_middle_in_straight hA hi hz
|
| 27 |
+
have he : columnEntry (connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m)) m j =
|
| 28 |
+
connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m) + columnEntry 0 m j := by
|
| 29 |
+
unfold columnEntry
|
| 30 |
+
ring
|
| 31 |
+
rw [he] at hmid
|
| 32 |
+
have hu : z.re - connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m) -
|
| 33 |
+
columnEntry 0 m j ∈ Icc (0 : ℝ) (200 * m) := ⟨by linarith [hmid.1], by linarith [hmid.2]⟩
|
| 34 |
+
unfold fitChart fitSpine fitTangent
|
| 35 |
+
rw [retained_strip_on_column hm hj hi _ _ _ _ hA hz, dist_self_add_left]
|
| 36 |
+
have hb := columnPoint_bound (j := j) (by positivity : (0 : ℝ) < 100 * m) hm (by omega) 0
|
| 37 |
+
(straight_height_bound m j hu) ha
|
| 38 |
+
rw [dist_zero_right] at hb
|
| 39 |
+
linarith
|
| 40 |
+
|
| 41 |
+
lemma physicalFitChart_retained_distance {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 42 |
+
{m j i : ℕ} (hm : 0 < m) (hj : j < m) (hi : i < m) {z : ℂ}
|
| 43 |
+
(hz : z.re ∈ Icc
|
| 44 |
+
((retainedStep (connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m)) m j i : ℝ) + 1 / 3)
|
| 45 |
+
((retainedStep (connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m)) m j i : ℝ) + 2 / 3))
|
| 46 |
+
(ha : |z.im| ≤ 1) :
|
| 47 |
+
dist (physicalFitChart s w m z) (positiveCenter s w) ≤ 3 * s / 200 := by
|
| 48 |
+
have hd := fitChart_retained_distance hs w hw hm hj hi hz ha
|
| 49 |
+
have hℓ := fit_width_pos hs hm
|
| 50 |
+
have hmul := fit_width_mul hs hm
|
| 51 |
+
rw [physicalFitChart, ← fit_scaled_arrayCenter hs w hm, dist_eq_norm, ← mul_sub, norm_mul,
|
| 52 |
+
Complex.norm_real, Real.norm_eq_abs, abs_of_pos hℓ]
|
| 53 |
+
have h := mul_le_mul_of_nonneg_left hd hℓ.le
|
| 54 |
+
rw [dist_eq_norm] at h
|
| 55 |
+
nlinarith
|
| 56 |
+
|
| 57 |
+
lemma positiveCenter_eq_center {s : ℝ} {w : ℂ} (hw : 0 ≤ w.re) :
|
| 58 |
+
positiveCenter s w = center s w := by
|
| 59 |
+
apply Complex.ext <;>
|
| 60 |
+
simp [positiveCenter, center, displacementSign, hw, abs_of_nonneg hw]
|
| 61 |
+
|
| 62 |
+
lemma physicalFitChart_retained_disk {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 63 |
+
(hwr : 0 ≤ w.re) {m j i : ℕ} (hm : 0 < m) (hj : j < m) (hi : i < m) {z : ℂ}
|
| 64 |
+
(hz : z.re ∈ Icc
|
| 65 |
+
((retainedStep (connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m)) m j i : ℝ) + 1 / 3)
|
| 66 |
+
((retainedStep (connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m)) m j i : ℝ) + 2 / 3))
|
| 67 |
+
(ha : |z.im| ≤ 1) :
|
| 68 |
+
physicalFitChart s w m z ∈ closedBall (center s w) (s / 20) := by
|
| 69 |
+
have hd := physicalFitChart_retained_distance hs w hw hm hj hi hz ha
|
| 70 |
+
rw [positiveCenter_eq_center hwr] at hd
|
| 71 |
+
change dist _ _ ≤ _
|
| 72 |
+
linarith
|
| 73 |
+
|
| 74 |
+
end SLEExactGauge.Serpentine
|
| 75 |
+
|
| 76 |
+
end
|
| 77 |
+
|
| 78 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineFittedShadow.lean
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineFittedRegion
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
/-! The complete fitted ribbon avoids a fixed upward shadow of the
|
| 6 |
+
marked point, including the connector and the infinite final tail. -/
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
open Set Metric
|
| 10 |
+
|
| 11 |
+
namespace SLEExactGauge.Serpentine
|
| 12 |
+
|
| 13 |
+
lemma fit_width_le {s : ℝ} (hs : 0 < s) {m : ℕ} (hm : 0 < m) :
|
| 14 |
+
ribbonWidth (halfHeight s) m ≤ s / 20000 := by
|
| 15 |
+
have hmul := fit_width_mul hs hm
|
| 16 |
+
have hp := (fit_width_pos hs hm).le
|
| 17 |
+
have hm' : (1 : ℝ) ≤ m := by exact_mod_cast hm
|
| 18 |
+
nlinarith
|
| 19 |
+
|
| 20 |
+
lemma fit_scaledX {s : ℝ} (hs : 0 < s) (w : ℂ) {m : ℕ} (hm : 0 < m) :
|
| 21 |
+
ribbonWidth (halfHeight s) m * fitX s w m = |w.re| + s / 4 - s / 200 := by
|
| 22 |
+
unfold fitX halfHeight
|
| 23 |
+
exact mul_div_cancel₀ _ (fit_width_pos hs hm).ne'
|
| 24 |
+
|
| 25 |
+
lemma physicalFitChart_low {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 26 |
+
{m : ℕ} (hm : 0 < m) {z : ℂ} (ha : |z.im| ≤ 1)
|
| 27 |
+
(hz : z.re ≤ connectorFourth (fitHeight m) (fitRadius m) (fitX s w m)) :
|
| 28 |
+
(physicalFitChart s w m z).im ≤ s / 2 := by
|
| 29 |
+
obtain ⟨hr, hx, hy, _⟩ := fit_parameters hs w hw hm
|
| 30 |
+
have hA : z.re ≤ connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m) := by
|
| 31 |
+
have hY : fitHeight m + 2 * fitRadius m < fitY s w m := by
|
| 32 |
+
linarith [Nat.cast_nonneg (α := ℝ) m]
|
| 33 |
+
unfold connectorEntry
|
| 34 |
+
linarith
|
| 35 |
+
have hlow := lowConnector_normal_im_upper (by linarith : 1 < fitRadius m) hx hz ha
|
| 36 |
+
have hℓ := (fit_width_pos hs hm).le
|
| 37 |
+
have hmul := fit_width_mul hs hm
|
| 38 |
+
have hle := fit_width_le hs hm
|
| 39 |
+
have hscaled := mul_le_mul_of_nonneg_left hlow hℓ
|
| 40 |
+
change ((ribbonWidth (halfHeight s) m : ℂ) *
|
| 41 |
+
normalRibbon (completeSpine m _ _ _ _) (completeTangent m _ _ _ _) z).im ≤ _
|
| 42 |
+
rw [complete_normal_of_le m _ _ _ _ hA]
|
| 43 |
+
simp only [Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im, zero_mul, add_zero]
|
| 44 |
+
dsimp only [fitHeight, fitRadius] at hscaled ⊢
|
| 45 |
+
nlinarith
|
| 46 |
+
|
| 47 |
+
lemma physicalFitChart_tail_right {s : ℝ} (hs : 0 < s) (w : ℂ) (_hw : s ≤ w.im)
|
| 48 |
+
{m : ℕ} (hm : 0 < m) {z : ℂ} (ha : |z.im| ≤ 1)
|
| 49 |
+
(hz : connectorFourth (fitHeight m) (fitRadius m) (fitX s w m) < z.re)
|
| 50 |
+
(hA : z.re ≤ connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m)) :
|
| 51 |
+
s / 5 ≤ (physicalFitChart s w m z).re - |w.re| := by
|
| 52 |
+
have hℓ := (fit_width_pos hs hm).le
|
| 53 |
+
have hx := fit_scaledX hs w hm
|
| 54 |
+
have hle := fit_width_le hs hm
|
| 55 |
+
have hza := mul_le_mul_of_nonneg_left (abs_le.mp ha).2 hℓ
|
| 56 |
+
change ((ribbonWidth (halfHeight s) m : ℂ) *
|
| 57 |
+
normalRibbon (completeSpine m _ _ _ _) (completeTangent m _ _ _ _) z).re - _ ≥ _
|
| 58 |
+
rw [complete_normal_of_le m _ _ _ _ hA, normalRibbon,
|
| 59 |
+
(lowConnector_after hz).1, (lowConnector_after hz).2]
|
| 60 |
+
simp only [connectorTail, Complex.mul_re, Complex.mul_im, Complex.add_re, Complex.add_im,
|
| 61 |
+
Complex.ofReal_re, Complex.ofReal_im, Complex.I_re, Complex.I_im,
|
| 62 |
+
mul_zero, zero_mul, mul_one, sub_zero, add_zero, zero_add]
|
| 63 |
+
nlinarith
|
| 64 |
+
|
| 65 |
+
lemma physicalFitChart_array_right {s : ℝ} (hs : 0 < s) (w : ℂ)
|
| 66 |
+
{m : ℕ} (hm : 0 < m) {z : ℂ} (ha : |z.im| ≤ 1)
|
| 67 |
+
(hA : connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m) < z.re) :
|
| 68 |
+
s / 5 ≤ (physicalFitChart s w m z).re - |w.re| := by
|
| 69 |
+
have hℓ := (fit_width_pos hs hm).le
|
| 70 |
+
have hmul := fit_width_mul hs hm
|
| 71 |
+
let A := connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m)
|
| 72 |
+
have hz' : 0 ≤ (z - (A : ℂ)).re ∧ |(z - (A : ℂ)).im| ≤ 1 := by
|
| 73 |
+
simp only [Complex.sub_re, Complex.sub_im, Complex.ofReal_re, Complex.ofReal_im, sub_zero]
|
| 74 |
+
exact ⟨by dsimp [A]; linarith, ha⟩
|
| 75 |
+
have hbound := mul_le_mul_of_nonneg_left (array_normal_re_lower hm hz') hℓ
|
| 76 |
+
have hcenter := congrArg Complex.re (fit_scaled_arrayCenter hs w hm)
|
| 77 |
+
simp only [Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero,
|
| 78 |
+
positiveCenter, Complex.add_re, Complex.mul_re, Complex.I_re, Complex.I_im,
|
| 79 |
+
mul_zero, sub_zero, add_zero] at hcenter
|
| 80 |
+
change ((ribbonWidth (halfHeight s) m : ℂ) *
|
| 81 |
+
normalRibbon (completeSpine m _ _ _ _) (completeTangent m _ _ _ _) z).re - _ ≥ _
|
| 82 |
+
rw [complete_normal_of_gt m _ _ _ _ hA]
|
| 83 |
+
simp only [Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero,
|
| 84 |
+
Complex.add_re]
|
| 85 |
+
dsimp [A] at hbound
|
| 86 |
+
nlinarith
|
| 87 |
+
|
| 88 |
+
theorem physicalFitChart_avoids_shadow {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 89 |
+
{m : ℕ} (hm : 0 < m) {z : ℂ} (ha : |z.im| ≤ 1) :
|
| 90 |
+
¬ (abs ((physicalFitChart s w m z).re - |w.re|) < s / 100 ∧
|
| 91 |
+
w.im - s / 100 < (physicalFitChart s w m z).im) := by
|
| 92 |
+
intro h
|
| 93 |
+
by_cases h4 : z.re ≤ connectorFourth (fitHeight m) (fitRadius m) (fitX s w m)
|
| 94 |
+
· have hh := physicalFitChart_low hs w hw hm ha h4
|
| 95 |
+
linarith [h.2]
|
| 96 |
+
· by_cases hA : z.re ≤ connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m)
|
| 97 |
+
· have hh := physicalFitChart_tail_right hs w hw hm ha (lt_of_not_ge h4) hA
|
| 98 |
+
have hl := le_abs_self ((physicalFitChart s w m z).re - |w.re|)
|
| 99 |
+
linarith [h.1]
|
| 100 |
+
· have hh := physicalFitChart_array_right hs w hm ha (lt_of_not_ge hA)
|
| 101 |
+
have hl := le_abs_self ((physicalFitChart s w m z).re - |w.re|)
|
| 102 |
+
linarith [h.1]
|
| 103 |
+
|
| 104 |
+
end SLEExactGauge.Serpentine
|
| 105 |
+
|
| 106 |
+
end
|
| 107 |
+
|
| 108 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineHorizontalBound.lean
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineExperimentGeometry
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
/-! The whole completed physical ribbon stays between the exterior
|
| 6 |
+
vertical lines x=-2 and x=2. -/
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
open Set Metric
|
| 10 |
+
|
| 11 |
+
namespace SLEExactGauge.Serpentine
|
| 12 |
+
|
| 13 |
+
lemma array_normal_re_upper {m : ℕ} (hm : 0 < m) {z : ℂ}
|
| 14 |
+
(hz : 0 ≤ z.re ∧ |z.im| ≤ 1) :
|
| 15 |
+
(normalRibbon (arraySpine m (2 * m)) (arrayTangent m (2 * m)) z).re ≤ 400 * m := by
|
| 16 |
+
have hh : (0 : ℝ) < 100 * m := by positivity
|
| 17 |
+
by_cases he : z.re ≤ arrayEnd m (2 * m)
|
| 18 |
+
· rcases array_pieces m (2 * m) ⟨hz.1, he⟩ with ⟨i, hi, u, hu, _, hs, hT⟩ |
|
| 19 |
+
⟨i, hi, u, hu, _, hs, hT⟩
|
| 20 |
+
· simp only [normalRibbon]
|
| 21 |
+
rw [hs, hT, normal_straight_eq hm]
|
| 22 |
+
have hb := columnPoint_bound hh hm hi 0 (straight_height_bound m i hu) hz.2
|
| 23 |
+
rw [dist_zero_right] at hb
|
| 24 |
+
have hi := Complex.re_le_norm (columnPoint 0 (100 * m) m i (side i * (-100 * m + u)) z.im)
|
| 25 |
+
linarith
|
| 26 |
+
· simp only [normalRibbon]
|
| 27 |
+
rw [hs, hT, normal_circular_eq hm]
|
| 28 |
+
have hb := turnPoint_bound hh hm (show i + 1 ≤ 2 * m by omega) 0 (u / 50) hz.2
|
| 29 |
+
rw [dist_zero_right] at hb
|
| 30 |
+
exact (Complex.re_le_norm _).trans (by linarith)
|
| 31 |
+
· have hE : columnEntry 0 m (2 * m) ≤ z.re := by
|
| 32 |
+
have h := lt_of_not_ge he
|
| 33 |
+
dsimp only [arrayEnd] at h
|
| 34 |
+
linarith [Nat.cast_nonneg (α := ℝ) m]
|
| 35 |
+
have ht := array_normal_terminal hm (a := z.im) hE
|
| 36 |
+
rw [Complex.re_add_im z] at ht
|
| 37 |
+
rw [ht, columnPoint_re]
|
| 38 |
+
simp only [columnOffset, normalized_spacing hm, normalized_width hm, side_even,
|
| 39 |
+
one_mul, Complex.zero_re, zero_add, Nat.cast_mul, Nat.cast_ofNat]
|
| 40 |
+
have hm' : (1 : ℝ) ≤ m := by exact_mod_cast hm
|
| 41 |
+
linarith [(abs_le.mp hz.2).1]
|
| 42 |
+
|
| 43 |
+
lemma lowConnector_re_bounds {H r X : ℝ} (hH : 0 ≤ H) (hr : 0 < r) (hX : 2 * r < X)
|
| 44 |
+
{t : ℝ} (ht : 0 ≤ t) :
|
| 45 |
+
0 ≤ (lowConnector H r X t).re ∧ (lowConnector H r X t).re ≤ X := by
|
| 46 |
+
have hmono : Monotone (fun t => (lowConnector H r X t).re) :=
|
| 47 |
+
monotone_of_hasDerivAt_nonneg
|
| 48 |
+
(fun t => Complex.reCLM.hasFDerivAt.comp_hasDerivAt t (lowConnector_hasDerivAt hr hX t))
|
| 49 |
+
(fun t => (lowConnectorTangent_nonneg (H := H) hr hX t).1)
|
| 50 |
+
have hzero := hmono ht
|
| 51 |
+
dsimp only at hzero
|
| 52 |
+
rw [(lowConnector_initial hr hX hH).1] at hzero
|
| 53 |
+
simp only [Complex.ofReal_zero, zero_mul, Complex.zero_re] at hzero
|
| 54 |
+
let u := max t (connectorFourth H r X + 1)
|
| 55 |
+
have hu : connectorFourth H r X < u := by
|
| 56 |
+
have h := le_max_right t (connectorFourth H r X + 1)
|
| 57 |
+
dsimp only [u]
|
| 58 |
+
linarith
|
| 59 |
+
have hup := hmono (le_max_left t (connectorFourth H r X + 1))
|
| 60 |
+
dsimp only at hup
|
| 61 |
+
rw [(lowConnector_after hu).1] at hup
|
| 62 |
+
have hup' : (lowConnector H r X t).re ≤ X := by
|
| 63 |
+
simpa only [connectorTail, Complex.add_re, Complex.mul_re, Complex.ofReal_re,
|
| 64 |
+
Complex.ofReal_im, Complex.I_re, Complex.I_im, mul_zero, zero_mul, sub_zero, add_zero] using hup
|
| 65 |
+
exact ⟨hzero, hup'⟩
|
| 66 |
+
|
| 67 |
+
lemma lowConnector_normal_re_bounds {H r X : ℝ} (hH : 0 ≤ H) (hr : 0 < r) (hX : 2 * r < X)
|
| 68 |
+
{z : ℂ} (hz : 0 ≤ z.re ∧ |z.im| ≤ 1) :
|
| 69 |
+
-1 ≤ (normalRibbon (lowConnector H r X) (lowConnectorTangent H r X) z).re ∧
|
| 70 |
+
(normalRibbon (lowConnector H r X) (lowConnectorTangent H r X) z).re ≤ X + 1 := by
|
| 71 |
+
have hcenter := lowConnector_re_bounds hH hr hX hz.1
|
| 72 |
+
have hdist : ‖normalRibbon (lowConnector H r X) (lowConnectorTangent H r X) z -
|
| 73 |
+
lowConnector H r X z.re‖ ≤ 1 := by
|
| 74 |
+
simp only [normalRibbon, add_sub_cancel_left, norm_mul, Complex.norm_real,
|
| 75 |
+
Real.norm_eq_abs, Complex.norm_I, lowConnectorTangent_norm, mul_one]
|
| 76 |
+
exact hz.2
|
| 77 |
+
have hab := (Complex.abs_re_le_norm _).trans hdist
|
| 78 |
+
rw [Complex.sub_re, abs_le] at hab
|
| 79 |
+
constructor <;> linarith
|
| 80 |
+
|
| 81 |
+
end SLEExactGauge.Serpentine
|
| 82 |
+
|
| 83 |
+
end
|
| 84 |
+
|
| 85 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineInfiniteArray.lean
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineArrayEmbedding
|
| 2 |
+
import OAI.Probability.SLE.Gauge.SerpentineTerminal
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-! The finite serpentine remains embedded after continuing its last
|
| 7 |
+
column vertically to infinity. -/
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
open Set Metric
|
| 11 |
+
|
| 12 |
+
namespace SLEExactGauge.Serpentine
|
| 13 |
+
|
| 14 |
+
lemma array_normal_terminal {m : ℕ} (hm : 0 < m) {t a : ℝ}
|
| 15 |
+
(ht : columnEntry 0 m (2 * m) ≤ t) :
|
| 16 |
+
normalRibbon (arraySpine m (2 * m)) (arrayTangent m (2 * m)) (t + a * Complex.I) =
|
| 17 |
+
columnPoint 0 (100 * m) m (2 * m) (-100 * m + (t - columnEntry 0 m (2 * m))) a := by
|
| 18 |
+
simp only [normalRibbon, Complex.add_re, Complex.add_im, Complex.ofReal_re,
|
| 19 |
+
Complex.ofReal_im, Complex.mul_re, Complex.mul_im, Complex.I_re, Complex.I_im,
|
| 20 |
+
mul_zero, sub_zero, mul_one, zero_add, add_zero]
|
| 21 |
+
rw [arraySpine_tail m (2 * m) ht, arrayTangent_tail m (2 * m) ht, normal_straight_eq hm,
|
| 22 |
+
side_even, one_mul]
|
| 23 |
+
|
| 24 |
+
lemma array_normal_finite_terminal_disjoint {m : ℕ} (hm : 0 < m) {z w : ℂ}
|
| 25 |
+
(hz : z.re ∈ Icc (0 : ℝ) (arrayEnd m (2 * m)) ∧ |z.im| ≤ 1)
|
| 26 |
+
(hw : arrayEnd m (2 * m) < w.re) (hwa : |w.im| ≤ 1) :
|
| 27 |
+
normalRibbon (arraySpine m (2 * m)) (arrayTangent m (2 * m)) z ≠
|
| 28 |
+
normalRibbon (arraySpine m (2 * m)) (arrayTangent m (2 * m)) w := by
|
| 29 |
+
intro he
|
| 30 |
+
have hh : (0 : ℝ) < 100 * m := by positivity
|
| 31 |
+
have hwe : columnEntry 0 m (2 * m) ≤ w.re := by
|
| 32 |
+
dsimp only [arrayEnd] at hw
|
| 33 |
+
linarith [Nat.cast_nonneg (α := ℝ) m]
|
| 34 |
+
have hwy : 100 * (m : ℝ) < -100 * m + (w.re - columnEntry 0 m (2 * m)) := by
|
| 35 |
+
dsimp only [arrayEnd] at hw
|
| 36 |
+
linarith
|
| 37 |
+
have htw := array_normal_terminal hm (a := w.im) hwe
|
| 38 |
+
rw [Complex.re_add_im w] at htw
|
| 39 |
+
rw [htw] at he
|
| 40 |
+
rcases array_pieces m (2 * m) hz.1 with ⟨i, _, u, hu, _, hs, hT⟩ |
|
| 41 |
+
⟨i, hi, u, hu, _, hs, hT⟩
|
| 42 |
+
· simp only [normalRibbon] at he
|
| 43 |
+
rw [hs, hT, normal_straight_eq hm] at he
|
| 44 |
+
have hii := columnPoint_equal_forces_index hh hm 0 _ _ hz.2 hwa he
|
| 45 |
+
subst i
|
| 46 |
+
have hy := congrArg Complex.im he
|
| 47 |
+
simp only [columnPoint_im, side_even, one_mul] at hy
|
| 48 |
+
have hsmall := (abs_le.mp (straight_height_bound m (2 * m) hu)).2
|
| 49 |
+
rw [side_even, one_mul] at hsmall
|
| 50 |
+
linarith
|
| 51 |
+
· simp only [normalRibbon] at he
|
| 52 |
+
rw [hs, hT, normal_circular_eq hm] at he
|
| 53 |
+
exact turnPoint_terminal_column_ne hh hm hi 0 (circular_angle_bound hu) hwy hz.2 hwa he
|
| 54 |
+
|
| 55 |
+
/-- The complete upward-continued array is embedded on the whole closed
|
| 56 |
+
width-one normal strip. -/
|
| 57 |
+
theorem array_normal_injective_infinite {m : ℕ} (hm : 0 < m) :
|
| 58 |
+
InjOn (normalRibbon (arraySpine m (2 * m)) (arrayTangent m (2 * m)))
|
| 59 |
+
{z : ℂ | 0 ≤ z.re ∧ |z.im| ≤ 1} := by
|
| 60 |
+
intro z hz w hw he
|
| 61 |
+
by_cases hzE : z.re ≤ arrayEnd m (2 * m)
|
| 62 |
+
· by_cases hwE : w.re ≤ arrayEnd m (2 * m)
|
| 63 |
+
· exact array_normal_injective hm (2 * m) ⟨⟨hz.1, hzE⟩, hz.2⟩ ⟨⟨hw.1, hwE⟩, hw.2⟩ he
|
| 64 |
+
· exact (array_normal_finite_terminal_disjoint hm ⟨⟨hz.1, hzE⟩, hz.2⟩
|
| 65 |
+
(lt_of_not_ge hwE) hw.2 he).elim
|
| 66 |
+
· by_cases hwE : w.re ≤ arrayEnd m (2 * m)
|
| 67 |
+
· exact (array_normal_finite_terminal_disjoint hm ⟨⟨hw.1, hwE⟩, hw.2⟩
|
| 68 |
+
(lt_of_not_ge hzE) hz.2 he.symm).elim
|
| 69 |
+
· have hze : columnEntry 0 m (2 * m) ≤ z.re := by
|
| 70 |
+
have h := lt_of_not_ge hzE
|
| 71 |
+
dsimp only [arrayEnd] at h
|
| 72 |
+
linarith [Nat.cast_nonneg (α := ℝ) m]
|
| 73 |
+
have hwe : columnEntry 0 m (2 * m) ≤ w.re := by
|
| 74 |
+
have h := lt_of_not_ge hwE
|
| 75 |
+
dsimp only [arrayEnd] at h
|
| 76 |
+
linarith [Nat.cast_nonneg (α := ℝ) m]
|
| 77 |
+
have htz := array_normal_terminal hm (a := z.im) hze
|
| 78 |
+
have htw := array_normal_terminal hm (a := w.im) hwe
|
| 79 |
+
rw [Complex.re_add_im z] at htz
|
| 80 |
+
rw [Complex.re_add_im w] at htw
|
| 81 |
+
rw [htz, htw] at he
|
| 82 |
+
have hh : (0 : ℝ) < 100 * m := by positivity
|
| 83 |
+
obtain ⟨hy, ha⟩ := columnPoint_injective hh hm 0 (2 * m) he
|
| 84 |
+
exact Complex.ext (by linarith) ha
|
| 85 |
+
|
| 86 |
+
end SLEExactGauge.Serpentine
|
| 87 |
+
|
| 88 |
+
end
|
| 89 |
+
|
| 90 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineInitialPrefix.lean
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Geometry.FirstHeightSupport
|
| 2 |
+
import OAI.Probability.SLE.Gauge.RibbonGoodPrefix
|
| 3 |
+
import OAI.Probability.SLE.Gauge.SerpentineExperimentGeometry
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
/-! A single vertical support event starts every fitted serpentine at
|
| 8 |
+
integer front one. Its probability is independent of the marked point
|
| 9 |
+
and of the multiplicity. -/
|
| 10 |
+
|
| 11 |
+
noncomputable section
|
| 12 |
+
open Set Filter MeasureTheory ProbabilityTheory Metric
|
| 13 |
+
open scoped Topology NNReal ENNReal unitInterval
|
| 14 |
+
|
| 15 |
+
namespace SLEExactGauge.Serpentine
|
| 16 |
+
open RibbonCoordinates FirstFrontPassage FirstHeightSupport
|
| 17 |
+
|
| 18 |
+
def initialRiseStrip (ε : ℝ) : Set ℂ := {z | |z.re| < ε / 4}
|
| 19 |
+
|
| 20 |
+
def initialRiseTarget : Set ℂ := {z | 1 < z.im}
|
| 21 |
+
|
| 22 |
+
def InitialRise {Ω : Type*} (γ : Ω → ℝ≥0 → ℂ) (ε : ℝ) : Set Ω :=
|
| 23 |
+
{ω | ∃ T : ℝ≥0, 0 < T ∧ MapsTo (γ ω) (Icc 0 T) (initialRiseStrip ε) ∧
|
| 24 |
+
γ ω T ∈ initialRiseTarget}
|
| 25 |
+
|
| 26 |
+
lemma initialRise_positive {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
|
| 27 |
+
(γ : Ω → ℝ≥0 → ℂ) (hsupport : PublishedGeometricTubeSupport P γ)
|
| 28 |
+
{ε : ℝ} (hε : 0 < ε) : 0 < P (InitialRise γ ε) := by
|
| 29 |
+
apply hsupport _ (verticalPath 4) (verticalPath_injective (by norm_num))
|
| 30 |
+
· intro t ht
|
| 31 |
+
change 0 < (verticalPath 4 t).im
|
| 32 |
+
simp only [verticalPath_apply, Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im,
|
| 33 |
+
Complex.I_im, Complex.I_re, mul_one, mul_zero, add_zero]
|
| 34 |
+
have ht0 : 0 < (t : ℝ) := by
|
| 35 |
+
by_contra hn
|
| 36 |
+
exact ht (Subtype.ext (le_antisymm (le_of_not_gt hn) t.property.1))
|
| 37 |
+
linarith
|
| 38 |
+
· exact isOpen_lt Complex.continuous_re.abs continuous_const
|
| 39 |
+
· exact isOpen_lt continuous_const Complex.continuous_im
|
| 40 |
+
· rintro z ⟨t, rfl⟩
|
| 41 |
+
change |(verticalPath 4 t).re| < ε / 4
|
| 42 |
+
simpa only [verticalPath_apply, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im,
|
| 43 |
+
Complex.I_re, Complex.I_im, mul_zero, zero_mul, sub_zero, abs_zero] using
|
| 44 |
+
(show (0 : ℝ) < ε / 4 by positivity)
|
| 45 |
+
· change 1 < (((4 / 2 : ℝ) : ℂ) * Complex.I).im
|
| 46 |
+
norm_num
|
| 47 |
+
|
| 48 |
+
lemma initial_prefix_coordinates (γ : ℝ≥0 → ℂ) (P : ℂ → ℂ)
|
| 49 |
+
{ε : ℝ} (hε : ε ≤ 1)
|
| 50 |
+
(hP : ∀ z ∈ closedRibbon, z.re ≤ 4 → P z = Complex.I * z)
|
| 51 |
+
{t : ℝ≥0} (hheight : 0 ≤ (γ t).im ∧ (γ t).im ≤ 1)
|
| 52 |
+
(hstrip : |(γ t).re| < ε / 4) :
|
| 53 |
+
∃ z ∈ closedRibbon, |z.im| ≤ ε / 4 ∧ z.re = (γ t).im ∧ P z = γ t := by
|
| 54 |
+
let z := -Complex.I * γ t
|
| 55 |
+
have hzre : z.re = (γ t).im := by simp [z]
|
| 56 |
+
have hzim : z.im = -(γ t).re := by simp [z]
|
| 57 |
+
have hz : z ∈ closedRibbon := by
|
| 58 |
+
change 0 ≤ z.re ∧ |z.im| ≤ 1
|
| 59 |
+
rw [hzre, hzim, abs_neg]
|
| 60 |
+
exact ⟨hheight.1, by linarith⟩
|
| 61 |
+
refine ⟨z, hz, ?_, hzre, ?_⟩
|
| 62 |
+
· rw [hzim, abs_neg]
|
| 63 |
+
exact hstrip.le
|
| 64 |
+
· rw [hP z hz (by rw [hzre]; linarith)]
|
| 65 |
+
dsimp [z]
|
| 66 |
+
rw [← mul_assoc]
|
| 67 |
+
norm_num
|
| 68 |
+
|
| 69 |
+
theorem initialRise_gives_goodPrefix
|
| 70 |
+
(γ : ℝ≥0 → ℂ) (hγ : Continuous γ) (hγ0 : γ 0 = 0)
|
| 71 |
+
(hγH : ∀ t, 0 ≤ (γ t).im)
|
| 72 |
+
(P : ℂ → ℂ) (g : C(ℂ, ℝ)) (hg : ∀ z ∈ closedRibbon, g (P z) = z.re)
|
| 73 |
+
{ε : ℝ} (hε : 0 < ε) (hε1 : ε ≤ 1)
|
| 74 |
+
(hP : ∀ z ∈ closedRibbon, z.re ≤ 4 → P z = Complex.I * z)
|
| 75 |
+
(hrise : () ∈ InitialRise (fun _ : Unit => γ) ε) :
|
| 76 |
+
() ∈ GoodRibbonPrefix (fun _ : Unit => γ)
|
| 77 |
+
(fun _ => firstFrontTime (fun t => g (γ t)) 1) P ε := by
|
| 78 |
+
obtain ⟨T, _, hstrip, htarget⟩ := hrise
|
| 79 |
+
obtain ⟨τ, _, _, hτT, hhit, hprior⟩ :=
|
| 80 |
+
exists_first_height γ hγ hγ0 zero_lt_one htarget
|
| 81 |
+
have hheight (t : ℝ≥0) (ht : t ≤ τ) : 0 ≤ (γ t).im ∧ (γ t).im ≤ 1 := by
|
| 82 |
+
refine ⟨hγH t, ?_⟩
|
| 83 |
+
rcases eq_or_lt_of_le ht with rfl | ht
|
| 84 |
+
· exact hhit.le
|
| 85 |
+
· exact (hprior t ht).le
|
| 86 |
+
have hcoord (t : ℝ≥0) (ht : t ≤ τ) := initial_prefix_coordinates γ P hε1 hP
|
| 87 |
+
(hheight t ht) (hstrip ⟨bot_le, ht.trans hτT.le⟩)
|
| 88 |
+
have hgheight (t : ℝ≥0) (ht : t ≤ τ) : g (γ t) = (γ t).im := by
|
| 89 |
+
obtain ⟨z, hz, _, hzre, he⟩ := hcoord t ht
|
| 90 |
+
exact (congrArg g he.symm).trans ((hg z hz).trans hzre)
|
| 91 |
+
have hleast : IsLeast {t : ℝ≥0 | 0 ≤ t ∧ g (γ t) - 1 ∈ ({0} : Set ℝ)} τ := by
|
| 92 |
+
refine ⟨⟨bot_le, ?_⟩, ?_⟩
|
| 93 |
+
· simp only [hgheight τ le_rfl, hhit, sub_self, mem_singleton_iff]
|
| 94 |
+
· intro t ht
|
| 95 |
+
by_contra hn
|
| 96 |
+
have htτ : t < τ := lt_of_not_ge hn
|
| 97 |
+
have he : g (γ t) = 1 := sub_eq_zero.mp ht.2
|
| 98 |
+
rw [hgheight t htτ.le] at he
|
| 99 |
+
exact (ne_of_lt (hprior t htτ)) he
|
| 100 |
+
have hfront : firstFrontTime (fun t => g (γ t)) 1 = (τ : WithTop ℝ≥0) := by
|
| 101 |
+
unfold firstFrontTime hittingAfter
|
| 102 |
+
rw [ite_eq_left ⟨τ, hleast.1⟩, hleast.csInf_eq]
|
| 103 |
+
change firstFrontTime (fun t => g (γ t)) 1 ≠ ⊤ ∧ _
|
| 104 |
+
rw [hfront]
|
| 105 |
+
refine ⟨WithTop.coe_ne_top, ?_, ?_⟩
|
| 106 |
+
· intro t ht
|
| 107 |
+
obtain ⟨z, hz, hzi, _, he⟩ := hcoord t ht.2
|
| 108 |
+
exact ⟨z, ⟨hz, hzi.trans (by linarith)⟩, he⟩
|
| 109 |
+
· obtain ⟨z, hz, hzi, _, he⟩ := hcoord τ le_rfl
|
| 110 |
+
exact ⟨z, ⟨hz, hzi⟩, he⟩
|
| 111 |
+
|
| 112 |
+
/-- The same positive lower bound works for every chart which is the
|
| 113 |
+
initial vertical strip, and for every global extension of its progress. -/
|
| 114 |
+
theorem uniform_initial_goodPrefix_probability
|
| 115 |
+
{Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω)
|
| 116 |
+
(κ : ℝ) (γ : Ω → ℝ≥0 → ℂ) (hSLE : IsOrdinaryChordalSLE κ γ μ)
|
| 117 |
+
(hsupport : PublishedGeometricTubeSupport μ γ)
|
| 118 |
+
{ε : ℝ} (hε : 0 < ε) (hε1 : ε ≤ 1) :
|
| 119 |
+
∃ q : ℝ≥0∞, 0 < q ∧ ∀ P : ℂ → ℂ, ∀ g : C(ℂ, ℝ),
|
| 120 |
+
(∀ z ∈ closedRibbon, g (P z) = z.re) →
|
| 121 |
+
(∀ z ∈ closedRibbon, z.re ≤ 4 → P z = Complex.I * z) →
|
| 122 |
+
q ≤ μ (GoodRibbonPrefix γ (ribbonFrontStop g γ 1) P ε) := by
|
| 123 |
+
refine ⟨μ (InitialRise γ ε), initialRise_positive μ γ hsupport hε, ?_⟩
|
| 124 |
+
intro P g hg hP
|
| 125 |
+
apply measure_mono_ae
|
| 126 |
+
obtain ⟨_, _, htrace⟩ := hSLE.2
|
| 127 |
+
filter_upwards [htrace] with ω hω
|
| 128 |
+
intro hrise
|
| 129 |
+
obtain ⟨G, F, hw⟩ := hω
|
| 130 |
+
exact initialRise_gives_goodPrefix (γ ω) hw.1 hw.2.1 hw.2.2.1 P g hg hε hε1 hP hrise
|
| 131 |
+
|
| 132 |
+
theorem uniform_experiment_initial_goodPrefix_probability
|
| 133 |
+
{Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω)
|
| 134 |
+
(κ : ℝ) (γ : Ω → ℝ≥0 → ℂ) (hSLE : IsOrdinaryChordalSLE κ γ μ)
|
| 135 |
+
(hsupport : PublishedGeometricTubeSupport μ γ)
|
| 136 |
+
{ε : ℝ} (hε : 0 < ε) (hε1 : ε ≤ 1) :
|
| 137 |
+
∃ q : ℝ≥0∞, 0 < q ∧ ∀ s : ℝ, 0 < s → ∀ w : ℂ, s ≤ w.im →
|
| 138 |
+
∀ m : ℕ, 0 < m → ∀ g : C(ℂ, ℝ),
|
| 139 |
+
(∀ z ∈ closedRibbon, g (experimentChart s w m z) = z.re) →
|
| 140 |
+
q ≤ μ (GoodRibbonPrefix γ (ribbonFrontStop g γ 1) (experimentChart s w m) ε) := by
|
| 141 |
+
obtain ⟨q, hq, hp⟩ := uniform_initial_goodPrefix_probability μ κ γ hSLE hsupport hε hε1
|
| 142 |
+
refine ⟨q, hq, fun s hs w hw m hm g hg => ?_⟩
|
| 143 |
+
exact hp _ g hg (experimentChart_geometry hs w hw hm).2.2.2.2
|
| 144 |
+
|
| 145 |
+
end SLEExactGauge.Serpentine
|
| 146 |
+
|
| 147 |
+
end
|
| 148 |
+
|
| 149 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineLayout.lean
ADDED
|
@@ -0,0 +1,326 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.RibbonMiddleMass
|
| 2 |
+
import Mathlib.Analysis.SpecialFunctions.Trigonometric.Deriv
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-! Explicit columns and circular turns for the dense-visit serpentine.
|
| 7 |
+
The array and its normal bands fit in the displaced disk and stay a fixed
|
| 8 |
+
distance from the marked point. -/
|
| 9 |
+
|
| 10 |
+
noncomputable section
|
| 11 |
+
open Set Filter MeasureTheory Metric
|
| 12 |
+
open scoped Topology NNReal
|
| 13 |
+
|
| 14 |
+
namespace SLEExactGauge.Serpentine
|
| 15 |
+
|
| 16 |
+
def side (j : ℕ) : ℝ := if Even j then 1 else -1
|
| 17 |
+
|
| 18 |
+
lemma side_abs (j : ℕ) : |side j| = 1 := by
|
| 19 |
+
unfold side
|
| 20 |
+
split <;> norm_num
|
| 21 |
+
|
| 22 |
+
lemma side_sq (j : ℕ) : side j ^ 2 = 1 := by
|
| 23 |
+
unfold side
|
| 24 |
+
split <;> norm_num
|
| 25 |
+
|
| 26 |
+
def displacementSign (w : ℂ) : ℝ := if 0 ≤ w.re then 1 else -1
|
| 27 |
+
|
| 28 |
+
def center (s : ℝ) (w : ℂ) : ℂ := w + ((displacementSign w * (s / 4) : ℝ) : ℂ)
|
| 29 |
+
|
| 30 |
+
def halfHeight (s : ℝ) : ℝ := s / 200
|
| 31 |
+
|
| 32 |
+
def spacing (h : ℝ) (m : ℕ) : ℝ := h / m
|
| 33 |
+
|
| 34 |
+
def turnRadius (h : ℝ) (m : ℕ) : ℝ := h / (2 * m)
|
| 35 |
+
|
| 36 |
+
def ribbonWidth (h : ℝ) (m : ℕ) : ℝ := h / (100 * m)
|
| 37 |
+
|
| 38 |
+
def columnOffset (h : ℝ) (m j : ℕ) : ℝ := -h + j * spacing h m
|
| 39 |
+
|
| 40 |
+
/-- The closed width-one band over one straight pass, in physical scale. -/
|
| 41 |
+
def columnPoint (c : ℂ) (h : ℝ) (m j : ℕ) (y a : ℝ) : ℂ :=
|
| 42 |
+
c + ((columnOffset h m j - side j * ribbonWidth h m * a : ℝ) : ℂ) +
|
| 43 |
+
(y : ℂ) * Complex.I
|
| 44 |
+
|
| 45 |
+
/-- A circular connector, with its actual normal ribbon coordinate `a`.
|
| 46 |
+
The parameter runs from zero to pi, alternating above and below. -/
|
| 47 |
+
def turnPoint (c : ℂ) (h : ℝ) (m j : ℕ) (t a : ℝ) : ℂ :=
|
| 48 |
+
c + ((columnOffset h m j + turnRadius h m : ℝ) : ℂ) +
|
| 49 |
+
(side j * h : ℂ) * Complex.I +
|
| 50 |
+
((turnRadius h m + side j * ribbonWidth h m * a : ℝ) : ℂ) *
|
| 51 |
+
((-Real.cos t : ℝ) + (side j * Real.sin t : ℂ) * Complex.I)
|
| 52 |
+
|
| 53 |
+
lemma center_dist {s : ℝ} (hs : 0 ≤ s) (w : ℂ) : dist (center s w) w = s / 4 := by
|
| 54 |
+
rw [center, dist_self_add_left, Complex.norm_real, Real.norm_eq_abs, abs_mul,
|
| 55 |
+
abs_of_nonneg (div_nonneg hs (by norm_num))]
|
| 56 |
+
have hh : |displacementSign w| = 1 := by unfold displacementSign; split <;> norm_num
|
| 57 |
+
rw [hh, one_mul]
|
| 58 |
+
|
| 59 |
+
lemma center_im (s : ℝ) (w : ℂ) : (center s w).im = w.im := by
|
| 60 |
+
simp [center]
|
| 61 |
+
|
| 62 |
+
lemma displaced_disk_inside
|
| 63 |
+
{s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im) :
|
| 64 |
+
closedBall (center s w) (s / 20) ⊆ ball w (w.im / 2) := by
|
| 65 |
+
intro z hz
|
| 66 |
+
have hd := (dist_triangle z (center s w) w).trans
|
| 67 |
+
(add_le_add hz (le_of_eq (center_dist hs.le w)))
|
| 68 |
+
change dist z w < w.im / 2
|
| 69 |
+
linarith
|
| 70 |
+
|
| 71 |
+
lemma displaced_disk_separated
|
| 72 |
+
{s : ℝ} (hs : 0 < s) (w z : ℂ) (hz : z ∈ closedBall (center s w) (s / 20)) :
|
| 73 |
+
s / 5 ≤ dist z w := by
|
| 74 |
+
have hh := dist_triangle (center s w) z w
|
| 75 |
+
rw [center_dist hs.le w, dist_comm (center s w) z] at hh
|
| 76 |
+
change dist z (center s w) ≤ s / 20 at hz
|
| 77 |
+
linarith
|
| 78 |
+
|
| 79 |
+
lemma spacing_pos {h : ℝ} (hh : 0 < h) {m : ℕ} (hm : 0 < m) : 0 < spacing h m := by
|
| 80 |
+
exact div_pos hh (by exact_mod_cast hm)
|
| 81 |
+
|
| 82 |
+
lemma turnRadius_pos {h : ℝ} (hh : 0 < h) {m : ℕ} (hm : 0 < m) : 0 < turnRadius h m := by
|
| 83 |
+
unfold turnRadius
|
| 84 |
+
positivity
|
| 85 |
+
|
| 86 |
+
lemma ribbonWidth_pos {h : ℝ} (hh : 0 < h) {m : ℕ} (hm : 0 < m) : 0 < ribbonWidth h m := by
|
| 87 |
+
unfold ribbonWidth
|
| 88 |
+
positivity
|
| 89 |
+
|
| 90 |
+
lemma spacing_eq_width (h : ℝ) (m : ℕ) : spacing h m = 100 * ribbonWidth h m := by
|
| 91 |
+
unfold spacing ribbonWidth
|
| 92 |
+
by_cases hm : m = 0
|
| 93 |
+
· simp [hm]
|
| 94 |
+
· have hmr : (m : ℝ) ≠ 0 := by exact_mod_cast hm
|
| 95 |
+
field_simp
|
| 96 |
+
|
| 97 |
+
lemma turnRadius_eq_width (h : ℝ) (m : ℕ) : turnRadius h m = 50 * ribbonWidth h m := by
|
| 98 |
+
unfold turnRadius ribbonWidth
|
| 99 |
+
by_cases hm : m = 0
|
| 100 |
+
· simp [hm]
|
| 101 |
+
· have hmr : (m : ℝ) ≠ 0 := by exact_mod_cast hm
|
| 102 |
+
field_simp
|
| 103 |
+
ring
|
| 104 |
+
|
| 105 |
+
lemma columnOffset_bounds {h : ℝ} (hh : 0 < h) {m j : ℕ} (hm : 0 < m)
|
| 106 |
+
(hj : j ≤ 2 * m) : |columnOffset h m j| ≤ h := by
|
| 107 |
+
have hmr : (0 : ℝ) < m := by exact_mod_cast hm
|
| 108 |
+
have hjr : (j : ℝ) ≤ 2 * m := by exact_mod_cast hj
|
| 109 |
+
have hj0 : (0 : ℝ) ≤ j := Nat.cast_nonneg j
|
| 110 |
+
have hq := spacing_pos hh hm
|
| 111 |
+
have hmul : (j : ℝ) * spacing h m ≤ 2 * h := by
|
| 112 |
+
unfold spacing
|
| 113 |
+
rw [← mul_div_assoc]
|
| 114 |
+
exact (div_le_iff₀ hmr).mpr (by nlinarith)
|
| 115 |
+
rw [columnOffset]
|
| 116 |
+
exact abs_le.mpr ⟨by nlinarith [mul_nonneg hj0 hq.le], by linarith⟩
|
| 117 |
+
|
| 118 |
+
lemma width_le_halfHeight {h : ℝ} (hh : 0 < h) {m : ℕ} (hm : 0 < m) :
|
| 119 |
+
ribbonWidth h m ≤ h / 100 := by
|
| 120 |
+
have hmr : (1 : ℝ) ≤ m := by exact_mod_cast hm
|
| 121 |
+
unfold ribbonWidth
|
| 122 |
+
apply div_le_div_of_nonneg_left hh.le (by norm_num)
|
| 123 |
+
nlinarith
|
| 124 |
+
|
| 125 |
+
lemma radius_le_halfHeight {h : ℝ} (hh : 0 < h) {m : ℕ} (hm : 0 < m) :
|
| 126 |
+
turnRadius h m ≤ h / 2 := by
|
| 127 |
+
have hmr : (1 : ℝ) ≤ m := by exact_mod_cast hm
|
| 128 |
+
unfold turnRadius
|
| 129 |
+
apply div_le_div_of_nonneg_left hh.le (by norm_num)
|
| 130 |
+
nlinarith
|
| 131 |
+
|
| 132 |
+
lemma columnPoint_bound {h : ℝ} (hh : 0 < h) {m j : ℕ} (hm : 0 < m)
|
| 133 |
+
(hj : j ≤ 2 * m) (c : ℂ) {y a : ℝ} (hy : |y| ≤ h) (ha : |a| ≤ 1) :
|
| 134 |
+
dist (columnPoint c h m j y a) c ≤ 3 * h := by
|
| 135 |
+
have ho := columnOffset_bounds hh hm hj
|
| 136 |
+
have he := width_le_halfHeight hh hm
|
| 137 |
+
have hwp := (ribbonWidth_pos hh hm).le
|
| 138 |
+
have hprod : |side j * ribbonWidth h m * a| ≤ ribbonWidth h m := by
|
| 139 |
+
rw [abs_mul, abs_mul, side_abs, one_mul, abs_of_nonneg hwp]
|
| 140 |
+
exact mul_le_of_le_one_right hwp ha
|
| 141 |
+
have hx : |columnOffset h m j - side j * ribbonWidth h m * a| ≤
|
| 142 |
+
|columnOffset h m j| + |side j * ribbonWidth h m * a| := by
|
| 143 |
+
simpa only [sub_eq_add_neg, abs_neg] using
|
| 144 |
+
abs_add_le (columnOffset h m j) (-(side j * ribbonWidth h m * a))
|
| 145 |
+
have hn := Complex.norm_le_abs_re_add_abs_im
|
| 146 |
+
(((columnOffset h m j - side j * ribbonWidth h m * a : ℝ) : ℂ) +
|
| 147 |
+
(y : ℂ) * Complex.I)
|
| 148 |
+
simp only [Complex.add_re, Complex.ofReal_re, Complex.mul_re, Complex.ofReal_im,
|
| 149 |
+
Complex.I_re, Complex.I_im, mul_zero, sub_zero, add_zero, Complex.add_im,
|
| 150 |
+
Complex.mul_im, mul_one, zero_add] at hn
|
| 151 |
+
rw [columnPoint, add_assoc, dist_self_add_left]
|
| 152 |
+
linarith
|
| 153 |
+
|
| 154 |
+
lemma turnPoint_zero (c : ℂ) (h : ℝ) (m j : ℕ) (a : ℝ) :
|
| 155 |
+
turnPoint c h m j 0 a = columnPoint c h m j (side j * h) a := by
|
| 156 |
+
apply Complex.ext
|
| 157 |
+
· simp [turnPoint, columnPoint]
|
| 158 |
+
ring
|
| 159 |
+
· simp [turnPoint, columnPoint]
|
| 160 |
+
|
| 161 |
+
lemma side_succ (j : ℕ) : side (j + 1) = -side j := by
|
| 162 |
+
by_cases h : Even j <;> simp [side, Nat.even_add_one, h]
|
| 163 |
+
|
| 164 |
+
lemma turnPoint_pi (c : ℂ) (h : ℝ) (m j : ℕ) (a : ℝ) :
|
| 165 |
+
turnPoint c h m j Real.pi a = columnPoint c h m (j + 1) (side j * h) a := by
|
| 166 |
+
have he : spacing h m = 2 * turnRadius h m := by
|
| 167 |
+
rw [spacing_eq_width, turnRadius_eq_width]
|
| 168 |
+
ring
|
| 169 |
+
apply Complex.ext
|
| 170 |
+
· simp [turnPoint, columnPoint, columnOffset, side_succ, Nat.cast_add, Nat.cast_one]
|
| 171 |
+
nlinarith
|
| 172 |
+
· simp [turnPoint, columnPoint, columnOffset, side_succ, Nat.cast_add, Nat.cast_one]
|
| 173 |
+
|
| 174 |
+
lemma turn_direction_norm (j : ℕ) (t : ℝ) :
|
| 175 |
+
‖((-Real.cos t : ℝ) : ℂ) + (side j * Real.sin t : ℂ) * Complex.I‖ = 1 := by
|
| 176 |
+
apply (sq_eq_sq₀ (norm_nonneg _) zero_le_one).mp
|
| 177 |
+
rw [Complex.sq_norm, Complex.normSq_apply]
|
| 178 |
+
simp only [Complex.add_re, Complex.ofReal_re, Complex.mul_re, Complex.ofReal_im,
|
| 179 |
+
Complex.I_re, Complex.I_im, mul_zero, sub_zero, add_zero, Complex.add_im,
|
| 180 |
+
Complex.mul_im, mul_one, zero_add]
|
| 181 |
+
calc
|
| 182 |
+
_ = Real.cos t ^ 2 + side j ^ 2 * Real.sin t ^ 2 := by ring
|
| 183 |
+
_ = 1 ^ 2 := by rw [side_sq, one_mul]; nlinarith [Real.sin_sq_add_cos_sq t]
|
| 184 |
+
|
| 185 |
+
lemma turnPoint_bound {h : ℝ} (hh : 0 < h) {m j : ℕ} (hm : 0 < m)
|
| 186 |
+
(hj : j + 1 ≤ 2 * m) (c : ℂ) (t : ℝ) {a : ℝ} (ha : |a| ≤ 1) :
|
| 187 |
+
dist (turnPoint c h m j t a) c ≤ 4 * h := by
|
| 188 |
+
have ho := columnOffset_bounds hh hm (show j ≤ 2 * m by omega)
|
| 189 |
+
have hr := radius_le_halfHeight hh hm
|
| 190 |
+
have hw := width_le_halfHeight hh hm
|
| 191 |
+
have hrp := (turnRadius_pos hh hm).le
|
| 192 |
+
have hwp := (ribbonWidth_pos hh hm).le
|
| 193 |
+
have hprod : |side j * ribbonWidth h m * a| ≤ ribbonWidth h m := by
|
| 194 |
+
rw [abs_mul, abs_mul, side_abs, one_mul, abs_of_nonneg hwp]
|
| 195 |
+
exact mul_le_of_le_one_right hwp ha
|
| 196 |
+
have hadd := abs_add_le (turnRadius h m) (side j * ribbonWidth h m * a)
|
| 197 |
+
rw [abs_of_nonneg hrp] at hadd
|
| 198 |
+
have hcen := abs_add_le (columnOffset h m j) (turnRadius h m)
|
| 199 |
+
rw [abs_of_nonneg hrp] at hcen
|
| 200 |
+
have hn : ‖((columnOffset h m j + turnRadius h m : ℝ) : ℂ) +
|
| 201 |
+
(side j * h : ℂ) * Complex.I +
|
| 202 |
+
((turnRadius h m + side j * ribbonWidth h m * a : ℝ) : ℂ) *
|
| 203 |
+
((-Real.cos t : ℝ) + (side j * Real.sin t : ℂ) * Complex.I)‖ ≤
|
| 204 |
+
|columnOffset h m j + turnRadius h m| + h +
|
| 205 |
+
|turnRadius h m + side j * ribbonWidth h m * a| := by
|
| 206 |
+
calc
|
| 207 |
+
_ ≤ (‖((columnOffset h m j + turnRadius h m : ℝ) : ℂ)‖ +
|
| 208 |
+
‖(side j * h : ℂ) * Complex.I‖) +
|
| 209 |
+
‖((turnRadius h m + side j * ribbonWidth h m * a : ℝ) : ℂ) *
|
| 210 |
+
((-Real.cos t : ℝ) + (side j * Real.sin t : ℂ) * Complex.I)‖ :=
|
| 211 |
+
(norm_add_le _ _).trans (add_le_add (norm_add_le _ _) le_rfl)
|
| 212 |
+
_ = _ := by
|
| 213 |
+
simp only [norm_mul, Complex.norm_real, Real.norm_eq_abs, Complex.norm_I,
|
| 214 |
+
mul_one, side_abs, one_mul, abs_of_pos hh, turn_direction_norm]
|
| 215 |
+
have he : turnPoint c h m j t a - c =
|
| 216 |
+
((columnOffset h m j + turnRadius h m : ℝ) : ℂ) +
|
| 217 |
+
(side j * h : ℂ) * Complex.I +
|
| 218 |
+
((turnRadius h m + side j * ribbonWidth h m * a : ℝ) : ℂ) *
|
| 219 |
+
((-Real.cos t : ℝ) + (side j * Real.sin t : ℂ) * Complex.I) := by
|
| 220 |
+
unfold turnPoint
|
| 221 |
+
ring
|
| 222 |
+
rw [dist_eq_norm, he]
|
| 223 |
+
linarith
|
| 224 |
+
|
| 225 |
+
lemma column_inside_displaced_disk {s : ℝ} (hs : 0 < s) (w : ℂ)
|
| 226 |
+
{m j : ℕ} (hm : 0 < m) (hj : j ≤ 2 * m) {y a : ℝ}
|
| 227 |
+
(hy : |y| ≤ halfHeight s) (ha : |a| ≤ 1) :
|
| 228 |
+
columnPoint (center s w) (halfHeight s) m j y a ∈ closedBall (center s w) (s / 20) := by
|
| 229 |
+
have hh : 0 < halfHeight s := by unfold halfHeight; positivity
|
| 230 |
+
have hb := columnPoint_bound hh hm hj (center s w) hy ha
|
| 231 |
+
change dist _ _ ≤ s / 20
|
| 232 |
+
dsimp only [halfHeight] at hb ⊢
|
| 233 |
+
linarith
|
| 234 |
+
|
| 235 |
+
|
| 236 |
+
@[simp] lemma columnPoint_re (c : ℂ) (h : ℝ) (m j : ℕ) (y a : ℝ) :
|
| 237 |
+
(columnPoint c h m j y a).re = c.re + columnOffset h m j - side j * ribbonWidth h m * a := by
|
| 238 |
+
simp [columnPoint]
|
| 239 |
+
ring
|
| 240 |
+
|
| 241 |
+
@[simp] lemma columnPoint_im (c : ℂ) (h : ℝ) (m j : ℕ) (y a : ℝ) :
|
| 242 |
+
(columnPoint c h m j y a).im = c.im + y := by simp [columnPoint]
|
| 243 |
+
|
| 244 |
+
lemma column_separation {h : ℝ} (hh : 0 < h) {m i j : ℕ} (hm : 0 < m)
|
| 245 |
+
(hij : i < j) (c : ℂ) (y y' : ℝ) {a b : ℝ} (ha : |a| ≤ 1) (hb : |b| ≤ 1) :
|
| 246 |
+
98 * ribbonWidth h m ≤
|
| 247 |
+
dist (columnPoint c h m i y a) (columnPoint c h m j y' b) := by
|
| 248 |
+
have hepos := (ribbonWidth_pos hh hm).le
|
| 249 |
+
have hnoise (n : ℕ) (u : ℝ) (hu : |u| ≤ 1) :
|
| 250 |
+
|side n * ribbonWidth h m * u| ≤ ribbonWidth h m := by
|
| 251 |
+
rw [abs_mul, abs_mul, side_abs, one_mul, abs_of_nonneg hepos]
|
| 252 |
+
exact mul_le_of_le_one_right hepos hu
|
| 253 |
+
have hai := abs_le.mp (hnoise i a ha)
|
| 254 |
+
have hbj := abs_le.mp (hnoise j b hb)
|
| 255 |
+
have hijr : (i : ℝ) + 1 ≤ j := by exact_mod_cast Nat.succ_le_of_lt hij
|
| 256 |
+
have hmul := mul_le_mul_of_nonneg_right hijr (spacing_pos hh hm).le
|
| 257 |
+
have hre : 98 * ribbonWidth h m ≤
|
| 258 |
+
(columnPoint c h m j y' b).re - (columnPoint c h m i y a).re := by
|
| 259 |
+
simp only [columnPoint_re, columnOffset] at *
|
| 260 |
+
rw [spacing_eq_width] at hmul ⊢
|
| 261 |
+
nlinarith
|
| 262 |
+
calc
|
| 263 |
+
_ ≤ (columnPoint c h m j y' b).re - (columnPoint c h m i y a).re := hre
|
| 264 |
+
_ ≤ |(columnPoint c h m j y' b).re - (columnPoint c h m i y a).re| := le_abs_self _
|
| 265 |
+
_ ≤ dist (columnPoint c h m i y a) (columnPoint c h m j y' b) := by
|
| 266 |
+
simpa only [dist_eq_norm, Complex.sub_re, abs_sub_comm] using
|
| 267 |
+
Complex.abs_re_le_norm (columnPoint c h m i y a - columnPoint c h m j y' b)
|
| 268 |
+
|
| 269 |
+
lemma columnPoint_ne {h : ℝ} (hh : 0 < h) {m i j : ℕ} (hm : 0 < m)
|
| 270 |
+
(hij : i < j) (c : ℂ) (y y' : ℝ) {a b : ℝ} (ha : |a| ≤ 1) (hb : |b| ≤ 1) :
|
| 271 |
+
columnPoint c h m i y a ≠ columnPoint c h m j y' b := by
|
| 272 |
+
intro he
|
| 273 |
+
have hd := column_separation hh hm hij c y y' ha hb
|
| 274 |
+
rw [he, dist_self] at hd
|
| 275 |
+
have hp := ribbonWidth_pos hh hm
|
| 276 |
+
linarith
|
| 277 |
+
|
| 278 |
+
|
| 279 |
+
lemma turn_radial_coefficient_pos {h : ℝ} (hh : 0 < h) {m : ℕ} (hm : 0 < m)
|
| 280 |
+
(j : ℕ) {a : ℝ} (ha : |a| ≤ 1) :
|
| 281 |
+
0 < turnRadius h m + side j * ribbonWidth h m * a := by
|
| 282 |
+
have he := ribbonWidth_pos hh hm
|
| 283 |
+
have hb : |side j * ribbonWidth h m * a| ≤ ribbonWidth h m := by
|
| 284 |
+
rw [abs_mul, abs_mul, side_abs, one_mul, abs_of_pos he]
|
| 285 |
+
exact mul_le_of_le_one_right he.le ha
|
| 286 |
+
rw [turnRadius_eq_width]
|
| 287 |
+
linarith [(abs_le.mp hb).1]
|
| 288 |
+
|
| 289 |
+
/-- Each circular turn, with its full normal band, is embedded. -/
|
| 290 |
+
theorem turnPoint_injective {h : ℝ} (hh : 0 < h) {m : ℕ} (hm : 0 < m)
|
| 291 |
+
(c : ℂ) (j : ℕ) {t u a b : ℝ} (ht : t ∈ Icc 0 Real.pi)
|
| 292 |
+
(hu : u ∈ Icc 0 Real.pi) (ha : |a| ≤ 1) (hb : |b| ≤ 1)
|
| 293 |
+
(he : turnPoint c h m j t a = turnPoint c h m j u b) : t = u ∧ a = b := by
|
| 294 |
+
let z := c + ((columnOffset h m j + turnRadius h m : ℝ) : ℂ) +
|
| 295 |
+
(side j * h : ℂ) * Complex.I
|
| 296 |
+
have hn (v q : ℝ) (hq : |q| ≤ 1) : dist (turnPoint c h m j v q) z =
|
| 297 |
+
turnRadius h m + side j * ribbonWidth h m * q := by
|
| 298 |
+
change dist (z + _) z = _
|
| 299 |
+
rw [dist_self_add_left, norm_mul, Complex.norm_real, Real.norm_eq_abs,
|
| 300 |
+
turn_direction_norm, mul_one, abs_of_pos (turn_radial_coefficient_pos hh hm j hq)]
|
| 301 |
+
have hcoef := congrArg (fun w => dist w z) he
|
| 302 |
+
rw [hn t a ha, hn u b hb] at hcoef
|
| 303 |
+
have hs : side j ≠ 0 := by
|
| 304 |
+
intro hz
|
| 305 |
+
have hn := side_abs j
|
| 306 |
+
rw [hz, abs_zero] at hn
|
| 307 |
+
norm_num at hn
|
| 308 |
+
have hab : a = b := by
|
| 309 |
+
apply mul_left_cancel₀ (ribbonWidth_pos hh hm).ne'
|
| 310 |
+
apply mul_left_cancel₀ hs
|
| 311 |
+
nlinarith [hcoef]
|
| 312 |
+
subst b
|
| 313 |
+
have hre := congrArg Complex.re he
|
| 314 |
+
simp only [turnPoint, Complex.add_re, Complex.ofReal_re, Complex.mul_re,
|
| 315 |
+
Complex.ofReal_im, Complex.I_re, Complex.I_im, mul_zero, sub_zero,
|
| 316 |
+
zero_sub, add_zero, Complex.add_im, Complex.mul_im, mul_one, zero_add] at hre
|
| 317 |
+
have hcos : Real.cos t = Real.cos u := by
|
| 318 |
+
nlinarith [turn_radial_coefficient_pos hh hm j ha]
|
| 319 |
+
exact ⟨Real.injOn_cos ht hu hcos, rfl⟩
|
| 320 |
+
|
| 321 |
+
|
| 322 |
+
end SLEExactGauge.Serpentine
|
| 323 |
+
|
| 324 |
+
end
|
| 325 |
+
|
| 326 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineMarkedClearance.lean
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineExteriorBounds
|
| 2 |
+
import OAI.Probability.SLE.Gauge.SerpentineMarkedRegion
|
| 3 |
+
import OAI.Probability.SLE.Geometry.MarkedRouteClearance
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
/-! Actual fitted ribbon points satisfy the geometric separation
|
| 8 |
+
conditions for the two marked-point exit routes. -/
|
| 9 |
+
|
| 10 |
+
noncomputable section
|
| 11 |
+
open Set Metric
|
| 12 |
+
|
| 13 |
+
namespace SLEExactGauge.Serpentine
|
| 14 |
+
open RibbonCoordinates
|
| 15 |
+
|
| 16 |
+
theorem physicalFitChart_markedRoutes_clearance {s : ℝ} (hs : 0 < s) (hs1 : s ≤ 1)
|
| 17 |
+
(w : ℂ) (hw : s ≤ w.im) (hw1 : ‖w‖ ≤ 1) (hwr : 0 ≤ w.re)
|
| 18 |
+
{m : ℕ} (hm : 0 < m) {z : ℂ} (hz : z ∈ closedRibbon)
|
| 19 |
+
(hheight : (physicalFitChart s w m z).im ≤ 2) (t : ℝ) :
|
| 20 |
+
s / 20 ≤ dist (markedLeftRoute w (s / 20) t) (physicalFitChart s w m z) ∧
|
| 21 |
+
s / 20 ≤ dist (markedRightRoute w (s / 20) t) (physicalFitChart s w m z) := by
|
| 22 |
+
apply markedRoutes_past_clearance (by linarith)
|
| 23 |
+
((Complex.re_le_norm w).trans hw1) ((Complex.im_le_norm w).trans hw1)
|
| 24 |
+
(by positivity) (by linarith)
|
| 25 |
+
(physicalFitChart_re_bounds hs hs1 w hw hw1 hm hz) hheight
|
| 26 |
+
rcases physicalFitChart_low_or_right hs w hw hm hz.2 with hlo | hright
|
| 27 |
+
· left
|
| 28 |
+
linarith
|
| 29 |
+
· right
|
| 30 |
+
rw [abs_of_nonneg hwr] at hright
|
| 31 |
+
linarith
|
| 32 |
+
|
| 33 |
+
end SLEExactGauge.Serpentine
|
| 34 |
+
|
| 35 |
+
end
|
| 36 |
+
|
| 37 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineMarkedGuide.lean
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineFiniteHeight
|
| 2 |
+
import OAI.Probability.SLE.Geometry.MarkedHookLocal
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-! The explicit complete physical access guide from the final ribbon
|
| 7 |
+
tip, through the marked point, and then vertically to infinity. -/
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
open Set Filter Metric
|
| 11 |
+
open scoped Topology NNReal
|
| 12 |
+
|
| 13 |
+
namespace SLEExactGauge.Serpentine
|
| 14 |
+
open RibbonCoordinates
|
| 15 |
+
|
| 16 |
+
def terminalAccess (s : ℝ) (w : ℂ) (m : ℕ) (x : ℝ) (t : ℝ) : ℂ :=
|
| 17 |
+
physicalFitChart s w m (guideCoordinate (fitCompletion s w m) x t)
|
| 18 |
+
|
| 19 |
+
def completeMarkedAccess (s : ℝ) (w : ℂ) (m : ℕ) (x : ℝ) : ℝ → ℂ :=
|
| 20 |
+
appendMarkedHook (terminalAccess s w m x) (fitHighTime s w m) w
|
| 21 |
+
(fitTerminalX s w) 2 (s / 20)
|
| 22 |
+
|
| 23 |
+
lemma terminalAccess_continuous {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 24 |
+
{m : ℕ} (hm : 0 < m) (x : ℝ) : Continuous (terminalAccess s w m x) := by
|
| 25 |
+
have hp : Continuous (physicalFitChart s w m) :=
|
| 26 |
+
continuous_const.mul (fitChart_continuous hs w hw hm)
|
| 27 |
+
exact hp.comp (guideCoordinate_continuous _ _)
|
| 28 |
+
|
| 29 |
+
lemma terminalAccess_right {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 30 |
+
(hwr : 0 ≤ w.re) {m : ℕ} (hm : 0 < m) {x t : ℝ} (hx : |x| ≤ 1) (ht : 0 ≤ t) :
|
| 31 |
+
w.re + s / 5 ≤ (terminalAccess s w m x t).re := by
|
| 32 |
+
have hc := (fitCompletion_bounds hs w hw hm).1
|
| 33 |
+
have hentry : 0 ≤ columnEntry 0 m (2 * m) := columnEntry_nonneg le_rfl _ _
|
| 34 |
+
have hmr : (1 : ℝ) ≤ m := by exact_mod_cast hm
|
| 35 |
+
have hA : fitEntry s w m < (guideCoordinate (fitCompletion s w m) x t).re := by
|
| 36 |
+
rw [guideCoordinate_re]
|
| 37 |
+
linarith
|
| 38 |
+
have him := (guideCoordinate_im_bound (k := (fitCompletion s w m : ℝ)) (x := x) ht).trans hx
|
| 39 |
+
have hh := physicalFitChart_array_right hs w hm him hA
|
| 40 |
+
rw [abs_of_nonneg hwr] at hh
|
| 41 |
+
exact by dsimp [terminalAccess]; linarith
|
| 42 |
+
|
| 43 |
+
lemma completeMarkedAccess_continuous {s : ℝ} (hs : 0 < s) (hs1 : s ≤ 1)
|
| 44 |
+
(w : ℂ) (hw : s ≤ w.im) (hw1 : ‖w‖ ≤ 1) (hwr : 0 ≤ w.re)
|
| 45 |
+
{m : ℕ} (hm : 0 < m) (x : ℝ) : Continuous (completeMarkedAccess s w m x) := by
|
| 46 |
+
have hwi := (Complex.im_le_norm w).trans hw1
|
| 47 |
+
apply appendMarkedHook_continuous _ (terminalAccess_continuous hs w hw hm x)
|
| 48 |
+
· unfold fitTerminalX
|
| 49 |
+
rw [abs_of_nonneg hwr]
|
| 50 |
+
linarith
|
| 51 |
+
· linarith
|
| 52 |
+
· positivity
|
| 53 |
+
· exact physicalFitChart_terminal_guide_endpoint hs hs1 w hw hw1 hm x
|
| 54 |
+
|
| 55 |
+
lemma completeMarkedAccess_injective {s : ℝ} (hs : 0 < s) (hs1 : s ≤ 1)
|
| 56 |
+
(w : ℂ) (hw : s ≤ w.im) (hw1 : ‖w‖ ≤ 1) (hwr : 0 ≤ w.re)
|
| 57 |
+
{m : ℕ} (hm : 0 < m) {x : ℝ} (hx : |x| ≤ 1) :
|
| 58 |
+
InjOn (completeMarkedAccess s w m x) (Ici 0) := by
|
| 59 |
+
have hT := fitHighTime_large hs hs1 w hw hw1 hm
|
| 60 |
+
have hwi := (Complex.im_le_norm w).trans hw1
|
| 61 |
+
have hR : w.re < fitTerminalX s w := by
|
| 62 |
+
unfold fitTerminalX
|
| 63 |
+
rw [abs_of_nonneg hwr]
|
| 64 |
+
linarith
|
| 65 |
+
apply appendMarkedHook_injective _ (by linarith)
|
| 66 |
+
((physicalFitChart_terminal_guide_injective hs w hw hm x).mono Icc_subset_Ici_self)
|
| 67 |
+
w hR (show w.im < (2 : ℝ) by linarith) (by positivity)
|
| 68 |
+
(physicalFitChart_terminal_guide_endpoint hs hs1 w hw hw1 hm x)
|
| 69 |
+
intro t ht
|
| 70 |
+
refine ⟨physicalFitChart_terminal_guide_strict_height hs w hw hm x ht, Or.inr ?_⟩
|
| 71 |
+
have hr := terminalAccess_right hs w hw hwr hm hx ht.1
|
| 72 |
+
dsimp only [terminalAccess] at hr
|
| 73 |
+
linarith
|
| 74 |
+
|
| 75 |
+
lemma completeMarkedAccess_zero {s : ℝ} (hs : 0 < s) (hs1 : s ≤ 1)
|
| 76 |
+
(w : ℂ) (hw : s ≤ w.im) (hw1 : ‖w‖ ≤ 1) {m : ℕ} (hm : 0 < m) (x : ℝ) :
|
| 77 |
+
completeMarkedAccess s w m x 0 = physicalFitChart s w m ((fitCompletion s w m : ℂ) + (x : ℂ) * Complex.I) := by
|
| 78 |
+
have hT := fitHighTime_large hs hs1 w hw hw1 hm
|
| 79 |
+
rw [completeMarkedAccess, appendMarkedHook, curveJoin_of_le (by linarith)]
|
| 80 |
+
simp [terminalAccess, guideCoordinate]
|
| 81 |
+
|
| 82 |
+
lemma completeMarkedAccess_hits_marked {s : ℝ} (hs : 0 < s) (hs1 : s ≤ 1)
|
| 83 |
+
(w : ℂ) (hw : s ≤ w.im) (hw1 : ‖w‖ ≤ 1) (hwr : 0 ≤ w.re)
|
| 84 |
+
{m : ℕ} (hm : 0 < m) (x : ℝ) :
|
| 85 |
+
∃ t : ℝ, 0 < t ∧ completeMarkedAccess s w m x t = w := by
|
| 86 |
+
have hT := fitHighTime_large hs hs1 w hw hw1 hm
|
| 87 |
+
have hwi := (Complex.im_le_norm w).trans hw1
|
| 88 |
+
have hR : w.re < fitTerminalX s w := by
|
| 89 |
+
unfold fitTerminalX
|
| 90 |
+
rw [abs_of_nonneg hwr]
|
| 91 |
+
linarith
|
| 92 |
+
refine ⟨fitHighTime s w m + ((fitTerminalX s w - w.re) + (2 - w.im)), by linarith, ?_⟩
|
| 93 |
+
exact appendMarkedHook_passes_marked _ _ w hR (by linarith)
|
| 94 |
+
|
| 95 |
+
lemma completeMarkedAccess_norm_tendsto {s : ℝ} (hs : 0 < s)
|
| 96 |
+
(w : ℂ) (hw1 : ‖w‖ ≤ 1) (hwr : 0 ≤ w.re) (m : ℕ) (x : ℝ) :
|
| 97 |
+
Tendsto (fun t : ℝ => ‖completeMarkedAccess s w m x t‖) atTop atTop := by
|
| 98 |
+
have hwi : w.im < 2 := lt_of_le_of_lt ((Complex.im_le_norm w).trans hw1) (by norm_num)
|
| 99 |
+
have hR : w.re < fitTerminalX s w := by
|
| 100 |
+
unfold fitTerminalX
|
| 101 |
+
rw [abs_of_nonneg hwr]
|
| 102 |
+
linarith
|
| 103 |
+
let D := fitHighTime s w m + ((fitTerminalX s w - w.re) + (2 - w.im) + s / 20)
|
| 104 |
+
have hlin : Tendsto (fun t : ℝ => t - D + w.im) atTop atTop := by
|
| 105 |
+
simpa only [sub_eq_add_neg, add_assoc, id_eq] using
|
| 106 |
+
tendsto_atTop_add_const_right atTop (-D + w.im) tendsto_id
|
| 107 |
+
have him : Tendsto (fun t : ℝ => (completeMarkedAccess s w m x t).im) atTop atTop := by
|
| 108 |
+
apply hlin.congr'
|
| 109 |
+
filter_upwards [eventually_ge_atTop (D + 1)] with t ht
|
| 110 |
+
have ht' : fitHighTime s w m < t := by dsimp only [D] at ht; linarith
|
| 111 |
+
have hc : (fitTerminalX s w - w.re) + (2 - w.im) + s / 20 <
|
| 112 |
+
t - fitHighTime s w m := by dsimp only [D] at ht; linarith
|
| 113 |
+
rw [completeMarkedAccess, appendMarkedHook, curveJoin_of_gt ht',
|
| 114 |
+
markedHook_tail w hwi (by positivity) hc]
|
| 115 |
+
simp only [hookUp, Complex.add_im, Complex.mul_im, Complex.ofReal_re,
|
| 116 |
+
Complex.ofReal_im, Complex.I_re, Complex.I_im, mul_one, mul_zero, zero_add]
|
| 117 |
+
dsimp only [D]
|
| 118 |
+
ring
|
| 119 |
+
exact tendsto_atTop_mono (fun t => Complex.im_le_norm _) him
|
| 120 |
+
|
| 121 |
+
end SLEExactGauge.Serpentine
|
| 122 |
+
|
| 123 |
+
end
|
| 124 |
+
|
| 125 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineMarkedLocal.lean
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineMarkedGuide
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
/-! The explicit marked access guide meets a small corner-chart disk
|
| 6 |
+
exactly along its real diameter. The distant terminal prefix is excluded
|
| 7 |
+
quantitatively, so there are no nonlocal intersections. -/
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
open Set Metric
|
| 11 |
+
open scoped Topology NNReal
|
| 12 |
+
|
| 13 |
+
namespace SLEExactGauge.Serpentine
|
| 14 |
+
open RibbonCoordinates
|
| 15 |
+
|
| 16 |
+
lemma terminalAccess_distance {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 17 |
+
(hwr : 0 ≤ w.re) {m : ℕ} (hm : 0 < m) {x t : ℝ} (hx : |x| ≤ 1) (ht : 0 ≤ t) :
|
| 18 |
+
s / 5 ≤ dist (terminalAccess s w m x t) w := by
|
| 19 |
+
have hr := terminalAccess_right hs w hw hwr hm hx ht
|
| 20 |
+
have hb := Complex.abs_re_le_norm (terminalAccess s w m x t - w)
|
| 21 |
+
rw [Complex.sub_re, ← dist_eq_norm] at hb
|
| 22 |
+
linarith [le_abs_self ((terminalAccess s w m x t).re - w.re)]
|
| 23 |
+
|
| 24 |
+
theorem completeMarkedAccess_corner_iff {s : ℝ} (hs : 0 < s) (hs1 : s ≤ 1)
|
| 25 |
+
(w : ℂ) (hw : s ≤ w.im) (hw1 : ‖w‖ ≤ 1) (hwr : 0 ≤ w.re)
|
| 26 |
+
{m : ℕ} (hm : 0 < m) {x : ℝ} (hx : |x| ≤ 1) {z : ℂ}
|
| 27 |
+
(hz : z ∈ ball (0 : ℂ) ((s / 20) / 12)) :
|
| 28 |
+
(∃ t : ℝ, 0 < t ∧ completeMarkedAccess s w m x t = markedCornerChart w z) ↔ z.im = 0 := by
|
| 29 |
+
have hn : ‖z‖ < (s / 20) / 12 := by simpa only [mem_ball, dist_zero_right] using hz
|
| 30 |
+
have hwi : w.im ≤ 1 := (Complex.im_le_norm w).trans hw1
|
| 31 |
+
have hR : w.re < fitTerminalX s w := by
|
| 32 |
+
unfold fitTerminalX
|
| 33 |
+
rw [abs_of_nonneg hwr]
|
| 34 |
+
linarith
|
| 35 |
+
have hT := fitHighTime_large hs hs1 w hw hw1 hm
|
| 36 |
+
have hcorner := markedHook_small_corner_iff (w := w) (z := z) hR
|
| 37 |
+
(show w.im < 2 by linarith) (show 0 < s / 20 by positivity)
|
| 38 |
+
(show 0 < (s / 20) / 12 by positivity)
|
| 39 |
+
(show 3 * ((s / 20) / 12) < 2 - w.im by linarith)
|
| 40 |
+
(show 3 * ((s / 20) / 12) < s / 20 by linarith) hn
|
| 41 |
+
constructor
|
| 42 |
+
· rintro ⟨t, ht, he⟩
|
| 43 |
+
by_cases htT : t ≤ fitHighTime s w m
|
| 44 |
+
· rw [completeMarkedAccess, appendMarkedHook, curveJoin_of_le htT] at he
|
| 45 |
+
have hd := terminalAccess_distance hs w hw hwr hm hx ht.le
|
| 46 |
+
rw [he] at hd
|
| 47 |
+
have hb := markedCornerChart_norm w z
|
| 48 |
+
linarith
|
| 49 |
+
· rw [completeMarkedAccess, appendMarkedHook, curveJoin_of_gt (lt_of_not_ge htT)] at he
|
| 50 |
+
exact hcorner.mp ⟨t - fitHighTime s w m, by linarith, he⟩
|
| 51 |
+
· intro him
|
| 52 |
+
obtain ⟨u, hu, he⟩ := hcorner.mpr him
|
| 53 |
+
refine ⟨fitHighTime s w m + u, by linarith, ?_⟩
|
| 54 |
+
by_cases hu0 : u = 0
|
| 55 |
+
· subst u
|
| 56 |
+
rw [add_zero, completeMarkedAccess, appendMarkedHook, curveJoin_of_le le_rfl]
|
| 57 |
+
change physicalFitChart s w m (guideCoordinate (fitCompletion s w m) x (fitHighTime s w m)) = _
|
| 58 |
+
rw [physicalFitChart_terminal_guide_endpoint hs hs1 w hw hw1 hm x]
|
| 59 |
+
simpa [markedHook_zero w hR] using he
|
| 60 |
+
· have hup : 0 < u := lt_of_le_of_ne hu (Ne.symm hu0)
|
| 61 |
+
rw [completeMarkedAccess, appendMarkedHook, curveJoin_of_gt (by linarith), add_sub_cancel_left]
|
| 62 |
+
exact he
|
| 63 |
+
|
| 64 |
+
theorem completeMarkedAccess_corner_nnreal_iff {s : ℝ} (hs : 0 < s) (hs1 : s ≤ 1)
|
| 65 |
+
(w : ℂ) (hw : s ≤ w.im) (hw1 : ‖w‖ ≤ 1) (hwr : 0 ≤ w.re)
|
| 66 |
+
{m : ℕ} (hm : 0 < m) {x : ℝ} (hx : |x| ≤ 1) {z : ℂ}
|
| 67 |
+
(hz : z ∈ ball (0 : ℂ) ((s / 20) / 12)) :
|
| 68 |
+
(∃ t : ℝ≥0, 0 < t ∧ completeMarkedAccess s w m x t = markedCornerChart w z) ↔ z.im = 0 := by
|
| 69 |
+
rw [← completeMarkedAccess_corner_iff hs hs1 w hw hw1 hwr hm hx hz]
|
| 70 |
+
constructor
|
| 71 |
+
· rintro ⟨t, ht, he⟩
|
| 72 |
+
exact ⟨t, by exact_mod_cast ht, he⟩
|
| 73 |
+
· rintro ⟨t, ht, he⟩
|
| 74 |
+
exact ⟨⟨t, ht.le⟩, by exact_mod_cast ht, he⟩
|
| 75 |
+
|
| 76 |
+
lemma completeMarkedAccess_upper {s : ℝ} (hs : 0 < s)
|
| 77 |
+
(w : ℂ) (hw : s ≤ w.im) (hw1 : ‖w‖ ≤ 1) (hwr : 0 ≤ w.re)
|
| 78 |
+
{m : ℕ} (hm : 0 < m) {x u : ℝ} (hu : 0 ≤ u) :
|
| 79 |
+
completeMarkedAccess s w m x u ∈ upperHalfPlane := by
|
| 80 |
+
have hwi := (Complex.im_le_norm w).trans hw1
|
| 81 |
+
change 0 < (completeMarkedAccess s w m x u).im
|
| 82 |
+
by_cases huT : u ≤ fitHighTime s w m
|
| 83 |
+
· rw [completeMarkedAccess, appendMarkedHook, curveJoin_of_le huT]
|
| 84 |
+
change 0 < (physicalFitChart s w m (guideCoordinate (fitCompletion s w m) x u)).im
|
| 85 |
+
rw [physicalFitChart_terminal_guide hs w hw hm x hu]
|
| 86 |
+
simp only [Complex.add_im, Complex.ofReal_im, Complex.mul_im, Complex.ofReal_re,
|
| 87 |
+
Complex.I_re, Complex.I_im, mul_one, mul_zero, add_zero, zero_add]
|
| 88 |
+
have hb := (fitTerminalHeight_bounds hs w hw hm).1
|
| 89 |
+
have hp := mul_nonneg (fit_width_pos hs hm).le hu
|
| 90 |
+
linarith
|
| 91 |
+
· rw [completeMarkedAccess, appendMarkedHook, curveJoin_of_gt (lt_of_not_ge huT)]
|
| 92 |
+
have hR : w.re < fitTerminalX s w := by
|
| 93 |
+
unfold fitTerminalX
|
| 94 |
+
rw [abs_of_nonneg hwr]
|
| 95 |
+
linarith
|
| 96 |
+
have hh := markedHook_im_lower hR (show w.im < 2 by linarith)
|
| 97 |
+
(show 0 < s / 20 by positivity) (show 0 ≤ u - fitHighTime s w m by linarith)
|
| 98 |
+
linarith
|
| 99 |
+
|
| 100 |
+
end SLEExactGauge.Serpentine
|
| 101 |
+
|
| 102 |
+
end
|
| 103 |
+
|
| 104 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineMarkedReflection.lean
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineMarkedRouteClearance
|
| 2 |
+
import OAI.Probability.SLE.Gauge.RibbonGoodPrefix
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-! Reflection of the concrete experiment and its actual narrow-prefix
|
| 7 |
+
certificate. It reduces a marked point on the left to the right-hand layout. -/
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
open Set Metric ComplexConjugate
|
| 11 |
+
open scoped Topology NNReal
|
| 12 |
+
|
| 13 |
+
namespace SLEExactGauge.Serpentine
|
| 14 |
+
open RibbonCoordinates
|
| 15 |
+
|
| 16 |
+
@[simp] lemma fitX_mirror (s : ℝ) (w : ℂ) (m : ℕ) :
|
| 17 |
+
fitX s (loewnerMirror w) m = fitX s w m := by simp [fitX]
|
| 18 |
+
|
| 19 |
+
@[simp] lemma fitY_mirror (s : ℝ) (w : ℂ) (m : ℕ) :
|
| 20 |
+
fitY s (loewnerMirror w) m = fitY s w m := by simp [fitY]
|
| 21 |
+
|
| 22 |
+
@[simp] lemma fitChart_mirror (s : ℝ) (w : ℂ) (m : ℕ) (z : ℂ) :
|
| 23 |
+
fitChart s (loewnerMirror w) m z = fitChart s w m z := by
|
| 24 |
+
simp only [fitChart, fitSpine, fitTangent, fitX_mirror, fitY_mirror]
|
| 25 |
+
|
| 26 |
+
@[simp] lemma physicalFitChart_mirror (s : ℝ) (w : ℂ) (m : ℕ) (z : ℂ) :
|
| 27 |
+
physicalFitChart s (loewnerMirror w) m z = physicalFitChart s w m z := by
|
| 28 |
+
simp only [physicalFitChart, fitChart_mirror]
|
| 29 |
+
|
| 30 |
+
@[simp] lemma fitEntry_mirror (s : ℝ) (w : ℂ) (m : ℕ) :
|
| 31 |
+
fitEntry s (loewnerMirror w) m = fitEntry s w m := by
|
| 32 |
+
simp only [fitEntry, fitX_mirror, fitY_mirror]
|
| 33 |
+
|
| 34 |
+
@[simp] lemma fitCompletion_mirror (s : ℝ) (w : ℂ) (m : ℕ) :
|
| 35 |
+
fitCompletion s (loewnerMirror w) m = fitCompletion s w m := by
|
| 36 |
+
simp only [fitCompletion, fitEntry_mirror]
|
| 37 |
+
|
| 38 |
+
@[simp] lemma fitTerminalX_mirror (s : ℝ) (w : ℂ) :
|
| 39 |
+
fitTerminalX s (loewnerMirror w) = fitTerminalX s w := by simp [fitTerminalX]
|
| 40 |
+
|
| 41 |
+
@[simp] lemma fitTerminalHeight_mirror (s : ℝ) (w : ℂ) (m : ℕ) :
|
| 42 |
+
fitTerminalHeight s (loewnerMirror w) m = fitTerminalHeight s w m := by
|
| 43 |
+
simp only [fitTerminalHeight, fitY_mirror, fitCompletion_mirror, fitEntry_mirror]
|
| 44 |
+
|
| 45 |
+
@[simp] lemma fitHighTime_mirror (s : ℝ) (w : ℂ) (m : ℕ) :
|
| 46 |
+
fitHighTime s (loewnerMirror w) m = fitHighTime s w m := by
|
| 47 |
+
simp only [fitHighTime, fitTerminalHeight_mirror]
|
| 48 |
+
|
| 49 |
+
lemma physicalExperimentChart_negative {s : ℝ} {w : ℂ} (hw : w.re < 0) (m : ℕ) :
|
| 50 |
+
physicalExperimentChart s w m = reflectedChart (physicalFitChart s (loewnerMirror w) m) := by
|
| 51 |
+
funext z
|
| 52 |
+
simp only [physicalExperimentChart, ite_eq_right (not_le_of_gt hw), reflectedChart,
|
| 53 |
+
physicalFitChart_mirror]
|
| 54 |
+
|
| 55 |
+
lemma experimentChart_negative {s : ℝ} {w : ℂ} (hw : w.re < 0) (m : ℕ) :
|
| 56 |
+
experimentChart s w m = reflectedChart (fitChart s (loewnerMirror w) m) := by
|
| 57 |
+
funext z
|
| 58 |
+
simp only [experimentChart, ite_eq_right (not_le_of_gt hw), reflectedChart, fitChart_mirror]
|
| 59 |
+
|
| 60 |
+
lemma ribbonCore_reflected_iff (P : ℂ → ℂ) (ε : ℝ) (z : ℂ) :
|
| 61 |
+
z ∈ ribbonCore (reflectedChart P) ε ↔ loewnerMirror z ∈ ribbonCore P ε := by
|
| 62 |
+
constructor
|
| 63 |
+
· rintro ⟨u, ⟨hu, hε⟩, he⟩
|
| 64 |
+
refine ⟨conj u, ⟨conj_mem_closedRibbon hu, ?_⟩, ?_⟩
|
| 65 |
+
· simpa only [Complex.conj_im, abs_neg] using hε
|
| 66 |
+
· rw [← he]
|
| 67 |
+
simp only [reflectedChart, loewnerMirror_twice]
|
| 68 |
+
· rintro ⟨u, ⟨hu, hε⟩, he⟩
|
| 69 |
+
refine ⟨conj u, ⟨conj_mem_closedRibbon hu, ?_⟩, ?_⟩
|
| 70 |
+
· simpa only [Complex.conj_im, abs_neg] using hε
|
| 71 |
+
· simpa only [reflectedChart, Complex.conj_conj, loewnerMirror_twice] using
|
| 72 |
+
congrArg loewnerMirror he
|
| 73 |
+
|
| 74 |
+
lemma goodRibbonPrefix_reflected {Ω : Type*} (γ : Ω → ℝ≥0 → ℂ)
|
| 75 |
+
(τ : Ω → WithTop ℝ≥0) (P : ℂ → ℂ) (ε : ℝ) :
|
| 76 |
+
GoodRibbonPrefix γ τ (reflectedChart P) ε =
|
| 77 |
+
GoodRibbonPrefix (fun ω t => loewnerMirror (γ ω t)) τ P ε := by
|
| 78 |
+
ext ω
|
| 79 |
+
change (_ ∧ _ ∧ _) ↔ (_ ∧ _ ∧ _)
|
| 80 |
+
constructor
|
| 81 |
+
· rintro ⟨hτ, hp, he⟩
|
| 82 |
+
exact ⟨hτ, fun t ht => (ribbonCore_reflected_iff P ε _).mp (hp ht),
|
| 83 |
+
(ribbonCore_reflected_iff P (ε / 4) _).mp he⟩
|
| 84 |
+
· rintro ⟨hτ, hp, he⟩
|
| 85 |
+
exact ⟨hτ, fun t ht => (ribbonCore_reflected_iff P ε _).mpr (hp ht),
|
| 86 |
+
(ribbonCore_reflected_iff P (ε / 4) _).mpr he⟩
|
| 87 |
+
|
| 88 |
+
lemma goodRibbonPrefix_physical_negative {Ω : Type*} (γ : Ω → ℝ≥0 → ℂ)
|
| 89 |
+
(τ : Ω → WithTop ℝ≥0) {s : ℝ} {w : ℂ} (hw : w.re < 0) (m : ℕ) (ε : ℝ) :
|
| 90 |
+
GoodRibbonPrefix γ τ (physicalExperimentChart s w m) ε =
|
| 91 |
+
GoodRibbonPrefix (fun ω t => loewnerMirror (γ ω t)) τ
|
| 92 |
+
(physicalFitChart s (loewnerMirror w) m) ε := by
|
| 93 |
+
rw [physicalExperimentChart_negative hw m]
|
| 94 |
+
exact goodRibbonPrefix_reflected γ τ _ ε
|
| 95 |
+
|
| 96 |
+
lemma physicalExperimentChart_reflect_point {s : ℝ} {w : ℂ} (hw : w.re < 0)
|
| 97 |
+
(m : ℕ) (z : ℂ) :
|
| 98 |
+
loewnerMirror (physicalExperimentChart s w m z) =
|
| 99 |
+
physicalFitChart s (loewnerMirror w) m (conj z) := by
|
| 100 |
+
rw [physicalExperimentChart_negative hw m]
|
| 101 |
+
simp only [reflectedChart, loewnerMirror_twice]
|
| 102 |
+
|
| 103 |
+
def mirroredProgress (g : C(ℂ, ℝ)) : C(ℂ, ℝ) :=
|
| 104 |
+
⟨fun z => g (loewnerMirror z), g.continuous.comp loewnerMirror.continuous⟩
|
| 105 |
+
|
| 106 |
+
lemma mirroredProgress_trace (g : C(ℂ, ℝ)) (γ : ℝ≥0 → ℂ) (t : ℝ≥0) :
|
| 107 |
+
mirroredProgress g ((loewnerMirror ∘ γ) t) = g (γ t) := by
|
| 108 |
+
simp [mirroredProgress]
|
| 109 |
+
|
| 110 |
+
lemma mirroredProgress_chart (g : C(ℂ, ℝ)) (P : ℂ → ℂ)
|
| 111 |
+
(hg : ∀ z ∈ closedRibbon, g (P z) = z.re) :
|
| 112 |
+
∀ z ∈ closedRibbon, mirroredProgress g (reflectedChart P z) = z.re := by
|
| 113 |
+
intro z hz
|
| 114 |
+
change g (loewnerMirror (loewnerMirror (P (conj z)))) = z.re
|
| 115 |
+
rw [loewnerMirror_twice]
|
| 116 |
+
simpa only [Complex.conj_re] using hg (conj z) (conj_mem_closedRibbon hz)
|
| 117 |
+
|
| 118 |
+
lemma mirroredProgress_firstFrontTime (g : C(ℂ, ℝ)) (γ : ℝ≥0 → ℂ) (k : ℝ) :
|
| 119 |
+
FirstFrontPassage.firstFrontTime (fun t => mirroredProgress g ((loewnerMirror ∘ γ) t)) k =
|
| 120 |
+
FirstFrontPassage.firstFrontTime (fun t => g (γ t)) k := by
|
| 121 |
+
congr 1
|
| 122 |
+
funext t
|
| 123 |
+
exact mirroredProgress_trace g γ t
|
| 124 |
+
|
| 125 |
+
end SLEExactGauge.Serpentine
|
| 126 |
+
|
| 127 |
+
end
|
| 128 |
+
|
| 129 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineMarkedRegion.lean
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineFittedShadow
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
/-! The connector lies below the marked point, and every later part of
|
| 6 |
+
the rightward serpentine lies strictly to its right. This is the geometric
|
| 7 |
+
separation used to append the marked-point access hook. -/
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
open Set Metric
|
| 11 |
+
|
| 12 |
+
namespace SLEExactGauge.Serpentine
|
| 13 |
+
|
| 14 |
+
theorem physicalFitChart_low_or_right {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 15 |
+
{m : ℕ} (hm : 0 < m) {z : ℂ} (ha : |z.im| ≤ 1) :
|
| 16 |
+
(physicalFitChart s w m z).im ≤ s / 2 ∨
|
| 17 |
+
|w.re| + s / 5 ≤ (physicalFitChart s w m z).re := by
|
| 18 |
+
by_cases h4 : z.re ≤ connectorFourth (fitHeight m) (fitRadius m) (fitX s w m)
|
| 19 |
+
· exact Or.inl (physicalFitChart_low hs w hw hm ha h4)
|
| 20 |
+
· right
|
| 21 |
+
by_cases hA : z.re ≤ connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m)
|
| 22 |
+
· have hh := physicalFitChart_tail_right hs w hw hm ha (lt_of_not_ge h4) hA
|
| 23 |
+
linarith
|
| 24 |
+
· have hh := physicalFitChart_array_right hs w hm ha (lt_of_not_ge hA)
|
| 25 |
+
linarith
|
| 26 |
+
|
| 27 |
+
theorem physicalFitChart_marked_distance {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 28 |
+
(hwr : 0 ≤ w.re) {m : ℕ} (hm : 0 < m) {z : ℂ} (ha : |z.im| ≤ 1) :
|
| 29 |
+
s / 5 ≤ dist (physicalFitChart s w m z) w := by
|
| 30 |
+
rw [dist_eq_norm]
|
| 31 |
+
rcases physicalFitChart_low_or_right hs w hw hm ha with hlow | hright
|
| 32 |
+
· have hh := Complex.abs_im_le_norm (physicalFitChart s w m z - w)
|
| 33 |
+
rw [Complex.sub_im] at hh
|
| 34 |
+
have hl := neg_le_abs ((physicalFitChart s w m z).im - w.im)
|
| 35 |
+
linarith
|
| 36 |
+
· rw [abs_of_nonneg hwr] at hright
|
| 37 |
+
have hh := Complex.abs_re_le_norm (physicalFitChart s w m z - w)
|
| 38 |
+
rw [Complex.sub_re] at hh
|
| 39 |
+
have hl := le_abs_self ((physicalFitChart s w m z).re - w.re)
|
| 40 |
+
linarith
|
| 41 |
+
|
| 42 |
+
theorem physicalFitChart_hook_region {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 43 |
+
(hwr : 0 ≤ w.re) {m : ℕ} (hm : 0 < m) {z : ℂ} (ha : |z.im| ≤ 1) :
|
| 44 |
+
(physicalFitChart s w m z).im < w.im ∨ w.re < (physicalFitChart s w m z).re := by
|
| 45 |
+
rcases physicalFitChart_low_or_right hs w hw hm ha with hh | hh
|
| 46 |
+
· left
|
| 47 |
+
linarith
|
| 48 |
+
· right
|
| 49 |
+
rw [abs_of_nonneg hwr] at hh
|
| 50 |
+
linarith
|
| 51 |
+
|
| 52 |
+
end SLEExactGauge.Serpentine
|
| 53 |
+
|
| 54 |
+
end
|
| 55 |
+
|
| 56 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineMarkedRouteClearance.lean
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineMarkedLocal
|
| 2 |
+
import OAI.Probability.SLE.Geometry.MarkedRouteEarlyClearance
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-! The two exit routes avoid every point of the complete marked access
|
| 7 |
+
guide by one uniform margin, including its distant initial prefix. -/
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
open Set Metric
|
| 11 |
+
|
| 12 |
+
namespace SLEExactGauge.Serpentine
|
| 13 |
+
open RibbonCoordinates
|
| 14 |
+
|
| 15 |
+
lemma terminalAccess_bounds {s : ℝ} (hs : 0 < s) (hs1 : s ≤ 1)
|
| 16 |
+
(w : ℂ) (hw : s ≤ w.im) (hw1 : ‖w‖ ≤ 1) (hwr : 0 ≤ w.re)
|
| 17 |
+
{m : ℕ} (hm : 0 < m) {x u : ℝ} (hx : |x| ≤ 1)
|
| 18 |
+
(hu : u ∈ Icc (0 : ℝ) (fitHighTime s w m)) :
|
| 19 |
+
-2 ≤ (terminalAccess s w m x u).re ∧ (terminalAccess s w m x u).re ≤ 2 ∧
|
| 20 |
+
(terminalAccess s w m x u).im ≤ 2 ∧ w.re + s / 5 ≤ (terminalAccess s w m x u).re := by
|
| 21 |
+
have hz : guideCoordinate (fitCompletion s w m) x u ∈ closedRibbon := by
|
| 22 |
+
refine ⟨?_, (guideCoordinate_im_bound hu.1).trans hx⟩
|
| 23 |
+
rw [guideCoordinate_re]
|
| 24 |
+
exact add_nonneg (Nat.cast_nonneg _) hu.1
|
| 25 |
+
have hre := physicalFitChart_re_bounds hs hs1 w hw hw1 hm hz
|
| 26 |
+
exact ⟨hre.1, hre.2, physicalFitChart_terminal_guide_height hs w hw hm x hu,
|
| 27 |
+
terminalAccess_right hs w hw hwr hm hx hu.1⟩
|
| 28 |
+
|
| 29 |
+
/-- A margin independent of the number of serpentine columns. -/
|
| 30 |
+
theorem completeMarkedAccess_route_clearance {s : ℝ} (hs : 0 < s) (hs1 : s ≤ 1)
|
| 31 |
+
(w : ℂ) (hw : s ≤ w.im) (hw1 : ‖w‖ ≤ 1) (hwr : 0 ≤ w.re)
|
| 32 |
+
{m : ℕ} (hm : 0 < m) {x t u : ℝ} (hx : |x| ≤ 1) (ht : 1 / 64 ≤ t) (hu : 0 ≤ u) :
|
| 33 |
+
(s / 20) / 1000 ≤ dist (markedLeftRoute w (s / 20) t) (completeMarkedAccess s w m x u) ∧
|
| 34 |
+
(s / 20) / 1000 ≤ dist (markedRightRoute w (s / 20) t) (completeMarkedAccess s w m x u) := by
|
| 35 |
+
have hwr1 := (Complex.re_le_norm w).trans hw1
|
| 36 |
+
have hwi1 := (Complex.im_le_norm w).trans hw1
|
| 37 |
+
have ha : 0 < s / 20 := by positivity
|
| 38 |
+
have ha1 : s / 20 ≤ 1 := by linarith
|
| 39 |
+
by_cases huT : u ≤ fitHighTime s w m
|
| 40 |
+
· rw [completeMarkedAccess, appendMarkedHook, curveJoin_of_le huT]
|
| 41 |
+
have hb := terminalAccess_bounds hs hs1 w hw hw1 hwr hm hx ⟨hu, huT⟩
|
| 42 |
+
have hq : w.re + 2 * (s / 20) ≤ (terminalAccess s w m x u).re := by linarith [hb.2.2.2]
|
| 43 |
+
have hh := markedRoutes_past_clearance (w := w) (q := terminalAccess s w m x u)
|
| 44 |
+
(t := t) (by linarith) hwr1 hwi1 ha.le ha1 ⟨hb.1, hb.2.1⟩ hb.2.2.1 (Or.inr hq)
|
| 45 |
+
constructor <;> linarith [hh.1, hh.2]
|
| 46 |
+
· rw [completeMarkedAccess, appendMarkedHook, curveJoin_of_gt (lt_of_not_ge huT)]
|
| 47 |
+
have hR : w.re < fitTerminalX s w := by
|
| 48 |
+
unfold fitTerminalX
|
| 49 |
+
rw [abs_of_nonneg hwr]
|
| 50 |
+
linarith
|
| 51 |
+
have hR2 : fitTerminalX s w ≤ 2 := by
|
| 52 |
+
unfold fitTerminalX
|
| 53 |
+
rw [abs_of_nonneg hwr]
|
| 54 |
+
linarith
|
| 55 |
+
have hh := markedRoutes_hook_clearance_early hwr hwr1 hwi1 hR hR2 ha ha1 ht
|
| 56 |
+
(show 0 ≤ u - fitHighTime s w m by linarith)
|
| 57 |
+
constructor <;> linarith [hh.1, hh.2]
|
| 58 |
+
|
| 59 |
+
end SLEExactGauge.Serpentine
|
| 60 |
+
|
| 61 |
+
end
|
| 62 |
+
|
| 63 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineNormalizedMass.lean
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.ActualRibbonStoppedMass
|
| 2 |
+
import OAI.Probability.SLE.Gauge.SerpentineInitialPrefix
|
| 3 |
+
import OAI.Probability.SLE.Gauge.SerpentineRetentionCount
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
/-! The concrete connector and serpentine instantiate the actual stopped
|
| 8 |
+
iteration. All m² selected strip masses are present by completion, with
|
| 9 |
+
one positive initial probability and universal one-step constants. -/
|
| 10 |
+
|
| 11 |
+
noncomputable section
|
| 12 |
+
open Set Filter MeasureTheory ProbabilityTheory Metric
|
| 13 |
+
open scoped Topology NNReal ENNReal
|
| 14 |
+
|
| 15 |
+
namespace SLEExactGauge.Serpentine
|
| 16 |
+
open RibbonCoordinates Target
|
| 17 |
+
|
| 18 |
+
def experimentEntry (s : ℝ) (w : ℂ) (m : ℕ) : ℝ :=
|
| 19 |
+
connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m)
|
| 20 |
+
|
| 21 |
+
def experimentSteps (s : ℝ) (w : ℂ) (m : ℕ) : ℕ := completionStep (experimentEntry s w m) m - 1
|
| 22 |
+
|
| 23 |
+
def normalizedExperimentDisk (s : ℝ) (w : ℂ) (m : ℕ) : Set ℂ :=
|
| 24 |
+
(fun z : ℂ => (ribbonWidth (halfHeight s) m : ℂ) * z) ⁻¹' closedBall (center s w) (s / 20)
|
| 25 |
+
|
| 26 |
+
lemma retained_middle_in_normalized_disk {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 27 |
+
{m : ℕ} (hm : 0 < m) {ε : ℝ} (hε : ε ≤ 1) :
|
| 28 |
+
∀ k ∈ retainedSteps (experimentEntry s w m) m,
|
| 29 |
+
physicalMiddleRegion (experimentChart s w m) closedRibbon k ε ⊆ normalizedExperimentDisk s w m := by
|
| 30 |
+
intro k hk z hz
|
| 31 |
+
obtain ⟨⟨j, i⟩, _, rfl⟩ := Finset.mem_image.mp hk
|
| 32 |
+
obtain ⟨a, ⟨ha, hl, hu, hi⟩, rfl⟩ := hz
|
| 33 |
+
change (ribbonWidth (halfHeight s) m : ℂ) * experimentChart s w m a ∈ closedBall (center s w) (s / 20)
|
| 34 |
+
rw [← physicalExperimentChart_eq]
|
| 35 |
+
dsimp only [experimentEntry] at hl hu
|
| 36 |
+
exact physicalExperimentChart_retained_disk hs w hw hm j.isLt i.isLt
|
| 37 |
+
⟨by linarith, by linarith⟩ (hi.le.trans hε)
|
| 38 |
+
|
| 39 |
+
/-- The actual normalized dense experiment, conditional only on the
|
| 40 |
+
recorded published inputs. Completion is finite on success and all mass
|
| 41 |
+
belongs to the stopped prefix at the prescribed common mesh. -/
|
| 42 |
+
theorem uniform_serpentine_normalized_stopped_mass
|
| 43 |
+
{Ω : Type} [mΩ : MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ]
|
| 44 |
+
(κ : ℝ) (hκ : 0 < κ) (hκ8 : κ < 8)
|
| 45 |
+
(B : ℝ≥0 → Ω → ℝ) (hB : IsBrownianReal B μ)
|
| 46 |
+
(hm : ∀ t, Measurable (B t)) (hc : ∀ ω, Continuous (fun t => B t ω))
|
| 47 |
+
(γ : Ω → ℝ≥0 → ℂ) (G F : Ω → ℝ≥0 → ℂ → ℂ)
|
| 48 |
+
(hw : ∀ ω, IsCapacityTwoWitness (fun t => Real.sqrt κ * B t ω) (γ ω) (G ω) (F ω))
|
| 49 |
+
(hcompact : PublishedHalfPlaneUnivalentCompactness)
|
| 50 |
+
(hboundary : PublishedFiniteLoewnerBoundaryExtension)
|
| 51 |
+
(hsupport : PublishedGeometricTubeSupport μ γ)
|
| 52 |
+
(hplanar : PublishedPlanarDiskOpenness)
|
| 53 |
+
(hstraight : PublishedHalfPlaneCrosscutStraightening)
|
| 54 |
+
(hexit : PublishedHalfPlaneConformalExitLaw)
|
| 55 |
+
(hwiener : PublishedPlanarWienerUnitSupport)
|
| 56 |
+
(W : WienerLaw) (hW : IsWiener W)
|
| 57 |
+
(ε : ℝ) (hε : 0 < ε) (hεsmall : ε ≤ 1 / 8) :
|
| 58 |
+
∃ q₀ : ℝ≥0∞, ∃ q c v₀ : ℝ, 0 < q₀ ∧ q₀ ≤ 1 ∧ 0 < q ∧ q ≤ 1 ∧ 0 < c ∧ 0 < v₀ ∧
|
| 59 |
+
∀ v : ℝ, 0 < v → v < v₀ → ∀ s : ℝ, 0 < s → ∀ w : ℂ, s ≤ w.im →
|
| 60 |
+
∀ m : ℕ, 0 < m → ∀ g : C(ℂ, ℝ),
|
| 61 |
+
(∀ z ∈ closedRibbon, g (experimentChart s w m z) = z.re) →
|
| 62 |
+
ENNReal.ofReal q ^ experimentSteps s w m * q₀ ≤ μ {ω |
|
| 63 |
+
ω ∈ GoodRibbonPrefix γ (ribbonIntegerFront g γ (experimentSteps s w m)) (experimentChart s w m) ε ∧
|
| 64 |
+
((m ^ 2 : ℕ) : ℝ≥0∞) * ENNReal.ofReal c ≤ segmentSausageCharge κ (γ ω) 0
|
| 65 |
+
((ribbonIntegerFront g γ (experimentSteps s w m) ω).untopD 0) v (normalizedExperimentDisk s w m)} := by
|
| 66 |
+
obtain ⟨q, c, v₀, hq, hq1, hcm, hv₀, hiter⟩ := uniform_actual_ribbon_iteration μ κ hκ hκ8
|
| 67 |
+
B hB hm hc γ G F hw hcompact hboundary hsupport hplanar hstraight hexit hwiener W hW
|
| 68 |
+
2 2 (by norm_num) (by norm_num) ε hε hεsmall
|
| 69 |
+
have ha := brownian_capacity_trace_adapted B hm hc κ γ G F hw
|
| 70 |
+
have hγc : ∀ ω, Continuous (γ ω) := fun ω => (hw ω).1
|
| 71 |
+
have hSLE : IsOrdinaryChordalSLE κ γ μ :=
|
| 72 |
+
⟨fun t => (ha t).mono (Filtration.le _ t) le_rfl, B, hB,
|
| 73 |
+
Filter.Eventually.of_forall (fun ω => ⟨G ω, F ω, hw ω⟩)⟩
|
| 74 |
+
have hε1 : ε ≤ 1 := by linarith
|
| 75 |
+
obtain ⟨q₀, hq₀, hinit⟩ := uniform_experiment_initial_goodPrefix_probability μ κ γ hSLE hsupport hε hε1
|
| 76 |
+
refine ⟨min q₀ 1, q, c, v₀, lt_min hq₀ (by norm_num), min_le_right _ _, hq, hq1, hcm, hv₀, ?_⟩
|
| 77 |
+
intro v hv hvcut s hs w hwy m hmp g hg
|
| 78 |
+
obtain ⟨hP, hi, hpatch, hH, hinitial⟩ := experimentChart_geometry hs w hwy hmp
|
| 79 |
+
have hemb := experimentChart_closedEmbedding hs w hwy hmp
|
| 80 |
+
have hP0 : experimentChart s w m 0 = 0 := by
|
| 81 |
+
simpa only [mul_zero] using hinitial 0 (by constructor <;> norm_num) (by norm_num)
|
| 82 |
+
have hg0 (ω : Ω) : g (γ ω 0) = 0 := by
|
| 83 |
+
rw [(hw ω).2.1, ← hP0]
|
| 84 |
+
exact hg 0 (by constructor <;> norm_num)
|
| 85 |
+
have hA : 0 ≤ experimentEntry s w m :=
|
| 86 |
+
(by unfold fitHeight; positivity : (0 : ℝ) ≤ fitHeight m).trans (fit_entry_lower hs w hwy hmp)
|
| 87 |
+
have hb := hiter v hv hvcut _ hemb hP.continuousOn hi hP0 hH
|
| 88 |
+
(experimentChart_escape s w m) (fun k => (hpatch k).1) (fun k => (hpatch k).2)
|
| 89 |
+
g hg (experimentSteps s w m)
|
| 90 |
+
calc
|
| 91 |
+
_ ≤ ENNReal.ofReal q ^ experimentSteps s w m *
|
| 92 |
+
μ (GoodRibbonPrefix γ (ribbonIntegerFront g γ 0) (experimentChart s w m) ε) := by
|
| 93 |
+
apply mul_le_mul' le_rfl
|
| 94 |
+
apply (min_le_left q₀ 1).trans
|
| 95 |
+
simpa only [ribbonIntegerFront, Nat.cast_zero, zero_add] using hinit s hs w hwy m hmp g hg
|
| 96 |
+
_ ≤ _ := hb.trans (measure_mono (by
|
| 97 |
+
intro ω hω
|
| 98 |
+
have hI : ∀ i ∈ retainedSteps (experimentEntry s w m) m, 0 < i ∧ i ≤ experimentSteps s w m := by
|
| 99 |
+
intro i hiI
|
| 100 |
+
obtain ⟨hi0, hic⟩ := retainedSteps_bounds hA hmp i hiI
|
| 101 |
+
exact ⟨hi0, by dsimp only [experimentSteps]; omega⟩
|
| 102 |
+
have hh := actual_successes_force_stopped_mass γ hγc g hg0 _ hplanar hP.continuousOn hi
|
| 103 |
+
ε κ v c hε1 (experimentSteps s w m) (retainedSteps (experimentEntry s w m) m) hI _
|
| 104 |
+
(retained_middle_in_normalized_disk hs w hwy hmp hε1) ω hω
|
| 105 |
+
simpa only [mem_ofPred_eq, retainedSteps_card hA hmp] using hh))
|
| 106 |
+
|
| 107 |
+
end SLEExactGauge.Serpentine
|
| 108 |
+
|
| 109 |
+
end
|
| 110 |
+
|
| 111 |
+
end OAI
|
lean/OAI/Probability/SLE/Gauge/SerpentineParameters.lean
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Probability.SLE.Gauge.SerpentineEscape
|
| 2 |
+
import OAI.Probability.SLE.Gauge.SerpentineShadow
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
/-! Concrete normalized connector parameters for the dense-visit layout.
|
| 7 |
+
All constants depend only on the fixed positive angle lower bound. -/
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
open Set Metric
|
| 11 |
+
|
| 12 |
+
namespace SLEExactGauge.Serpentine
|
| 13 |
+
|
| 14 |
+
def fitHeight (m : ℕ) : ℝ := 2500 * m
|
| 15 |
+
|
| 16 |
+
def fitRadius (m : ℕ) : ℝ := 625 * m
|
| 17 |
+
|
| 18 |
+
def fitX (s : ℝ) (w : ℂ) (m : ℕ) : ℝ :=
|
| 19 |
+
(|w.re| + s / 4 - halfHeight s) / ribbonWidth (halfHeight s) m
|
| 20 |
+
|
| 21 |
+
def fitY (s : ℝ) (w : ℂ) (m : ℕ) : ℝ :=
|
| 22 |
+
(w.im - halfHeight s) / ribbonWidth (halfHeight s) m
|
| 23 |
+
|
| 24 |
+
def fitEntryBound (s : ℝ) : ℝ := 40000 / s + 10000 + 1000 * Real.pi
|
| 25 |
+
|
| 26 |
+
lemma fit_width_pos {s : ℝ} (hs : 0 < s) {m : ℕ} (hm : 0 < m) :
|
| 27 |
+
0 < ribbonWidth (halfHeight s) m := by
|
| 28 |
+
apply ribbonWidth_pos (by unfold halfHeight; positivity) hm
|
| 29 |
+
|
| 30 |
+
lemma fit_width_eq (s : ℝ) (m : ℕ) :
|
| 31 |
+
ribbonWidth (halfHeight s) m = s / (20000 * m) := by
|
| 32 |
+
unfold ribbonWidth halfHeight
|
| 33 |
+
ring
|
| 34 |
+
|
| 35 |
+
lemma fit_width_mul {s : ℝ} (_hs : 0 < s) {m : ℕ} (hm : 0 < m) :
|
| 36 |
+
ribbonWidth (halfHeight s) m * m = s / 20000 := by
|
| 37 |
+
rw [fit_width_eq]
|
| 38 |
+
have hm' : (m : ℝ) ≠ 0 := by exact_mod_cast hm.ne'
|
| 39 |
+
field_simp
|
| 40 |
+
|
| 41 |
+
lemma fitX_eq {s : ℝ} (hs : 0 < s) (w : ℂ) {m : ℕ} (hm : 0 < m) :
|
| 42 |
+
fitX s w m = (20000 * |w.re| / s + 4900) * m := by
|
| 43 |
+
unfold fitX
|
| 44 |
+
rw [fit_width_eq]
|
| 45 |
+
unfold halfHeight
|
| 46 |
+
have hm' : (m : ℝ) ≠ 0 := by exact_mod_cast hm.ne'
|
| 47 |
+
field_simp [hs.ne', hm']
|
| 48 |
+
ring
|
| 49 |
+
|
| 50 |
+
lemma fitY_eq {s : ℝ} (hs : 0 < s) (w : ℂ) {m : ℕ} (hm : 0 < m) :
|
| 51 |
+
fitY s w m = (20000 * w.im / s - 100) * m := by
|
| 52 |
+
unfold fitY
|
| 53 |
+
rw [fit_width_eq]
|
| 54 |
+
unfold halfHeight
|
| 55 |
+
have hm' : (m : ℝ) ≠ 0 := by exact_mod_cast hm.ne'
|
| 56 |
+
field_simp [hs.ne', hm']
|
| 57 |
+
ring
|
| 58 |
+
|
| 59 |
+
lemma fitX_lower {s : ℝ} (hs : 0 < s) (w : ℂ) {m : ℕ} (hm : 0 < m) :
|
| 60 |
+
4900 * (m : ℝ) ≤ fitX s w m := by
|
| 61 |
+
rw [fitX_eq hs w hm]
|
| 62 |
+
have h := div_nonneg (mul_nonneg (by norm_num : (0 : ℝ) ≤ 20000) (abs_nonneg w.re)) hs.le
|
| 63 |
+
nlinarith [Nat.cast_nonneg (α := ℝ) m]
|
| 64 |
+
|
| 65 |
+
lemma fitY_lower {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im) {m : ℕ} (hm : 0 < m) :
|
| 66 |
+
19900 * (m : ℝ) ≤ fitY s w m := by
|
| 67 |
+
rw [fitY_eq hs w hm]
|
| 68 |
+
have h : (20000 : ℝ) ≤ 20000 * w.im / s := (le_div_iff₀ hs).mpr (by nlinarith)
|
| 69 |
+
nlinarith [Nat.cast_nonneg (α := ℝ) m]
|
| 70 |
+
|
| 71 |
+
lemma fitX_upper {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : ‖w‖ ≤ 1) {m : ℕ} (hm : 0 < m) :
|
| 72 |
+
fitX s w m ≤ (20000 / s + 4900) * m := by
|
| 73 |
+
rw [fitX_eq hs w hm]
|
| 74 |
+
have hre : |w.re| ≤ 1 := (Complex.abs_re_le_norm w).trans hw
|
| 75 |
+
have h : 20000 * |w.re| / s ≤ 20000 / s := by
|
| 76 |
+
apply div_le_div_of_nonneg_right _ hs.le
|
| 77 |
+
nlinarith
|
| 78 |
+
exact mul_le_mul_of_nonneg_right (by linarith) (Nat.cast_nonneg m)
|
| 79 |
+
|
| 80 |
+
lemma fitY_upper {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : ‖w‖ ≤ 1) {m : ℕ} (hm : 0 < m) :
|
| 81 |
+
fitY s w m ≤ (20000 / s) * m := by
|
| 82 |
+
rw [fitY_eq hs w hm]
|
| 83 |
+
have him : w.im ≤ 1 := (Complex.im_le_norm w).trans hw
|
| 84 |
+
have h : 20000 * w.im / s ≤ 20000 / s := by
|
| 85 |
+
apply div_le_div_of_nonneg_right _ hs.le
|
| 86 |
+
nlinarith
|
| 87 |
+
exact mul_le_mul_of_nonneg_right (by linarith) (Nat.cast_nonneg m)
|
| 88 |
+
|
| 89 |
+
/-- The fixed numerical parameters satisfy all proved global embedding
|
| 90 |
+
and local ribbon estimates, with ample strict separation. -/
|
| 91 |
+
theorem fit_parameters {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 92 |
+
{m : ℕ} (hm : 0 < m) :
|
| 93 |
+
50 ≤ fitRadius m ∧ 2 * fitRadius m < fitX s w m ∧
|
| 94 |
+
fitHeight m + 2 * fitRadius m + 1 + 300 * m < fitY s w m ∧
|
| 95 |
+
4 ≤ fitHeight m := by
|
| 96 |
+
have hm' : (1 : ℝ) ≤ m := by exact_mod_cast hm
|
| 97 |
+
have hx := fitX_lower hs w hm
|
| 98 |
+
have hy := fitY_lower hs w hw hm
|
| 99 |
+
dsimp only [fitRadius, fitHeight]
|
| 100 |
+
constructor
|
| 101 |
+
· nlinarith
|
| 102 |
+
constructor
|
| 103 |
+
· nlinarith
|
| 104 |
+
constructor <;> nlinarith
|
| 105 |
+
|
| 106 |
+
lemma fitEntryBound_pos {s : ℝ} (hs : 0 < s) : 0 < fitEntryBound s := by
|
| 107 |
+
unfold fitEntryBound
|
| 108 |
+
positivity
|
| 109 |
+
|
| 110 |
+
lemma connectorEntry_eq (H r X Y : ℝ) :
|
| 111 |
+
connectorEntry H r X Y = Real.pi * r + X + Y - 4 * r := by
|
| 112 |
+
unfold connectorEntry connectorFourth connectorThird connectorSecond quarterLength
|
| 113 |
+
ring
|
| 114 |
+
|
| 115 |
+
lemma fit_entry_upper {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : ‖w‖ ≤ 1)
|
| 116 |
+
{m : ℕ} (hm : 0 < m) :
|
| 117 |
+
connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m) ≤ fitEntryBound s * m := by
|
| 118 |
+
have hx := fitX_upper hs w hw hm
|
| 119 |
+
have hy := fitY_upper hs w hw hm
|
| 120 |
+
rw [connectorEntry_eq]
|
| 121 |
+
dsimp only [fitRadius, fitEntryBound]
|
| 122 |
+
have hdiv : 40000 / s = 2 * (20000 / s) := by ring
|
| 123 |
+
rw [hdiv]
|
| 124 |
+
nlinarith [mul_nonneg Real.pi_pos.le (Nat.cast_nonneg (α := ℝ) m)]
|
| 125 |
+
|
| 126 |
+
lemma fit_entry_lower {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : s ≤ w.im)
|
| 127 |
+
{m : ℕ} (hm : 0 < m) :
|
| 128 |
+
fitHeight m ≤ connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m) := by
|
| 129 |
+
have hx := fitX_lower hs w hm
|
| 130 |
+
have hy := fitY_lower hs w hw hm
|
| 131 |
+
have hm' : (0 : ℝ) ≤ m := Nat.cast_nonneg m
|
| 132 |
+
rw [connectorEntry_eq]
|
| 133 |
+
dsimp only [fitHeight, fitRadius]
|
| 134 |
+
nlinarith [Real.pi_pos]
|
| 135 |
+
|
| 136 |
+
lemma fit_completion_quadratic {s : ℝ} (hs : 0 < s) (w : ℂ) (hw : ‖w‖ ≤ 1)
|
| 137 |
+
(hwy : s ≤ w.im) {m : ℕ} (hm : 0 < m) :
|
| 138 |
+
(completionStep (connectorEntry (fitHeight m) (fitRadius m) (fitX s w m) (fitY s w m)) m : ℝ) ≤
|
| 139 |
+
(fitEntryBound s + 601 + 100 * Real.pi) * (m : ℝ) ^ 2 := by
|
| 140 |
+
apply completionStep_quadratic_bound
|
| 141 |
+
· exact (by unfold fitHeight; positivity : (0 : ℝ) ≤ fitHeight m).trans (fit_entry_lower hs w hwy hm)
|
| 142 |
+
· exact (fitEntryBound_pos hs).le
|
| 143 |
+
· exact hm
|
| 144 |
+
· exact fit_entry_upper hs w hw hm
|
| 145 |
+
|
| 146 |
+
end SLEExactGauge.Serpentine
|
| 147 |
+
|
| 148 |
+
end
|
| 149 |
+
|
| 150 |
+
end OAI
|