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.Levy |
| 2 | import YM.Further.ROOTED_INTERACTING_REMAINDER.Normalization |
| 3 | import YM.Further.ROOTED_INTERACTING_REMAINDER.Radius |
| 4 | /-! |
| 5 | # Intact all-volume constant money |
| 6 | |
| 7 | Survey actual `leftOver` * pointwise growth queries. Prove a constant |
| 8 | budget PER SITE on partition normalized integral for arbitrarily many copies, |
| 9 | and also retaining **half the actual coarse sieve** even pointwise, with scalar |
| 10 | jump normalization (for this second result see file Pulse; requires |
| 11 | post-Gaussian Counter incl flat matches). Hitting-norm versions still |
| 12 | separate. All residual assumptions here before the Gaussian work. -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.Further.RootedInteractingRemainder.Levy |
| 16 | open MeasureTheory Filter Function Lattice RG RG.Supply Axial Wilson Finset Precision Tree |
| 17 | open Pressure Pressure.Stores Pressure.Teller Pressure.Tube Bid Next.Fluctuations |
| 18 | open Next.Fluctuations.Sector Push.SectorMeasure Oriented Presented SectorNext.Vacuum |
| 19 | open scoped Topology InnerProductSpace Matrix.Norms.Frobenius ContDiff BigOperators Classical |
| 20 | variable {G : Gauge} {c f : Side} {S : StepData c f} {x W : ℝ} |
| 21 | {F : Forest S.ratio} {T : Tube G S} {P : Teller G} {R : Rep G f} {D : Allocation G S x W} |
| 22 | {X : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] [SecondCountableTopology X] |
| 23 | [MeasurableSpace X] [BorelSpace X] {g : GaugeProbe G S F X} |
| 24 | |
| 25 | local notation "t" => fiery G x S.patch.L |
| 26 | local notation "Δ" => Module.finrank ℝ G.Color |
| 27 | local notation "eV" => Fintype.card (Bond c) |
| 28 | local notation "nP" => Fintype.card PlaqAxes |
| 29 | local notation "ΔI" => rich f+eV |
| 30 | local notation "ΔV" => rich f+(Fintype.card (Site c)-1) |
| 31 | |
| 32 | def halfprice (T : Tube G S) (x β : ℝ) (V : Config G c) := |
| 33 | Real.exp (-(β/2)*averaged (fun i=>coarse T x (pull i 0 V))) |
| 34 | lemma halfprice_pos (T : Tube G S) (x β : ℝ) (V : Config G c) : 0<halfprice T x β V := Real.exp_pos _ |
| 35 | |
| 36 | |
| 37 | private lemma exp_cost {η τ : ℝ} (hη : 0<η) (ht : 0<τ) : ∀ v : ℝ, Real.exp (-(τ^2)*(η*v^2)) ≤ Real.exp η⁻¹*Real.exp (-τ*v) := by |
| 38 | intro v |
| 39 | have he := sq_nonneg (η*τ*v-1/2) |
| 40 | have h1 := mul_inv_cancel₀ hη.ne' |
| 41 | rw [←Real.exp_add]; apply Real.exp_monotone |
| 42 | apply le_of_mul_le_mul_left (a:=η) _ hη; nlinarith only [he,h1] |
| 43 | |
| 44 | /-- Kinetic growth bill. Physical probe on *intact* profiled question; ALL |
| 45 | threshold and tag dependencies may be read. Needs no relation to an E/K |
| 46 | label denominator. Allows e.g. gauge-scale polynomial in all plaquette |
| 47 | fluctuations simultaneously even on defect complements. Not after |
| 48 | post-hole change of coordinates/marginals. -/ |
| 49 | structure Elastic (R : Rep G f) (F : Forest S.ratio) (T : Tube G S) (D : Allocation G S x W) |
| 50 | (g : GaugeProbe G S F X) (b q θ φ : ℝ) : Prop where |
| 51 | stretch (A : Stores S) (i) (a : F.Slice G) (V : Config G c) : D.bill A i (F.drape a) V ≠ 0 → Alive S (F.drape a) i → |
| 52 | ‖g A i (a,V)‖ ≤ Real.exp (b*sites c + q*(R.beta*t^2*A.shares))* |
| 53 | Real.exp (R.beta*(θ*coin A x (F.drape a) (S.prediction (F.drape a) i) V+φ*averaged (fun j=>coarse T x (pull j 0 V)))) |
| 54 | |
| 55 | lemma inflexible (T : Tube G S) {b q θ φ : ℝ} (hθ : 0≤θ) (hφ : 0≤φ) (hβ : 0≤R.beta) |
| 56 | (h : CargoBill R D F g b q) : Elastic R F T D g b q θ φ := by |
| 57 | constructor |
| 58 | intro A i a V hd he |
| 59 | have hn := coin_nn (G:=G) A x (F.drape a) (S.prediction (F.drape a) i) V |
| 60 | have ht : 0 ≤ averaged (fun j=>coarse T x (pull j 0 V)) := |
| 61 | (av_const (0:ℝ)).symm.le.trans (av_mono fun i=>coarse_nn ..) |
| 62 | exact (h.issues A i a V hd he).trans (le_mul_of_one_le_right (Real.exp_pos _).le |
| 63 | (Real.one_le_exp (by positivity))) |
| 64 | |
| 65 | def kinetic (T : Tube G S) (x β χ : ℝ) (V : Config G c) := |
| 66 | Real.exp (-(β*χ)*averaged (fun i=>coarse T x (pull i 0 V))) |
| 67 | lemma kinetic_pos (T : Tube G S) (x β χ : ℝ) (V : Config G c) : 0<kinetic T x β χ V := Real.exp_pos _ |
| 68 | lemma kinetic_one (T : Tube G S) (x β χ : ℝ) (h : 0≤β) (hc : 0≤χ) (V : Config G c) : kinetic T x β χ V ≤ 1 := by |
| 69 | apply Real.exp_le_one_iff.mpr (mul_nonpos_of_nonpos_of_nonneg (by nlinarith) ?_) |
| 70 | exact (av_const (0:ℝ)).symm.le.trans (av_mono fun i=>coarse_nn ..) |
| 71 | lemma half_kinetic (T : Tube G S) (x β : ℝ) (V : Config G c) : kinetic T x β (1/2) V=halfprice T x β V := by |
| 72 | unfold kinetic halfprice; ring_nf |
| 73 | |
| 74 | -- exactly the holes: per-turn store is not needed in the conclusion |
| 75 | private def mapped (A : Stores S) (x : ℝ) : Stores S := ⟨A.limit x,A.intern x,A.flags⟩ |
| 76 | private def ante (A : Stage) (b Λ δ η : ℝ) (R : Rep G f) (x : ℝ) (c : Side) := sites f*(R.exCost A.paths Λ δ + R.beta*(nP*wound A.width A.paths R.p.threshold (till x) 1)) + (b+1)*sites c + |
| 77 | (Fintype.card (Cell f)+ (Fintype.card (Bond c):ℝ))*η⁻¹ |
| 78 | |
| 79 | private lemma reduction (ρ : Teller G) {b q δ y Λ τ K κ θ χ : ℝ} |
| 80 | (h : Elastic R F T D g b q θ (1/2-χ)) |
| 81 | (s : Survey ρ S T F R x W 1 Λ δ y K τ κ (κ/4) (κ/4)) |
| 82 | {η ξ : ℝ} (hp : 0<η) (hξ : η+θ=ξ) |
| 83 | (H : ∀ A U k V,SliceSet S F U → Alive S U k → Seeded A U k V x W → |
| 84 | R.beta*(ξ*coin A x U (S.prediction U k) V) - sites c ≤ R.beta*(meanRest A T x U k V + averaged (fun j=>coarse T x (pull j 0 V))/2)) |
| 85 | (A : Stores S) (i : S.Choices) (a : F.Slice G) (V : Config G c) : |
| 86 | let L := kinetic T x R.beta χ V * Real.exp (ante ρ.top b Λ δ η R x c + q*(R.beta*t^2*A.shares)) |
| 87 | sieve T R.beta x V * (D.bill A i (F.drape a) V * carrier (x:=x) F T R g A i V a) ≤ |
| 88 | L*flight (mapped A x) τ⁻¹ i V (F.drape a) := by |
| 89 | intro L |
| 90 | let U := F.drape a |
| 91 | have ht := zero_lt_one.trans_le s.lift |
| 92 | have hr : 0≤R.beta := s.rate.symm ▸ sq_nonneg _ |
| 93 | have hw := s.hot |
| 94 | have hV := kinetic_pos T x R.beta χ V |
| 95 | have hL : 0≤L := mul_nonneg hV.le (Real.exp_pos _).le |
| 96 | have hm := mul_nonneg hL (flight_nonneg (mapped A x) τ⁻¹ i V U) |
| 97 | by_cases h0 : D.bill A i U V = 0 |
| 98 | · change sieve _ _ _ V*(D.bill A i U V*_) ≤ _; rw [h0,zero_mul,mul_zero]; exact hm |
| 99 | by_cases ha : Alive S U i |
| 100 | swap |
| 101 | · change sieve _ _ _ V*(D.bill A i U V*(_*_*(S.likelihood U i*_))) ≤ _ |
| 102 | simp_rw [dead ha,zero_mul,mul_zero]; exact hm |
| 103 | let C := averaged fun j=>coarse T x (pull j 0 V) |
| 104 | let m := meanRest A T x U i V |
| 105 | let r := coin A x U (S.prediction U i) V |
| 106 | let W' := Real.exp (R.beta*(θ*r+(1/2-χ)*C)) |
| 107 | have hw' : 0 ≤ W' := (Real.exp_pos _).le |
| 108 | have he : W'*(sieve T R.beta x V * Real.exp (-R.beta*m)) ≤ kinetic T x R.beta χ V * Real.exp (sites c-(R.beta*(η*r))) := by |
| 109 | unfold kinetic W'; change Real.exp _*(Real.exp (-R.beta*C)*Real.exp _)≤ Real.exp (-(R.beta*χ)*C)*Real.exp _ |
| 110 | repeat rw [←Real.exp_add] |
| 111 | apply Real.exp_monotone; have hz := H A U i V (fun i hI=>F.on_tree _ ⟨i,hI⟩) ha (D.actual _ _ _ _ <| h0) |
| 112 | change R.beta*(ξ*r)-sites c ≤ R.beta*(m+C/2) at hz |
| 113 | rw [←hξ] at hz; linarith only [hz] |
| 114 | have hF {J : Type} [Fintype J] (z : Finset J) (u : J → G.El) : |
| 115 | Real.exp (-R.beta*(η*∑ j∈z,(G.chord (u j))^2)) ≤ Real.exp (Fintype.card J*η⁻¹)*∏ i∈z,draught τ (u i) := by |
| 116 | have hx : Real.exp (-R.beta*(η*∑ j∈z,(G.chord (u j))^2)) = ∏ i∈z,Real.exp (-R.beta*(η*(G.chord (u i))^2)) := by |
| 117 | rw [Finset.mul_sum,Finset.mul_sum,Real.exp_sum] |
| 118 | rw [hx,s.rate] |
| 119 | calc |
| 120 | _ ≤ ∏ i∈z,(Real.exp η⁻¹*draught τ (u i)) := prod_le_prod (fun i _ => (Real.exp_pos (-(τ^2)*(η*(G.chord (u i))^2))).le) (fun i _=>exp_cost hp ht _) |
| 121 | _ ≤ _ := by |
| 122 | rw [prod_mul_distrib,prod_const,←Real.exp_nat_mul]; |
| 123 | exact mul_le_mul_of_nonneg_right (Real.exp_monotone (mul_le_mul_of_nonneg_right (Nat.cast_le.mpr (card_le_univ _)) (by positivity))) (prod_nonneg (fun i _ => (Real.exp_pos _).le)) |
| 124 | let pM := sites f*(R.exCost ρ.top.paths Λ δ + R.beta*(nP*(wound ρ.top.width ρ.top.paths R.p.threshold (till x) 1))) |
| 125 | let w := Real.exp (b*sites c + q*(R.beta*t^2*A.shares)) |
| 126 | let z := S.likelihood U i |
| 127 | have hf := h.stretch A i a V h0 ha |
| 128 | have hB := launched ρ.top s.input s.cut hr s.halt (till x) U |
| 129 | let N := ‖Real.exp (-R.scalar)*exposed R (till x) U‖ |
| 130 | let Y := ‖g A i (a,V)‖ |
| 131 | have H1 : D.bill A i U V * N *Y*z ≤ Real.exp pM * (w*W') * z := |
| 132 | mul_le_mul_of_nonneg_right (mul_le_mul |
| 133 | ((mul_le_of_le_one_left (by unfold N; positivity) (D.range ..)).trans hB) hf (norm_nonneg _) (Real.exp_pos _).le) (S.likelihood_pos ..) |
| 134 | let Q := S.prediction U i |
| 135 | let u := ration (mapped A x).costs τ⁻¹ U |
| 136 | let j := gapper (mapped A x).aisles τ⁻¹ V Q |
| 137 | let v : ℝ := Fintype.card (Cell f) * η⁻¹ |
| 138 | let k : ℝ := eV * η⁻¹ |
| 139 | have hT : Real.exp (-R.beta*(η*r)) ≤ Real.exp (v+k)*(u*j) := by |
| 140 | unfold r coin; rw [mul_add,mul_add,Real.exp_add,Real.exp_add] |
| 141 | unfold u j v k ration gapper; simp only [mapped,inv_inv] |
| 142 | let x₁ := (∑ i ∈ (A.limit x)ᶜ,(toll U i)^2) |
| 143 | let x₂ := (∑ i ∈ (A.intern x)ᶜ,(wire Q V i)^2) |
| 144 | change Real.exp (-R.beta*(η*x₁))*Real.exp (-R.beta*(η*x₂)) ≤ _ |
| 145 | rw [mul_mul_mul_comm] |
| 146 | exact mul_le_mul (hF _ (faceValue U)) (hF _ (fun i=>V i*(Q i)⁻¹)) (Real.exp_pos _).le |
| 147 | (mul_nonneg (Real.exp_pos _).le (prod_nonneg (fun i _=> (Real.exp_pos _).le))) |
| 148 | unfold carrier leaves |
| 149 | change sieve T _ _ V*(D.bill A i U V*(N*Y*(z*Real.exp (-R.beta*m)))) ≤ _ |
| 150 | have hy1 := mul_le_mul_of_nonneg_right H1 (show 0 ≤ sieve T R.beta x V * Real.exp (-R.beta*m) by unfold sieve; positivity) |
| 151 | have hQ := mul_le_mul_of_nonneg_left he (a:=Real.exp pM*w*z) (by |
| 152 | unfold z w; have h := S.likelihood_pos U i; positivity) |
| 153 | calc |
| 154 | _ = D.bill A i U V*N*Y*z*(sieve T R.beta x V*Real.exp (-R.beta*m)) := by ring |
| 155 | _ ≤ _ := hy1 |
| 156 | _ = Real.exp pM * w * z * (W'*(sieve T R.beta x V*Real.exp (-R.beta*m))) := by ring |
| 157 | _ ≤ _ := hQ |
| 158 | _ = Real.exp pM * w * z * (kinetic T x R.beta χ V*(Real.exp (sites c)*Real.exp (-R.beta*(η*r)))) := by rw [sub_eq_add_neg,Real.exp_add,neg_mul] |
| 159 | _ ≤ Real.exp pM * w * z * (kinetic T x R.beta χ V*(Real.exp (sites c)*(Real.exp (v+k)*(u*j)))) := by |
| 160 | have hW : 0≤w := (Real.exp_pos _).le; have hx : 0≤z := S.likelihood_pos ..; gcongr |
| 161 | _ = _ := by unfold pM w z v k u j Q U L ante flight; simp_rw [Real.exp_add,add_mul,one_mul,Real.exp_add]; ring |
| 162 | |
| 163 | /-- Stronger station test, produced in `branch` and `cash_holes`. |
| 164 | We don't import a solution of RG step to buy it. -/ |
| 165 | structure Ample (T : Tube G S) (x W β κ η : ℝ) (F : Forest S.ratio) : Prop where |
| 166 | quote : 0<η |
| 167 | remaining : ∀ A U k V,SliceSet S F U → Alive S U k → Seeded A U k V x W → |
| 168 | β*(η*coin A x U (S.prediction U k) V) - sites c ≤ β*(meanRest A T x U k V + averaged (fun j=>coarse T x (pull j 0 V))/2) |
| 169 | cash : Real.exp (-(κ/2)*(β*(fiery G x S.patch.L)^2))*(Real.sqrt β^Δ)^(density S.patch.L x) ≤ 1 |
| 170 | |
| 171 | private lemma seals (ρ : Teller G) {κ b δ y Λ τ K K' η θ χ ξ : ℝ} |
| 172 | (h : Elastic R F T D g b (κ/4) θ (1/2 - χ)) (hξ : η+θ=ξ) (hi' : 0<η) (ht1 : 0≤χ) |
| 173 | (s : Survey ρ S T F R x W 1 Λ δ y K τ κ (κ/4) (κ/4)) |
| 174 | (a : Ample T x W R.beta κ ξ F) |
| 175 | (hk : 1≤K') (hc : 2≤c.val) (hS : (∫ i,draught (τ⁻¹)⁻¹ i ∂G.probHaar) ≤ K'*(τ⁻¹)^Δ) |
| 176 | (A : Stores S) (he : ∀ i,Envelope (g A i)) : |
| 177 | let L := Real.exp (ante ρ.top b Λ δ η R x c) |
| 178 | let C := Real.exp (-(κ/4)*(R.beta*t^2*A.shares)) |
| 179 | let P := prefactor S G R.beta*L |
| 180 | (∀ V,earn S G x κ R.beta A.shares*cargo F T R D g A V ≤ |
| 181 | P * (K'*τ⁻¹^Δ)^ΔV * C * kinetic T x R.beta χ V) ∧ |
| 182 | (∫ V,(earn S G x κ R.beta A.shares*cargo F T R D g A V)∂prior G c) ≤ |
| 183 | P * (K'*τ⁻¹^Δ)^ΔI * C := by |
| 184 | intro L C P |
| 185 | have ht := s.lift; have hT : 0<τ := zero_lt_one.trans_le ht |
| 186 | have hh : τ⁻¹ ≤ 1 := by simpa using inv_anti₀ zero_lt_one ht |
| 187 | let α := R.beta*t^2 |
| 188 | let M := mapped A x |
| 189 | let r := L*Real.exp (κ/4*(α*A.shares)) |
| 190 | let g' := flight (G:=G) M τ⁻¹ |
| 191 | let z := fun V => ∑ k : S.Choices,∫ i:F.Slice G, g' k V (F.drape i) ∂F.order G |
| 192 | have h (V) : cargo F T R D g A V ≤ kinetic T x R.beta χ V * r * z V := by |
| 193 | have hf := (fun k i=>reduction (κ:=κ) (χ:=χ) ρ h s hi' hξ a.remaining A k i V) |
| 194 | unfold cargo z Allocation.column tagTotal |
| 195 | rw [Finset.mul_sum,Finset.mul_sum] |
| 196 | apply sum_le_sum; intro k _ |
| 197 | rw [←integral_const_mul,←integral_const_mul] |
| 198 | let V' := F.Slice G×Config G c |
| 199 | have he' : Measurable (fun i : F.Slice G=> (i,V)) := measurable_id.prodMk measurable_const |
| 200 | let f (p' : V') := D.bill A k (F.drape p'.1) p'.2*carrier (x:=x) F T R g A k p'.2 p'.1 |
| 201 | have h1 : Envelope f := (actual F R D g s.supports s.input A k (he k)).1 |
| 202 | have hi : Integrable (fun i:F.Slice G=>f (i,V)) (F.order G) := |
| 203 | Env.integrableX (Env.along (g:=fun i:F.Slice G=> (i,V)) h1 he') _ |
| 204 | refine integral_mono (hi.const_mul _) (((wing (funds_branch s.supports) M τ⁻¹ k (V:=fun (_:F.Slice G)=>V) measurable_const F.continuous_drape.measurable).integrable _).const_mul _) ?_ |
| 205 | intro i |
| 206 | exact (hf k i).trans_eq (by dsimp only [r,L,g',α,M]; rw [Real.exp_add]) |
| 207 | let N := M.costs.card+M.aisles.card |
| 208 | let Q := fun j:ℕ=> (K'*τ⁻¹^Δ)^j*(τ^Δ)^N |
| 209 | have heC : Real.sqrt R.beta=τ := by rw [s.rate,Real.sqrt_sq hT.le] |
| 210 | have hQ : Real.exp (-(κ/2)*(α*A.shares))*(τ^Δ)^N ≤ 1 := calc |
| 211 | _ ≤ Real.exp (-(κ/2)*(α*A.shares))*(τ^Δ)^(density S.patch.L x*A.shares) := by |
| 212 | apply mul_le_mul_of_nonneg_left (pow_le_pow_right₀ (one_le_pow₀ ht) (unit_density ..)) (Real.exp_pos _).le |
| 213 | _ = (Real.exp (-(κ/2)*(R.beta*t^2))*(Real.sqrt R.beta^Δ)^(density S.patch.L x))^A.shares := by |
| 214 | rw [mul_pow, heC, pow_mul (τ^Δ),←Real.exp_nat_mul]; congr 2; unfold α; ring |
| 215 | _ ≤ _ := pow_le_one₀ (by positivity) a.cash |
| 216 | have hy (j) : earn S G x κ R.beta A.shares * r * Q j ≤ P*(K'*τ⁻¹^Δ)^j*C := by |
| 217 | have hx : 0≤P*(K'*τ⁻¹^Δ)^j*C := by |
| 218 | have hK' : 0<K' := zero_lt_one.trans_le hk |
| 219 | have h0 : 0<P := mul_pos (prefactor_pos R.beta) (Real.exp_pos _); have hC : 0<C := Real.exp_pos _; positivity |
| 220 | calc |
| 221 | _ = P*(K'*τ⁻¹^Δ)^j*C * (Real.exp (-(κ/2)*(α*A.shares))*(τ^Δ)^N) := by |
| 222 | have he : Real.exp (-R.beta*(κ*t^2*A.shares))*Real.exp (κ/4*(α*A.shares)) = C*Real.exp (-(κ/2)*(α*A.shares)) := by |
| 223 | unfold C α; rw [←Real.exp_add,←Real.exp_add]; congr 1; ring |
| 224 | unfold r Q earn P |
| 225 | calc |
| 226 | _ = prefactor S G R.beta * L * ((K'*τ⁻¹^Δ)^j*(τ^Δ)^N) * |
| 227 | (Real.exp (-R.beta*(κ*t^2*A.shares))*Real.exp (κ/4*(α*A.shares))) := by ring |
| 228 | _ = _ := by rw [he]; ring |
| 229 | _ ≤ _ := mul_le_of_le_one_right hx hQ |
| 230 | have hNN : 0≤r := by unfold r L; positivity |
| 231 | constructor |
| 232 | · intro V |
| 233 | have hp := (kinetic_pos T x R.beta χ V).le |
| 234 | have hc := circuit F M τ⁻¹ K' V hc (funds_branch s.supports) (inv_pos.mpr hT) hh hk hS |
| 235 | rw [inv_inv] at hc |
| 236 | calc |
| 237 | _ ≤ earn S G x κ R.beta A.shares*(kinetic T x R.beta χ V*r*Q ΔV) := by |
| 238 | apply mul_le_mul_of_nonneg_left _ (earn_pos ..).le |
| 239 | exact (h V).trans (mul_le_mul_of_nonneg_left hc (mul_nonneg hp hNN)) |
| 240 | _ = earn S G x κ R.beta A.shares * r * Q ΔV * kinetic T x R.beta χ V := by ring |
| 241 | _ ≤ _ := mul_le_mul_of_nonneg_right (hy _) hp |
| 242 | have hi : Integrable z (prior G c) := by |
| 243 | unfold z; apply integrable_finsetSum; intro i _ |
| 244 | exact (Env.marginal (g:=fun p:F.Slice G×Config G c=>g' i p.2 (F.drape p.1)) |
| 245 | (wing (funds_branch s.supports) M τ⁻¹ i (V:=Prod.snd) measurable_snd (F.continuous_drape.measurable.comp measurable_fst)) (F.order G)).integrable _ |
| 246 | have hl := circulation F M τ⁻¹ K' (hc.trans (by rw [S.sizes]; exact Nat.le_mul_of_pos_right _ S.patch.L.property)) (funds_branch s.supports) (inv_pos.mpr hT) hh hk hS |
| 247 | change (∫ V,z V ∂prior G c) ≤ _ at hl |
| 248 | rw [inv_inv] at hl |
| 249 | calc |
| 250 | _ ≤ ∫ V,(earn S G x κ R.beta A.shares*r)*z V ∂prior G c := by |
| 251 | apply integral_mono (((cargo_portable F R D g s.supports s.input A he).integrable _).const_mul _) |
| 252 | (hi.const_mul _) |
| 253 | intro V; dsimp only; rw [mul_assoc]; refine mul_le_mul_of_nonneg_left ((h V).trans ?_) (earn_pos ..).le |
| 254 | apply mul_le_mul_of_nonneg_right (mul_le_of_le_one_left hNN (kinetic_one T x _ χ (s.rate.symm ▸ sq_nonneg _) ht1 V)) |
| 255 | (sum_nonneg (fun i _ => integral_nonneg (fun j=>flight_nonneg ..))) |
| 256 | _ ≤ earn S G x κ R.beta A.shares*r*Q ΔI := by rw [integral_const_mul]; exact mul_le_mul_of_nonneg_left hl (mul_nonneg (earn_pos ..).le hNN) |
| 257 | _ ≤ _ := hy _ |
| 258 | |
| 259 | /-- Per-volume pressure bill. Encoding it besides `rental` also covers all |
| 260 | ε profile widths even when used for typified LF integrations at very |
| 261 | small κ. -/ |
| 262 | def duty (R : Rep G f) (ρ : Stage) (b Λ δ η x : ℝ) (n : Side) := ante ρ b Λ δ η R x n + supplicant n f |
| 263 | |
| 264 | /-- Intact absolute remainder arrays (summed over true bookings). -/ |
| 265 | theorem fulcrum (ρ : Teller G) {κ b δ y Λ τ K K' η θ χ ξ : ℝ} |
| 266 | (h : Elastic R F T D g b (κ/4) θ (1/2 - χ)) (hξ : η+θ=ξ) (hi' : 0<η) (ht1 : 0≤χ) (he : ∀ A i,Envelope (g A i)) |
| 267 | (s : Survey ρ S T F R x W 1 Λ δ y K τ κ (κ/4) (κ/4)) |
| 268 | (a : Ample T x W R.beta κ ξ F) |
| 269 | (hk : 1≤K') (hc : 2≤c.val) (hS : (∫ i,draught (τ⁻¹)⁻¹ i ∂G.probHaar) ≤ K'*(τ⁻¹)^Δ) |
| 270 | (Y : Finset (Stores S)) (n : ℕ) (hY : ∀ A∈Y,n≤A.shares) : |
| 271 | let L := Real.exp (duty R ρ.top b Λ δ η x c) |
| 272 | let e := fun u : ℕ => Real.exp (-(κ/4)*(R.beta*t^2*u)) |
| 273 | let P := prefactor S G R.beta*L |
| 274 | (∀ V,itinerary F T R D g κ Y V ≤ |
| 275 | P * (K'*τ⁻¹^Δ)^ΔV * e (max n (RG.flags (temp x) V).card) * kinetic T x R.beta χ V) ∧ |
| 276 | (∫ V,itinerary F T R D g κ Y V ∂prior G c) ≤ P * (K'*τ⁻¹^Δ)^ΔI * e n := by |
| 277 | intro L e P |
| 278 | let E := fun j : ℕ => prefactor S G R.beta * Real.exp (ante ρ.top b Λ δ η R x c) * (K'*τ⁻¹^Δ)^j |
| 279 | have ht : 0 < τ := zero_lt_one.trans_le s.lift |
| 280 | have hE j : 0≤E j := mul_nonneg (mul_nonneg (prefactor_pos _).le (Real.exp_pos _).le) (by have := hk; positivity) |
| 281 | have h := fun A => seals (η:=η) (χ:=χ) ρ h hξ hi' ht1 s a hk hc hS A (he A) |
| 282 | have hm : Antitone e := by |
| 283 | intro i j hij |
| 284 | apply Real.exp_monotone |
| 285 | exact mul_le_mul_of_nonpos_left (mul_le_mul_of_nonneg_left (Nat.cast_le.mpr hij) |
| 286 | (mul_nonneg (s.rate.symm ▸ sq_nonneg _) (sq_nonneg _))) (neg_nonpos.mpr s.active) |
| 287 | have hX (u : ℝ) (j : ℕ) (hU : 0≤u) : (∑ i∈Y,E j*u) ≤ P*(K'*τ⁻¹^Δ)^j*u := by |
| 288 | rw [sum_const,nsmul_eq_mul] |
| 289 | apply le_trans (mul_le_mul_of_nonneg_right (Nat.cast_le.mpr (card_le_univ _)) (mul_nonneg (hE _) hU)) |
| 290 | refine le_of_eq ?_ |
| 291 | unfold E P L duty; rw [plural,Real.exp_add]; ring |
| 292 | constructor |
| 293 | · intro V |
| 294 | let l := max n (RG.flags (temp x) V).card |
| 295 | let w := kinetic T x R.beta χ V |
| 296 | have hw := (kinetic_pos T x R.beta χ V).le |
| 297 | rw [mul_assoc (P * _) _ (kinetic T _ _ _ _)] |
| 298 | refine le_trans ?_ (hX _ _ (show 0≤ e l*w from mul_nonneg (Real.exp_pos _).le hw)) |
| 299 | unfold itinerary; refine sum_le_sum fun i hi => ?_ |
| 300 | by_cases hh : RG.flags (temp x) V=i.flags |
| 301 | · have he : l ≤ i.shares := by unfold l; rw [hh]; exact max_le (hY i hi) (by unfold Stores.shares; omega) |
| 302 | rw [←mul_assoc] |
| 303 | exact ((h i).1 V).trans (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left (hm he) (hE _)) hw) |
| 304 | rw [sees_flags (T:=T) (F:=F) (D:=D) (g:=g) (R:=R) hh,mul_zero] |
| 305 | exact mul_nonneg (hE _) (mul_nonneg (Real.exp_pos _).le hw) |
| 306 | refine le_trans ?_ (hX _ _ (show 0≤ e n from (Real.exp_pos _).le)) |
| 307 | unfold itinerary; rw [integral_finsetSum] |
| 308 | · exact sum_le_sum fun i hi=> ((h i).2).trans (mul_le_mul_of_nonneg_left (hm (hY i hi)) (hE _)) |
| 309 | exact fun i _ => ((cargo_portable F R D g s.supports s.input _ (he _)).integrable _).const_mul _ |
| 310 | |
| 311 | /-- Intact absolute remainder arrays (summed over true bookings). -/ |
| 312 | theorem relay (ρ : Teller G) {κ b δ y Λ τ K K' η : ℝ} |
| 313 | (h : CargoBill R D F g b (κ/4)) (he : ∀ A i,Envelope (g A i)) |
| 314 | (s : Survey ρ S T F R x W 1 Λ δ y K τ κ (κ/4) (κ/4)) |
| 315 | (a : Ample T x W R.beta κ η F) |
| 316 | (hk : 1≤K') (hc : 2≤c.val) (hS : (∫ i,draught (τ⁻¹)⁻¹ i ∂G.probHaar) ≤ K'*(τ⁻¹)^Δ) |
| 317 | (Y : Finset (Stores S)) (n : ℕ) (hY : ∀ A∈Y,n≤A.shares) : |
| 318 | let L := Real.exp (duty R ρ.top b Λ δ η x c) |
| 319 | let e := fun u : ℕ => Real.exp (-(κ/4)*(R.beta*t^2*u)) |
| 320 | let P := prefactor S G R.beta*L |
| 321 | (∀ V,itinerary F T R D g κ Y V ≤ |
| 322 | P * (K'*τ⁻¹^Δ)^ΔV * e (max n (RG.flags (temp x) V).card) * halfprice T x R.beta V) ∧ |
| 323 | (∫ V,itinerary F T R D g κ Y V ∂prior G c) ≤ P * (K'*τ⁻¹^Δ)^ΔI * e n := by |
| 324 | simp_rw [← half_kinetic] |
| 325 | apply fulcrum (ξ:=η) (θ:=0) (η:=η) (χ:=1/2) ρ _ (add_zero _) a.quote (by norm_num) he s a hk hc hS Y n hY |
| 326 | exact inflexible _ le_rfl (by norm_num) (s.rate.symm ▸ sq_nonneg _) h |
| 327 | |
| 328 | lemma duty_rental (R : Rep G f) (ρ : Stage) (b Λ δ W η x : ℝ) (wp : 0≤W) (hp : 0≤η) : |
| 329 | duty R ρ b Λ δ η x c ≤ rental c R ρ 1 x W b Λ δ + (sites f*nP+sites c*4)*η⁻¹ := by |
| 330 | unfold duty rental ante rooms |
| 331 | have hi : (Fintype.card (Cell f):ℝ)=sites f * nP := by simp [sites,Cell,Site,Face] |
| 332 | have hS : (eV:ℝ)=sites c*4 := wires_sites c |
| 333 | rw [hi,hS] |
| 334 | let y : ℝ := nP |
| 335 | have he := (site_pos c).le |
| 336 | have hG : 0 ≤ sites f*y := mul_nonneg (site_pos _).le (Nat.cast_nonneg _) |
| 337 | linarith [mul_nonneg he wp] |
| 338 | |
| 339 | end YM.Further.RootedInteractingRemainder.Levy |