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.AnalyticBridge.RESET_INCOME_PORT.Split |
| 2 | import YM.SectorNext.VACUUM_NORMALIZATION.Gas |
| 3 | |
| 4 | set_option warningAsError false |
| 5 | |
| 6 | /-! |
| 7 | # Quantitative log motion test for the scalar income socket |
| 8 | |
| 9 | Signed gas activities, at a FIXED FIELD. To serve the dial price (and |
| 10 | help log calibration). Leash zero-order costs alone, on BOTH sides, then a |
| 11 | small enlarged negative-fugacity bill, imply actual support-weighted hit |
| 12 | bounds on log differences in the SAME cluster calculation. No derivatives |
| 13 | through hard tests. Costs even with d equal or moving to the endpoints. |
| 14 | We use persistent full support prices rather than a topology where point |
| 15 | measure discontinuities would be difficult to pay. |
| 16 | |
| 17 | Not a general regularity theorem on the log-jets or component calculus of the output; |
| 18 | no label-level continuity on fitted functions obtained here. |
| 19 | |
| 20 | See follow-on |
| 21 | use against the actual post-template readings on all-good points. |
| 22 | -/ |
| 23 | set_option autoImplicit false |
| 24 | noncomputable section |
| 25 | namespace YM.AnalyticBridge.ResetIncome.LogMotion |
| 26 | |
| 27 | open Function Filter Set Lattice Wilson RG Pressure MeasureTheory Finset |
| 28 | open SectorNext.Vacuum.ReLog |
| 29 | open scoped Topology BigOperators Classical Matrix.Norms.Frobenius ContDiff |
| 30 | |
| 31 | variable {J : Type*} [Fintype J] [DecidableEq J] |
| 32 | local notation "ℰ" => Real.exp |
| 33 | local notation "logr" => Real.log |
| 34 | |
| 35 | /-- Companion negative-fugacity comparison for the recursive cash flow: |
| 36 | envelope for both sides, and difference charged against one enlarged table. |
| 37 | ρ (in uses `|a-b|` times a small coefficient) can also be zero. -/ |
| 38 | structure Chip (ρ a b u U : ℝ) : Prop where |
| 39 | paidL : |a| ≤ u |
| 40 | paidR : |b| ≤ u |
| 41 | enrich : u ≤ U |
| 42 | swing : |a-b| ≤ ρ*(U-u) |
| 43 | |
| 44 | namespace Chip |
| 45 | variable {s t A B u U v V ρ : ℝ} (h : Chip ρ s A u U) (g : Chip ρ t B v V) |
| 46 | |
| 47 | lemma zero (ρ : ℝ) : Chip ρ 0 0 0 0 := by constructor <;> simp |
| 48 | include h |
| 49 | lemma nonneg : 0 ≤ u := (abs_nonneg _).trans h.paidL |
| 50 | include g |
| 51 | lemma add : Chip ρ (s+t) (A+B) (u+v) (U+V) := by |
| 52 | refine ⟨(abs_add_le ..).trans (add_le_add h.paidL g.paidL), (abs_add_le ..).trans (add_le_add h.paidR g.paidR), |
| 53 | add_le_add h.enrich g.enrich,?_⟩ |
| 54 | rw [show s+t-(A+B)=(s-A)+(t-B) by ring] |
| 55 | exact (abs_add_le ..).trans ((add_le_add h.swing g.swing).trans_eq (by ring)) |
| 56 | lemma mul (he : 0≤ρ) : Chip ρ (s*t) (A*B) (u*v) (U*V) := by |
| 57 | let w := U-u; let z := V-v; have hw : 0≤w := sub_nonneg.mpr h.enrich; have hz : 0≤z := sub_nonneg.mpr g.enrich |
| 58 | constructor |
| 59 | · rw [abs_mul]; gcongr; exacts [h.nonneg,h.paidL,g.paidL] |
| 60 | · rw [abs_mul]; gcongr; exacts [h.nonneg,h.paidR,g.paidR] |
| 61 | · exact mul_le_mul h.enrich g.enrich g.nonneg (h.nonneg.trans h.enrich) |
| 62 | rw [show s*t-A*B=(s-A)*t+A*(t-B) by ring] |
| 63 | apply (abs_add_le ..).trans; rw [abs_mul,abs_mul] |
| 64 | have hL := mul_le_mul h.swing g.paidL (abs_nonneg t) (mul_nonneg he hw) |
| 65 | have hR := mul_le_mul h.paidR g.swing (abs_nonneg _) h.nonneg |
| 66 | have hx : 0≤ρ*(w*z) := by positivity |
| 67 | nlinarith only [hL,hR,hx] |
| 68 | omit g |
| 69 | lemma collect (q : ℝ) (ht : 0≤q) : Chip ρ (s*q) (A*q) (u*q) (U*q) := by |
| 70 | refine ⟨?_,?_,mul_le_mul_of_nonneg_right h.enrich ht,?_⟩ |
| 71 | · rw [abs_mul,abs_of_nonneg ht]; exact mul_le_mul_of_nonneg_right h.paidL ht |
| 72 | · rw [abs_mul,abs_of_nonneg ht]; exact mul_le_mul_of_nonneg_right h.paidR ht |
| 73 | rw [←sub_mul, abs_mul,abs_of_nonneg ht,←sub_mul,←mul_assoc ρ]; exact mul_le_mul_of_nonneg_right h.swing ht |
| 74 | |
| 75 | omit h |
| 76 | private lemma exp1 {s u} (h : |s|≤u) : |ℰ s-1| ≤ ℰ u-1 := by |
| 77 | have ht := Real.exp_monotone (le_of_abs_le h) |
| 78 | have hk := Real.exp_monotone (neg_le.mp (neg_le_of_abs_le h)) |
| 79 | exact abs_le.mpr ⟨by linarith only [hk,Real.add_one_le_exp s,Real.add_one_le_exp (-s)],by linarith only [ht]⟩ |
| 80 | private lemma exp2 (s v : ℝ) : ℰ v*(s-v) ≤ ℰ s - ℰ v := by |
| 81 | have hi := mul_le_mul_of_nonneg_left (Real.add_one_le_exp (s-v)) (Real.exp_pos v).le |
| 82 | rw [← Real.exp_add,add_sub_cancel] at hi; linarith only [hi] |
| 83 | include h |
| 84 | lemma sell (hc : 0≤ρ) : Chip ρ (ℰ s-1) (ℰ A-1) (ℰ u-1) (ℰ U-1) := by |
| 85 | refine ⟨exp1 h.paidL,exp1 h.paidR,sub_le_sub_right (Real.exp_monotone h.enrich) _,?_⟩ |
| 86 | have hx : |ℰ s-ℰ A| ≤ ℰ u*|s-A| := by |
| 87 | rcases le_total s A with hv|hv |
| 88 | · rw [abs_of_nonpos (sub_nonpos.mpr hv),abs_of_nonpos (sub_nonpos.mpr (Real.exp_monotone hv))]; apply le_trans _ |
| 89 | (mul_le_mul_of_nonneg_right (Real.exp_monotone (le_of_abs_le h.paidR)) (by linarith only [hv])) |
| 90 | linarith only [exp2 s A] |
| 91 | rw [abs_of_nonneg (sub_nonneg.mpr hv),abs_of_nonneg (sub_nonneg.mpr (Real.exp_monotone hv))]; apply le_trans _ |
| 92 | (mul_le_mul_of_nonneg_right (Real.exp_monotone (le_of_abs_le h.paidL)) (by linarith only [hv])) |
| 93 | linarith only [exp2 A s] |
| 94 | have ht := mul_le_mul_of_nonneg_left h.swing (Real.exp_pos u).le |
| 95 | simp only [sub_sub_sub_cancel_right]; linarith only [hx,ht,mul_le_mul_of_nonneg_left (exp2 U u) hc] |
| 96 | |
| 97 | omit h |
| 98 | lemma sum {I : Type*} (j : Finset I) {a b c d : I → ℝ} (hh : ∀ i∈j,Chip ρ (a i) (b i) (c i) (d i)) : |
| 99 | Chip ρ (∑ i∈j,a i) (∑ i∈j,b i) (∑ i∈j,c i) (∑ i∈j,d i) := by |
| 100 | induction j using Finset.induction_on with |
| 101 | | empty => simpa only [Finset.sum_empty] using zero ρ |
| 102 | | insert a j hj hi => simp only [Finset.sum_insert hj]; exact Chip.add (hh a (Finset.mem_insert_self ..)) (hi fun i hv => |
| 103 | hh i (Finset.mem_insert_of_mem hv)) |
| 104 | end Chip |
| 105 | |
| 106 | variable {s a A u U ρ : ℝ} {z y f F w : Grid J} |
| 107 | |
| 108 | /-- Same alphabet. -/ |
| 109 | def Chipped (ρ : ℝ) (z y f F : Grid J) := ∀ i, Chip ρ (z i) (y i) (f i) (F i) |
| 110 | |
| 111 | namespace Chipped |
| 112 | |
| 113 | lemma grows (h : Chip ρ s a u U) (I : List (Leaf J)) (P : Leaf J) |
| 114 | (hx : ∀ i∈I, Chip ρ (z i) (y i) (f i) (F i)) (hr : 0≤ρ) : |
| 115 | Chipped ρ (grow I P s z) (grow I P a y) (grow I P u f) (grow I P U F) := by |
| 116 | have grain_price {s a u U : ℝ} (h : Chip ρ s a u U) (i : Leaf J) : |
| 117 | Chipped ρ (grain i s) (grain i a) (grain i u) (grain i U) := by |
| 118 | intro j; unfold grain; split; exact h; exact Chip.zero _ |
| 119 | induction I with |
| 120 | | nil => exact grain_price h _ |
| 121 | | cons t l ih => |
| 122 | let k := grain_price ((hx _ (List.Mem.head _)).sell hr) t |
| 123 | have hz := ih (fun i hi => hx i (.tail _ hi)); intro i |
| 124 | refine Chip.add (hz i) (Chip.sum (a:=fun _ => _) Finset.univ (fun j _ => Chip.sum Finset.univ (fun d _ => ?_))) |
| 125 | by_cases he : j ∪ d = i |
| 126 | · simpa [he] using (hz j).mul (k d) hr |
| 127 | simpa [he] using Chip.zero ρ |
| 128 | |
| 129 | lemma signals {Z₁ Z₂ L H : Grid J} (h : Chipped ρ z y f F) (hr : 0≤ρ) (i : Leaf J) (x : J) |
| 130 | (hh : ∀ j⊆i.erase x, Chip ρ (locker Z₁ j) (locker Z₂ j) (locker L j) (locker H j)) : |
| 131 | Chipped ρ (signal z Z₁ i x) (signal y Z₂ i x) (signal f L i x) (signal F H i x) := by |
| 132 | intro j; apply Chip.sum; intro t _ |
| 133 | exact Chipped.grows (h t) _ _ (fun u hu => hh u (mem_powerset.mp (mem_filter.mp (Finset.mem_toList.mp hu)).1)) hr j |
| 134 | |
| 135 | private lemma ribbons (h : Chipped ρ z y f F) (hr : 0≤ρ) (n : ℕ) : |
| 136 | Chipped ρ (ribbon z n) (ribbon y n) (ribbon f n) (ribbon F n) := by |
| 137 | induction n with |
| 138 | | zero => exact h |
| 139 | | succ n ih => |
| 140 | intro i; unfold ribbon glue; apply Chip.sum; intro j _; apply Chip.sum; intro k _ |
| 141 | split; exact Chip.mul (ih _) (h _) hr; exact Chip.zero _ |
| 142 | |
| 143 | private lemma lamplight {g : Grid J} (he : Rate w) {i : Leaf J} (hi : i.Nonempty) (h : Pinned i g) |
| 144 | (ht : crop w g < 1) (j : Leaf J) : HasSum (fun n : ℕ => ribbon g n j*(n+1:ℝ)⁻¹) (lamp g j) := by |
| 145 | simpa only [lamp,div_eq_mul_inv] using (lamp_dom he hi h ht j).hasSum |
| 146 | lemma shines (h : Chipped ρ z y f F) (hr : 0≤ρ) (he : Rate w) {i : Leaf J} (hi : i.Nonempty) |
| 147 | (h₁ : Pinned i z) (h₂ : Pinned i y) (h₃ : Pinned i f) (h₄ : Pinned i F) (ht : crop w F < 1) : |
| 148 | Chipped ρ (lamp z) (lamp y) (lamp f) (lamp F) := by |
| 149 | have hm {g : Grid J} (hv : ∀ j,|g j|≤F j) : crop w g < 1 := lt_of_le_of_lt (b:=crop w F) |
| 150 | (sum_le_sum fun i _ => mul_le_mul_of_nonneg_left ((hv _).trans (le_abs_self _)) (zero_le_one.trans (he.pos _))) ht |
| 151 | have ha := hm fun i => ((h i).paidL).trans (h i).enrich |
| 152 | have hb := hm fun i => ((h i).paidR).trans (h i).enrich |
| 153 | have hc := hm (g:=f) fun i => by rw [abs_of_nonneg (h i).nonneg]; exact (h i).enrich |
| 154 | intro j |
| 155 | let σ (a : Grid J) n := ribbon a n j * (n+1:ℝ)⁻¹ |
| 156 | have hp (n : ℕ) : Chip ρ (σ z n) (σ y n) (σ f n) (σ F n) := (h.ribbons hr n j).collect _ (by positivity) |
| 157 | have hx : HasSum (σ z) (lamp z j) := lamplight he hi h₁ ha j |
| 158 | have hy : HasSum (σ y) (lamp y j) := lamplight he hi h₂ hb j |
| 159 | have hz : HasSum (σ f) (lamp f j) := lamplight he hi h₃ hc j |
| 160 | have hU : HasSum (σ F) (lamp F j) := lamplight he hi h₄ ht j |
| 161 | have hoof {g g' : ℕ→ℝ} (hg : Summable g) (hg' : Summable g') (hv : ∀ i,|g i|≤g' i) : |
| 162 | |∑' i,g i| ≤ ∑' i,g' i := (norm_tsum_le_tsum_norm hg.norm).trans (hg.norm.tsum_le_tsum hv hg') |
| 163 | rw [← hx.tsum_eq, ← hy.tsum_eq,← hz.tsum_eq, ← hU.tsum_eq] |
| 164 | refine ⟨hoof hx.summable hz.summable (fun i => (hp i).paidL),hoof hy.summable hz.summable (fun i => (hp i).paidR), |
| 165 | hz.summable.tsum_le_tsum (fun i => (hp i).enrich) hU.summable,?_⟩ |
| 166 | rw [← hx.summable.tsum_sub hy.summable,← hU.summable.tsum_sub hz.summable, ← tsum_mul_left] |
| 167 | exact hoof (hx.summable.sub hy.summable) ((hU.summable.sub hz.summable).mul_left _) (fun i => (hp i).swing) |
| 168 | end Chipped |
| 169 | |
| 170 | variable {H₁ H₂ L H : Grid J} |
| 171 | |
| 172 | /- Use the lamp identification only when there is a price *on this |
| 173 | region*, not comparing a purely formal series for the two endpoints. |
| 174 | |
| 175 | -/ |
| 176 | private lemma sees {g X w : Grid J} {B : Leaf J} (hz : ∀ j,0<X j) |
| 177 | {x : J} (hx : x∈B) (he : Deletion g X) (hm : Rate w) (ht : crop w (signal g X B x) < 1) : |
| 178 | locker X B=lamp (signal g X B x) B := by |
| 179 | let Y := signal g X B x |
| 180 | have hg (i : Leaf J) : 0<1-shed Y i := sub_pos.mpr ((le_abs_self _).trans_lt ((crop_shed hm Y i).trans_lt ht)) |
| 181 | have hw := changes (fun j => -logr (X j)) x B |
| 182 | rw [if_pos hx] at hw |
| 183 | refine hw.symm.trans (Eq.symm (from_shed ?_)); intro C hc |
| 184 | rw [lamp_shed hm (singleton_nonempty _) (signal_pinned _ _ _ _) ht,matures he hx (fun i _=> hz i) C hc, |
| 185 | Real.log_mul (hz _).ne' (hg C).ne']; ring |
| 186 | |
| 187 | private lemma worth {B : Leaf J} (hF : Deletion F H) (hw : Receipt w F a) {x : J} (_ : x∈B) : |
| 188 | crop w (signal F H B x)<1 := by |
| 189 | have hf i : |F i| ≤ F i := le_of_eq (abs_of_nonneg (hw.zero _)) |
| 190 | have h := leash hw hf hF hF |
| 191 | have hz j : 0 ≤ locker H j := (abs_nonneg _).trans (h j).2.2.1 |
| 192 | let l i := w i * locker H i |
| 193 | have hW i : 0 ≤ l i := mul_nonneg (zero_le_one.trans (hw.budget.pos _)) (hz i) |
| 194 | have hN (i : Leaf J) (_ : i ⊆ B) : ∑ u∈neighbors B x i,l u ≤ a * i.card := by |
| 195 | let t (y : J) u := if y∈u then l u else 0 |
| 196 | have ht (y : J) (u : Leaf J) : 0 ≤ t y u := by unfold t; split; exact hW _; rfl |
| 197 | have hh y : ∑ u∈neighbors B x i,t y u ≤ a := by |
| 198 | refine (sum_le_sum_of_subset_of_nonneg (subset_univ _) (fun u _ _ => ht y u)).trans ?_ |
| 199 | let P := (Finset.univ : Leaf J) |
| 200 | have ha : P.powerset = Finset.univ := by ext; simp [P] |
| 201 | have hb := (h P).2.2.2 y (mem_univ y) |
| 202 | unfold t; rw [←sum_filter,←ha]; exact hb |
| 203 | have hv (y) (hy : y∈neighbors B x i) : l y ≤ ∑ z∈i,t z y := by |
| 204 | obtain ⟨u,ht'⟩ := (mem_filter.mp hy).2 |
| 205 | have he := Finset.single_le_sum (f:=fun z=>t z y) (fun i _=>ht i y) (mem_inter.mp ht').2 |
| 206 | simpa only [t,if_pos (mem_inter.mp ht').1] using he |
| 207 | refine (sum_le_sum hv).trans ?_; rw [sum_comm] |
| 208 | exact le_trans (sum_le_sum fun j _=>hh j) (le_of_eq (by simp [mul_comm])) |
| 209 | unfold signal |
| 210 | calc |
| 211 | _ ≤ ∑ i∈owners B x,crop w (sprig (neighbors B x i) i (F i) (locker H)) := crop_fin hw.budget _ _ |
| 212 | _ ≤ ∑ i∈owners B x,w i*F i*ℰ (a*i.card) := by |
| 213 | refine sum_le_sum fun i hi => ?_ |
| 214 | have he := sprig_cost hw.budget (F i) (locker H) (neighbors B x i) (fun t ht => (mem_filter.mp ht).2) |
| 215 | (fun u hu => hz u) |
| 216 | rw [abs_of_nonneg (hw.zero _)] at he |
| 217 | exact he.trans (mul_le_mul_of_nonneg_left (Real.exp_monotone (hN i (mem_powerset.mp (mem_filter.mp hi).1))) |
| 218 | (mul_nonneg (zero_le_one.trans (hw.budget.pos _)) (hw.zero _))) |
| 219 | _ ≤ 1-ℰ (-a) := le_trans (sum_le_sum_of_subset_of_nonneg (fun i hi => mem_filter.mpr ⟨mem_univ _, (mem_filter.mp hi).2⟩) |
| 220 | (fun i _ _ => mul_nonneg (mul_nonneg (zero_le_one.trans (hw.budget.pos _)) (hw.zero _)) (Real.exp_pos _).le)) (hw.hits x) |
| 221 | _ < 1 := by linarith only [Real.exp_pos (-a)] |
| 222 | |
| 223 | /-- Apply simultaneously from the two endpoint deletions and the two |
| 224 | comparisons. Concerns SAME orders/log pieces. Not an estimate through a |
| 225 | limit of measurements. |
| 226 | -/ |
| 227 | theorem prices (hx : Chipped ρ z y f F) (hr : 0≤ρ) (hw : Receipt w F a) |
| 228 | (hf : Deletion f L) (hF : Deletion F H) (h₁ : Deletion z H₁) (h₂ : Deletion y H₂) : |
| 229 | Chipped ρ (locker H₁) (locker H₂) (locker L) (locker H) := by |
| 230 | have hz i : 0 ≤ f i := (hx i).nonneg |
| 231 | have hy := leash hw (fun i => ((hx i).paidR).trans (hx i).enrich) hF h₂ |
| 232 | have hZ := leash hw (fun i => ((hx i).paidL).trans (hx i).enrich) hF h₁ |
| 233 | have ht := leash hw (z:=f) (fun i => by rw [abs_of_nonneg (hz _)]; exact (hx _).enrich) hF hf |
| 234 | intro i |
| 235 | induction i using Finset.strongInduction with |
| 236 | | H B ih => |
| 237 | by_cases he : Finset.Nonempty B; swap |
| 238 | · have h0 {f g : Grid J} (hv : Deletion f g) : locker g B=0 := by |
| 239 | unfold locker; rw [Finset.not_nonempty_iff_eq_empty.mp he,unfold_pieces]; simp [hv.bottom] |
| 240 | rw [h0 h₁,h0 h₂,h0 hf,h0 hF]; exact Chip.zero ρ |
| 241 | obtain ⟨x,hb⟩ := he |
| 242 | have hh := hx.signals (Z₁:=H₁) (Z₂:=H₂) (L:=L) (H:=H) hr B x (fun j hj => ih j |
| 243 | (Finset.ssubset_iff_subset_ne.mpr ⟨hj.trans (erase_subset ..),fun H => notMem_erase x B (hj (H.symm ▸ hb))⟩)) |
| 244 | have hc := worth hF hw hb |
| 245 | have h lamp (hz : ∀ i, |lamp i| ≤ signal F H B x i) : crop w lamp < 1 := lt_of_le_of_lt |
| 246 | (b:=crop w (signal F H B x)) (sum_le_sum fun i _ => mul_le_mul_of_nonneg_left ((hz i).trans (le_abs_self _)) |
| 247 | (zero_le_one.trans (hw.budget.pos _))) hc |
| 248 | have ha := sees (fun i=>(hZ i).2.1) hb h₁ hw.budget (h _ (fun i => (hh i).paidL.trans (hh i).enrich)) |
| 249 | have he := sees (fun i=>(hy i).2.1) hb h₂ hw.budget (h _ (fun i => (hh i).paidR.trans (hh i).enrich)) |
| 250 | have hv := sees (fun i=>(ht i).2.1) hb hf hw.budget (h _ (fun i => by rw [abs_of_nonneg (hh i).nonneg]; exact (hh i).enrich)) |
| 251 | rw [ha,he,hv,sees (fun i=>(ht i).1) hb hF hw.budget hc] |
| 252 | exact hh.shines hr hw.budget (singleton_nonempty _) (signal_pinned _ _ _ x) (signal_pinned _ _ _ x) (signal_pinned _ _ _ x) (signal_pinned _ _ _ x) hc B |
| 253 | |
| 254 | variable {ι : Type*} (X : ι → Leaf J) |
| 255 | |
| 256 | /-- Chipped on finite *support* tags from the actual, possibly infinite, |
| 257 | address budgets. Summability checked before using `Deletion`. Include the |
| 258 | ordinary hit and legality receipts produced in the very same operation. -/ |
| 259 | theorem atomic (hX : ∀ i,(X i).Nonempty) {F f y z : ι → ℝ} {δ : ℝ} (hh : Sufficient X w F a δ) |
| 260 | (hx : ∀ i,Chip ρ (z i) (y i) (f i) (F i)) (hr : 0≤ρ) : |
| 261 | let C : Grid J := locker (fumes X (-F)) |
| 262 | let L : Grid J := locker (fumes X (-f)) |
| 263 | let Az : Grid J := fumes X z; let Ay := fumes X y |
| 264 | Chipped ρ (locker Az) (locker Ay) L C ∧ Applied w Az a C ∧ Applied w Ay a C := by |
| 265 | intro C L Az Ay |
| 266 | have H i := hx i |
| 267 | have hy i : |y i| ≤ F i := ((H i).paidR).trans (H i).enrich |
| 268 | have hz i : |z i| ≤ F i := ((H i).paidL).trans (H i).enrich |
| 269 | have hS := supplied_sum hX hh |
| 270 | have hsf := hS.of_nonneg_of_le (fun i => (H i).nonneg) (fun i => (H i).enrich) |
| 271 | have hsz : Summable z := Summable.of_norm_bounded hS hz |
| 272 | have hsy : Summable y := Summable.of_norm_bounded hS hy |
| 273 | let Z (z : ι → ℝ) (i : Leaf J) := - fresco X z i |
| 274 | have he (z : ι → ℝ) (i : Leaf J) : Z (-z) i = fresco X z i := by |
| 275 | unfold Z fresco; rw [← tsum_neg]; apply tsum_congr; intro j; split <;> simp |
| 276 | refine ⟨prices (w:=w) (a:=a) ?_ hr ?_ (shelf _ hX (-f) hsf.neg) (shelf _ hX (-F) hS.neg) (shelf _ hX z hsz) (shelf _ hX y hsy), |
| 277 | catalog hX hh z hz,catalog hX hh y hy⟩ |
| 278 | · change Chipped ρ (Z z) (Z y) (Z (-f)) (Z (-F)) |
| 279 | intro i; rw [he,he]; refine ⟨?_,?_,?_,?_⟩ |
| 280 | · unfold Z; rw [abs_neg]; exact attendance hsf (fun i => (H i).paidL) _ |
| 281 | · unfold Z; rw [abs_neg]; exact attendance hsf (fun i => (H i).paidR) _ |
| 282 | all_goals |
| 283 | let l (g : ι → ℝ) := fun j => if X j=i then g j else 0 |
| 284 | have hl {g : ι → ℝ} (hg : Summable g) : Summable (l g) := Summable.of_norm_bounded hg.norm |
| 285 | (fun j => by unfold l; split; rfl; rw [norm_zero]; exact norm_nonneg _) |
| 286 | · unfold fresco; exact (hl hsf).tsum_le_tsum (fun j => by split; exact (H _).enrich; rfl) (hl hS) |
| 287 | change |- (∑' j,l z j) - -(∑' j,l y j)| ≤ ρ*((∑' j,l F j)-(∑' j,l f j)) |
| 288 | rw [show -(∑' j,l z j) - -(∑' j,l y j) = -((∑' j,l z j)-(∑' j,l y j)) by ring,abs_neg,← (hl hsz).tsum_sub (hl hsy),← (hl hS).tsum_sub (hl hsf),← tsum_mul_left] |
| 289 | have h := ((hl hsz).sub (hl hsy)).norm |
| 290 | refine (norm_tsum_le_tsum_norm h).trans (h.tsum_le_tsum ?_ (((hl hS).sub (hl hsf)).mul_left _)); intro j |
| 291 | change |l z j-l y j| ≤ ρ*(l F j-l f j) |
| 292 | unfold l; split; exact (H j).swing; simp |
| 293 | change Receipt w (Z (-F)) a |
| 294 | rw [funext (he F)]; exact pay_fresco hX hh |
| 295 | |
| 296 | end YM.AnalyticBridge.ResetIncome.LogMotion |