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.OS.Halves |
| 2 | import YM.Work.B02.Analysis |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # Differentiating true spreads |
| 7 | |
| 8 | 1. Slab interior is open and admits local uniform bounds on placements. |
| 9 | 2. The same Gram reads, with arbitrary exterior plants, realize the scalar |
| 10 | derivatives as exactly the change of label prescribed in Laws. The |
| 11 | derivative uses the quotient of S, even when the chamber is for T. |
| 12 | 3. All placements (including placements with these differentiated labels) |
| 13 | are therefore operator-norm continuous, then norm differentiable with |
| 14 | the prescribed derivative. Bootstrap to all finite orders on this open set. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | noncomputable section |
| 19 | namespace YM.Work.B02 |
| 20 | open OS Word Function Filter Set |
| 21 | open scoped Topology ContDiff NNReal InnerProductSpace BigOperators |
| 22 | |
| 23 | variable {G : Gauge} {L : Register G} {S T : Table L} |
| 24 | variable {a : Axis} {V : Chamber T a} |
| 25 | variable {n : ℕ} |
| 26 | |
| 27 | section Region |
| 28 | |
| 29 | /-- A common open domain for the placements (independent of their labels). -/ |
| 30 | def region (a : Axis) (d : ℝ≥0) (n : ℕ) : Set (Points n) := |
| 31 | {x | 0 < d ∧ x ∈ conf n ∧ ∀ i, 0 < x i a ∧ x i a < (d : ℝ)} |
| 32 | |
| 33 | theorem in_region (d : ℝ≥0) (v : Fin n → L.Token) (x : Points n) : |
| 34 | Slab a d (realize v x) ↔ x ∈ region a d n := by |
| 35 | constructor |
| 36 | · intro h |
| 37 | refine ⟨h.1, (realized v x).1 h.2.1.1, fun i => ?_⟩ |
| 38 | have hi : (x i, v i) ∈ realize v x := List.mem_ofFn.mpr ⟨i, rfl⟩ |
| 39 | exact ⟨h.2.1.2 _ hi, h.2.2 _ hi⟩ |
| 40 | rintro ⟨hd,hx,ht⟩ |
| 41 | refine ⟨hd, ⟨(realized v x).2 hx, ?_⟩, ?_⟩ |
| 42 | · intro p hp |
| 43 | obtain ⟨i, hi⟩ := List.mem_ofFn.mp hp |
| 44 | rw [← hi] |
| 45 | exact (ht i).1 |
| 46 | intro p hp |
| 47 | obtain ⟨i, hi⟩ := List.mem_ofFn.mp hp |
| 48 | rw [← hi] |
| 49 | exact (ht i).2 |
| 50 | |
| 51 | theorem region_open (d : ℝ≥0) (n : ℕ) : IsOpen (region a d n) := by |
| 52 | apply isOpen_iff_mem_nhds.mpr |
| 53 | rintro x ⟨hd,hx,ht⟩ |
| 54 | have hi i : ∀ᶠ y : Points n in 𝓝 x, 0 < y i a ∧ y i a < (d : ℝ) := by |
| 55 | have hc : ContinuousAt (fun y : Points n => y i a) x := by fun_prop |
| 56 | exact hc (Ioo_mem_nhds (ht i).1 (ht i).2) |
| 57 | filter_upwards [(conf_open n).mem_nhds hx, eventually_all.mpr hi] with y hy hiy |
| 58 | exact ⟨hd,hy,hiy⟩ |
| 59 | |
| 60 | private theorem realize_spaced (r : ℝ) (v : Fin n → L.Token) (x : Points n) : |
| 61 | spaced r (positions (realize v x)) ↔ spaced r x := by |
| 62 | let e : Fin (realize v x).length ≃ Fin n := finCongr (by simp [realize]) |
| 63 | have he i : positions (realize v x) i = x (e i) := by |
| 64 | simp [positions, realize, e, finCongr] |
| 65 | rfl |
| 66 | constructor |
| 67 | · intro h i j hne |
| 68 | have ht := h (e.symm i) (e.symm j) (e.symm.injective.ne hne) |
| 69 | simpa only [he, Equiv.apply_symm_apply] using ht |
| 70 | intro h i j hne |
| 71 | rw [he, he] |
| 72 | exact h _ _ (e.injective.ne hne) |
| 73 | |
| 74 | private theorem buffer_near (d : ℝ≥0) (r : ℝ) (v : Fin n → L.Token) |
| 75 | {x : Points n} (hr : 0 < r) (hx : buffer a r d (realize v x)) : |
| 76 | ∀ᶠ y : Points n in 𝓝 x, buffer a (r/2) d (realize v y) := by |
| 77 | have hf : r / 2 < r := by linarith |
| 78 | have ht i : ∀ᶠ y : Points n in 𝓝 x, r/2 ≤ y i a ∧ y i a ≤ (d : ℝ) - r/2 := by |
| 79 | have hi : (x i, v i) ∈ realize v x := List.mem_ofFn.mpr ⟨i,rfl⟩ |
| 80 | have hc : ContinuousAt (fun y : Points n => y i a) x := by fun_prop |
| 81 | have hh : ∀ᶠ y : Points n in 𝓝 x, y i a ∈ Ioo (r/2) ((d : ℝ) - r/2) := |
| 82 | hc (Ioo_mem_nhds (hf.trans_le (hx.2 _ hi).1) |
| 83 | ((show x i a ≤ (d : ℝ) - r from (hx.2 _ hi).2).trans_lt (sub_lt_sub_left hf _))) |
| 84 | exact hh.mono fun y hy => ⟨hy.1.le, hy.2.le⟩ |
| 85 | have hh : spaced r x := (realize_spaced r v x).1 hx.1 |
| 86 | have hs i j : ∀ᶠ y : Points n in 𝓝 x, i ≠ j → r / 2 ≤ cubedist (y i) (y j) := by |
| 87 | by_cases he : i = j |
| 88 | · exact Eventually.of_forall fun _ hn => (hn he).elim |
| 89 | have hc : ContinuousAt (fun y : Points n => cubedist (y i) (y j)) x := by fun_prop |
| 90 | have he' : ∀ᶠ y : Points n in 𝓝 x, r / 2 < cubedist (y i) (y j) := |
| 91 | hc (lt_mem_nhds (hf.trans_le (hh i j he))) |
| 92 | exact he'.mono fun _ hz _ => hz.le |
| 93 | filter_upwards [eventually_all.mpr (fun i => eventually_all.mpr (hs i)), |
| 94 | eventually_all.mpr ht] with y hy hty |
| 95 | refine ⟨(realize_spaced _ v y).2 hy, fun p hp => ?_⟩ |
| 96 | obtain ⟨i, hi⟩ := List.mem_ofFn.mp hp |
| 97 | rw [← hi] |
| 98 | exact hty i |
| 99 | |
| 100 | /-- The constant here may depend on the whole array of labels. At fixed width, |
| 101 | arity and labels, valid in a neighborhood of the given slab configuration. -/ |
| 102 | theorem place_bound (A : Spread V) (hb : A.AllCopy) (d : ℝ≥0) (v : Fin n → L.Token) |
| 103 | {x : Points n} (hx : x ∈ region a d n) : |
| 104 | ∃ C : ℝ, 0 ≤ C ∧ ∀ᶠ y : Points n in 𝓝 x, ‖A.place d (realize v y)‖ ≤ C := by |
| 105 | obtain ⟨D, R, hl, r, hr, h1, hbuf⟩ := affordable ((in_region d v x).2 hx) |
| 106 | obtain ⟨C, k, hC, hh⟩ := hb D R |
| 107 | have hva (y : Points n) : constrained D R (realize v y) := by |
| 108 | intro p hp |
| 109 | obtain ⟨i, hi⟩ := List.mem_ofFn.mp hp |
| 110 | have he : (x i, v i) ∈ realize v x := List.mem_ofFn.mpr ⟨i,rfl⟩ |
| 111 | rw [← hi] |
| 112 | exact hl (x i, v i) he |
| 113 | refine ⟨C ^ n * ((n : ℝ) / (r/2)) ^ (k*n), by positivity, ?_⟩ |
| 114 | filter_upwards [buffer_near d r v hr hbuf, (region_open d n).mem_nhds hx] with y ht hy |
| 115 | simpa only [Spread.radius, realize, List.length_ofFn] using |
| 116 | hh _ d (hva y) ((in_region d v y).2 hy) (r/2) (by positivity) (by linarith) ht |
| 117 | |
| 118 | end Region |
| 119 | |
| 120 | variable (P : DiffPlan S) (A : Spread V) (d : ℝ≥0) |
| 121 | |
| 122 | /-- Raw token after differentiating. Uses the original quotient S |
| 123 | (not the possibly further collapsed quotient T of the later chamber). -/ |
| 124 | def nextToken (p : L.Token) (j : Axis) : L.Token := |
| 125 | ⟨p.1 + 1, S.representative _ (P.deriv p.1 j (S.project p.1 p.2))⟩ |
| 126 | |
| 127 | def nextLabels (v : Fin n → L.Token) (b : Fin n × Axis) := |
| 128 | update v b.1 (nextToken P (v b.1) b.2) |
| 129 | |
| 130 | /-- In the true real Euclidean norm on Points, the finite directions |
| 131 | used to test kernels exhaust a basis. -/ |
| 132 | def columns (n : ℕ) : OrthonormalBasis (Fin n × Axis) ℝ (Points n) := |
| 133 | OrthonormalBasis.ofRepr Points.flatten |
| 134 | |
| 135 | theorem columns_eq (b : Fin n × Axis) : |
| 136 | columns n b = Points.direction b.1 b.2 := by |
| 137 | rcases b with ⟨p,a⟩ |
| 138 | apply Points.flatten.injective |
| 139 | rw [columns, OrthonormalBasis.coe_ofRepr, LinearIsometryEquiv.apply_symm_apply] |
| 140 | apply PiLp.ext |
| 141 | rintro ⟨q,j⟩ |
| 142 | by_cases hp : q = p |
| 143 | · subst q |
| 144 | simp [Points.direction, PiLp.single_apply, eq_comm] |
| 145 | simp [Points.direction, hp] |
| 146 | |
| 147 | /-- Operator-norm derivative candidate. -/ |
| 148 | def columnD (v : Fin n → L.Token) (x : Points n) : Points n →L[ℝ] V.GNS.H.Op := |
| 149 | ∑ b : Fin n × Axis, |
| 150 | ContinuousLinearMap.smulRightL ℝ (Points n) V.GNS.H.Op (innerSL ℝ (columns n b)) |
| 151 | (A.place d (realize (nextLabels P v b) x)) |
| 152 | |
| 153 | theorem columnD_column (v : Fin n → L.Token) (x : Points n) (b : Fin n × Axis) : |
| 154 | columnD P A d v x (Points.direction b.1 b.2) = |
| 155 | A.place d (realize (nextLabels P v b) x) := by |
| 156 | rw [← columns_eq b] |
| 157 | simp [columnD, (columns n).inner_eq_ite, ite_smul] |
| 158 | |
| 159 | /-- Finite local operator bound after one change of label. -/ |
| 160 | theorem columnD_bound (hb : A.AllCopy) (v : Fin n → L.Token) |
| 161 | {x : Points n} (hx : x ∈ region a d n) : |
| 162 | ∃ C : ℝ, 0 ≤ C ∧ ∀ᶠ y : Points n in 𝓝 x, ‖columnD P A d v y‖ ≤ C := by |
| 163 | have hp (b : Fin n × Axis) := place_bound A hb d (nextLabels P v b) hx |
| 164 | choose k hk h using hp |
| 165 | let l (b : Fin n × Axis) := ContinuousLinearMap.smulRightL ℝ (Points n) V.GNS.H.Op |
| 166 | (innerSL ℝ (columns n b)) |
| 167 | refine ⟨∑ b : Fin n × Axis, ‖l b‖ * k b, Finset.sum_nonneg |
| 168 | (fun b _ => mul_nonneg (norm_nonneg (l b)) (hk b)), ?_⟩ |
| 169 | filter_upwards [eventually_all.mpr h] with y hy |
| 170 | let f (b : Fin n × Axis) := A.place d (realize (nextLabels P v b) y) |
| 171 | calc |
| 172 | ‖∑ b, l b (f b)‖ ≤ ∑ b, ‖l b (f b)‖ := norm_sum_le _ _ |
| 173 | _ ≤ _ := Finset.sum_le_sum fun b _ => |
| 174 | ((l b).le_opNorm (f b)).trans (mul_le_mul_of_nonneg_left (hy b) (norm_nonneg (l b))) |
| 175 | |
| 176 | /-- Unpack the quotient derivative formula into one for T on raw labels. -/ |
| 177 | theorem raw_slot (hT : T.Symmetric) (hsm : T.Smooth) (hr : T.respects S) (hder : P.Derivatives T) |
| 178 | (v : Fin n → L.Token) (b : Fin n × Axis) {x : Points n} (hx : x ∈ conf n) : |
| 179 | Analysis.D (Points.direction b.1 b.2) (fun y => T.read y v) x = |
| 180 | T.read x (nextLabels P v b) := by |
| 181 | let w := S.classTokens ∘ v |
| 182 | let p := b.1 |
| 183 | have hs := P.derivative_slot hder hT hsm hx p w (S.project (v p).1 (v p).2) b.2 |
| 184 | have he : update w p (⟨(v p).1, S.project _ (v p).2⟩ : S.Tag) = w := |
| 185 | update_eq_self p w |
| 186 | have ht : update w p |
| 187 | (⟨(v p).1 + 1, P.deriv (v p).1 b.2 (S.project _ (v p).2)⟩ : S.Tag) = |
| 188 | S.classTokens ∘ nextLabels P v b := by |
| 189 | funext i |
| 190 | by_cases hi : i = b.1 |
| 191 | · subst i |
| 192 | simp only [nextLabels, Function.comp_apply, p, Function.update_self] |
| 193 | change _ = (⟨(v b.1).1 + 1, S.project _ (S.representative _ _)⟩ : S.Tag) |
| 194 | rw [S.rep] |
| 195 | simp [w, nextLabels, p, hi] |
| 196 | rw [ht, S.at_project T hT hr hx _, he] at hs |
| 197 | rw [hs] |
| 198 | apply Analysis.GermD |
| 199 | filter_upwards [(conf_open _).mem_nhds hx] with y hy |
| 200 | exact (S.at_project T hT hr hy v).symm |
| 201 | |
| 202 | section Insert |
| 203 | |
| 204 | variable {m : ℕ} |
| 205 | |
| 206 | private def headPoints (x : Points n) (y : Points m) : Points (n + m) := |
| 207 | points (Fin.append x.ofLp y.ofLp) |
| 208 | |
| 209 | private theorem realize_headPoints (v : Fin n → L.Token) (u : Fin m → L.Token) |
| 210 | (x : Points n) (y : Points m) : |
| 211 | realize (Fin.append v u) (headPoints x y) = realize v x ++ realize u y := by |
| 212 | unfold realize |
| 213 | rw [← List.ofFn_fin_append] |
| 214 | congr 1 |
| 215 | funext i |
| 216 | refine Fin.addCases (fun i => ?_) (fun i => ?_) i <;> simp [headPoints] |
| 217 | |
| 218 | private def headL (n m : ℕ) : Points n →L[ℝ] Points (n + m) := |
| 219 | LinearMap.toContinuousLinearMap |
| 220 | { toFun := fun x => headPoints x 0 |
| 221 | map_add' := by |
| 222 | intro x y |
| 223 | apply PiLp.ext |
| 224 | intro i |
| 225 | refine Fin.addCases (fun i => ?_) (fun i => ?_) i <;> simp [headPoints] |
| 226 | map_smul' := by |
| 227 | intro c x |
| 228 | apply PiLp.ext |
| 229 | intro i |
| 230 | refine Fin.addCases (fun i => ?_) (fun i => ?_) i <;> simp [headPoints] } |
| 231 | |
| 232 | private theorem headPoints_deriv (x : Points n) (y : Points m) : |
| 233 | HasFDerivAt (fun z : Points n => headPoints z y) (headL n m) x := by |
| 234 | rw [show (fun z : Points n => headPoints z y) = |
| 235 | fun z => headL n m z + headPoints (0 : Points n) y from ?eq] |
| 236 | · exact (headL n m).hasFDerivAt.add_const _ |
| 237 | case eq => |
| 238 | funext z |
| 239 | apply PiLp.ext |
| 240 | intro i |
| 241 | change headPoints z y i = (headPoints z (0 : Points m) + headPoints (0 : Points n) y) i |
| 242 | refine Fin.addCases (fun i => ?_) (fun i => ?_) i <;> simp [headPoints] |
| 243 | |
| 244 | private theorem headL_column (m : ℕ) (b : Fin n × Axis) : |
| 245 | headL n m (Points.direction b.1 b.2) = Points.direction (Fin.castAdd m b.1) b.2 := by |
| 246 | apply PiLp.ext |
| 247 | intro i |
| 248 | change headPoints (Points.direction b.1 b.2) (0 : Points m) i = _ |
| 249 | refine Fin.addCases ?_ ?_ i |
| 250 | · intro j |
| 251 | by_cases hj : j = b.1 <;> simp [headPoints, Points.direction, hj] |
| 252 | intro j |
| 253 | have h : Fin.natAdd n j ≠ Fin.castAdd m b.1 := by |
| 254 | intro e |
| 255 | have hv : n + j.val = b.1.val := congrArg Fin.val e |
| 256 | have hb := b.1.isLt |
| 257 | omega |
| 258 | simp [headPoints, Points.direction, h] |
| 259 | |
| 260 | private theorem nextLabels_append (v : Fin n → L.Token) (u : Fin m → L.Token) (b : Fin n × Axis) : |
| 261 | nextLabels P (Fin.append v u) (Fin.castAdd m b.1, b.2) = Fin.append (nextLabels P v b) u := by |
| 262 | funext i |
| 263 | refine Fin.addCases ?_ ?_ i |
| 264 | · intro j |
| 265 | by_cases hj : j = b.1 |
| 266 | · subst j |
| 267 | simp [nextLabels] |
| 268 | simp [nextLabels, hj] |
| 269 | intro j |
| 270 | have h : Fin.natAdd n j ≠ Fin.castAdd m b.1 := by |
| 271 | intro e |
| 272 | have hv : n + j.val = b.1.val := congrArg Fin.val e |
| 273 | have hb := b.1.isLt |
| 274 | omega |
| 275 | simp [nextLabels, h] |
| 276 | |
| 277 | /-- The exterior word stays fixed as we vary the placement's positions. -/ |
| 278 | private def exteriorWord (p q : Future L a) := |
| 279 | reflect p.val a ++ raised a d q.val |
| 280 | |
| 281 | private theorem observed_placement (hT : T.Symmetric) |
| 282 | (v : Fin n → L.Token) (x : Points n) (hx : x ∈ region a d n) (p q : Future L a) : |
| 283 | headPoints x (positions (exteriorWord d p q)) ∈ conf _ ∧ |
| 284 | observe (V.GNS.plant p) (V.GNS.plant q) (A.place d (realize v x)) = |
| 285 | T.read (headPoints x (positions (exteriorWord d p q))) (Fin.append v (tokens (exteriorWord d p q))) := by |
| 286 | let w := exteriorWord d p q |
| 287 | have hw := (in_region d v x).2 hx |
| 288 | have hP : List.Perm (reflect p.val a ++ (realize v x ++ raised a d q.val)) (realize v x ++ w) := by |
| 289 | dsimp only [w, exteriorWord] |
| 290 | rw [← List.append_assoc, ← List.append_assoc] |
| 291 | exact List.Perm.append_right _ List.perm_append_comm |
| 292 | have h := twoSides p.property (entering hw q).property |
| 293 | have hz : realize (Fin.append v (tokens w)) (headPoints x (positions w)) = realize v x ++ w := by |
| 294 | rw [realize_headPoints, rebuilt] |
| 295 | constructor |
| 296 | · apply (realized (Fin.append v (tokens w)) _).1 |
| 297 | change distinct (realize (Fin.append v (tokens w)) (headPoints x (positions w))) |
| 298 | rw [hz, locations] |
| 299 | exact (hP.map Prod.fst).nodup (locations.mp h) |
| 300 | rw [observe_apply, A.reads hw, V.GNS.measure] |
| 301 | change T.expect (reflect p.val a ++ (entering hw q).val) = _ |
| 302 | calc |
| 303 | _ = T.expect (realize v x ++ w) := (T.order hT h hP).symm |
| 304 | _ = _ := by rw [← hz, T.readAt] |
| 305 | |
| 306 | /-- Matrix-element derivative against every pair of plants. -/ |
| 307 | theorem plant_deriv (hT : T.Symmetric) (hsm : T.Smooth) (hr : T.respects S) (hder : P.Derivatives T) |
| 308 | (v : Fin n → L.Token) (x : Points n) (hx : x ∈ region a d n) (p q : Future L a) : |
| 309 | HasFDerivAt (fun y => observe (V.GNS.plant p) (V.GNS.plant q) (A.place d (realize v y))) |
| 310 | ((observe (V.GNS.plant p) (V.GNS.plant q)).comp (columnD P A d v x)) x := by |
| 311 | let Z := observe (V.GNS.plant p) (V.GNS.plant q) |
| 312 | let w := exteriorWord d p q |
| 313 | let t := Fin.append v (tokens w) |
| 314 | let put (x : Points n) := headPoints x (positions w) |
| 315 | let TY := fun y => T.read y t |
| 316 | have hput : put x ∈ conf _ := (observed_placement A d hT v x hx p q).1 |
| 317 | have hs := (T.smooth_read hsm t (put x) hput).contDiffAt ((conf_open _).mem_nhds hput) |
| 318 | let B := (fderiv ℝ TY (put x)).comp (headL n w.length) |
| 319 | have he : HasFDerivAt (fun y : Points n => TY (put y)) B x := |
| 320 | (hs.differentiableAt (by simp)).hasFDerivAt.comp x (headPoints_deriv x (positions w)) |
| 321 | have hcols (b : Fin n × Axis) : B (columns n b) = Z (columnD P A d v x (columns n b)) := by |
| 322 | rw [columns_eq, columnD_column] |
| 323 | dsimp only [B, ContinuousLinearMap.comp_apply] |
| 324 | rw [headL_column] |
| 325 | have hy := raw_slot P hT hsm hr hder t (Fin.castAdd w.length b.1, b.2) hput |
| 326 | change Analysis.D (Points.direction _ _) TY _ = _ |
| 327 | calc |
| 328 | _ = T.read (put x) (nextLabels P t (Fin.castAdd w.length b.1, b.2)) := hy |
| 329 | _ = T.read (put x) (Fin.append (nextLabels P v b) (tokens w)) := by |
| 330 | dsimp only [t] |
| 331 | rw [nextLabels_append] |
| 332 | _ = _ := (observed_placement A d hT (nextLabels P v b) x hx p q).2.symm |
| 333 | have hB : B = Z.comp (columnD P A d v x) := by |
| 334 | ext1 y |
| 335 | have heq (b : Fin n × Axis) : B (columns n b) = (Z.comp (columnD P A d v x)) (columns n b) := hcols b |
| 336 | rw [← (columns n).sum_repr y, map_sum, map_sum] |
| 337 | simp only [map_smul, heq] |
| 338 | rw [hB] at he |
| 339 | apply he.congr_of_eventuallyEq |
| 340 | filter_upwards [(region_open d n).mem_nhds hx] with y hy |
| 341 | exact (observed_placement A d hT v y hy p q).2 |
| 342 | |
| 343 | end Insert |
| 344 | |
| 345 | section Regularity |
| 346 | |
| 347 | private theorem columnD_contDiff {k : ℕ} (v : Fin n → L.Token) |
| 348 | (h : ∀ w : Fin n → L.Token, |
| 349 | ContDiffOn ℝ k (fun y => A.place d (realize w y)) (region a d n)) : |
| 350 | ContDiffOn ℝ k (columnD P A d v) (region a d n) := by |
| 351 | apply ContDiffOn.sum |
| 352 | intro b _ |
| 353 | let Lb := ContinuousLinearMap.smulRightL ℝ (Points n) V.GNS.H.Op (innerSL ℝ (columns n b)) |
| 354 | have hc : ContDiff ℝ k Lb := ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := k) |
| 355 | (E := V.GNS.H.Op) (F := Points n →L[ℝ] V.GNS.H.Op) Lb |
| 356 | exact hc.comp_contDiffOn (h _) |
| 357 | |
| 358 | variable (ht : T.Symmetric) (hs : T.Smooth) (hr : T.respects S) (hD : P.Derivatives T) |
| 359 | variable (hb : A.AllCopy) |
| 360 | include P ht hs hr hD hb |
| 361 | |
| 362 | theorem cont_place (v : Fin n → L.Token) {x : Points n} (hx : x ∈ region a d n) : |
| 363 | ContinuousAt (fun y => A.place d (realize v y)) x := by |
| 364 | obtain ⟨C, hC, hc⟩ := columnD_bound P A d hb v hx |
| 365 | apply continuousAt_of_plant_derivs V.GNS _ hC hc |
| 366 | filter_upwards [(region_open d n).mem_nhds hx] with z hz |
| 367 | exact plant_deriv P A d ht hs hr hD v z hz |
| 368 | |
| 369 | theorem deriv_place (v : Fin n → L.Token) {x : Points n} (hx : x ∈ region a d n) : |
| 370 | HasFDerivAt (fun y => A.place d (realize v y)) (columnD P A d v x) x := by |
| 371 | have hc : ContinuousOn (columnD P A d v) (region a d n) := by |
| 372 | have hh := columnD_contDiff P A d (k := 0) v fun w => |
| 373 | contDiffOn_zero.mpr fun y hy => (cont_place P A d ht hs hr hD hb w hy).continuousWithinAt |
| 374 | exact hh.continuousOn |
| 375 | apply hasFDerivAt_of_plant_derivs V.GNS _ (hc.continuousAt ((region_open d n).mem_nhds hx)) |
| 376 | filter_upwards [(region_open d n).mem_nhds hx] with z hz |
| 377 | exact plant_deriv P A d ht hs hr hD v z hz |
| 378 | |
| 379 | theorem smooth_place (v : Fin n → L.Token) : |
| 380 | ContDiffOn ℝ ∞ (fun y => A.place d (realize v y)) (region a d n) := by |
| 381 | apply contDiffOn_infty.mpr |
| 382 | intro k |
| 383 | induction k generalizing v with |
| 384 | | zero => |
| 385 | exact contDiffOn_zero.mpr fun x hx => |
| 386 | (cont_place P A d ht hs hr hD hb v hx).continuousWithinAt |
| 387 | | succ k ih => |
| 388 | push_cast |
| 389 | apply (contDiffOn_succ_iff_fderiv_of_isOpen (region_open d n)).mpr |
| 390 | have he (x : Points n) (hx : x ∈ region a d n) := deriv_place P A d ht hs hr hD hb v hx |
| 391 | exact ⟨fun x hx => (he x hx).differentiableAt.differentiableWithinAt, by simp, |
| 392 | (columnD_contDiff P A d v ih).congr (fun x hx => (he x hx).fderiv)⟩ |
| 393 | |
| 394 | end Regularity |
| 395 | end YM.Work.B02 |