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.Further.ROOTED_INTERACTING_REMAINDER.Circulation |
| 2 | import YM.Further.ROOTED_INTERACTING_REMAINDER.Exposure |
| 3 | import YM.Further.ROOTED_INTERACTING_REMAINDER.Probe |
| 4 | /-! |
| 5 | # No denominator argument yet: absolute survey of the intact profiles |
| 6 | |
| 7 | We conserve some of the share suppression explicitly through the integral. |
| 8 | Always by coupling R.beta of the given query; `x` is the *other* variable (hat). |
| 9 | -/ |
| 10 | set_option autoImplicit false |
| 11 | noncomputable section |
| 12 | namespace YM.Further.RootedInteractingRemainder |
| 13 | open Lattice RG Wilson Filter Function Set Tree Finset MeasureTheory Precision |
| 14 | open SectorNext.Vacuum Pressure Pressure.Stores Push.SectorMeasure |
| 15 | open Next.Fluctuations.Sector Oriented Presented |
| 16 | open scoped Topology Matrix.Norms.Frobenius BigOperators Classical |
| 17 | variable {G : Gauge} {c f : Side} {S : StepData c f} |
| 18 | {F : Forest S.ratio} {T : Tube G S} {P : Teller G} {R : Rep G f} {x W : ℝ} {D : Allocation G S x W} |
| 19 | {X : Type*} [NormedAddCommGroup X] |
| 20 | local notation "Δ" => Module.finrank ℝ G.Color |
| 21 | local notation "t" => fiery G x S.patch.L -- local can't capture? |
| 22 | |
| 23 | -- envelope for a probe system; growth rate allowed on *any subset* |
| 24 | -- of Stores. Charge per-shares includes tags and LF chords, not an assertion |
| 25 | -- on the ratio to output V density. UR is still the supplied map; hypothesis |
| 26 | -- only where a particular guard & Alive holds. etc context. |
| 27 | structure CargoBill (R : Rep G f) (D : Allocation G S x W) (F : Forest S.ratio) |
| 28 | (g : GaugeProbe G S F X) (b q : ℝ) : Prop where |
| 29 | issues (A : Stores S) i (a : F.Slice G) V : D.bill A i (F.drape a) V ≠ 0 → Alive S (F.drape a) i → |
| 30 | ‖g A i (a,V)‖ ≤ Real.exp (b * sites c + q*(R.beta*(fiery G x S.patch.L)^2*A.shares)) |
| 31 | |
| 32 | private lemma gates (A : Stores S) (U : Config G f) (i : S.Choices) (V : Config G c) |
| 33 | (h : Seeded A U i V x W) (ht : 0<t) (hW : 0≤W) : |
| 34 | let Q := S.prediction U i |
| 35 | let Gt := Fintype.card (Cell f) + (Fintype.card (Bond c):ℝ)*(2*W) |
| 36 | 1 ≤ Real.exp Gt * (ration A.costs t U * gapper A.aisles t V Q) := by |
| 37 | intro Q Gt |
| 38 | let K := G.chord |
| 39 | let e := fun u : G.El=>draught t⁻¹ u |
| 40 | have hi (s : ℝ) (hs : 0≤s) (u : G.El) (h : K u ≤ s*t) : 1 ≤ Real.exp s * e u := by |
| 41 | unfold e draught; rw [← Real.exp_add]; apply Real.one_le_exp |
| 42 | have he : t⁻¹*t=1 := inv_mul_cancel₀ ht.ne' |
| 43 | unfold K at h; nlinarith only [mul_le_mul_of_nonneg_left h (inv_pos.mpr ht).le, |
| 44 | show s*(t⁻¹*t)=s by rw [he,mul_one]] |
| 45 | have hb {ι : Type} [Fintype ι] (s : Finset ι) (q : ι → ℝ) (v : ℝ) (hv : 0≤v) |
| 46 | (hh : ∀ i∈s,1≤Real.exp v*q i) : |
| 47 | 1 ≤ Real.exp ((Fintype.card ι:ℝ)*v)*∏ i∈s,q i := by |
| 48 | have hp : ∀ i∈s,0 ≤ q i := by |
| 49 | intro i hi; exact nonneg_of_mul_nonneg_right (zero_le_one.trans (hh i hi)) (Real.exp_pos _) |
| 50 | calc |
| 51 | 1 = ∏ i∈s,(1:ℝ) := by simp |
| 52 | _ ≤ ∏ i∈s, (Real.exp v*q i) := prod_le_prod (fun i _ => zero_le_one) hh |
| 53 | _ ≤ _ := by |
| 54 | rw [prod_mul_distrib,prod_const,←Real.exp_nat_mul] |
| 55 | exact mul_le_mul_of_nonneg_right (Real.exp_monotone |
| 56 | (mul_le_mul_of_nonneg_right (Nat.cast_le.mpr (card_le_univ _)) hv)) (prod_nonneg hp) |
| 57 | have hc : 1 ≤ Real.exp ((Fintype.card (Cell f):ℝ)*1)*ration A.costs t U := hb A.costsᶜ (fun j => e (faceValue U j)) 1 zero_le_one fun p hp => hi 1 zero_le_one (faceValue U p) |
| 58 | (by rw [one_mul]; change toll U p ≤ _; exact ((h.fine p).2 (mem_compl.mp hp)).trans (by linarith only [ht])) |
| 59 | have hw : 1 ≤ Real.exp ((Fintype.card (Bond c):ℝ)*(2*W))*gapper A.aisles t V Q := |
| 60 | hb A.aislesᶜ (fun i=>e (V i*(Q i)⁻¹)) (2*W) (by positivity) fun p hp => |
| 61 | hi (2*W) (by positivity) (V p*(Q p)⁻¹) ((h.coarse p).2 (mem_compl.mp hp)) |
| 62 | unfold Gt; rw [Real.exp_add] |
| 63 | rw [mul_one] at hc |
| 64 | exact le_trans (b:=Real.exp (↑(Fintype.card (Cell f)))*ration A.costs t U * |
| 65 | (Real.exp (Fintype.card (Bond c)*(2*W))*gapper A.aisles t V Q)) (one_le_mul_of_one_le_of_one_le hc hw) |
| 66 | (le_of_eq (by ring)) |
| 67 | |
| 68 | /-- Quantitative. No small output-field assumptions. `far` is the exact |
| 69 | far-zone receipt produced on ALL instances by `settled_exterior` at chosen |
| 70 | x tail. -/ |
| 71 | theorem sample {g : GaugeProbe G S F X} {b q δ y Λ ε : ℝ} |
| 72 | (h : CargoBill R D F g b q) |
| 73 | (hR : R.Lawful P.top.width P.top.paths Λ δ y) (hc : R.clip=P.top.clip) |
| 74 | (hy : y≤1) (ht : 0<t) (hW : 0≤W) (hβ : 0≤R.beta) |
| 75 | (far : ∀ A U k V, SliceSet S F U → Alive S U k → Seeded A U k V x W → |
| 76 | -R.beta * meanRest A T x U k V ≤ ε*sites c) |
| 77 | (A : Stores S) (i : S.Choices) (a : F.Slice G) (V : Config G c) : |
| 78 | let p := sites f*(R.exCost P.top.paths Λ δ + R.beta*(Fintype.card PlaqAxes*(wound P.top.width P.top.paths R.p.threshold (till x) 1))) |
| 79 | let Gt := Fintype.card (Cell f) + (Fintype.card (Bond c):ℝ)*(2*W) |
| 80 | D.bill A i (F.drape a) V * carrier (x:=x) F T R g A i V a ≤ |
| 81 | Real.exp (p + b*sites c + q*(R.beta*t^2*A.shares) + ε*sites c + Gt) * flight A t i V (F.drape a) := by |
| 82 | intro p Gt |
| 83 | let U := F.drape a |
| 84 | let d := D.bill A i U V |
| 85 | have h1 : 0≤Real.exp (p+b*sites c+q*(R.beta*t^2*A.shares)+ε*sites c+Gt)*flight A t i V U := |
| 86 | mul_nonneg (Real.exp_pos _).le (flight_nonneg ..) |
| 87 | by_cases he : d=0 |
| 88 | · change d*_ ≤ _; rw [he,zero_mul]; exact h1 |
| 89 | by_cases ha : Alive S U i |
| 90 | swap |
| 91 | · change d*(_*_*(S.likelihood U i*_)) ≤ _; simp_rw [dead ha]; simpa only [zero_mul,mul_zero] using h1 |
| 92 | have hp := launched P.top hR hc hβ hy (till x) U |
| 93 | have hQ := h.issues A i a V he ha |
| 94 | let L := b*sites c + q*(R.beta*t^2*A.shares) |
| 95 | have hP := D.actual _ _ _ _ he |
| 96 | have hX := far A U i V (fun j hj => F.on_tree _ ⟨j,hj⟩) ha hP |
| 97 | let Y := S.prediction U i |
| 98 | let w := S.likelihood U i |
| 99 | have hw : 0≤w := ha.le |
| 100 | have hm : leaves A T R.beta x i V U ≤ w*Real.exp (ε*sites c) := |
| 101 | mul_le_mul_of_nonneg_left (Real.exp_monotone hX) hw |
| 102 | have hx : 1≤Real.exp Gt * (ration A.costs t U*gapper A.aisles t V Y) := gates _ _ _ _ hP ht hW |
| 103 | calc |
| 104 | _ ≤ ‖Real.exp (-R.scalar)*exposed R (till x) U‖ * ‖g A i (a,V)‖ * leaves A T R.beta x i V U := |
| 105 | mul_le_of_le_one_left (mul_nonneg (mul_nonneg (norm_nonneg _) (norm_nonneg _)) (mul_nonneg hw (Real.exp_pos _).le)) (D.range ..) |
| 106 | _ ≤ Real.exp p * Real.exp L * (w*Real.exp (ε*sites c)) := |
| 107 | mul_le_mul (mul_le_mul hp hQ (norm_nonneg _) (Real.exp_pos _).le) hm (mul_nonneg hw (Real.exp_pos _).le) (by positivity) |
| 108 | _ ≤ Real.exp p * Real.exp L * (w*Real.exp (ε*sites c))*(Real.exp Gt*(ration A.costs t U*gapper A.aisles t V Y)) := |
| 109 | le_mul_of_one_le_right (by positivity) hx |
| 110 | _ = _ := by dsimp only [L,w,Y,U,flight]; simp_rw [Real.exp_add]; ring |
| 111 | |
| 112 | /-- Nonnegative rates before dividing in the normalized probe. `rooms` |
| 113 | has no power of β from a bare integration, only a β *tail* correction |
| 114 | from cutting the genuine paths, the inherited prices, and a constant |
| 115 | factor per oriented plaquette/bond. These latter per-level constants can |
| 116 | grow with blocks (DON'T claim pre-block pricing of the *density step*). -/ |
| 117 | def rooms {G : Gauge} {f : Side} (R : Rep G f) (P : Stage) (ε x W b Λ δ : ℝ) (_n : Side) : ℝ := |
| 118 | sites f*(R.exCost P.paths Λ δ + R.beta*(Fintype.card PlaqAxes*wound P.width P.paths R.p.threshold (till x) 1)) + (b+ε)*sites _n + |
| 119 | Fintype.card (Cell f) + (Fintype.card (Bond _n):ℝ)*(2*W) |
| 120 | |
| 121 | variable [NormedSpace ℝ X] [SecondCountableTopology X] [MeasurableSpace X] [BorelSpace X] |
| 122 | /-- Estimate with the V-testing right side (still needs a rotation trick even |
| 123 | here). -/ |
| 124 | lemma gauge_tally {g : GaugeProbe G S F X} {b q δ y Λ ε : ℝ} |
| 125 | (h : CargoBill R D F g b q) |
| 126 | (hR : R.Lawful P.top.width P.top.paths Λ δ y) (hT : P.Funds S T) (hc : R.clip=P.top.clip) |
| 127 | (hy : y≤1) (ht : 0<t) (hW : 0≤W) (hβ : 0≤R.beta) |
| 128 | (far : ∀ A U k V,SliceSet S F U → Alive S U k → Seeded A U k V x W → |
| 129 | -R.beta * meanRest A T x U k V ≤ ε*sites c) |
| 130 | (A : Stores S) (V : Config G c) (he : ∀ i,Envelope (g A i)) : |
| 131 | cargo F T R D g A V ≤ |
| 132 | sieve T R.beta x V * Real.exp (rooms R P.top ε x W b Λ δ c + q*(R.beta*t^2*A.shares)) * |
| 133 | ∑ i : S.Choices,∫ a,flight A t i V (F.drape a) ∂F.order G := by |
| 134 | let ν := F.Slice G |
| 135 | let ρ := F.order G |
| 136 | let v : ℝ := rooms R P.top ε x W b Λ δ c + q*(R.beta*t^2*A.shares) |
| 137 | unfold cargo Allocation.column tagTotal |
| 138 | rw [mul_assoc]; apply mul_le_mul_of_nonneg_left _ (Real.exp_pos _).le |
| 139 | rw [Finset.mul_sum]; apply sum_le_sum; intro i _ |
| 140 | rw [←integral_const_mul] |
| 141 | change (∫ a,D.bill A i (F.drape a) V * carrier (x:=x) F T R g A i V a ∂ρ) ≤ _ |
| 142 | let m (p : F.Slice G × Config G c) := D.bill A i (F.drape p.1) p.2 * carrier (x:=x) F T R g A i p.2 p.1 |
| 143 | haveI : IsProbabilityMeasure ρ := by unfold ρ; infer_instance |
| 144 | have hm : Envelope m := (actual F R D g hT hR A i (he i)).1 |
| 145 | have h₁ : Integrable (fun a : ν => m (a,V)) ρ := Env.integrableX (Env.along hm (g:=fun a:ν => (a,V)) (measurable_id.prodMk measurable_const)) _ |
| 146 | apply integral_mono h₁ |
| 147 | · exact ((Envelope.const _).mul (wing (funds_branch hT) A t i (V:=fun (_ : F.Slice G) => V) measurable_const F.continuous_drape.measurable)).integrable _ |
| 148 | intro a; exact (sample h hR hc hy ht hW hβ far A i a V).trans_eq (by dsimp only [rooms]; congr 2; ring) |
| 149 | |
| 150 | local notation "sV" => Fintype.card (Site c)-1 |
| 151 | local notation "eV" => Fintype.card (Bond c) |
| 152 | local notation "ΔV" => rich f+sV -- beware notation precedence |
| 153 | local notation "ΔI" => rich f+eV |
| 154 | |
| 155 | set_option linter.unusedSectionVars false |
| 156 | lemma landed_issue {g : GaugeProbe G S F X} {b q δ y Λ ε : ℝ} |
| 157 | (h : CargoBill R D F g b q) (hr : R.Lawful P.top.width P.top.paths Λ δ y) |
| 158 | (hT : P.Funds S T) (hc : R.clip=P.top.clip) (hy : y≤1) (ht : 0<t) (hs : t≤1) |
| 159 | (hW : 0≤W) (hβ : 0≤R.beta) |
| 160 | (far : ∀ A U k V,SliceSet S F U → Alive S U k → Seeded A U k V x W → |
| 161 | -R.beta * meanRest A T x U k V ≤ ε*sites c) |
| 162 | (A : Stores S) (he : ∀ i,Envelope (g A i)) |
| 163 | {K : ℝ} (hK : 1≤K) (hZ : (∫ i,draught t⁻¹ i ∂G.probHaar) ≤ K*t^Δ) (hn : 2≤c.val) |
| 164 | {κ m : ℝ} (hp : 0≤m) (hu : Real.exp ((q-κ+m)*(R.beta*t^2))*t⁻¹^Δ ≤ 1) : |
| 165 | let L := Real.exp (rooms R P.top ε x W b Λ δ c) |
| 166 | let C := Real.exp (-m*(R.beta*t^2*A.shares)) |
| 167 | (∀ V,earn S G x κ R.beta A.shares * cargo F T R D g A V ≤ |
| 168 | prefactor S G R.beta * L * (K*t^Δ)^ΔV * C * sieve T R.beta x V) ∧ |
| 169 | (∫ V,(earn S G x κ R.beta A.shares * cargo F T R D g A V) ∂prior G c) ≤ |
| 170 | prefactor S G R.beta * L * (K*t^Δ)^ΔI * C := by |
| 171 | intro L C |
| 172 | let Dn : ℕ := A.costs.card + A.aisles.card |
| 173 | let a : ℝ := A.shares |
| 174 | let v := R.beta*t^2 |
| 175 | have hK' : 0<K := zero_lt_one.trans_le hK |
| 176 | have hh : 0 ≤ v := by unfold v; positivity |
| 177 | let h₁ (j : ℕ) := (K*t^Δ)^j*(t⁻¹^Δ)^Dn |
| 178 | have hl : 1≤t⁻¹^Δ := one_le_pow₀ (by simpa using inv_anti₀ ht hs) |
| 179 | have h2 : Real.exp ((q-κ+m)*(v*a))*(t⁻¹^Δ)^Dn ≤ 1 := by |
| 180 | calc |
| 181 | _ ≤ Real.exp ((q-κ+m)*(v*a))*(t⁻¹^Δ)^A.shares := by |
| 182 | gcongr _ * ?_; exact pow_le_pow_right₀ hl (by dsimp only [Stores.shares,Dn]; omega) |
| 183 | _ = (Real.exp ((q-κ+m)*v)*t⁻¹^Δ)^A.shares := by |
| 184 | unfold a; rw [show _*((v:ℝ)*(A.shares:ℝ))=(A.shares:ℝ)*((q-κ+m)*v) by ring,Real.exp_nat_mul,mul_pow] |
| 185 | _ ≤ _ := pow_le_one₀ (by unfold v; positivity) hu |
| 186 | let M := rooms R P.top ε x W b Λ δ c + q*(v*a) |
| 187 | have hf (j : ℕ) : earn S G x κ R.beta A.shares*Real.exp M*h₁ j ≤ prefactor S G R.beta * L * (K*t^Δ)^j * C := by |
| 188 | have he : Real.exp (-R.beta * (κ*t^2*a))*Real.exp M = L*C*Real.exp ((q-κ+m)*(v*a)) := by rw [← Real.exp_add]; unfold L C M; rw [←Real.exp_add,←Real.exp_add]; congr 1; unfold v; ring |
| 189 | change (prefactor S G _ * Real.exp _)*_*_ ≤ _ |
| 190 | calc |
| 191 | _ = (prefactor S G R.beta*L*(K*t^Δ)^j*C)*(Real.exp ((q-κ+m)*(v*a))*(t⁻¹^Δ)^Dn) := by |
| 192 | unfold h₁; rw [mul_assoc (prefactor S G _) _ (Real.exp M), show (A.shares:ℝ) = a by rfl,he]; ring |
| 193 | _ ≤ _ := mul_le_of_le_one_right (by |
| 194 | apply mul_nonneg _ (Real.exp_pos _).le |
| 195 | exact mul_nonneg (mul_nonneg (prefactor_pos _).le (Real.exp_pos _).le) (by positivity)) h2 |
| 196 | let z := fun V => ∑ i : S.Choices,∫ a : F.Slice G,flight A t i V (F.drape a) ∂F.order G |
| 197 | have hcV V : cargo F T R D g A V ≤ sieve T R.beta x V*(Real.exp M*z V) := by |
| 198 | rw [←mul_assoc]; exact gauge_tally h hr hT hc hy ht hW hβ far A V he |
| 199 | constructor |
| 200 | · intro V |
| 201 | have hs' : 0 ≤ sieve T R.beta x V := (Real.exp_pos _).le |
| 202 | calc |
| 203 | _ ≤ earn S G x κ R.beta A.shares*(sieve T R.beta x V*(Real.exp M*h₁ ΔV)) := by |
| 204 | apply mul_le_mul_of_nonneg_left _ (earn_pos ..).le; apply (hcV V).trans |
| 205 | exact mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left (circuit F A t K V hn (funds_branch hT) ht hs hK hZ) (Real.exp_pos _).le) hs' |
| 206 | _ = earn S G x κ R.beta A.shares*Real.exp M*h₁ ΔV * sieve T R.beta x V := by ring |
| 207 | _ ≤ _ := mul_le_mul_of_nonneg_right (hf _) hs' |
| 208 | let ν := prior G c |
| 209 | have hg : Integrable (cargo F T R D g A) ν := (cargo_portable F R D g hT hr A he).integrable _ |
| 210 | have hi : Envelope z := by |
| 211 | unfold z; apply Envelope.sum |
| 212 | intro i |
| 213 | let Y := F.Slice G × Config G c |
| 214 | exact Env.marginal (g:=fun p:Y=>flight A t i p.2 (F.drape p.1)) |
| 215 | (wing (funds_branch hT) A t i (V:=Prod.snd) measurable_snd (F.continuous_drape.measurable.comp measurable_fst)) _ |
| 216 | haveI : IsProbabilityMeasure ν := by unfold ν; infer_instance |
| 217 | calc |
| 218 | _ ≤ ∫ V,earn S G x κ R.beta A.shares*(Real.exp M*z V) ∂ν := by |
| 219 | refine integral_mono (hg.const_mul _) (((hi.integrable ν).const_mul (Real.exp M)).const_mul _) fun V => ?_ |
| 220 | apply mul_le_mul_of_nonneg_left _ (earn_pos ..).le |
| 221 | exact (hcV V).trans (mul_le_of_le_one_left (mul_nonneg (Real.exp_pos _).le |
| 222 | (sum_nonneg fun i _=>integral_nonneg fun j => flight_nonneg ..)) (sieve_nonpositive S T R.beta x hβ V)) -- hβ needed |
| 223 | _ ≤ earn S G x κ R.beta A.shares*Real.exp M*h₁ ΔI := by |
| 224 | rw [integral_const_mul,integral_const_mul,mul_assoc]; apply mul_le_mul_of_nonneg_left _ (earn_pos ..).le; apply mul_le_mul_of_nonneg_left _ (Real.exp_pos _).le |
| 225 | exact circulation F A t K (hn.trans (by rw [S.sizes]; exact Nat.le_mul_of_pos_right _ S.patch.L.property)) (funds_branch hT) ht hs hK hZ |
| 226 | _ ≤ _ := hf _ |
| 227 | |
| 228 | /-- Bill for counting the true allocation records before reorganizing into LF |
| 229 | components. No entropy spent on k or F. -/ |
| 230 | def supplicant (c f : Side) := (Real.log 2)*((Fintype.card (Cell f):ℝ)+ Fintype.card (Bond c)+sites c) |
| 231 | |
| 232 | lemma plural : (Fintype.card (Stores S):ℝ) = Real.exp (supplicant c f) := by |
| 233 | rw [Fintype.card_congr (inventory S)] |
| 234 | unfold supplicant sites |
| 235 | simp only [Support,Fintype.card_prod,Fintype.card_finset] |
| 236 | push_cast |
| 237 | simp_rw [mul_add,Real.exp_add] |
| 238 | simp only [mul_comm (Real.log 2),Real.exp_nat_mul,Real.exp_log (show 0<(2:ℝ) by norm_num),mul_assoc, ← pow_mul] |
| 239 | simp [mul_comm] |
| 240 | |
| 241 | /-- Pre-normalization survey. Both arbitrary V (including retained flag |
| 242 | suppression; arbitrary further subcollection of Stores) and partition |
| 243 | version with tail/siting specified BEFORE integration (use with e.g. event |
| 244 | on compulsory mergers; strengthening with V-dependent masks restricted by |
| 245 | Y ok, add it to g). No cost supplied for organizing by fcrec. -/ |
| 246 | theorem engaged {g : GaugeProbe G S F X} {b q δ y Λ ε : ℝ} |
| 247 | (h : CargoBill R D F g b q) (hr : R.Lawful P.top.width P.top.paths Λ δ y) |
| 248 | (hT : P.Funds S T) (hc : R.clip=P.top.clip) (hy : y≤1) (ht : 0<t) (hs : t≤1) |
| 249 | (hW : 0≤W) (hβ : 0≤R.beta) |
| 250 | (far : ∀ A U k V,SliceSet S F U → Alive S U k → Seeded A U k V x W → |
| 251 | -R.beta * meanRest A T x U k V ≤ ε*sites c) |
| 252 | {K : ℝ} (hK : 1≤K) (hZ : (∫ i,draught t⁻¹ i ∂G.probHaar) ≤ K*t^Δ) (hn : 2≤c.val) |
| 253 | {κ m : ℝ} (hp : 0≤m) (hu : Real.exp ((q-κ+m)*(R.beta*t^2))*t⁻¹^Δ ≤ 1) |
| 254 | (he : ∀ A i,Envelope (g A i)) (Y : Finset (Stores S)) (n : ℕ) (hY : ∀ A∈Y,n≤A.shares) : |
| 255 | let L := Real.exp (rooms R P.top ε x W b Λ δ c + supplicant c f) |
| 256 | let C := fun j : ℕ => Real.exp (-m*(R.beta*t^2*j)) |
| 257 | (∀ V,itinerary F T R D g κ Y V ≤ |
| 258 | prefactor S G R.beta * L * (K*t^Δ)^ΔV * C (max n (RG.flags (temp x) V).card) * sieve T R.beta x V) ∧ |
| 259 | (∫ V,itinerary F T R D g κ Y V ∂prior G c) ≤ |
| 260 | prefactor S G R.beta * L * (K*t^Δ)^ΔI * C n := by |
| 261 | intro L C |
| 262 | let E := fun j : ℕ => prefactor S G R.beta * Real.exp (rooms R P.top ε x W b Λ δ c) * (K*t^Δ)^j |
| 263 | have hE j : 0≤E j := mul_nonneg (mul_nonneg (prefactor_pos _).le (Real.exp_pos _).le) (by have := hK; positivity) |
| 264 | have h := fun A => landed_issue h hr hT hc hy ht hs hW hβ far A (he A) hK hZ hn hp hu |
| 265 | have hm : Antitone C := by |
| 266 | intro i j hij |
| 267 | apply Real.exp_monotone |
| 268 | exact mul_le_mul_of_nonpos_left (mul_le_mul_of_nonneg_left (Nat.cast_le.mpr hij) (mul_nonneg hβ (sq_nonneg _))) (by linarith) |
| 269 | have hX (u : ℝ) (j : ℕ) (hU : 0≤u) : (∑ i∈Y,E j*u) ≤ prefactor S G R.beta*L*(K*t^Δ)^j*u := by |
| 270 | rw [sum_const,nsmul_eq_mul] |
| 271 | apply le_trans (mul_le_mul_of_nonneg_right (Nat.cast_le.mpr (card_le_univ _)) (mul_nonneg (hE _) hU)) |
| 272 | refine le_of_eq ?_ |
| 273 | unfold L E; rw [plural,Real.exp_add]; ring |
| 274 | constructor |
| 275 | · intro V |
| 276 | let l := max n (RG.flags (temp x) V).card |
| 277 | let w := sieve T R.beta x V |
| 278 | have hw : 0≤w := (Real.exp_pos _).le |
| 279 | rw [mul_assoc (_ * _ * _) _ (sieve T _ _ _)] -- C*w |
| 280 | refine le_trans ?_ (hX _ _ (show 0≤ C l*w from mul_nonneg (Real.exp_pos _).le hw)) |
| 281 | unfold itinerary; refine sum_le_sum fun i hi => ?_ |
| 282 | by_cases hh : RG.flags (temp x) V=i.flags |
| 283 | · have he : l ≤ i.shares := by |
| 284 | unfold l; rw [hh]; exact max_le (hY i hi) (by unfold Stores.shares; omega) |
| 285 | rw [←mul_assoc] |
| 286 | exact ((h i).1 V).trans (mul_le_mul_of_nonneg_right |
| 287 | (mul_le_mul_of_nonneg_left (hm he) (hE _)) hw) |
| 288 | rw [sees_flags (T:=T) (F:=F) (D:=D) (g:=g) (R:=R) hh,mul_zero] |
| 289 | apply mul_nonneg (hE _) (mul_nonneg (Real.exp_pos _).le hw) |
| 290 | refine le_trans ?_ (hX _ _ (show 0≤ C n from (Real.exp_pos _).le)) |
| 291 | unfold itinerary |
| 292 | rw [integral_finsetSum] |
| 293 | · exact sum_le_sum fun i hi=> ((h i).2).trans |
| 294 | (mul_le_mul_of_nonneg_left (hm (hY i hi)) (hE _)) |
| 295 | exact fun i _ => ((cargo_portable F R D g hT hr i (he i)).integrable _).const_mul _ |
| 296 | |
| 297 | end YM.Further.RootedInteractingRemainder |