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.Complex.Gaps |
| 3 | import YM.Corona.Spend |
| 4 | import YM.Slice.Strips |
| 5 | import YM.Vac.Treasury |
| 6 | |
| 7 | |
| 8 | /-! # Macro charges and packing estimates on a single oriented sector -/ |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | namespace YM.Work.E01 |
| 12 | open Filter Lattice RG Axial Wilson Finset Pressure Pressure.Stores Bid |
| 13 | open scoped Topology BigOperators |
| 14 | variable {G : Gauge} {c f n : Side} (S : StepData c f) |
| 15 | |
| 16 | lemma pdist_wrap_le {v : Cover} {R : ℕ} (hv : v ∈ box R) : pdist (wrap n v) ≤ R := by |
| 17 | apply Finset.sup_le |
| 18 | intro i _ |
| 19 | apply (Lattice.Corona.lap v i).trans |
| 20 | obtain ⟨h₁, h₂⟩ := box_test.mp hv |
| 21 | specialize h₁ i; specialize h₂ i |
| 22 | omega |
| 23 | |
| 24 | lemma macroR_eq : macroR S.patch = (S.patch.J + 7) * S.patch.L.val := by |
| 25 | unfold macroR Patch.radius |
| 26 | ring |
| 27 | |
| 28 | lemma port_charge (x : Site c) (U : Config G f) : |
| 29 | port S x U = ∑ b : Cell f, mcharge S x b * toll U b := by |
| 30 | classical |
| 31 | let D := box (macroR S.patch) |
| 32 | let site z := wrap f z + S.ratio.embed x |
| 33 | let sees (z : Cover) (p : PlaqAxes) := ∀ y ∈ visits z (square p.val.1 p.val.2), y ∈ D |
| 34 | have he (p : PlaqAxes) (y : Site f) : |
| 35 | mcharge S x (y,p) * toll U (y,p) = ∑ z ∈ D, if site z=y ∧ sees z p then toll U (y,p) else 0 := by |
| 36 | rw [← Finset.sum_filter] |
| 37 | simp only [Finset.sum_const, nsmul_eq_mul] |
| 38 | rfl |
| 39 | rw [Fintype.sum_prod_type] |
| 40 | simp_rw [he]; rw [sum_comm] |
| 41 | unfold port faces; change (∑ z ∈ D, ∑ p : PlaqAxes, face D _ z p) = _ |
| 42 | rw [sum_comm] |
| 43 | apply Finset.sum_congr rfl |
| 44 | intro p _ |
| 45 | rw [sum_comm]; apply Finset.sum_congr rfl |
| 46 | intro z _ |
| 47 | change (if sees z p then _ else _) = _ |
| 48 | by_cases h : sees z p |
| 49 | · simp [h, site, faceValue, toll, travel_at] |
| 50 | simp [h] |
| 51 | |
| 52 | lemma mcharge_le_one (hx : 2 * macroR S.patch < f.val) (x : Site c) (p : Cell f) : |
| 53 | mcharge S x p ≤ 1 := by |
| 54 | unfold mcharge |
| 55 | apply Finset.card_le_one.mpr |
| 56 | intro z hz y hy |
| 57 | have h (v : Cover) (hv : v ∈ box (macroR S.patch)) (i : Axis) : |
| 58 | -(f.val : ℤ) < 2*v i ∧ 2*v i ≤ f.val := by |
| 59 | have h₁ := (box_test.mp hv).1 i; have h₂ := (box_test.mp hv).2 i |
| 60 | omega |
| 61 | obtain ⟨hz,hz',_⟩ := Finset.mem_filter.mp hz |
| 62 | obtain ⟨hy,hy',_⟩ := Finset.mem_filter.mp hy |
| 63 | exact wrap_injOn f (h z hz) (h y hy) (add_right_cancel (hz'.trans hy'.symm)) |
| 64 | |
| 65 | lemma mcharge_maps (x : Site c) (p : Cell f) (h : 0 < mcharge S x p) : |
| 66 | separation x (S.ratio.parent p.1) ≤ S.patch.J + 8 := by |
| 67 | obtain ⟨z,hz⟩ := Finset.card_pos.mp h |
| 68 | obtain ⟨hz,he,_⟩ := Finset.mem_filter.mp hz |
| 69 | have h₁ : separation (S.ratio.embed x) p.1 ≤ macroR S.patch := by |
| 70 | rw [separation_comm, ← he, separation, add_sub_cancel_right]; exact pdist_wrap_le hz |
| 71 | have h₂ := Lattice.Corona.near S.ratio p.1 |
| 72 | change 2*separation p.1 (S.ratio.embed (S.ratio.parent p.1)) ≤ S.patch.L.val at h₂ |
| 73 | apply Nat.le_of_mul_le_mul_left _ S.patch.L.property |
| 74 | calc S.patch.L.val*separation x (S.ratio.parent p.1) ≤ _ := Lattice.Corona.below S.ratio _ _ |
| 75 | _ ≤ macroR S.patch + S.patch.L.val := (separation_triangle _ p.1 _).trans (Nat.add_le_add h₁ (by omega)) |
| 76 | _ = _ := by rw [macroR_eq]; ring_nf; rfl |
| 77 | |
| 78 | lemma mcharge_count (hx : 2 * macroR S.patch < f.val) (p : Cell f) : |
| 79 | let R := S.patch.J + 8 |
| 80 | (∑ x : Site c, mcharge S x p) ≤ (R+R+1)^4 := by |
| 81 | intro R |
| 82 | let D := halo R {S.ratio.parent p.1} |
| 83 | have h (x : Site c) (hh : 0 < mcharge S x p) : x ∈ D := halo_spec.mpr |
| 84 | ⟨_,mem_singleton_self _,(separation_comm ..).trans_le (mcharge_maps S x p hh)⟩ |
| 85 | calc |
| 86 | _ ≤ ∑ x : Site c, if x ∈ D then 1 else 0 := Finset.sum_le_sum fun x _ => by |
| 87 | split |
| 88 | · exact mcharge_le_one S hx x p |
| 89 | next he => exact Nat.le_of_not_gt (fun hv => he (h x hv)) |
| 90 | _ = D.card := by rw [← sum_filter]; simp |
| 91 | _ ≤ _ := by simpa only [Finset.card_singleton, one_mul] using Lattice.Corona.halo_size {S.ratio.parent p.1} R |
| 92 | |
| 93 | lemma base_touched (p : Cell n) : p.1 ∈ touched p := by |
| 94 | rw [touched, square_corners]; simp |
| 95 | |
| 96 | lemma touched_card (p : Cell n) : (touched p).card ≤ 4 := by |
| 97 | rw [touched, square_corners] |
| 98 | simp only [List.toFinset_cons, List.toFinset_nil, Finset.insert_empty] |
| 99 | rw [insert_eq_of_mem (by simp)] |
| 100 | calc |
| 101 | _ ≤ _ := Finset.card_insert_le .. |
| 102 | _ ≤ 4 := by |
| 103 | have h := Finset.card_insert_le (p.1+step p.2.val.1+step p.2.val.2) ({p.1+step p.2.val.2,p.1} : Support n) |
| 104 | have h' := Finset.card_insert_le (p.1+step p.2.val.2) ({p.1} : Support n) |
| 105 | rw [Finset.card_singleton] at h'; omega |
| 106 | |
| 107 | lemma sep_step_le (z : Site n) (i : Axis) : separation z (z+step i) ≤ 1 := by |
| 108 | rw [separation_comm, separation, add_comm, add_sub_cancel_right]; exact pdist_step i |
| 109 | |
| 110 | lemma sep_touched (p : Cell n) (z : Site n) (hz : z∈ touched p) : separation p.1 z ≤ 2 := by |
| 111 | rw [touched,square_corners] at hz |
| 112 | simp only [List.mem_toFinset, List.mem_cons, List.not_mem_nil, or_false] at hz |
| 113 | rcases hz with rfl|rfl|rfl|rfl|rfl |
| 114 | · simp |
| 115 | · exact le_trans (sep_step_le ..) (by norm_num) |
| 116 | · exact (separation_triangle _ (p.1+step p.2.val.1) _).trans (Nat.add_le_add (sep_step_le ..) (sep_step_le ..)) |
| 117 | · exact le_trans (sep_step_le ..) (by norm_num) |
| 118 | · simp |
| 119 | |
| 120 | variable {S} (A : Stores S) |
| 121 | |
| 122 | lemma place_card : A.place.card ≤ 4*A.shares := by |
| 123 | have h : (A.costs.biUnion (startPos S)).card ≤ A.costs.card * 4 := calc |
| 124 | _ ≤ ∑ i ∈ A.costs, (startPos S i).card := Finset.card_biUnion_le |
| 125 | _ ≤ ∑ _i ∈ A.costs, 4 := Finset.sum_le_sum fun i _ => Finset.card_image_le.trans (touched_card i) |
| 126 | _ = _ := by simp |
| 127 | have h' : (A.aisles.biUnion pinPos).card ≤ A.aisles.card * 2 := calc |
| 128 | _ ≤ _ := Finset.card_biUnion_le |
| 129 | _ ≤ ∑ _i ∈ A.aisles, 2 := Finset.sum_le_sum fun i _ => (Finset.card_insert_le ..).trans (by simp) |
| 130 | _ = _ := by simp |
| 131 | unfold place shares |
| 132 | refine (Finset.card_union_le ..).trans ?_ |
| 133 | have he := Finset.card_union_le (A.costs.biUnion (startPos S)) (A.aisles.biUnion pinPos) |
| 134 | omega |
| 135 | |
| 136 | def volumePrice (R : ℕ) := 4*(R+R+1)^4*Fintype.card PlaqAxes |
| 137 | |
| 138 | lemma dome_card {b : ℕ} {s : Finset (Cell c)} (h : ∀ i ∈ s,i.1 ∈ A.dome b) : s.card ≤ volumePrice b * A.shares := by |
| 139 | calc |
| 140 | _ ≤ (A.dome b ×ˢ (univ : Finset PlaqAxes)).card := Finset.card_le_card fun i hi => mem_product.mpr ⟨h _ hi, mem_univ _⟩ |
| 141 | _ = (halo b A.place).card * Fintype.card PlaqAxes := Finset.card_product .. |
| 142 | _ ≤ ((4*A.shares)*(b+b+1)^4)*Fintype.card PlaqAxes := Nat.mul_le_mul_right _ |
| 143 | ((Lattice.Corona.halo_size A.place b).trans (Nat.mul_le_mul_right _ (place_card A))) |
| 144 | _ = _ := by unfold volumePrice; ring |
| 145 | |
| 146 | lemma volumePrice_le {B : ℕ} (h : 1 ≤ B) : volumePrice (2*B) ≤ volumePrice 2 * B^4 := by |
| 147 | unfold volumePrice |
| 148 | calc |
| 149 | _ ≤ 4*(5*B)^4*Fintype.card PlaqAxes := by gcongr; omega |
| 150 | _ = _ := by ring |
| 151 | |
| 152 | lemma outs_card {x : ℝ} (h : 1 ≤ radiusB x) : (A.outs x).card ≤ volumePrice 2*(radiusB x)^4*A.shares := by |
| 153 | apply (dome_card A (b:=2*radiusB x) fun i hi => (Finset.mem_filter.mp hi).2).trans |
| 154 | exact Nat.mul_le_mul_right _ (volumePrice_le h) |
| 155 | |
| 156 | lemma hit_card (U : Config G f) (Q V : Config G c) {x : ℝ} (h : 1 ≤ radiusB x) : |
| 157 | (A.hit U Q V x).card ≤ volumePrice 2*(radiusB x)^4*(A.spend U Q V x).shares := by |
| 158 | apply (dome_card (A.spend U Q V x) (b:=2*radiusB x) (fun i hi => |
| 159 | Lattice.Corona.halo_mono (show 4*radiusB x/5 ≤ 2*radiusB x by omega) (fun _ h => h) (Finset.mem_filter.mp hi).2)).trans |
| 160 | exact Nat.mul_le_mul_right _ (volumePrice_le h) |
| 161 | |
| 162 | lemma flag_count {x W : ℝ} (h : 1 ≤ radiusB x) {U : Config G f} {V : Config G c} {k : S.Choices} |
| 163 | (hh : A.Plot U k V x W) : A.flags.card ≤ 4*(A.tides V x (temp x)).card := by |
| 164 | let D := A.tides V x (temp x) |
| 165 | have he : A.flags ⊆ D.biUnion touched := by |
| 166 | intro i hi |
| 167 | have hi' := (hh.precise i (halo_subset _ _ (Finset.mem_union_right _ hi))).mp hi |
| 168 | obtain ⟨p,hp,ht⟩ := (flags_spec ..).mp hi' |
| 169 | have hv := sep_touched p i hp |
| 170 | rw [separation_comm] at hv |
| 171 | exact mem_biUnion.mpr ⟨p,mem_filter.mpr ⟨mem_filter.mpr ⟨mem_univ _,halo_spec.mpr ⟨i, mem_union_right _ hi,by omega⟩⟩, ht⟩,hp⟩ |
| 172 | calc |
| 173 | _ ≤ _ := card_le_card he |
| 174 | _ ≤ _ := Finset.card_biUnion_le |
| 175 | _ ≤ ∑ _p ∈ D, 4 := Finset.sum_le_sum fun i _ => touched_card i |
| 176 | _ = _ := by simp [D, Nat.mul_comm] |
| 177 | |
| 178 | lemma largeT_eq (s : ℝ) (hs : 0 ≤ s) : ((Real.sqrt s)⁻¹)^((98:ℝ)/100) = s^(-(49/100):ℝ) := by |
| 179 | rw [Real.sqrt_eq_rpow, ← Real.rpow_neg hs, ← Real.rpow_mul hs] |
| 180 | norm_num |
| 181 | |
| 182 | lemma betaF_tendsto (G : Gauge) (L : Side) : Tendsto (fun x => betaF G x L) atTop atTop := |
| 183 | tendsto_atTop_add_const_right _ _ tendsto_id |
| 184 | |
| 185 | lemma largeT_tendsto (G : Gauge) (L : Side) : Tendsto (fun x => largeT G x L) atTop (𝓝 0) := by |
| 186 | refine ((tendsto_rpow_neg_atTop (y:=49/100) (by norm_num)).comp (betaF_tendsto G L)).congr' ?_ |
| 187 | filter_upwards [(betaF_tendsto G L).eventually (eventually_ge_atTop 0)] with x hx |
| 188 | exact (largeT_eq _ hx).symm |
| 189 | |
| 190 | lemma fiery_le (G : Gauge) (L : Side) (m : ℝ) : ∀ᶠ x : ℝ in atTop, m*fiery G x L ≤ largeT G x L := by |
| 191 | have he := betaF_tendsto G L |
| 192 | filter_upwards [he.eventually (eventually_gt_atTop 0),he.eventually (Vac.Numbers.cost 1 (1/200) (by norm_num)), |
| 193 | ((tendsto_rpow_atTop (y:=1/200) (by norm_num)).comp he).eventually_ge_atTop m] with x hx hp hm |
| 194 | generalize hs : betaF G x L = s |
| 195 | change m*temp (betaF G x L) ≤ _ |
| 196 | unfold largeT |
| 197 | change 0 < betaF G x L at hx |
| 198 | change Vac.Numbers.P (betaF G x L) ^ (1:ℝ) ≤ _ at hp |
| 199 | change m ≤ (betaF G x L)^(1/200:ℝ) at hm |
| 200 | rw [hs] at hx hm hp ⊢ |
| 201 | rw [Real.rpow_one] at hp |
| 202 | rw [largeT_eq _ hx.le] |
| 203 | unfold temp |
| 204 | change m * ((Real.sqrt s)⁻¹ * Vac.Numbers.P s) ≤ _ |
| 205 | have hP : 0 ≤ Vac.Numbers.P s := (Real.exp_pos _).le |
| 206 | calc |
| 207 | _ ≤ s^(1/200:ℝ) * ((Real.sqrt s)⁻¹ * s^(1/200:ℝ)) := mul_le_mul hm (mul_le_mul_of_nonneg_left hp (by positivity)) (by positivity) (by positivity) |
| 208 | _ = _ := by rw [Real.sqrt_eq_rpow, ← Real.rpow_neg hx.le, ← Real.rpow_add hx, ← Real.rpow_add hx]; norm_num |
| 209 | |
| 210 | lemma radiusB_tendsto : Tendsto radiusB atTop atTop := |
| 211 | tendsto_nat_ceil_atTop.comp ((tendsto_pow_atTop (n:=2) (by decide)).comp Real.tendsto_log_atTop) |
| 212 | |
| 213 | variable (S) in |
| 214 | lemma port_le (U : Config G f) (x : Site c) (h : ℝ) (hp : 0 ≤ h) (hu : ∀ i : Cell f, 0 < mcharge S x i → toll U i ≤ h) : |
| 215 | port S x U ≤ ((box (macroR S.patch)).card : ℝ) * Fintype.card PlaqAxes * h := by |
| 216 | classical |
| 217 | unfold port faces |
| 218 | calc |
| 219 | _ ≤ ∑ _z ∈ box (macroR S.patch), ∑ _p : PlaqAxes,h := Finset.sum_le_sum fun z hz => Finset.sum_le_sum fun p _ => by |
| 220 | unfold face |
| 221 | split |
| 222 | next he => |
| 223 | simp only [faceValue, travel_at] |
| 224 | apply hu (wrap f z + S.ratio.embed x,p) |
| 225 | exact Finset.card_pos.mpr ⟨z,mem_filter.mpr ⟨hz,rfl,he⟩⟩ |
| 226 | exact hp |
| 227 | _ = _ := by simp [mul_assoc] |
| 228 | |
| 229 | lemma larger_dome {b k : ℕ} {i y : Site c} (hi : i ∈ A.dome (2*b)) (hy : separation i y ≤ k) (hk : k ≤ 3*b) : y ∈ A.dome (5*b) := by |
| 230 | obtain ⟨o,ho,hd⟩ := halo_spec.mp hi |
| 231 | refine halo_spec.mpr ⟨o, ho, (separation_triangle o i y).trans (by omega)⟩ |
| 232 | |
| 233 | def rate (j : ℕ) (L : Side) (C : ℝ) : ℝ := |
| 234 | 4 + (C/(L.val:ℝ)^2)*(((box ((j+7)*L.val)).card:ℝ)*Fintype.card PlaqAxes) |
| 235 | |
| 236 | /-- All coarse charges beyond δ have an actual large input in fixed output-distance radius. -/ |
| 237 | lemma witnessed {U : Config G f} {V : Config G c} {k : S.Choices} {x W δ C : ℝ} |
| 238 | (hc : 0 < C) |
| 239 | (hc' : ∀ i : Cell c, usable S U i.1 k → toll V i ≤ fuel (S.prediction U k) V i.1 i.2 + C/(S.patch.L.val:ℝ)^2*port S i.1 U) |
| 240 | (hB : S.patch.J+8 ≤ 4*radiusB x/5) |
| 241 | (hu : fiery G x S.patch.L/2 ≤ largeT G x S.patch.L) |
| 242 | (hw : 2*W*fiery G x S.patch.L ≤ largeT G x S.patch.L) |
| 243 | (ht : rate S.patch.J S.patch.L C * largeT G x S.patch.L ≤ δ) |
| 244 | (hh : A.Plot U k V x W) {i : Cell c} (hi : i ∈ A.tides V x δ) : |
| 245 | i.1 ∈ (A.spend U (S.prediction U k) V x).dome (S.patch.J+8) := by |
| 246 | obtain ⟨hi,hδ⟩ := Finset.mem_filter.mp hi |
| 247 | have hd : i.1 ∈ A.dome (2*radiusB x) := (Finset.mem_filter.mp hi).2 |
| 248 | have hus : usable S U i.1 k := by |
| 249 | intro y hy |
| 250 | apply hh.list |
| 251 | refine larger_dome A hd (k:=2) ?_ (by omega) |
| 252 | rw [separation_comm, separation, plank, add_sub_cancel_right]; exact pdist_wrap_le hy |
| 253 | let Q := S.prediction U k |
| 254 | let T := largeT G x S.patch.L |
| 255 | have hT : 0 ≤ T := by unfold T largeT; positivity |
| 256 | by_contra h |
| 257 | have h' (y : Site c) (hy : separation i.1 y ≤ S.patch.J+8) : y ∉ (A.spend U Q V x).place := fun he => |
| 258 | h (halo_spec.mpr ⟨_,he,(separation_comm ..).trans_le hy⟩) |
| 259 | have h₁ (p : Cell f) (hp : 0 < mcharge S i.1 p) : toll U p ≤ T := by |
| 260 | have hsep := mcharge_maps S i.1 p hp |
| 261 | have hp' : S.ratio.parent p.1 ∈ startPos S p := mem_image_of_mem _ (base_touched p) |
| 262 | by_cases he : p ∈ A.costs |
| 263 | · apply le_of_not_gt |
| 264 | intro hv |
| 265 | have hm : p ∈ (A.spend U Q V x).costs := mem_filter.mpr ⟨he,hv⟩ |
| 266 | exact h' _ hsep (mem_union_left _ (mem_union_left _ (mem_biUnion.mpr ⟨_,hm,hp'⟩))) |
| 267 | apply le_trans ((hh.consumes p ?_).2 he) hu |
| 268 | exact fun h => Finset.disjoint_left.mp h (larger_dome A hd hsep (by omega)) hp' |
| 269 | have h₂ (b : Bond c) (hb : separation i.1 b.1 ≤ 1) : wire Q V b ≤ T := by |
| 270 | have hb' : b.1 ∈ pinPos b := by simp [pinPos] |
| 271 | by_cases he : b ∈ A.aisles |
| 272 | · apply le_of_not_gt |
| 273 | intro hv |
| 274 | have hm : b ∈ (A.spend U Q V x).aisles := mem_filter.mpr ⟨he,hv⟩ |
| 275 | exact h' _ (by omega) (mem_union_left _ (mem_union_right _ (mem_biUnion.mpr ⟨_,hm,hb'⟩))) |
| 276 | apply le_trans ((hh.drive b ?_).2 he) hw |
| 277 | exact fun h => Finset.disjoint_left.mp h (larger_dome A hd hb (by omega)) hb' |
| 278 | have hf : fuel Q V i.1 i.2 ≤ 4*T := by |
| 279 | unfold fuel |
| 280 | apply (add_le_add (add_le_add (add_le_add (h₂ (_,_) (by simp)) (h₂ (_,_) (sep_step_le ..))) (h₂ (_,_) (sep_step_le ..))) (h₂ (_,_) (by simp))).trans_eq |
| 281 | ring |
| 282 | have he := port_le S U i.1 T hT h₁ |
| 283 | rw [macroR_eq] at he |
| 284 | apply hδ.not_ge |
| 285 | refine (hc' i hus).trans ((add_le_add hf (mul_le_mul_of_nonneg_left he (by positivity))).trans ((le_of_eq ?_).trans ht)) |
| 286 | unfold rate T |
| 287 | ring |
| 288 | |
| 289 | theorem answer : YM.Bid.E01 := by |
| 290 | intro G P δ hδ |
| 291 | let R := P.j+8 |
| 292 | let N := volumePrice R + volumePrice 2 + R + (R+R+1)^4 |
| 293 | have hv : volumePrice R ≤ N := by dsimp only [N]; omega |
| 294 | have hv' : volumePrice 2 ≤ N := by dsimp only [N]; omega |
| 295 | obtain ⟨C,hc,hc'⟩ := qdc G P.bind P.j |
| 296 | refine ⟨N,fun L W _ => ⟨?_⟩⟩ |
| 297 | have hT : Tendsto (fun x => rate P.j L C * largeT G x L) atTop (𝓝 0) := by |
| 298 | simpa only [mul_zero] using (largeT_tendsto G L).const_mul (rate P.j L C) |
| 299 | filter_upwards [radiusB_tendsto.eventually_ge_atTop (5*R), fiery_le G L (1/2), fiery_le G L (2*W), hT.eventually (ge_mem_nhds hδ)] with x hx hu hw ht |
| 300 | intro c f S hL hS T H F A U k V _ hh |
| 301 | have he := H.atStep |
| 302 | have hR : S.patch.J+8 = R := congr_arg (·+8) he |
| 303 | have hB : 1 ≤ radiusB x := by omega |
| 304 | have hwit : ∀ i ∈ A.tides V x δ, i.1 ∈ (A.spend U (S.prediction U k) V x).dome R := by |
| 305 | intro i hi |
| 306 | rw [← hR] |
| 307 | refine witnessed A hc ?_ (by omega) ?_ ?_ ?_ hh hi |
| 308 | · exact fun i hz => (hc' c f S H.knobs.symm he.symm U V i.1 k hz i.2).2 |
| 309 | · rw [hL]; linarith only [hu] |
| 310 | · rwa [hL] |
| 311 | rw [hL,he]; exact ht |
| 312 | constructor |
| 313 | · refine ⟨fun i hi => Finset.mem_filter.mpr ⟨(Finset.mem_filter.mp hi).1,?_⟩, flag_count A hB hh, |
| 314 | (dome_card _ hwit).trans (Nat.mul_le_mul_right _ hv), ?_, ?_⟩ |
| 315 | · exact Lattice.Corona.halo_mono (by omega) (fun _ h => h) (hwit i hi) |
| 316 | · exact (outs_card A hB).trans (Nat.mul_le_mul_right _ (Nat.mul_le_mul_right _ hv')) |
| 317 | · exact (hit_card A _ _ _ hB).trans (Nat.mul_le_mul_right _ (Nat.mul_le_mul_right _ hv')) |
| 318 | refine ⟨fun u z => port_charge S z u,fun p => ?_,fun z p hp => (mcharge_maps S z p hp).trans ?_⟩ |
| 319 | · have hl : 0 < S.patch.L.val := S.patch.L.property |
| 320 | have hc : 2*(S.patch.J+7) < c.val := by omega |
| 321 | have hf : 2*macroR S.patch < f.val := by |
| 322 | rw [S.sizes,macroR_eq,← Nat.mul_assoc]; exact Nat.mul_lt_mul_of_pos_right hc hl |
| 323 | exact (mcharge_count S hf p).trans (by rw [hR]; dsimp only [N]; omega) |
| 324 | rw [hR]; dsimp only [N]; omega |
| 325 | end YM.Work.E01 |
| 326 | |
| 327 | /-! Check why the one-per-macro-box bound has a period qualification. -/ |
| 328 | namespace YM.Work.E01 |
| 329 | open Lattice RG Bid Pressure |
| 330 | |
| 331 | private def trial : StepData (1:Side) (3:Side) where |
| 332 | patch := ⟨3,4,le_rfl, le_rfl, by decide⟩ |
| 333 | kernel := ⟨1,1,1,1,by norm_num,by norm_num,by norm_num,by norm_num⟩ |
| 334 | sizes := by decide |
| 335 | |
| 336 | |
| 337 | |
| 338 | |
| 339 | end YM.Work.E01 |