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.Analysis.Polydisc |
| 2 | import YM.Bid.Station |
| 3 | import YM.PREC.Derivative |
| 4 | |
| 5 | /-! |
| 6 | # Fixed-L gap in real counting coordinates (F01) |
| 7 | |
| 8 | Use the shell comparison E02 on the actual slice, approaching 1 along real |
| 9 | exponential lines there. This sees both the coboundary and the derivative of |
| 10 | the actual predictor. Count macro costs only after fixing L. All `‖ ‖` on |
| 11 | individual colors are physical; avoid Pi-norm estimates with period costs. |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.Work.F01 |
| 16 | open Filter Function Lattice RG Wilson Precision Tree Exterior Bloch Laurent Pressure Bid Matrix |
| 17 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators NNReal InnerProductSpace |
| 18 | |
| 19 | variable {G : Gauge} {c f : Side} |
| 20 | |
| 21 | /-- Chord divided by absolute t converges at the physical normalization. -/ |
| 22 | lemma chord_limit {U : ℝ → G.El} {v : G.Color} (hU : U 0 = 1) |
| 23 | (hv : HasDerivAt (fun t => G.mat (U t)) (G.colorMat v) 0) : |
| 24 | Tendsto (fun t => ‖t‖⁻¹ * G.chord (U t)) (𝓝[≠] (0 : ℝ)) (𝓝 ‖v‖) := by |
| 25 | have hh := hv.tendsto_slope.norm.div_const G.colorScale |
| 26 | rw [G.colorMat_norm, mul_comm G.colorScale, mul_div_cancel_right₀ _ G.colorScale_pos.ne'] at hh |
| 27 | simpa only [slope_def_module, sub_zero, hU, G.mat_one, norm_smul, norm_inv, |
| 28 | Gauge.colorScale, mul_div_assoc, Gauge.chord] using hh |
| 29 | |
| 30 | /-- The full box sum (per coarse root i) overcounts port; may count |
| 31 | periodic plaquettes several times. No indicator after this point. -/ |
| 32 | lemma port_le (S : StepData c f) (U : Config G f) (i : Site c) : |
| 33 | port S i U ≤ ∑ z ∈ box (macroR S.patch), ∑ p : PlaqAxes, |
| 34 | G.chord (faceValue U (wrap f z + S.ratio.embed i, p)) := by |
| 35 | unfold port Axial.faces Axial.field |
| 36 | refine Finset.sum_le_sum fun z _ => Finset.sum_le_sum fun p _ => ?_ |
| 37 | unfold Axial.face; split |
| 38 | · exact le_of_eq (congr_arg G.chord (travel_at ..)) |
| 39 | · exact G.chord_nonneg _ |
| 40 | |
| 41 | lemma usable_near (S : StepData c f) (x : Dir G f) (k : S.Choices) (i : Site c) : |
| 42 | ∀ᶠ t : ℝ in 𝓝 0, usable S (represent (t • x)) i k := by |
| 43 | have h0 : Tendsto (fun t : ℝ => t • x) (𝓝 0) (𝓝 0) := by |
| 44 | simpa using! (show Continuous fun t : ℝ => t • x from by fun_prop).tendsto 0 |
| 45 | have hmin : ∀ᶠ t : ℝ in 𝓝 0, ∀ y : Site c, |
| 46 | S.patch.usesMin S.kernel (Push.product S y (t • x)) := |
| 47 | eventually_all.mpr fun y => h0.eventually (Push.threshold S y (G := G)) |
| 48 | filter_upwards [hmin] with t ht |
| 49 | intro y _ |
| 50 | unfold Push.product at ht |
| 51 | rw [Patch.frameMass, if_pos (show S.patch.usesMin S.kernel _ from ht _)] |
| 52 | have hp : 0 < Fintype.card S.patch.FrameTag := Fintype.card_pos |
| 53 | positivity |
| 54 | |
| 55 | lemma represent_deriv (x : Dir G f) (e : Bond f) : |
| 56 | HasDerivAt (fun t : ℝ => G.mat (represent (t • x) e)) |
| 57 | (G.colorMat (collect G x e)) 0 := by |
| 58 | simpa [linkSum, travel, Step.used, posDir, Step.read] using |
| 59 | Push.travell [posDir e.2] e.1 x |
| 60 | |
| 61 | /-- The slice shell bound (here even just the part for replica of 1) implies |
| 62 | this bound on each fine bond. `x` vanishes on the same tree as in that input. -/ |
| 63 | lemma link_bound (S : StepData c f) (h : S.patch.Branches S.kernel G) |
| 64 | (H : Forest S.ratio) (k : S.Choices) (x : Dir G f) |
| 65 | (hx : ∀ e ∈ H.trunks, collect G x e = 0) |
| 66 | (C : ℝ) (hC : 0 ≤ C) (e : Bond f) |
| 67 | (hcops : ∀ U : Config G f, Stores.SliceSet S H U → usable S U (S.ratio.parent e.1) k → |
| 68 | Cops (S := S) U 1 (S.prediction U k) e C) : |
| 69 | ‖collect G x e‖ ≤ C * (∑ z ∈ box (macroR S.patch), ∑ p : PlaqAxes, |
| 70 | ‖dColor G f 1 x (wrap f z + S.ratio.embed (S.ratio.parent e.1), plaquette p)‖) + |
| 71 | ‖bills S x (S.ratio.parent e.1, coord e.2)‖ := by |
| 72 | let U := fun t : ℝ => represent (t • x) |
| 73 | have hu : U 0 = 1 := by simp [U] |
| 74 | let i := S.ratio.parent e.1 |
| 75 | let edge : Bond c := (i, e.2) |
| 76 | let loc := fun z : Cover => wrap f z + S.ratio.embed i |
| 77 | let X := box (macroR S.patch) |
| 78 | have he := chord_limit (U := fun t => U t e) (by rw [hu]; rfl) (represent_deriv x e) |
| 79 | have hp := chord_limit (U := fun t => S.prediction (U t) k edge) |
| 80 | (by rw [hu]; exact Push.settled S h edge k) (Push.prices S h edge k x) |
| 81 | have hs (z : Cover) (p : PlaqAxes) : |
| 82 | Tendsto (fun t => ‖t‖⁻¹ * G.chord (faceValue (U t) (loc z,p))) |
| 83 | (𝓝[≠] (0 : ℝ)) (𝓝 ‖dColor G f 1 x (loc z, plaquette p)‖) := by |
| 84 | apply chord_limit |
| 85 | · unfold U faceValue; rw [zero_smul]; exact Push.stroll_zero _ _ |
| 86 | · rw [← fundamental]; exact Push.travell _ _ _ |
| 87 | have ht : Tendsto (fun t => ∑ z ∈ X, ∑ p : PlaqAxes, |
| 88 | ‖t‖⁻¹ * G.chord (faceValue (U t) (loc z,p))) (𝓝[≠] (0 : ℝ)) |
| 89 | (𝓝 (∑ z ∈ X, ∑ p : PlaqAxes, ‖dColor G f 1 x (loc z,plaquette p)‖)) := by |
| 90 | apply tendsto_finsetSum; intro z _; exact tendsto_finsetSum _ fun p _ => hs z p |
| 91 | apply le_of_tendsto_of_tendsto he ((ht.const_mul C).add hp) |
| 92 | filter_upwards [(usable_near S x k i).filter_mono nhdsWithin_le_nhds] with t ht' |
| 93 | have htree : Stores.SliceSet S H (U t) := by |
| 94 | intro u hub |
| 95 | change G.lieExp (t • (collect G x u)) * (1:G.El) = _ |
| 96 | rw [hx u hub, smul_zero, G.mat_lieExp_zero, mul_one] |
| 97 | have ha := hcops (U t) htree ht' |
| 98 | have ha' : G.chord ((U t) e) ≤ C * port S i (U t) + G.chord (S.prediction (U t) k edge) := by |
| 99 | unfold Cops at ha |
| 100 | simp only [replica_one, wire, Pi.one_apply, inv_one, mul_one, one_mul, G.chord_inv] at ha |
| 101 | split at ha |
| 102 | · exact ha.trans (add_le_add_right (G.chord_nonneg _) _) |
| 103 | · exact ha |
| 104 | change ‖t‖⁻¹ * G.chord ((U t) e) ≤ C * (∑ z ∈ X, ∑ p : PlaqAxes, |
| 105 | ‖t‖⁻¹ * G.chord (faceValue (U t) (loc z,p))) + ‖t‖⁻¹ * G.chord (S.prediction (U t) k edge) |
| 106 | have hh := ha'.trans (add_le_add_left (mul_le_mul_of_nonneg_left (port_le S (U t) i) hC) _) |
| 107 | apply (mul_le_mul_of_nonneg_left hh (show 0 ≤ ‖t‖⁻¹ by positivity)).trans_eq |
| 108 | simp only [mul_add, mul_left_comm ‖t‖⁻¹ C, Finset.mul_sum, X, loc] |
| 109 | |
| 110 | private lemma sum_comp_le {α β : Type*} [Fintype α] [Fintype β] (t : α → β) |
| 111 | (ht : Injective t) (F : β → ℝ) (hF : ∀ i, 0 ≤ F i) : |
| 112 | ∑ i, F (t i) ≤ ∑ i, F i := by |
| 113 | classical |
| 114 | let m : Finset β := Finset.univ.image t |
| 115 | calc |
| 116 | _ = ∑ i ∈ m, F i := by unfold m; rw [Finset.sum_image]; intro i _ j _ e; exact ht e |
| 117 | _ ≤ _ := Finset.sum_le_sum_of_subset_of_nonneg (Finset.subset_univ m) fun i _ _ => hF i |
| 118 | |
| 119 | lemma sum_parent (g : Ratio c f) (F : Site c → ℝ) : |
| 120 | ∑ i : Site f, F (g.parent i) = (Fintype.card (Site g.count):ℝ) * ∑ i, F i := by |
| 121 | calc |
| 122 | _ = ∑ i : Site c × Site g.count, F i.1 := g.splitSites.sum_comp fun i => F i.1 |
| 123 | _ = _ := by rw [Fintype.sum_prod_type]; simp [Finset.mul_sum] |
| 124 | |
| 125 | lemma sum_parent_bond (g : Ratio c f) (F : Bond c → ℝ) : |
| 126 | ∑ e : Bond f, F (g.parent e.1, e.2) = (Fintype.card (Site g.count):ℝ) * ∑ e, F e := by |
| 127 | rw [Fintype.sum_prod_type, Fintype.sum_prod_type]; exact sum_parent g (fun i => ∑ j, F (i,j)) |
| 128 | |
| 129 | private lemma cauchy {α : Type*} (s : Finset α) (F : α → ℝ) : |
| 130 | (∑ z ∈ s, F z)^2 ≤ (s.card:ℝ) * ∑ z ∈ s, (F z)^2 := by |
| 131 | simpa using Finset.sum_mul_sq_le_sq_mul_sq s (fun _ => (1:ℝ)) F |
| 132 | |
| 133 | /-- For each macro-sum square, pay `(box card) * (plaq card)`, and for |
| 134 | its share in the sum over coarse sites pay another `box card`. The latter |
| 135 | comes from injectivity in the *coarse site*, not in the offset. -/ |
| 136 | lemma sum_ports_sq (g : Ratio c f) (X : Finset Cover) (F : Body 2 f → ℝ) : |
| 137 | ∑ i : Site c, (∑ z ∈ X, ∑ p : PlaqAxes, F (wrap f z + g.embed i, plaquette p))^2 ≤ |
| 138 | ((X.card:ℝ) * (Fintype.card PlaqAxes:ℝ)) * ((X.card:ℝ) * ∑ b : Body 2 f, F b ^ 2) := by |
| 139 | let D (i : Site c) (z : Cover) (p : PlaqAxes) := F (wrap f z + g.embed i, plaquette p) |
| 140 | let M : ℝ := Fintype.card PlaqAxes |
| 141 | let N : ℝ := X.card |
| 142 | have h (i : Site c) : (∑ z ∈ X, ∑ p : PlaqAxes, D i z p)^2 ≤ |
| 143 | (N*M) * ∑ z ∈ X, ∑ p, D i z p ^ 2 := by |
| 144 | calc |
| 145 | _ ≤ N * ∑ z ∈ X, (∑ p, D i z p)^2 := cauchy X _ |
| 146 | _ ≤ N * ∑ z ∈ X, (M * ∑ p, D i z p^2) := by |
| 147 | apply mul_le_mul_of_nonneg_left (Finset.sum_le_sum (fun z _ => ?_)) (by unfold N; positivity) |
| 148 | simpa only [M, Finset.card_univ] using cauchy Finset.univ (D i z) |
| 149 | _ = _ := by rw [← Finset.mul_sum, mul_assoc] |
| 150 | have ht (z : Cover) : (∑ i, ∑ p, D i z p ^ 2) ≤ ∑ b : Body 2 f, F b^2 := by |
| 151 | let k (a : Site c × PlaqAxes) : Body 2 f := (wrap f z + g.embed a.1, plaquette a.2) |
| 152 | have hk : Injective k := by |
| 153 | intro i j e |
| 154 | exact Prod.ext (g.embed_injective (add_left_cancel (congr_arg Prod.fst e))) |
| 155 | (plaqEquiv.injective (congr_arg Prod.snd e)) |
| 156 | have hh := sum_comp_le k hk (fun b => F b ^ 2) (fun _ => sq_nonneg _) |
| 157 | rw [Fintype.sum_prod_type] at hh |
| 158 | exact hh |
| 159 | calc |
| 160 | _ ≤ ∑ i, (N*M)*(∑ z ∈ X, ∑ p, D i z p^2) := Finset.sum_le_sum fun i _ => h i |
| 161 | _ = (N*M) * ∑ z ∈ X, ∑ i, ∑ p, D i z p ^ 2 := by rw [← Finset.mul_sum, Finset.sum_comm] |
| 162 | _ ≤ (N*M) * ∑ _z ∈ X, ∑ b : Body 2 f, F b ^ 2 := by |
| 163 | apply mul_le_mul_of_nonneg_left (Finset.sum_le_sum fun z _ => ht z) |
| 164 | unfold N M; positivity |
| 165 | _ = _ := by rw [Finset.sum_const, nsmul_eq_mul] |
| 166 | |
| 167 | /-- Coefficients are deliberately after L; count positive-axis bonds only. -/ |
| 168 | def curlFactor (L : Side) (X : Finset Cover) (C : ℝ) : ℝ := |
| 169 | (2 * C^2) * (Fintype.card (Site L):ℝ) * (Fintype.card Axis:ℝ) * |
| 170 | ((X.card:ℝ) * (Fintype.card PlaqAxes:ℝ)) * (X.card:ℝ) |
| 171 | |
| 172 | def probeFactor (L : Side) : ℝ := 2 * (Fintype.card (Site L):ℝ) |
| 173 | |
| 174 | lemma sum_estimate (g : Ratio c f) (X : Finset Cover) (F : Body 2 f → ℝ) (Y : Body 1 c → ℝ) |
| 175 | (u : Bond f → ℝ) (C : ℝ) (hu : ∀ e, 0 ≤ u e) |
| 176 | (ht : ∀ e, u e ≤ C * (∑ z ∈ X, ∑ p : PlaqAxes, F (wrap f z + g.embed (g.parent e.1), plaquette p)) + |
| 177 | Y (g.parent e.1, coord e.2)) : |
| 178 | ∑ e : Bond f, u e ^ 2 ≤ curlFactor g.count X C * (∑ b, F b ^ 2) + |
| 179 | probeFactor g.count * (∑ b, Y b ^ 2) := by |
| 180 | let Z (i : Site c) := ∑ z ∈ X, ∑ p : PlaqAxes, F (wrap f z + g.embed i, plaquette p) |
| 181 | let Q : ℝ := Fintype.card (Site g.count) |
| 182 | let m : ℝ := Fintype.card Axis |
| 183 | have he (e : Bond f) : u e ^ 2 ≤ (2*C^2) * Z (g.parent e.1)^2 + 2*Y (g.parent e.1, coord e.2)^2 := by |
| 184 | let i := g.parent e.1; let y := Y (i, coord e.2) |
| 185 | calc |
| 186 | _ ≤ (C*Z i + y)^2 := pow_le_pow_left₀ (hu _) (ht _) _ |
| 187 | _ ≤ (2*C^2) * Z i ^ 2 + 2*y^2 := by nlinarith only [sq_nonneg (C*Z i - y)] |
| 188 | have hports : ∑ e : Bond f, Z (g.parent e.1)^2 = Q * (m * ∑ i, Z i ^ 2) := by |
| 189 | calc |
| 190 | _ = Q * ∑ e : Bond c, Z e.1 ^ 2 := sum_parent_bond g (fun e => Z e.1 ^ 2) |
| 191 | _ = Q * (m * ∑ i, Z i ^ 2) := by rw [Fintype.sum_prod_type]; simp [Finset.mul_sum, m] |
| 192 | have hprobe : ∑ e : Bond f, Y (g.parent e.1, coord e.2)^2 = Q * ∑ b, Y b ^ 2 := by |
| 193 | have hy : ∑ e : Bond c, Y (e.1, coord e.2)^2 = ∑ b, Y b ^ 2 := |
| 194 | (Equiv.prodCongr (Equiv.refl (Site c)) axisEquiv).sum_comp (fun b => Y b ^ 2) |
| 195 | exact (sum_parent_bond g (fun e => Y (e.1, coord e.2)^2)).trans (congr_arg (Q * ·) hy) |
| 196 | have hp : (2*C^2)*∑ e : Bond f, Z (g.parent e.1)^2 ≤ curlFactor g.count X C * ∑ b, F b ^ 2 := by |
| 197 | rw [hports, ← mul_assoc, ← mul_assoc] |
| 198 | apply (mul_le_mul_of_nonneg_left (sum_ports_sq g X F) ?_).trans_eq |
| 199 | · unfold curlFactor Q m; simp only [mul_assoc] |
| 200 | · unfold Q m; positivity |
| 201 | calc |
| 202 | _ ≤ ∑ e : Bond f, ((2*C^2)*Z (g.parent e.1)^2 + 2*Y (g.parent e.1, coord e.2)^2) := |
| 203 | Finset.sum_le_sum fun i _ => he i |
| 204 | _ ≤ _ := by |
| 205 | rw [Finset.sum_add_distrib, ← Finset.mul_sum, ← Finset.mul_sum, hprobe, ← mul_assoc 2 Q] |
| 206 | exact add_le_add_left hp _ |
| 207 | |
| 208 | section Hessian |
| 209 | |
| 210 | /-- On the vertical directions the copied part of stretch vanishes. -/ |
| 211 | lemma collect_vertical {S : StepData c f} (H : Forest S.ratio) (v : AxisChart G H) (e : Bond f) : |
| 212 | collect G (stretch (S:=S) H (0, v)) e = if h : e ∈ H.trunks then 0 else v ⟨e,h⟩ := by |
| 213 | cases e with | mk u i => |
| 214 | have hi : axisEquiv.symm (coord i) = i := axisEquiv.symm_apply_apply _ |
| 215 | simp only [collect, stretch, linearCopy, Pi.zero_apply, hi, ite_self, zero_add] |
| 216 | |
| 217 | /-- Coboundary energy including the floor. Counting over all sites and colors. -/ |
| 218 | lemma curl_floor {B : Bed} {p : Clip} {a A : ℝ} (h : Floor B p f a A) (x : Dir G f) : |
| 219 | a * (∑ b, ‖dColor G f 1 x b‖^2) ≤ gaugeFiscal B x x := by |
| 220 | let F (i : G.ColorIndex) := parts G 1 x i |
| 221 | let D (i : G.ColorIndex) := d 1 f *ᵥ F i |
| 222 | have he (i : G.ColorIndex) : dotProduct (F i) (Precision.K (B.metric.acts f) *ᵥ F i) = |
| 223 | dotProduct (D i) ((B.metric.acts f) *ᵥ D i) := by |
| 224 | simp only [Precision.K, D, ← Matrix.mulVec_mulVec] |
| 225 | rw [Matrix.dotProduct_transpose_mulVec, dotProduct_comm] |
| 226 | have hs : ∑ b, ‖dColor G f 1 x b‖^2 = ∑ i : G.ColorIndex, dotProduct (D i) (D i) := by |
| 227 | simp_rw [EuclideanSpace.real_norm_sq_eq]; rw [Finset.sum_comm] |
| 228 | simp only [F, D, dColor, dotProduct, WithLp.ofLp_toLp, pow_two] |
| 229 | rw [hs, Finset.mul_sum] |
| 230 | exact Finset.sum_le_sum fun i _ => ((h.uniform.1 (D i)).1).trans_eq (he i).symm |
| 231 | |
| 232 | /-- Restrict the Hessian of the tested germ to the vertical chart. -/ |
| 233 | lemma vertical_hessian {S : StepData c f} (H : Forest S.ratio) (k : S.Choices) |
| 234 | {p : Clip} {W : PathData G} (h : Prismatic H p W) (v : AxisChart G H) : |
| 235 | iteratedFDeriv ℝ 2 (tested H k p W 0) 0 ![v,v] = |
| 236 | iteratedFDeriv ℝ 2 (Function.uncurry (tested H k p W)) 0 ![(0,v),(0,v)] := by |
| 237 | let F := Function.uncurry (tested H k p W) |
| 238 | let L := ContinuousLinearMap.inr ℝ (Dir G c) (AxisChart G H) |
| 239 | obtain ⟨s,hs,hF⟩ := (h k).contDiffOn (m := ω) le_rfl (fun _ => rfl) |
| 240 | obtain ⟨u,hus,hu,h0⟩ := mem_nhds_iff.mp hs |
| 241 | have ht : IsOpen (L ⁻¹' u) := L.continuous.isOpen_preimage _ hu |
| 242 | have hv : L 0 ∈ u := by rw [map_zero]; exact h0 |
| 243 | have hf : ContDiffOn ℝ ω F u := hF.mono hus |
| 244 | have he := L.iteratedFDerivWithin_comp_right hf (hu.uniqueDiffOn) (ht.uniqueDiffOn) hv (i := 2) (by simp) |
| 245 | rw [iteratedFDerivWithin_of_isOpen _ hu hv, iteratedFDerivWithin_of_isOpen _ ht hv, map_zero] at he |
| 246 | change iteratedFDeriv ℝ 2 (F ∘ L) 0 _ = _ |
| 247 | rw [he, ContinuousMultilinearMap.compContinuousLinearMap_apply] |
| 248 | congr 1 |
| 249 | funext i |
| 250 | fin_cases i <;> rfl |
| 251 | |
| 252 | lemma hess_lower {S : StepData c f} (H : Forest S.ratio) (k : S.Choices) |
| 253 | {B : Bed} {p : Clip} {W : PathData G} {a A : ℝ} (hF : Floor B p f a A) |
| 254 | (h : Prismatic H p W) (hc : Comptroller H B p W) (v : AxisChart G H) : |
| 255 | let x := stretch (S:=S) H (0, v) |
| 256 | a * (∑ b, ‖dColor G f 1 x b‖^2) + S.kernel.penalty * (∑ b, ‖bills S x b‖^2) ≤ |
| 257 | iteratedFDeriv ℝ 2 (tested H k p W 0) 0 ![v,v] := by |
| 258 | intro x |
| 259 | rw [vertical_hessian H k h, (hc k).2.2] |
| 260 | have he : crop (S:=S) H (0,v) = -bills S x := zero_sub _ |
| 261 | rw [he] |
| 262 | simp only [Pi.neg_apply, real_inner_self_eq_norm_sq, norm_neg]; exact add_le_add_left (curl_floor hF x) _ |
| 263 | |
| 264 | end Hessian |
| 265 | |
| 266 | theorem answer : YM.Bid.F01 := by |
| 267 | intro hE G L j K a ha |
| 268 | obtain ⟨C,hC,hcomp⟩ := hE G L j K |
| 269 | let X := box ((j+3)*L.val + 4*L.val) |
| 270 | let β := curlFactor L X C |
| 271 | let γ := probeFactor L |
| 272 | have hb : 0 ≤ β := by unfold β curlFactor; positivity |
| 273 | have hh : 0 ≤ γ := by unfold γ probeFactor; positivity |
| 274 | let η := min a K.penalty / (1+β+γ) |
| 275 | have hp : 0 < K.penalty := K.penalty_pos |
| 276 | have hη : 0 < η := div_pos (lt_min ha hp) (by positivity) |
| 277 | have hprices : η*β ≤ a ∧ η*γ ≤ K.penalty := by |
| 278 | have he : η*(1+β+γ)=min a K.penalty := div_mul_cancel₀ _ (by positivity) |
| 279 | constructor |
| 280 | · exact ((mul_le_mul_of_nonneg_left (show β ≤ 1+β+γ by linarith) hη.le).trans_eq he).trans (min_le_left ..) |
| 281 | · exact ((mul_le_mul_of_nonneg_left (show γ ≤ 1+β+γ by linarith) hη.le).trans_eq he).trans (min_le_right ..) |
| 282 | refine ⟨η,hη,?_⟩ |
| 283 | intro c f S hk hl hj hs H B p W A hF hP hc k v |
| 284 | let x := stretch (S:=S) H (0, v) |
| 285 | let D := ∑ b, ‖dColor G f 1 x b‖^2 |
| 286 | let Q := ∑ i, ‖bills S x i‖^2 |
| 287 | let u := fun e => ‖collect G x e‖ |
| 288 | have hd : 0 ≤ D := Finset.sum_nonneg fun _ _ => sq_nonneg _ |
| 289 | have hq : 0 ≤ Q := Finset.sum_nonneg fun _ _ => sq_nonneg _ |
| 290 | have hX : X = box (macroR S.patch) := by unfold X macroR Patch.radius; rw [hl,hj] |
| 291 | have hx : ∀ e ∈ H.trunks, collect G x e = 0 := fun e he => (collect_vertical H v e).trans (dif_pos he) |
| 292 | have hall : ∑ e : Bond f, u e ^ 2 ≤ β*D + γ*Q := by |
| 293 | have hw : L = S.ratio.count := hl.symm |
| 294 | have hL := fun e => link_bound S hs.1 H k x hx C hC.le e |
| 295 | (fun U hu hv => hcomp c f S hk hl hj hs.2.1 hs.2.2 H U hu 1 e k hv) |
| 296 | change _ ≤ curlFactor L X C * D + probeFactor L * Q |
| 297 | rw [hX, hw] |
| 298 | exact sum_estimate S.ratio _ (fun b => ‖dColor G f 1 x b‖) (fun b => ‖bills S x b‖) u C |
| 299 | (fun e => norm_nonneg _) hL |
| 300 | have hm : ∑ i : H.Free, ‖v i‖^2 ≤ ∑ e : Bond f, u e ^ 2 := by |
| 301 | have he (i : H.Free) : u i.val = ‖v i‖ := by |
| 302 | change ‖collect G (stretch (S:=S) H (0,v)) _‖ = _ |
| 303 | rw [collect_vertical, dif_neg i.property] |
| 304 | simp_rw [← he] |
| 305 | exact sum_comp_le (fun i : H.Free => i.val) Subtype.val_injective (fun i => u i ^ 2) (fun i => sq_nonneg _) |
| 306 | apply (mul_le_mul_of_nonneg_left (hm.trans hall) hη.le).trans |
| 307 | have Hh : a*D + K.penalty*Q ≤ iteratedFDeriv ℝ 2 (tested H k p W 0) 0 ![v,v] := by |
| 308 | rw [← hk]; exact hess_lower H k hF hP hc v |
| 309 | apply le_trans ?_ Hh |
| 310 | rw [mul_add, ← mul_assoc, ← mul_assoc] |
| 311 | exact add_le_add (mul_le_mul_of_nonneg_right hprices.1 hd) (mul_le_mul_of_nonneg_right hprices.2 hq) |
| 312 | |
| 313 | end YM.Work.F01 |