Yang–Mills: the 2026 Lean construction, rerun and read; the mass gap still open
OpenAI's 2026 Lean construction of 4D Yang–Mills as the expert group keeps it: settle what it proves, rerun it, read it; uniqueness and the mass gap are open, and Clay's problem unsolved

| 1 | import YM.Trace.AnalyticIntegral |
| 2 | import YM.Trace.Fields |
| 3 | import YM.Trace.ConeValues |
| 4 | |
| 5 | /-! Link translation spectral data obtained from fields after phase selection back to exact |
| 6 | strict Euclidean values, using `Region.roots`, `Opens`, and uniqueness at the boundary. -/ |
| 7 | noncomputable section |
| 8 | set_option autoImplicit false |
| 9 | set_option linter.unusedSectionVars false |
| 10 | set_option maxHeartbeats 1000000 |
| 11 | namespace YM.Trace |
| 12 | open Boundary Function Filter MeasureTheory Measure Set Complex Spectral |
| 13 | open scoped Topology BigOperators ContDiff Matrix.Norms.Frobenius InnerProductSpace |
| 14 | variable {G : Gauge} {C : Family G} {S : Table C.book} {F : Extraction.Order} |
| 15 | (Y : Spec.Final C F S) |
| 16 | |
| 17 | abbrev VPair := Points 2 |
| 18 | |
| 19 | def probe2 (f g : Probe E4) := Joint.materialize 2 ![Probe.bar f, g] |
| 20 | lemma probe2_eq (f g : Probe E4) (p : VPair) : probe2 f g p = star (f (p 0)) * g (p 1) := by |
| 21 | rw [probe2,Joint.material_at]; simp [Fin.prod_univ_two] |
| 22 | |
| 23 | def height2 (z : ℂ) (p : VPair) := (![(p 0 timeAxis),(p 1 timeAxis)+z] : Times 2) |
| 24 | @[simp] lemma height_one (z : ℂ) (p : VPair) : height2 z p 0 = (time (p 0)) := rfl |
| 25 | @[simp] lemma height_two (z : ℂ) (p : VPair) : height2 z p 1 = (time (p 1):ℂ)+z := rfl |
| 26 | lemma height_strict (z : upper) (p : VPair) : height2 z p ∈ strict 2 := by |
| 27 | intro i j hij |
| 28 | fin_cases i <;> fin_cases j <;> try contradiction |
| 29 | change ((p 0 timeAxis :ℂ)).im < _ |
| 30 | change ((p 0 timeAxis :ℂ)).im < ((p 1 timeAxis : ℂ)+ z.val).im |
| 31 | simpa only [ofReal_im,add_im,zero_add] using |
| 32 | (show 0<z.val.im from z.prop) |
| 33 | lemma height_cont : Continuous (uncurry height2) := by |
| 34 | refine continuous_pi fun i => ?_; fin_cases i |
| 35 | · exact continuous_ofReal.comp (Mink.clock_cont.comp (by fun_prop)) |
| 36 | exact (continuous_ofReal.comp (Mink.clock_cont.comp (by fun_prop : Continuous (fun (p : ℂ×VPair) => p.2.ofLp 1)))).add continuous_fst |
| 37 | |
| 38 | def liftTwo (O : S.Tag) (z : ℂ) (x : VPair) := Y.A.waves.F 2 |
| 39 | (height2 z x) (Boundary.trace x) (fun _ => S.pin O.1 O.2) |
| 40 | |
| 41 | def testedTwo (O : S.Tag) (u v : Test4) (z : ℂ) := ∫ x : VPair, liftTwo Y O z x * probe2 u v x |
| 42 | |
| 43 | lemma lift_two_cont (O : S.Tag) : ContinuousOn (uncurry (liftTwo Y O)) (upper ×ˢ univ) := by |
| 44 | refine (Y.realization.chosen.heat.together 2 _).comp (f:=fun p : ℂ × VPair => (height2 p.1 p.2,Boundary.trace p.2)) ?_ ?_ |
| 45 | · refine Continuous.continuousOn (Continuous.prodMk ?_ ?_) |
| 46 | · exact height_cont |
| 47 | apply Continuous.comp (continuous_pi fun i => Mink.rest_cont.comp (f:=fun x : VPair => WithLp.ofLp x i) (by fun_prop)) continuous_snd |
| 48 | exact fun ⟨_,p⟩ hz => ⟨height_strict ⟨_,hz.1⟩ p,mem_univ _⟩ |
| 49 | |
| 50 | omit Y in |
| 51 | lemma compact_tested {u v : Test4} (hu : CC u) (hv : CC v) : CC (probe2 u v) := by |
| 52 | let t (i : Fin 2) := (![tsupport u,tsupport v] : Fin 2 → Set E4) i |
| 53 | let k := WithLp.toLp 2 '' {p : Fin 2 → E4| ∀ i,p i∈t i} |
| 54 | have ht : IsCompact k := IsCompact.image (isCompact_pi_infinite (fun i => by |
| 55 | fin_cases i |
| 56 | · exact hu |
| 57 | exact hv)) (PiLp.continuous_toLp ..) |
| 58 | refine ht.of_isClosed_subset (isClosed_tsupport _) (closure_minimal (fun p hp => ⟨WithLp.ofLp p,?_,rfl⟩) ht.isClosed) |
| 59 | intro i |
| 60 | fin_cases i |
| 61 | · exact (by apply subset_tsupport; intro hx; apply hp; rw [probe2_eq,hx,star_zero,zero_mul] : p 0 ∈ tsupport u) |
| 62 | exact (by apply subset_tsupport; intro hx; apply hp; rw [probe2_eq,hx,mul_zero] : p 1 ∈ tsupport v) |
| 63 | |
| 64 | set_option pp.proofs false in |
| 65 | set_option maxRecDepth 10000 in |
| 66 | lemma lift_point_analytic (O : S.Tag) (x : VPair) : DifferentiableOn ℂ (liftTwo Y O · x) upper := by |
| 67 | apply DifferentiableOn.comp (g:=fun t : Times 2=> Y.A.waves.F 2 t (Boundary.trace x) (fun _ => S.pin O.1 O.2)) (f:=fun z : ℂ=> height2 z x) (s:=upper) |
| 68 | (t:=strict 2) (Y.realization.chosen.heat.hol 2 _ (Boundary.trace x)) ?_ (fun z h=> height_strict ⟨_,h⟩ x) |
| 69 | refine differentiable_pi.mpr ?_ |>.differentiableOn |
| 70 | intro i; fin_cases i |
| 71 | · exact differentiable_const ((time (x 0)):ℂ) |
| 72 | exact differentiable_const ((time (x 1)):ℂ) |>.add differentiable_id |
| 73 | |
| 74 | lemma lift_two_analytic (O : S.Tag) (u v : Test4) (hu : CC u) (hv : CC v) : |
| 75 | DifferentiableOn ℂ (testedTwo Y O u v) upper := by |
| 76 | let k := tsupport (probe2 u v) |
| 77 | have ht := compact_tested hu hv |
| 78 | let K (z : ℂ) (x : VPair) := liftTwo Y O z x * probe2 u v x |
| 79 | change DifferentiableOn ℂ (fun z=>∫ x,K z x) upper |
| 80 | refine contour_analytic (μ:=volume) (F:=K) (u:=k) upper_open ht (fun z hz x he=> ?_) ?_ |
| 81 | (fun x => (lift_point_analytic Y O x).mul (show DifferentiableOn ℂ (fun z : ℂ=>probe2 u v x) upper from differentiableOn_const _)) |
| 82 | · exact mul_eq_zero_of_right _ (image_eq_zero_of_notMem_tsupport he) |
| 83 | exact (lift_two_cont Y O).mul ((probe2 u v).continuous.comp continuous_snd).continuousOn |
| 84 | |
| 85 | variable {μ : Measure E4} |
| 86 | def damping (z : ℂ) (p : E4) := cexp ((time p:ℂ)*I*z) |
| 87 | @[simp] lemma heat_size (z) (p) : ‖damping z p‖ = Real.exp (-z.im * time p) := by |
| 88 | rw [damping,norm_exp]; simp only [mul_re,mul_im,ofReal_re,ofReal_im,I_re,I_im,mul_zero,mul_one,sub_zero,zero_mul,add_zero,zero_sub]; congr 1; ring |
| 89 | |
| 90 | set_option linter.unusedVariables false in |
| 91 | def paid (μ : Measure E4) (u v : Test4) (p : E4) := star (plus u p) * plus v p |
| 92 | def heatTest (μ : Measure E4) (u v : Test4) (z : ℂ) := ∫ p, |
| 93 | paid μ u v p * damping z p ∂μ |
| 94 | def heatPoint (μ : Measure E4) (w : ℂ) (x : VPair) := ∫ p, Probe.plane p (x 1-x 0) * damping w p ∂μ |
| 95 | |
| 96 | variable (hm : Tempered μ) (ht : μ (Mink.coneᶜ)=0) |
| 97 | include hm |
| 98 | lemma bound_paid (u v) : ∃ c : ℝ, ∀ x, ‖paid μ u v x‖ ≤ c := by |
| 99 | refine ⟨Probe.size 0 0 (plus u) * Probe.size 0 0 (plus v),fun x => ?_⟩ |
| 100 | rw [paid,norm_mul,norm_star]; refine mul_le_mul (SchwartzMap.norm_le_seminorm ..) (SchwartzMap.norm_le_seminorm ..) (norm_nonneg _) (apply_nonneg ..) |
| 101 | lemma integrable_paid (u v) : Integrable (paid μ u v) μ := by |
| 102 | obtain ⟨n,A,h⟩ := hm |
| 103 | refine h.integrable_prod ENNReal.ofReal_lt_top (plus u) (plus v) _ (by unfold paid; fun_prop) 1 |
| 104 | (fun x => by rw [paid,norm_mul,norm_star,one_mul]) |
| 105 | |
| 106 | include ht |
| 107 | lemma heatPoint_cont {w : ℂ} (hz : 0<w.im) : Continuous (heatPoint μ w) := by |
| 108 | refine continuous_iff_continuousAt.mpr fun x => |
| 109 | tendsto_integral_filter_of_dominated_convergence |
| 110 | (fun p:E4 => Real.exp (-w.im * time p)) ?_ ?_ (hm.integrable_exp μ ht hz) ?_ |
| 111 | · exact .of_forall fun r => by unfold damping; exact (by fun_prop : Continuous _).aestronglyMeasurable |
| 112 | · simp |
| 113 | filter_upwards with p |
| 114 | exact ContinuousAt.tendsto (by fun_prop : ContinuousAt (fun n : VPair=> _) x) |
| 115 | lemma heatTest_analytic (u v : Test4) : DifferentiableOn ℂ (heatTest μ u v) upper := by |
| 116 | intro w hw |
| 117 | let L := paid μ u v; let D (z : ℂ) (p : E4) := L p * (damping z p * ((time p:ℂ)*I)) |
| 118 | obtain ⟨C,hC⟩:=bound_paid hm u v |
| 119 | have hc : 0≤C := (norm_nonneg _).trans (hC 0) |
| 120 | have hE : ∀ᵐ p ∂μ, 0 ≤ time p := (show ∀ᵐ p ∂μ,p∈ Mink.cone from (ae_iff.mpr ht)).mono fun p h => (norm_nonneg (spatial p)).trans h |
| 121 | have := hasDerivAt_integral_of_dominated_loc_of_deriv_le (x₀:=w) (F':=D) (F:=fun z p => L p * damping z p) (μ:=μ) |
| 122 | (s:={p|w.im/2<p.im}) (by refine continuous_im.continuousAt.preimage_mem_nhds ?_; exact lt_mem_nhds ((show w.im/2 <w.im by change 0<w.im at hw; exact half_lt_self hw))) |
| 123 | (.of_forall fun z => ((by unfold L paid damping; exact (by fun_prop : Continuous _).aestronglyMeasurable))) |
| 124 | ((integrable_paid hm u v).norm.mono' (by unfold L paid damping; fun_prop) |
| 125 | (hE.mono (fun p he => by |
| 126 | change ‖L p * damping w p‖ ≤ _ |
| 127 | rw [norm_mul,heat_size] |
| 128 | exact mul_le_of_le_one_right (norm_nonneg _) (Real.exp_le_one_iff.mpr (by change w.im>0 at hw; nlinarith))))) |
| 129 | (by unfold D L paid damping; fun_prop) |
| 130 | (hE.mono (fun p hp z hz => by |
| 131 | change ‖D z p‖ ≤ _; simp only [D,norm_mul,norm_I,mul_one,norm_real,Real.norm_eq_abs] |
| 132 | have he : Real.exp (-z.im * time p) ≤ Real.exp (- (w.im/2) * (time p)) := Real.exp_le_exp.mpr (by change w.im/2<z.im at hz; nlinarith) |
| 133 | rw [heat_size,mul_comm _ (|time p|)]; gcongr <;> first | exact hC p | exact le_add_of_nonneg_left (by norm_num))) |
| 134 | (hm.integrable_damp μ ht (show 0<w.im/2 by change w.im>0 at hw; linarith) |>.const_mul C) |
| 135 | (Filter.Eventually.of_forall (fun p => fun z hz => |
| 136 | show HasDerivAt _ _ _ from by |
| 137 | unfold D damping |
| 138 | convert! (((hasDerivAt_id' z).const_mul ((time p:ℂ)*I)).cexp.const_mul (L p)) using 1 |
| 139 | ring)) |
| 140 | exact this.2.differentiableAt.differentiableWithinAt |
| 141 | |
| 142 | private abbrev tick (t : ℝ) := t • basis timeAxis |
| 143 | omit hm ht |
| 144 | lemma plus_ticked (v : Test4) (t : ℝ) (p : E4) : plus (Probe.ahead (tick t) v) p = plus v p * damping t p := by |
| 145 | simp only [plus_eq,Probe.ahead_at,← integral_mul_const] |
| 146 | rw [← integral_add_left_eq_self (μ:=volume) (fun x : E4 => Probe.plane x p * v (x-tick t)) (tick t)] |
| 147 | apply integral_congr_ae; filter_upwards with x |
| 148 | rw [Probe.plane_dot (tick _ + _),Probe.plane_add, Probe.plane_dot p x, add_sub_cancel_left] |
| 149 | have he : inner ℝ p (tick t)= time p*t := by |
| 150 | rw [real_inner_smul_right, Mink.pairing, Mink.roll_space,Mink.roll_clock, inner_zero_right,mul_one,zero_add,mul_comm] |
| 151 | rw [Probe.plane, he, damping,Complex.ofReal_mul, show ((↑(time p):ℂ)*↑t*I)=↑(time p)*I*↑t by ring,mul_assoc,mul_comm (cexp _)] |
| 152 | |
| 153 | private def profileTwo : Heights 2 := ![0,1] |
| 154 | private lemma pair_shift (s : ℝ) (t : ℝ) (p : VPair) : |
| 155 | Boundary.shift (p+points (fun i=>if i=0 then 0 else tick t)) (s • profileTwo) = height2 ((t:ℂ)+s*I) p ∧ |
| 156 | Boundary.trace (p+points (fun i=>if i=0 then 0 else tick t)) = Boundary.trace p := by |
| 157 | constructor <;> ext1 i <;> fin_cases i |
| 158 | · change ((time (p 0+0)):ℂ)+(s*0:ℝ) * I= (p 0 timeAxis) |
| 159 | simp [time] |
| 160 | · change (↑(time (p 1+tick t)):ℂ)+(s*1:ℝ)*I= ((time (p 1):ℂ)+((t:ℂ)+s*I)) |
| 161 | simp only [mul_one,Mink.clock_add,Mink.clock_mul, Mink.roll_clock,ofReal_add] |
| 162 | ring |
| 163 | · change spatial (p 0+0)=_; simp [Boundary.trace] |
| 164 | change spatial (p 1+tick t)=_; simp [Boundary.trace] |
| 165 | -- projection simplification |
| 166 | |
| 167 | lemma actual_boundary (u v : Test4) (e t : ℝ) : |
| 168 | Tendsto (fun s : ℝ => testedTwo Y ⟨4,theta Y e⟩ u v ((t:ℂ)+s*I)) (𝓝[>] 0) |
| 169 | (𝓝 (inner ℂ (oneWave Y (S.pin 4 (theta Y e)) u) |
| 170 | (oneWave Y (S.pin 4 (theta Y e)) (Probe.ahead (tick t) v)))) := by |
| 171 | have he := Y.realization.chosen.emerges.profile 2 (fun _ => S.pin 4 (theta Y e)) profileTwo (by |
| 172 | intro i j h; fin_cases i <;> fin_cases j <;> simp_all [profileTwo]) (probe2 u (Probe.ahead (tick t) v)) |
| 173 | rw [← exact_pair] -- witness W at RHS |
| 174 | refine he.congr (fun s => by |
| 175 | -- test weights shift |
| 176 | let q : VPair := points (fun i => if i=0 then 0 else tick t) |
| 177 | unfold Waves.atSlopes testedTwo |
| 178 | rw [← integral_add_right_eq_self (μ:=volume) (f:=fun x : VPair => Y.A.waves.restricted _ _ x * probe2 u (Probe.ahead (tick t) v) x) q] |
| 179 | refine integral_congr_ae (ae_of_all _ fun p => ?_) |
| 180 | dsimp only; unfold liftTwo Waves.restricted; rw [(pair_shift s t p).1,(pair_shift s t p).2] |
| 181 | congr 1 |
| 182 | rw [probe2_eq,probe2_eq]; simp [q,points]) |
| 183 | |
| 184 | include hm ht in |
| 185 | lemma model_boundary (u v : Test4) (t : ℝ) : Tendsto (fun s : ℝ => heatTest μ u v ((t:ℂ)+s*I)) (𝓝[>] 0) (𝓝 (heatTest μ u v t)) := by |
| 186 | refine tendsto_integral_filter_of_dominated_convergence (fun p:E4 => ‖paid μ u v p‖) |
| 187 | (.of_forall fun s => (by unfold paid damping; fun_prop)) ?_ (integrable_paid hm .. |>.norm) |
| 188 | (.of_forall fun p => ?_) |
| 189 | swap; · simpa only [ofReal_zero,zero_mul,add_zero] using! (ContinuousAt.tendsto (x:=(0:ℝ)) (by unfold damping; fun_prop : ContinuousAt (fun s : ℝ => paid μ u v p * damping (↑t+↑s*I) p) _)).mono_left nhdsWithin_le_nhds |
| 190 | filter_upwards [self_mem_nhdsWithin] with s hs |
| 191 | have he : ∀ᵐ p∂μ, p ∈ Mink.cone := ae_iff.mpr ht |
| 192 | filter_upwards [he] with p hp |
| 193 | rw [norm_mul] |
| 194 | refine mul_le_of_le_one_right (norm_nonneg _) (by |
| 195 | rw [heat_size]; apply Real.exp_le_one_iff.mpr |
| 196 | exact mul_nonpos_of_nonpos_of_nonneg (by simp; exact (show s>0 from hs).le) ((norm_nonneg _).trans hp)) |
| 197 | |
| 198 | include hm ht in |
| 199 | theorem tested_ordered_match (a b : Test4) (ha : CC a) (hb : CC b) (e : ℝ) |
| 200 | (hμ : ∀ f g : Test4, inner ℂ (oneWave Y (S.pin 4 (theta Y e)) f) (oneWave Y (S.pin 4 (theta Y e)) g)=∫ k,paid μ f g k ∂μ) : |
| 201 | EqOn (testedTwo Y ⟨4,theta Y e⟩ a b) (heatTest μ a b) upper := by |
| 202 | intro w hw; apply sub_eq_zero.mp |
| 203 | apply (vanishes_of_vertical_limit (F:= fun s => testedTwo Y ⟨4,theta Y e⟩ a b s - heatTest μ a b s) |
| 204 | (lift_two_analytic Y _ _ _ ha hb |>.sub (heatTest_analytic hm ht a b)) ?_ hw) |
| 205 | intro t |
| 206 | have H := actual_boundary Y a b e t |
| 207 | have heq (p : E4) : paid μ a b p * damping t p=paid μ a (Probe.ahead (tick t) b) p := by |
| 208 | simp [paid,plus_ticked,mul_assoc] |
| 209 | rw [hμ,← show heatTest ..=_ from (integral_congr_ae (ae_of_all _ heq) : heatTest μ a b t = _)] at H |
| 210 | simpa only [sub_self] using H.sub (model_boundary hm ht a b t) |
| 211 | |
| 212 | omit Y in |
| 213 | lemma product_separates (K : VPair→ℂ) (hc : Continuous K) (h : ∀ (a b : Probe E4), CC a → CC b → (∫ x,K x * probe2 a b x)=0) : |
| 214 | K=0 := funext (fun p => by |
| 215 | by_contra! hz |
| 216 | change K p ≠ 0 at hz |
| 217 | let r x := ((star (K p)) * K x).re |
| 218 | have hr : Continuous r := continuous_re.comp (continuous_const.mul hc) |
| 219 | have hi : 0<r p := by dsimp only [r]; rw [mul_comm, ← starRingEnd_apply, mul_conj,ofReal_re]; exact (normSq_pos).mpr hz |
| 220 | let l (u : E4×E4) := points (![u.1,u.2]) |
| 221 | let P := (p 0,p 1) |
| 222 | have hl : Continuous l := by |
| 223 | apply (PiLp.continuous_toLp 2 _).comp (continuous_pi fun i : Fin 2 => ?_) |
| 224 | fin_cases i |
| 225 | · exact continuous_fst |
| 226 | exact continuous_snd |
| 227 | have hL (z : VPair) : l (z 0,z 1)=z := PiLp.ext (fun i => by fin_cases i <;> rfl) |
| 228 | obtain ⟨δ,hδ,hU,Hd⟩ : ∃ δ>0, 0<δ/2 ∧ ∀ q : E4×E4, dist q P < δ → 0<r (l q) := by |
| 229 | obtain ⟨δ,hδ,Q⟩ := Metric.mem_nhds_iff.mp (((hr.comp hl).tendsto P).eventually (lt_mem_nhds (show 0<(r ∘ l) P by change 0<r (l (p 0,p 1)); rwa [hL p]))) |
| 230 | exact ⟨_,hδ, by linarith,Q⟩ |
| 231 | let A (z : E4) : ContDiffBump z := ⟨δ/4,δ/2,by positivity,by linarith⟩ |
| 232 | let f (z : E4) : Probe E4 := (HasCompactSupport.toSchwartzMap (HasCompactSupport.comp_left (f:=⇑(A z)) |
| 233 | ((A z).hasCompactSupport) Complex.ofReal_zero) (Complex.ofRealCLM.contDiff.comp (A z).contDiff)) |
| 234 | have hF (z x : E4) : f z x=((A z x):ℂ) := rfl |
| 235 | let g := probe2 (f (p 0)) (f (p 1)); let G (z : VPair) := A (p 0) (z 0) * A (p 1) (z 1) |
| 236 | have hG (z : VPair) : g z=(G z:ℂ) := by |
| 237 | dsimp only [g,G]; rw [probe2_eq,hF,hF, ← starRingEnd_apply,Complex.conj_ofReal, ofReal_mul] |
| 238 | have hx z : CC (f z) := by |
| 239 | change HasCompactSupport (Complex.ofReal ∘ ↑(A z)); exact HasCompactSupport.comp_left ((A z).hasCompactSupport) Complex.ofReal_zero |
| 240 | have hg : HasCompactSupport ⇑g := compact_tested (hx _) (hx _) |
| 241 | have hP : HasCompactSupport G := ?_ |
| 242 | have htG : Continuous G := ?_ |
| 243 | have hpos (z : VPair) : 0 ≤ (G z)*(r z) := by |
| 244 | by_cases h : dist (z 0,z 1) P ≤ δ/2 |
| 245 | · have hp := Hd _ (h.trans_lt (by linarith)); rw [hL] at hp |
| 246 | exact mul_nonneg (mul_nonneg ((A _).nonneg) ((A _).nonneg)) hp.le |
| 247 | suffices G z=0 by rw [this,zero_mul] |
| 248 | contrapose! h |
| 249 | -- nonzero ⇒ both components in tsupport ball |
| 250 | obtain ⟨h1,h2⟩ := mul_ne_zero_iff.mp h |
| 251 | rw [← mem_support,ContDiffBump.support_eq] at h1 h2 |
| 252 | rw [Prod.dist_eq]; exact max_le (Metric.mem_ball.mp h1).le (Metric.mem_ball.mp h2).le |
| 253 | suffices H : ∫ z, G z*r z = 0 from ?_ |
| 254 | · have he := (integral_eq_zero_iff_of_nonneg_ae (ae_of_all _ hpos) |
| 255 | ((htG.mul hr).integrable_of_hasCompactSupport (hP.mul_right (f':=r)))).mp H -- precedence |
| 256 | replace he := (htG.mul hr|>.ae_eq_iff_eq volume continuous_const).mp he |
| 257 | have hx := mul_eq_zero.mp (congrFun he p) |
| 258 | have hs (x : E4) : A x x=1 := (A x).one_of_mem_closedBall (Metric.mem_closedBall.mpr (by change dist x x ≤ δ/4; simp; linarith)) |
| 259 | have : G p ≠ 0 := mul_ne_zero (show A _ _ ≠ (0:ℝ) from hs (p 0) ▸ one_ne_zero) |
| 260 | (show A _ _ ≠ (0:ℝ) from hs (p 1) ▸ one_ne_zero) |
| 261 | exact hx.elim this hi.ne' |
| 262 | · let J (z : VPair) := (star (K p)) * (K z * g z) |
| 263 | suffices H0 : ∫ z, J z=0 by |
| 264 | have ht : ∫ z,(J z).re = 0 := (show _ from (_root_.integral_re (f:=J) |
| 265 | (by apply Continuous.integrable_of_hasCompactSupport (by exact (continuous_const.mul (hc.mul g.continuous))) |
| 266 | exact HasCompactSupport.mul_left (HasCompactSupport.mul_left hg)))).trans |
| 267 | (show RCLike.re (∫ z,J z)=0 by rw [H0]; rfl) |
| 268 | convert! ht using 2 |
| 269 | ext1 x; dsimp only [r,J]; rw [hG,← mul_assoc,Complex.mul_re]; simp [mul_comm] |
| 270 | unfold J |
| 271 | erw [MeasureTheory.integral_const_mul, h _ _ (hx _) (hx _),mul_zero] |
| 272 | · dsimp only [G]; exact (((A _).continuous.comp (f:=fun q : VPair => q 0) (by fun_prop)).mul ((A _).continuous.comp (f:=fun q : VPair => q 1) (by fun_prop))) |
| 273 | refine HasCompactSupport.of_support_subset_isCompact (K:=tsupport g) hg.isCompact ?_ |
| 274 | intro x hx; apply subset_tsupport; rw [mem_support,hG,ne_eq,ofReal_eq_zero]; exact hx |
| 275 | ) |
| 276 | |
| 277 | include hm ht in |
| 278 | lemma adjusted_value (z : upper) (u v : Test4) : |
| 279 | heatTest μ u v z = ∫ r, heatPoint μ z.val r * probe2 u v r := by |
| 280 | let w x p := Probe.plane p (x 1-x 0) * damping z.val p * probe2 u v x |
| 281 | letI := hm.finite_compacts |
| 282 | have hs := hm.integrable_exp μ ht z.property |
| 283 | have hw : Integrable (uncurry w) (volume.prod μ) := by |
| 284 | apply (integrable_prod_iff (by dsimp [w,uncurry,damping]; fun_prop)).2 |
| 285 | have he x p : ‖w x p‖= Real.exp (-z.val.im * time p) * ‖probe2 u v x‖ := by simp [w] |
| 286 | simp_rw [uncurry_apply_pair] |
| 287 | refine ⟨.of_forall fun x=> (hs.mul_const _).mono' (by unfold w damping; fun_prop) (.of_forall fun p=> (he x p).le),?_⟩ |
| 288 | simp_rw [he,MeasureTheory.integral_mul_const] |
| 289 | exact (probe2 u v).integrable.norm.const_mul _ |
| 290 | |
| 291 | have hi p : paid μ u v p * damping z p=∫ r,w r p := by |
| 292 | let F (j : Fin 2) : E4 → ℂ := fun x=> Probe.plane x (![(-p),p] j) * (![Probe.bar u,v] j) x |
| 293 | have he (r : VPair) : w r p=(∏ i : Fin 2, F i (r i))*damping z p := by |
| 294 | dsimp only [w,F]; rw [probe2_eq, Fin.prod_univ_two,show r _-r _=r 1+ -(r 0) from rfl, Probe.plane_add, |
| 295 | Probe.plane_inverse,Probe.plane_dot p] |
| 296 | simp only [Matrix.cons_val_zero,Matrix.cons_val_one, Probe.bar_at]; rw [Probe.plane_inverse,Probe.plane_dot (r 0)]; ring |
| 297 | have hv : MeasurePreserving (fun x : VPair=>WithLp.ofLp x) (volume : Measure VPair) volume := Points.volume_product _ |
| 298 | let e := MeasurableEquiv.toLp 2 (Fin 2 → E4) |
| 299 | rw [(show ∫ r,w r p = (∫ (r : Fin 2 → E4), (∏ i,F i (r i))*damping z p) from by |
| 300 | rw [integral_congr_ae (ae_of_all _ he),← MeasurePreserving.integral_comp' (f:=e.symm) hv (fun r => (∏ i,F i (r i))*damping z p)]; rfl)] |
| 301 | change _ = ∫ r:Fin 2→E4, (∏ i,F i (r i))*damping z p |
| 302 | rw [MeasureTheory.integral_mul_const, integral_fin_nat_prod_volume_eq_prod, Fin.prod_univ_two] |
| 303 | dsimp [paid]; dsimp only [F]; rw [← plus_eq,← plus_eq]; change _=plus (Probe.bar u) (-p) * plus v p * _; rw [plus_bar]; simp |
| 304 | unfold heatTest; simp_rw [hi]; rw [← integral_integral_swap hw]; unfold heatPoint; simp_rw [← MeasureTheory.integral_mul_const,w] |
| 305 | |
| 306 | include hm ht in |
| 307 | lemma heatPoint_eq (e : ℝ) (hμ : ∀ f g : Test4, inner ℂ (oneWave Y (S.pin 4 (theta Y e)) f) (oneWave Y (S.pin 4 (theta Y e)) g)=∫ k,paid μ f g k ∂μ) |
| 308 | {z : ℂ} (w : z ∈ upper) (x : VPair) : |
| 309 | liftTwo Y ⟨4,theta Y e⟩ z x = heatPoint μ z x := by |
| 310 | apply sub_eq_zero.mp |
| 311 | let a:=liftTwo Y ⟨4,theta Y e⟩ z; let b := heatPoint μ z; let t := a-b |
| 312 | suffices H : t=0 from congrFun H x |
| 313 | apply product_separates |
| 314 | · have hp : Continuous a := continuousOn_univ.mp ((lift_two_cont Y _).comp (f:=fun p=> (z,p)) (by fun_prop) |
| 315 | fun p hp=>⟨w,mem_univ _⟩) |
| 316 | exact hp.sub (heatPoint_cont hm ht w) |
| 317 | intro u v hu hv |
| 318 | have hi := compact_tested hu hv |
| 319 | let J:= probe2 u v |
| 320 | have hp (f : VPair→ℂ) (he : Continuous f) : Integrable (f * (⇑J)) := (he.mul J.continuous).integrable_of_hasCompactSupport hi.mul_left |
| 321 | have hca : Continuous a := continuousOn_univ.mp ((lift_two_cont Y _).comp (f:=fun p=> (z,p)) (by fun_prop) |
| 322 | fun p hp=>⟨w,mem_univ _⟩) |
| 323 | unfold t; simp_rw [Pi.sub_apply,sub_mul] |
| 324 | erw [integral_sub (hp _ hca) (hp _ (heatPoint_cont hm ht w)), ← adjusted_value hm ht ⟨z,w⟩ u v, |
| 325 | ← tested_ordered_match Y hm ht u v hu hv e hμ w] |
| 326 | change testedTwo Y _ _ _ _ - _ = 0; exact sub_self _ |
| 327 | |
| 328 | /-- Exact Euclidean ordered two-point function on the selected phase at spatial rest, subtracting |
| 329 | `e` in each slot before passage to the shared field quotient. No unit normalization forced here. -/ |
| 330 | def restTrace (e s : ℝ) : ℂ := S.useAt (Y.α.ensemble Y.α.atPoint) |
| 331 | (points ![0,(s:ℝ) • basis timeAxis]) (fun _ : Fin 2 => ⟨4,theta Y e⟩) |
| 332 | |
| 333 | include hm ht in |
| 334 | theorem heat_eq_rest (e : ℝ) (s : ℝ) (hs : 0<s) |
| 335 | (hμ : ∀ f g : Test4, inner ℂ (oneWave Y (S.pin 4 (theta Y e)) f) (oneWave Y (S.pin 4 (theta Y e)) g)=∫ k,paid μ f g k ∂μ) : |
| 336 | restTrace Y e s = ((∫ p, Real.exp (-(s:ℝ) * time p) ∂μ):ℂ) := by |
| 337 | let x := (0 : VPair); let z := s*I |
| 338 | have hw : z ∈ upper := by simpa only [upper,mem_setOf_eq,z,mul_I_im,ofReal_re] |
| 339 | have hz := heatPoint_eq Y hm ht e hμ hw x |
| 340 | unfold liftTwo at hz |
| 341 | let times : Heights 2 := fun i => (![0,s] : Fin 2→ℝ) i |
| 342 | let O : S.Tag := ⟨4,theta Y e⟩ |
| 343 | have he := Y.realization.chosen.heat.roots 2 (fun _=> O) (Boundary.trace x) times (by |
| 344 | intro i j h; fin_cases i <;> fin_cases j <;> try contradiction |
| 345 | exact hs) |
| 346 | rw [show (fun i=>(times i:ℂ)*I) = height2 z x from ?_, hz] at he |
| 347 | swap |
| 348 | · ext1 i; fin_cases i <;> dsimp [times,height2,x,z] <;> simp |
| 349 | have hp : place (Boundary.trace x) times=points ![(0:E4),s • basis timeAxis] := PiLp.ext fun j => by |
| 350 | apply Mink.ext_by <;> fin_cases j <;> simp [place, Boundary.trace, times, points, x] |
| 351 | rw [hp] at he |
| 352 | refine he.symm.trans ?_ |
| 353 | unfold heatPoint |
| 354 | have h1 (p:E4) : Probe.plane p (x 1-x 0) * damping z p = ↑(Real.exp (-(s:ℝ)*time p)) := by |
| 355 | rw [show x 1-x 0=0 from sub_self _, Probe.plane_zero,one_mul,damping, Complex.ofReal_exp,Complex.ofReal_mul,Complex.ofReal_neg] |
| 356 | exact congr_arg _ (calc (time p:ℂ)*I*(s*I) = (time p:ℂ)*(s*(I*I)) := by ring |
| 357 | _ = _ := by rw [I_mul_I]; ring) |
| 358 | simp only [h1,integral_complex_ofReal] |
| 359 | end YM.Trace |