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.Bid.Energy |
| 2 | import YM.Corona.Spend |
| 3 | import YM.TimeKernel.Trace |
| 4 | import YM.Vac.Treasury |
| 5 | |
| 6 | |
| 7 | /-! |
| 8 | # E08: chord size on unaffected cones at post-L costs. |
| 9 | |
| 10 | Work with the same tags and actual input/output fields. Use the total |
| 11 | axial edge bound on a box in the coarse cover, allowing polynomial |
| 12 | loss; no regularity across sectors is needed. |
| 13 | -/ |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.Work.E08 |
| 17 | |
| 18 | open Filter Function Lattice RG RG.Patch Axial Wilson Finset Precision Tree |
| 19 | open Pressure Pressure.Stores Pressure.Teller Bid |
| 20 | open scoped Topology Matrix.Norms.Frobenius BigOperators |
| 21 | |
| 22 | /-! Numerics are for fixed post-L parameters. -/ |
| 23 | |
| 24 | lemma eventual_radiusB (k : ℕ) : ∀ᶠ x : ℝ in atTop, k ≤ radiusB x := by |
| 25 | filter_upwards [Real.tendsto_log_atTop.eventually_ge_atTop ((k:ℝ)+1)] with x hx |
| 26 | have hk : (k:ℝ) ≤ (Real.log x)^2 := by nlinarith only [hx, Nat.cast_nonneg (α:=ℝ) k] |
| 27 | exact_mod_cast hk.trans (Nat.le_ceil _) |
| 28 | |
| 29 | lemma eventual_fiery (G : Gauge) (L : Side) (C : ℝ) : |
| 30 | ∀ᶠ x : ℝ in atTop, C * fiery G x L ≤ largeT G x L := by |
| 31 | let e : ℝ := 1/200 |
| 32 | have he : 0 < e := by unfold e; norm_num |
| 33 | have ht : Tendsto (fun x => betaF G x L) atTop atTop := |
| 34 | tendsto_atTop_add_const_right _ _ tendsto_id |
| 35 | have hc := ht.eventually (Vac.Numbers.cost 1 e he) |
| 36 | filter_upwards [hc, ht.eventually_gt_atTop 0, |
| 37 | ht.eventually ((tendsto_rpow_atTop he).eventually_ge_atTop C)] with x hx hpos hC |
| 38 | let s := betaF G x L |
| 39 | have hs : 0 < s := hpos |
| 40 | have hP : Vac.Numbers.P s ≤ s^e := by simpa only [Real.rpow_one] using hx |
| 41 | change C ≤ s^e at hC |
| 42 | have hi : (Real.sqrt s)⁻¹ = s^(-(1/2:ℝ)) := by rw [Real.rpow_neg hs.le,Real.sqrt_eq_rpow] |
| 43 | change C * ((Real.sqrt s)⁻¹ * Vac.Numbers.P s) ≤ ((Real.sqrt s)⁻¹) ^ ((98:ℝ)/100) |
| 44 | rw [hi, ← Real.rpow_mul hs.le] |
| 45 | rw [mul_left_comm C] |
| 46 | apply (mul_le_mul_of_nonneg_left |
| 47 | (mul_le_mul hC hP (Real.exp_pos _).le (by positivity)) (by positivity : 0 ≤ s ^ (-(1/2:ℝ)))).trans |
| 48 | rw [← Real.rpow_add hs, ← Real.rpow_add hs, show -(1/2:ℝ)+(e+e) = -(1/2:ℝ)*(98/100) by unfold e; norm_num] |
| 49 | |
| 50 | variable {n c f : Side} {G : Gauge} |
| 51 | |
| 52 | lemma separation_box_add (x : Site n) {i : Cover} {r} (h : i ∈ box r) : |
| 53 | separation x (wrap n i + x) ≤ r := by |
| 54 | rw [separation_comm, separation, add_sub_cancel_right] |
| 55 | obtain ⟨h1,h2⟩ := box_test.mp h |
| 56 | apply Finset.sup_le |
| 57 | intro a _ |
| 58 | apply (Corona.lap i a).trans |
| 59 | have := h1 a; have := h2 a; omega |
| 60 | |
| 61 | lemma lift_mem_box {x y : Site n} {r} (h : separation x y ≤ r) : lift (y-x) ∈ box r := by |
| 62 | rw [separation_comm, separation] at h |
| 63 | rw [box_test] |
| 64 | constructor <;> intro i <;> have he := (component_le (y-x) i).trans h <;> omega |
| 65 | |
| 66 | lemma faces_expand_le (o : Site n) (U : Config G n) (r : ℕ) (q : ℝ) (hq : 0 ≤ q) |
| 67 | (h : ∀ x ∈ box r, ∀ p : PlaqAxes, toll U (wrap n x + o,p) ≤ q) : |
| 68 | faces (box r) (expandAt o U) ≤ (2*(r:ℝ)+1)^4 * (Fintype.card PlaqAxes:ℝ) * q := by |
| 69 | unfold faces field |
| 70 | calc |
| 71 | _ ≤ ∑ _x ∈ box r, ∑ _p : PlaqAxes, q := by |
| 72 | refine Finset.sum_le_sum fun x hx => Finset.sum_le_sum fun p _ => ?_ |
| 73 | unfold face; split |
| 74 | · unfold faceValue; rw [travel_at]; exact h x hx p |
| 75 | exact hq |
| 76 | _ = _ := by |
| 77 | simp only [Finset.sum_const,Finset.card_univ,nsmul_eq_mul, Corona.box_size] |
| 78 | push_cast; ring |
| 79 | |
| 80 | /-- Descend the cover estimate to bonds in a strictly smaller periodic patch. |
| 81 | Pay the total edge bound even for an individual bond. -/ |
| 82 | lemma axial_patch (o : Site n) (U : Config G n) (d r : ℕ) (hdr : d + 1 ≤ r) |
| 83 | (hsize : 2*r < n.val) (q : ℝ) (hq : 0 ≤ q) |
| 84 | (hface : ∀ y : Site n, separation o y ≤ r → ∀ p : PlaqAxes, toll U (y,p) ≤ q) : |
| 85 | ∃ z : Site n → G.El, ∀ b : Bond n, separation o b.1 ≤ d → |
| 86 | G.chord (Lattice.gauge z U b) ≤ |
| 87 | 16*(2*(r:ℝ)+1)^5 * (Fintype.card PlaqAxes:ℝ) * q := by |
| 88 | let l := allAxes (1:Lattice.Order) |
| 89 | let X := box r |
| 90 | let V := expandAt o U |
| 91 | obtain ⟨a,-,ha⟩ := Axial.existence l r 0 V |
| 92 | ((List.nodup_finRange _).map (1:Lattice.Order).injective) (center_box r) |
| 93 | let H := traveller l V a |
| 94 | have hl : slab r 0 l = box r := by |
| 95 | have h (i : Axis) : i ∈ l := List.mem_map.mpr ⟨i,List.mem_finRange i,rfl⟩ |
| 96 | ext i; simp [slab_iff,h] |
| 97 | rw [hl,card_layers, show l.length=4 by simp [l,allAxes]] at ha |
| 98 | push_cast at ha |
| 99 | have hsum : edges X (gauge H V) ≤ |
| 100 | 16*(2*(r:ℝ)+1)^5 * (Fintype.card PlaqAxes:ℝ) * q := by |
| 101 | apply ha.trans |
| 102 | apply (mul_le_mul_of_nonneg_left |
| 103 | (faces_expand_le o U r q hq (fun x hx p => hface _ (separation_box_add o hx) p)) |
| 104 | (by positivity)).trans_eq |
| 105 | ring |
| 106 | let z := fun y : Site n => H (lift (y-o)) |
| 107 | have hH (x : Cover) (hx : x ∈ box r) : z (wrap n x + o) = H x := by |
| 108 | unfold z; rw [add_sub_cancel_right] |
| 109 | apply congrArg H |
| 110 | apply lift_eq_iff.mpr ⟨rfl,?_⟩ |
| 111 | intro j |
| 112 | have hi := (box_test.mp hx).1 j |
| 113 | have hj := (box_test.mp hx).2 j |
| 114 | omega |
| 115 | refine ⟨z,fun ⟨b,i⟩ hd => ?_⟩ |
| 116 | let x := lift (b-o) |
| 117 | have hx : x∈box d := lift_mem_box hd |
| 118 | obtain ⟨hb,hb'⟩ := box_test.mp hx |
| 119 | have h1 : x ∈ X := box_test.mpr ⟨fun j => by have := hb j; omega,fun j => by have := hb' j; omega⟩ |
| 120 | have h2 : x + step i ∈ X := by |
| 121 | unfold X; rw [box_test] |
| 122 | constructor <;> intro j <;> simp only [Pi.add_apply,step_apply] <;> |
| 123 | split <;> have ho := hb j <;> have ho' := hb' j <;> omega |
| 124 | have hy : wrap n x + o = b := by unfold x; rw [wrap_lift,sub_add_cancel] |
| 125 | calc |
| 126 | _ = G.chord (expandAt o (Lattice.gauge z U) (x,i)) := by simp only [expandAt,hy] |
| 127 | _ = perEdge X (Lattice.gauge H V) x i := by |
| 128 | rw [expandAt_gauge] |
| 129 | simp only [Lattice.gauge,perEdge,if_pos h2,hH x h1,hH _ h2,V] |
| 130 | _ ≤ ∑ j : Axis, perEdge X (Lattice.gauge H V) x j := Finset.single_le_sum |
| 131 | (f:=perEdge X (Lattice.gauge H V) x) (fun _ _ => per_nn ..) (Finset.mem_univ i) |
| 132 | _ ≤ edges X (Lattice.gauge H V) := Finset.single_le_sum |
| 133 | (f:=fun x => ∑ j : Axis, perEdge X (Lattice.gauge H V) x j) |
| 134 | (fun _ _ => Finset.sum_nonneg fun _ _ => per_nn ..) h1 |
| 135 | _ ≤ _ := hsum |
| 136 | |
| 137 | variable {S : StepData c f} {x w : ℝ} |
| 138 | variable {A : Stores S} {U : Config G f} {k : S.Choices} {V : Config G c} {p : Cell c} |
| 139 | |
| 140 | lemma out_near_dome (hp : p ∈ A.outs x) {y} (hy : separation p.1 y ≤ 4*radiusB x/5) : |
| 141 | y ∈ A.dome (5*radiusB x) := by |
| 142 | have h0 := (Finset.mem_filter.mp hp).2 |
| 143 | obtain ⟨z,hz,hzp⟩ := halo_spec.mp h0 |
| 144 | refine halo_spec.mpr ⟨z,hz,?_⟩ |
| 145 | have h := separation_triangle z p.1 y |
| 146 | omega |
| 147 | |
| 148 | /-- Nearby fine plaquette roots (projected) and noise bond roots have |
| 149 | size ≤ largeT. Use Plot where not listed and exploit spend where listed. -/ |
| 150 | lemma unhit_local (hplot : Plot A U k V x w) (hp : p ∈ A.outs x) |
| 151 | (hunhit : p ∉ A.hit U (S.prediction U k) V x) |
| 152 | (ht : fiery G x S.patch.L/2 ≤ largeT G x S.patch.L) |
| 153 | (hw : 2*w*fiery G x S.patch.L ≤ largeT G x S.patch.L) : |
| 154 | (∀ b : Cell f, separation p.1 (S.ratio.parent b.1) ≤ 4*radiusB x/5 → |
| 155 | toll U b ≤ largeT G x S.patch.L) ∧ |
| 156 | (∀ b : Bond c, separation p.1 b.1 ≤ 4*radiusB x/5 → |
| 157 | wire (S.prediction U k) V b ≤ largeT G x S.patch.L) := by |
| 158 | let Q := S.prediction U k |
| 159 | let E := A.spend U Q V x |
| 160 | have hh (y : Site c) (hy : separation p.1 y ≤ 4*radiusB x/5) (he : y ∈ E.place) : False := |
| 161 | hunhit (Finset.mem_filter.mpr ⟨hp,halo_spec.mpr |
| 162 | ⟨y,he,(separation_comm p.1 y) ▸ hy⟩⟩) |
| 163 | constructor |
| 164 | · intro b hb |
| 165 | let y := S.ratio.parent b.1 |
| 166 | have hi : y ∈ startPos S b := Finset.mem_image_of_mem _ (by simp [touched,visits,square]) |
| 167 | by_cases hy : b ∈ A.costs |
| 168 | · by_contra! h |
| 169 | have hsub : b ∈ E.costs := Finset.mem_filter.mpr ⟨hy,h⟩ |
| 170 | exact hh y hb (Finset.mem_union_left _ (Finset.mem_union_left _ |
| 171 | (Finset.mem_biUnion.mpr ⟨b,hsub,hi⟩))) |
| 172 | have hm := hplot.consumes b fun H => |
| 173 | Finset.disjoint_left.mp H (out_near_dome hp hb) hi |
| 174 | exact (hm.2 hy).trans ht |
| 175 | intro b hb |
| 176 | have hi : b.1 ∈ pinPos b := by simp [pinPos] |
| 177 | by_cases hy : b ∈ A.aisles |
| 178 | · by_contra! h |
| 179 | have hsub : b ∈ E.aisles := Finset.mem_filter.mpr ⟨hy,h⟩ |
| 180 | exact hh b.1 hb (Finset.mem_union_left _ (Finset.mem_union_right _ |
| 181 | (Finset.mem_biUnion.mpr ⟨b,hsub,hi⟩))) |
| 182 | have hm := hplot.drive b fun H => |
| 183 | Finset.disjoint_left.mp H (out_near_dome hp hb) hi |
| 184 | exact (hm.2 hy).trans hw |
| 185 | |
| 186 | /-- Bound a port by the maximum charge times size of the macro patch. |
| 187 | Charge even with repetitions; this is a post-L bound. -/ |
| 188 | lemma port_le (o : Site c) (b : ℕ) (q : ℝ) (hq : 0 ≤ q) |
| 189 | (htoll : ∀ i : Cell f, separation o (S.ratio.parent i.1) ≤ b → toll U i ≤ q) |
| 190 | (y : Site c) (hy : separation o y + macroR S.patch + S.patch.L.val ≤ b) : |
| 191 | port S y U ≤ (2*(macroR S.patch:ℝ)+1)^4 * (Fintype.card PlaqAxes:ℝ) * q := by |
| 192 | apply faces_expand_le (S.ratio.embed y) U _ q hq |
| 193 | intro z hz a |
| 194 | apply htoll |
| 195 | let x' := wrap f z + S.ratio.embed y |
| 196 | change separation o (S.ratio.parent x') ≤ b |
| 197 | have hi := Corona.foreshorten S.ratio (S.ratio.embed y) x' |
| 198 | rw [S.ratio.embed_parent] at hi |
| 199 | have hj : separation (S.ratio.embed y) x' ≤ macroR S.patch := separation_box_add _ hz |
| 200 | change S.patch.L.val * _ ≤ _ + S.patch.L.val at hi |
| 201 | have he : separation y (S.ratio.parent x') ≤ S.patch.L.val * separation y (S.ratio.parent x') := by |
| 202 | have hL : 1 ≤ S.patch.L.val := S.patch.L.property |
| 203 | exact (by simpa using Nat.mul_le_mul_right (separation y (S.ratio.parent x')) hL) |
| 204 | have hs := separation_triangle o y (S.ratio.parent x') |
| 205 | omega |
| 206 | |
| 207 | lemma stitches_of_shell (e02 : Bid.E02) (P : Teller G) (L : Side) (W : ℝ) (_hW : 0 < W) : |
| 208 | Stitches P L W := by |
| 209 | obtain ⟨J,hJ,HJ⟩ := qdc G P.bind P.j |
| 210 | obtain ⟨D,hD,HD⟩ := e02 G L P.j P.bind |
| 211 | -- M fine sites; K the macro face count bound; F' the coarse plaquette |
| 212 | -- price in largeT units. H the edge price coefficient, excluding B^5. |
| 213 | let M := (P.j + 3)*L.val + 4*L.val |
| 214 | let nP := (Fintype.card PlaqAxes:ℝ) |
| 215 | let K : ℝ := (2*(M:ℝ)+1)^4*nP |
| 216 | let F' := 4 + J/(L.val:ℝ)^2*K |
| 217 | let H : ℝ := 16*3^5*nP*F' |
| 218 | have hnP : 0 ≤ nP := Nat.cast_nonneg _ |
| 219 | have hK : 0 ≤ K := by unfold K; positivity |
| 220 | have hF : 0 < F' := by unfold F'; positivity |
| 221 | have hH : 0 ≤ H := by unfold H; positivity |
| 222 | let C := H + (D*K + 1) |
| 223 | refine ⟨C,by unfold C; positivity,⟨?_⟩⟩ |
| 224 | filter_upwards [eventual_radiusB (20*(M+L.val+1)), eventual_fiery G L (2*W), |
| 225 | eventual_fiery G L (1/2)] with x hx hw ht |
| 226 | intro c f S hL hs T Hfund F A U k V hslice hplot |
| 227 | let B := radiusB x |
| 228 | let r := B/2 |
| 229 | let a := largeT G x L |
| 230 | let Q := S.prediction U k |
| 231 | change ∀ p ∈ A.outs x, p ∉ A.hit U Q V x → ∃ z : Site c → G.El, |
| 232 | (∀ i : Bond c, separation p.1 i.1 ≤ 2*B/5 → G.chord (Lattice.gauge z V i) ≤ C*(B:ℝ)^10*a) ∧ |
| 233 | ∀ i : Bond f, separation p.1 (S.ratio.parent i.1) ≤ 2*B/5 → |
| 234 | G.chord (Lattice.gauge (z∘S.ratio.parent) U i) ≤ C*(B:ℝ)^10*a |
| 235 | intro p hp hunhit |
| 236 | have hj := Hfund.atStep |
| 237 | have hb := Hfund.knobs |
| 238 | have hm : macroR S.patch=M := by unfold macroR RG.Patch.radius; rw [hL,hj] |
| 239 | have ha : 0 ≤ a := by unfold a largeT; positivity |
| 240 | change 20*(M+L.val+1) ≤ B at hx |
| 241 | change 100*(1+B) ≤ c.val at hs |
| 242 | have hsize : 100*macroR S.patch ≤ f.val := by |
| 243 | have hcf : c.val ≤ f.val := by |
| 244 | rw [S.sizes] |
| 245 | have h : 1 ≤ S.patch.L.val := S.patch.L.property |
| 246 | simpa using (Nat.mul_le_mul_left c.val h) |
| 247 | omega |
| 248 | have hB0 : 1 ≤ B := by omega |
| 249 | have hBd : 2*B/5+1 ≤ r := by unfold r; omega |
| 250 | -- r and all needed inputs fit inside 4B/5. |
| 251 | have hr : r + M + L.val ≤ 4*B/5 := by unfold r; omega |
| 252 | have hr2 : r + 2 ≤ 4*B/5 := by unfold r; omega |
| 253 | obtain ⟨hsmall,hnoise⟩ := unhit_local hplot hp hunhit |
| 254 | (by rw [hL]; linarith only [ht]) (by rw [hL]; exact hw) |
| 255 | rw [hL] at hsmall hnoise |
| 256 | -- port bound and usable on the coarse patch. |
| 257 | have hport (y : Site c) (h : separation p.1 y ≤ r) : port S y U ≤ K*a := by |
| 258 | have he : separation p.1 y + macroR S.patch + S.patch.L.val ≤ 4*B/5 := by |
| 259 | rw [hm,hL]; omega |
| 260 | have hg := port_le p.1 (4*B/5) a ha hsmall y he |
| 261 | rw [hm] at hg; exact hg |
| 262 | have huse (y : Site c) (h : separation p.1 y ≤ r) : usable S U y k := by |
| 263 | intro z hz; apply hplot.list; apply out_near_dome hp |
| 264 | have hi : separation y (plank y z) ≤ 2 := separation_box_add _ hz |
| 265 | have hh := separation_triangle p.1 y (plank y z) |
| 266 | change separation _ _ ≤ 4*B/5; omega |
| 267 | have hface (y : Site c) (h : separation p.1 y ≤ r) (j : PlaqAxes) : |
| 268 | toll V (y,j) ≤ F'*a := by |
| 269 | have he := (HJ c f S hb.symm hj.symm U V y k (huse y h) j).2 |
| 270 | rw [hL] at he |
| 271 | apply he.trans |
| 272 | have hb0 (k' : Axis) : wire Q V (y,k') ≤ a := by |
| 273 | apply hnoise; change separation p.1 y ≤ 4*B/5; omega |
| 274 | have hb1 (j' k' : Axis) : wire Q V (y + step j',k') ≤ a := by |
| 275 | apply hnoise |
| 276 | have hi : separation y (y+step j') ≤ 1 := by |
| 277 | rw [separation_comm,separation,add_comm y, add_sub_cancel_right]; exact pdist_step _ |
| 278 | have hh := separation_triangle p.1 y (y+step j') |
| 279 | change separation p.1 (y+step j') ≤ 4*B/5; omega |
| 280 | have hfuel : Pressure.fuel Q V y j ≤ 4*a := |
| 281 | (add_le_add (add_le_add (add_le_add (hb0 _) (hb1 _ _)) (hb1 _ _)) |
| 282 | (hb0 _)).trans_eq (show a+a+a+a = 4*a by ring) |
| 283 | apply (add_le_add hfuel (mul_le_mul_of_nonneg_left (hport y h) |
| 284 | (by positivity : 0 ≤ J/(L.val:ℝ)^2))).trans_eq |
| 285 | unfold F'; ring |
| 286 | -- Coarse gauge patch. |
| 287 | obtain ⟨z,hz⟩ := axial_patch p.1 V (2*B/5) r hBd (by unfold r; omega) |
| 288 | (F'*a) (by positivity) hface |
| 289 | have hB : 1 ≤ (B:ℝ) := by exact_mod_cast hB0 |
| 290 | let t0 := H*(B:ℝ)^5*a |
| 291 | have hzV (b : Bond c) (h : separation p.1 b.1 ≤ 2*B/5) : |
| 292 | G.chord (Lattice.gauge z V b) ≤ t0 := by |
| 293 | apply (hz b h).trans |
| 294 | have hi : (r:ℝ) ≤ (B:ℝ) := by exact_mod_cast Nat.div_le_self B 2 |
| 295 | have hh : 2*(r:ℝ)+1 ≤ 3*(B:ℝ) := by linarith |
| 296 | change 16*(2*(r:ℝ)+1)^5*nP*(F'*a) ≤ _ |
| 297 | calc |
| 298 | _ ≤ 16*(3*(B:ℝ))^5*nP*(F'*a) := by gcongr |
| 299 | _ = _ := by unfold t0 H; ring |
| 300 | have ht0 : 0 ≤ t0 := by unfold t0; positivity |
| 301 | have htotal : (D*K+1)*a + t0 ≤ C*(B:ℝ)^10*a := by |
| 302 | have h1 : 1 ≤ (B:ℝ)^10 := one_le_pow₀ hB |
| 303 | have h2 : (B:ℝ)^5 ≤ (B:ℝ)^10 := pow_le_pow_right₀ hB (by norm_num) |
| 304 | calc |
| 305 | _ ≤ (D*K+1)*(B:ℝ)^10*a + H*(B:ℝ)^10*a := by |
| 306 | apply add_le_add _ (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left h2 hH) ha) |
| 307 | apply mul_le_mul_of_nonneg_right _ ha |
| 308 | simpa using mul_le_mul_of_nonneg_left h1 (show 0 ≤ D*K+1 by positivity) |
| 309 | _ = _ := by unfold C; ring |
| 310 | refine ⟨z,fun b h => le_trans (hzV b h) ((le_add_of_nonneg_left (by positivity)).trans htotal), |
| 311 | fun b h => ?_⟩ |
| 312 | -- Fine links. Compare to replica V via E02 in the original gauge, |
| 313 | -- then apply simultaneous block-constant gauge. |
| 314 | let R := replica S.ratio V |
| 315 | let y := S.ratio.parent b.1 |
| 316 | have hy : separation p.1 y ≤ r := by change separation p.1 y ≤ _ at h; omega |
| 317 | have he : G.chord (U b*(R b)⁻¹) ≤ (D*K+1)*a := by |
| 318 | have he := HD c f S hb hL hj hsize (by omega) F U hslice V b k (huse y hy) |
| 319 | apply he.trans |
| 320 | have hw' : wire Q V (y,b.2) ≤ a := by |
| 321 | apply hnoise; change separation p.1 y ≤ 4*B/5; omega |
| 322 | have hw'' : (if y=S.ratio.parent (b.1+step b.2) then 0 else wire Q V (y,b.2)) ≤ a := by |
| 323 | split <;> assumption |
| 324 | apply (add_le_add (mul_le_mul_of_nonneg_left (hport y hy) hD.le) |
| 325 | hw'').trans_eq |
| 326 | ring |
| 327 | let g := z∘S.ratio.parent |
| 328 | have hc : G.chord (gauge g R b) ≤ t0 := by |
| 329 | change G.chord (gauge (constantGauge z S.ratio) (replica S.ratio V) b) ≤ t0 |
| 330 | rw [copied _ S.patch.odd_side V z] |
| 331 | unfold replica; split |
| 332 | · rw [G.chord_one]; exact ht0 |
| 333 | exact hzV _ h |
| 334 | have hh : gauge g U b = (g b.1*(U b*(R b)⁻¹)*(g b.1)⁻¹)*gauge g R b := by |
| 335 | unfold Lattice.gauge; group |
| 336 | change G.chord (gauge g U b) ≤ _ |
| 337 | rw [hh] |
| 338 | apply (G.chord_triangle _ _).trans |
| 339 | rw [G.chord_conj] |
| 340 | exact (add_le_add he hc).trans htotal |
| 341 | |
| 342 | theorem answer : YM.Bid.E08 := by |
| 343 | intro _ e02 G P L W hW |
| 344 | exact stitches_of_shell e02 P L W hW |
| 345 | |
| 346 | end YM.Work.E08 |