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.Next.STATIONARY.Spectral.AuxReferences |
| 2 | import YM.Work.B13 |
| 3 | |
| 4 | |
| 5 | |
| 6 | set_option autoImplicit false |
| 7 | /-! |
| 8 | # Half-derivative turns in mass graph. Uniform in volumes on both legs, incl |
| 9 | nonreal beams. |
| 10 | -/ |
| 11 | noncomputable section |
| 12 | namespace YM.Stationary |
| 13 | open Function Filter Lattice RG Audience Exterior Precision Bloch Wilson Laurent Matrix Finset |
| 14 | open scoped Topology ContDiff BigOperators |
| 15 | variable {α β γ ι : Type} [Fintype α] [DecidableEq α] [Fintype β] [DecidableEq β] [Fintype γ] [DecidableEq γ] {L : Side} {p q : Momentum} {G : Gauge} {S : Patch} {C σ : ℝ} |
| 16 | |
| 17 | lemma serial_basic {A : CompM α β} {C p q} (h : vflux A≤C) : serial (Slab.basic α) (Slab.basic β) p q A C := by simpa [serial,carryM,Slab.basic] using h |
| 18 | |
| 19 | lemma rear_price (F : Momentum→ CompM α β) (h : 0≤C) (hp : p∈strip (1:ℝ)) (hv : ∀ i : Site L,vflux (F (aliasAt p i)) ≤ hill p i*C) : serial (Slab.basic _) (altarTile L β) p p (furnish L F p) (Real.exp 4*C) := by |
| 20 | let c l := (hill p (l : Site L):ℂ)⁻¹ • F (aliasAt p l) |
| 21 | have he : posterBlock L F p*diagonal (spice L β p)=fiber c := by ext ⟨i,a⟩ ⟨j,b⟩; rw [Matrix.mul_diagonal]; unfold posterBlock fiber; by_cases h : i=j <;> simp [*, c, spice,fiber,mul_comm] |
| 22 | have ht : vflux (fiber c) ≤ C := by |
| 23 | apply poster_flux h; intro i; unfold c; rw [flux_cost,norm_inv,Complex.norm_real,Real.norm_of_nonneg (hill_pos _ _).le, inv_mul_eq_div,div_le_iff₀ (hill_pos _ _)]; exact (hv _).trans_eq (mul_comm ..) |
| 24 | unfold serial carryM Slab.basic altarTile contour furnish; simp only [id_eq, inv_one, Matrix.one_mul] |
| 25 | simp only [Matrix.mul_assoc]; rw [← Matrix.mul_assoc (plankTile L β p)⁻¹, Matrix.nonsing_inv_mul _ (tile_solid _),Matrix.one_mul,← Matrix.mul_assoc (posterBlock L F p),he, ← Matrix.mul_assoc,(tile_ice (by simp : star (0:Momentum)=0)).back.slide_v] |
| 26 | refine (flux_power ..).trans (mul_le_mul ?_ ht (flux_nonneg _) (Real.exp_pos _).le) |
| 27 | simpa only [one_mul] using plank_cap p hp |
| 28 | lemma helm_price (F : Momentum→ CompM α β) (h : 0≤C) (hp : p∈strip (1:ℝ)) (hv : ∀ i : Site L,vflux (F (aliasAt p i)) ≤ hill p i*C) : serial (altarTile L α).dual (Slab.basic _) p p (furnish L F p) (C*Real.exp 4) := by |
| 29 | let c l := (hill p (l : Site L):ℂ)⁻¹ • F (aliasAt p l) |
| 30 | have he : diagonal (spice L α p)*posterBlock L F p=fiber c := by ext ⟨i,a⟩ ⟨j,b⟩; rw [Matrix.diagonal_mul]; unfold posterBlock fiber; by_cases h : i=j <;> simp [*, c, spice,fiber] |
| 31 | have ht : vflux (fiber c) ≤ C := by |
| 32 | apply poster_flux h; intro i; unfold c; rw [flux_cost,norm_inv,Complex.norm_real,Real.norm_of_nonneg (hill_pos _ _).le, inv_mul_eq_div,div_le_iff₀ (hill_pos _ _)]; exact (hv _).trans_eq (mul_comm ..) |
| 33 | let H := (plankTile L α 0)⁻¹ |
| 34 | have hh : Skates H := (tile_ice (by simp)).back |
| 35 | have hT : Skates Hᵀ := by have he := congr_arg Matrix.transpose (mul_eq_one_comm.mp hh.slides); rw [transpose_mul,Matrix.transpose_one] at he; exact ⟨he⟩ |
| 36 | unfold serial carryM; rw [Slab.inverse_dual]; unfold Slab.basic altarTile contour furnish; simp only [id_eq, Matrix.mul_one, Matrix.transpose_mul,pivot_left,Matrix.diagonal_transpose] |
| 37 | simp only [Matrix.mul_assoc]; rw [← Matrix.mul_assoc (plankTile L α p)⁻¹, Matrix.nonsing_inv_mul _ (tile_solid _), Matrix.one_mul, ← Matrix.mul_assoc (diagonal _),skate_diagonal, Matrix.mul_assoc, ← Matrix.mul_assoc (diagonal _),he, show ((plankTile L α 0)⁻¹)ᵀ=Hᵀ from rfl,hT.slide_u,skate_unit.slide_u] |
| 38 | refine (flux_power ..).trans (mul_le_mul ht ?_ (flux_nonneg _) h) |
| 39 | simpa only [one_mul] using plank_back p hp |
| 40 | lemma plankPrice (F : Momentum→CompM α β) (hp : p∈strip (1:ℝ)) (hc : 0 ≤ C) (he : ∀ i:Site L,vflux (F (aliasAt p i))≤C) : serial (Slab.basic (Co L α)) (Slab.basic _) p p (furnish L F p) (Real.exp 4*C*Real.exp 4) := by |
| 41 | apply serial_basic; unfold furnish |
| 42 | let a : ℝ := Real.exp 4 |
| 43 | have ht : 0≤ a := (Real.exp_pos _).le |
| 44 | refine (flux_power ..).trans (mul_le_mul ((flux_power ..).trans (mul_le_mul (by simpa only [one_mul] using plank_cap p hp) (poster_flux hc he) (flux_nonneg _) ht)) (by simpa only [one_mul] using plank_back p hp) (flux_nonneg _) (mul_nonneg ht hc)) |
| 45 | |
| 46 | -- Mail1 W two separate charges. Page.furn Γ calculus. |
| 47 | |
| 48 | section page |
| 49 | variable (G L) |
| 50 | def pageSmooth (i : ℕ) := Real.exp 4 * (5 * pageTax G i) |
| 51 | def pageOrd (i : ℕ) := Real.exp 4*(pageTax G i*(2*(Real.exp 1+1)))*Real.exp 4 |
| 52 | variable {G L} |
| 53 | lemma pageTroop (L : Side) (p : Momentum) (i : ℕ) (hp : p∈strip 1) : serial (Slab.basic _) (altarTile L _) p p (furnish L (pageD G i) p) (pageSmooth G i) := rear_price _ (mul_nonneg (by norm_num) (mul_nonneg fest_pos (by norm_num))) hp (fun j => (cold_t G i j hp).1.trans_eq (by ring)) |
| 54 | lemma pageFrame (L : Side) (p : Momentum) (i : ℕ) (hp : p∈strip 1) : serial (altarTile L _|>.dual) (Slab.basic _) p p (furnish L (pageD G i) p) (pageSmooth G i) := by |
| 55 | rw [pageSmooth, mul_comm]; exact helm_price _ (mul_nonneg (by norm_num) (mul_nonneg fest_pos (by norm_num))) hp (fun j => (cold_t G i j hp).1.trans_eq (by ring)) |
| 56 | lemma pageBase (L : Side) (p : Momentum) (i : ℕ) (hp : p∈strip 1) : serial (Slab.basic _) (Slab.basic _) p p (furnish L (pageD G i) p) (pageOrd G i) := by |
| 57 | apply plankPrice _ hp (mul_nonneg (mul_nonneg fest_pos (by norm_num)) (by positivity)); intro j |
| 58 | exact lightPage (fun k => ((alias_inside hp j) k).trans_le (mul_le_of_le_one_left zero_le_one (inch_le L))) i |
| 59 | end page |
| 60 | end YM.Stationary |
| 61 | end |
| 62 | |
| 63 | /-! # Rough-leg first payments. Allows ℓ² mixed budgets. -/ |
| 64 | noncomputable section |
| 65 | namespace YM.Stationary |
| 66 | open Function Filter Lattice RG Exterior Precision Wilson Bloch Laurent Matrix Finset Tree Asymptotics Audience |
| 67 | open scoped Topology ContDiff BigOperators |
| 68 | variable {G : Gauge} {P : Patch} {α β : Type} [Fintype α] [DecidableEq α] [Fintype β] [DecidableEq β] {n : ℕ} {c f m L : Side} {p : Momentum} {σ C A : ℝ} |
| 69 | |
| 70 | lemma color_flick (i : Axis) (u : Phase (Co L α)) : |
| 71 | flick p i u=furnish L (fun p=> Exterior.q p i • (1:CompM α α)) p *ᵥ u := by |
| 72 | rw [← alias_pack p u,map_sum,mulVec_sum]; refine sum_congr rfl fun j _=> ?_ |
| 73 | rw [furnish_gear,flick_tapes,Matrix.smul_mulVec,one_mulVec]; ext1 a; simp [tiled,mul_left_comm] |
| 74 | lemma flick_plank (i : Axis) (u : Phase (Co L α)) (h : p ∈ strip (1:ℝ)) (he : (altarTile L α).rate p u ≤ 1) : |
| 75 | slug (flick p i u) ≤ Real.exp 4*5 := by |
| 76 | let F := fun p : Momentum => Exterior.q p i • (1 : CompM α α) |
| 77 | have hx j : vflux (F (aliasAt p (j:Site L))) ≤ hill p j*5 := by |
| 78 | unfold F; rw [flux_cost]; refine (mul_le_of_le_one_right (norm_nonneg _) flux_one).trans ?_ |
| 79 | rw [mul_comm]; exact (slug_atom (Exterior.q _) _).trans (hill_tilt j h) |
| 80 | rw [color_flick] |
| 81 | have hh := Slab.serial_at (rear_price F (by norm_num) h hx) u; rw [Slab.basic_rate] at hh; exact hh.trans (mul_le_of_le_one_right (by positivity) he) |
| 82 | |
| 83 | lemma lower_voice {u : Phase (Co L α)} (hp : p∈strip (1:ℝ)) (he : (altarTile L α).rate p u≤1) |
| 84 | (l : List Axis) (h : l.length≤1) (j : α) : |
| 85 | Hearing (balcony _) 1 (fun z : Site L => flight p l u (z,j)) (inch L^(1+l.length)*(Real.exp 4*5)) := by |
| 86 | have ht : 0 < inch L := inch_pos _ |
| 87 | have hr := ratePocket hp he |
| 88 | match l with |
| 89 | | [] => |
| 90 | simp only [List.length_nil, add_zero,pow_one] |
| 91 | apply Hearing.more (C:=inch L* Real.exp 4) |
| 92 | · exact hr.softer (fun i => slug_atom (stackSlice i u) j) |
| 93 | gcongr; have hk := Real.exp_pos 4; linarith |
| 94 | | a::v => |
| 95 | simp only [List.length_cons] at h |
| 96 | rw [show v=[] from List.length_eq_zero_iff.mp (by omega)] |
| 97 | let S := flick p a u |
| 98 | have H : (flight p [a]) u=S := rfl |
| 99 | rw [H]; simp only [List.length_cons,List.length_nil,zero_add]; refine ⟨by positivity,by omega,fun _ => ?_,by omega⟩ |
| 100 | have h : ∑ i : Site L, ‖S (i,j)‖^2 ≤ slug S^2 := by rw [slug_slots]; exact sum_le_sum (fun i _ => pow_le_pow_left₀ (norm_nonneg _) (slug_atom (stackSlice i S) j) 2) |
| 101 | have he' : (balcony _).weightedSum (fun i : Site L => ‖S (i,j)‖^2) = inch L^4*∑ i : Site L,‖S (i,j)‖^2 := by |
| 102 | unfold Audience.weightedSum balcony inch; rw [mul_sum]; apply sum_congr rfl; intro i _; dsimp only; rw [site_card]; push_cast; rw [inv_pow] |
| 103 | rw [he']; calc |
| 104 | _ ≤ _ := (mul_le_mul_of_nonneg_left (h.trans (pow_le_pow_left₀ (slug_nonneg _) (flick_plank _ _ hp he) _)) (by positivity)) |
| 105 | _ = _ := by ring |
| 106 | end YM.Stationary |
| 107 | end |
| 108 | |
| 109 | /-! |
| 110 | # Link rotation change in RR^* spectra. No damping for scatter into |
| 111 | site launch, vertex Δ in standing link. C¹ width shiftless in q. |
| 112 | -/ |
| 113 | noncomputable section |
| 114 | namespace YM.Stationary |
| 115 | open Function Filter Lattice RG Audience Exterior Precision Bloch Wilson Laurent Matrix Finset |
| 116 | open scoped Topology ContDiff BigOperators Matrix.Norms.Frobenius |
| 117 | variable {α ι : Type} [Fintype α] [DecidableEq α] [Fintype ι] [DecidableEq ι] {G : Gauge} {P : Patch} {c f L n : Side} {p : Momentum} |
| 118 | -- mail(1) plus δ * (root − mail(1)) |
| 119 | |
| 120 | def scattering (G : Gauge) (u : G.El) : Funds G.ColorIndex := of fun i j => |
| 121 | let v := (WithLp.toLp 2 (Pi.single j (1:ℝ)) : G.Color) |
| 122 | (v-G.adjoint u v) i |
| 123 | lemma scattering_d (u : G.El) (x : G.Color) : (scattering G u)*ᵥ (WithLp.ofLp x)=WithLp.ofLp (x-G.adjoint u x) := by |
| 124 | let T := (LinearEquiv.toContinuousLinearEquiv <| WithLp.linearEquiv 2 ℝ (Corn G.ColorIndex)) |
| 125 | let L := T.toContinuousLinearMap ∘L ((ContinuousLinearMap.id ℝ G.Color)-(G.adjoint u).toContinuousLinearMap) ∘L T.symm.toContinuousLinearMap |
| 126 | have he : scattering G u=billsM (pocket _) (pocket _) L := by ext i j; rw [bill_def,cash_pocket, show pocket G.ColorIndex j=Pi.single j 1 from Pi.basisFun_apply _ _ j]; rfl |
| 127 | rw [he,bill_pay]; rfl |
| 128 | lemma scattering_one (G : Gauge) : scattering G 1=0 := by ext; simp [scattering] |
| 129 | |
| 130 | def motley (U : Config G n) : Funds (Lines G n 1) := of fun i j => if i.1=j.1 ∧ i.2.1=j.2.1 then |
| 131 | scattering G (U (i.1,axisEquiv.symm i.2.1)) i.2.2 j.2.2 else 0 |
| 132 | |
| 133 | lemma colorful (U : Config G n) (x : Link G n) (i : Edge (Site n)) : |
| 134 | edgeColor (motley U *ᵥ x) i=edgeColor x i-G.adjoint (U i) (edgeColor x i) := by |
| 135 | ext a |
| 136 | have he : WithLp.ofLp ((edgeColor x i)-G.adjoint (U i) (edgeColor x i)) a=_ := (congr_fun (scattering_d (U i) (edgeColor x i)) a).symm |
| 137 | change (motley U*ᵥ x) (i.1,coord i.2,a)=_; rw [he] |
| 138 | unfold Matrix.mulVec dotProduct; simp only [motley,Matrix.of_apply, Fintype.sum_prod_type,ite_mul] |
| 139 | rw [sum_eq_single i.1, sum_eq_single (coord i.2)] |
| 140 | · simp only [and_self,↓reduceIte, show axisEquiv.symm (coord i.2)=i.2 from axisEquiv.symm_apply_apply _]; rfl |
| 141 | · intro b _ H; simp [Ne.symm H] |
| 142 | · simp |
| 143 | · intro b _ H; simp [Ne.symm H] |
| 144 | simp |
| 145 | |
| 146 | def restaged (G : Gauge) (n : Side) := ∑ i : Axis, (stagehand i G n)ᵀ |
| 147 | lemma bingo_sign (u a : Axis) (x : BaseSites G n) (i) (k) : ((stagehand a G n)ᵀ*ᵥ x) (i,coord u,k) = if u=a then x (i,vac,k) else 0 := by |
| 148 | let Q := stagehand a G n |
| 149 | let z : Link G n := Pi.single (i,coord u,k) 1 |
| 150 | rw [show (Qᵀ*ᵥ x) _= dotProduct z (Qᵀ*ᵥ x) from (single_one_dotProduct _ _).symm, transposes] |
| 151 | rcases eq_or_ne u a with hh|hh |
| 152 | · subst u; rw [if_pos rfl]; have he : Q*ᵥ z=Pi.single (i,vac,k) 1 := by |
| 153 | ext1 t; rcases t with ⟨p,j,l⟩; rw [vac_only j]; simp [Q,bingo_pull, z,Pi.single_apply] |
| 154 | rw [he,single_one_dotProduct] |
| 155 | have hs : coord u ≠ coord a := axisEquiv.injective.ne hh |
| 156 | rw [if_neg hh]; rw [show Q*ᵥ z=0 by ext1 p; simp [Q,bingo_pull,z,Pi.single_apply,Ne.symm hs],zero_dotProduct] |
| 157 | lemma stardirect (x : BaseSites G n) (i : Edge (Site n)) : edgeColor (restaged G n*ᵥ x) i=gaugeColor x i.1 := by |
| 158 | ext a; unfold restaged; rw [Matrix.sum_mulVec]; change (∑ u : Axis,(stagehand u G n)ᵀ *ᵥ x) (i.1,coord i.2,a)= _; rw [Finset.sum_apply]; simp_rw [bingo_sign]; simp; rfl |
| 159 | |
| 160 | def shiftLaunch (G : Gauge) (n : Side) := restaged G n-mail (1:Config G n) |
| 161 | lemma until_age (x : BaseSites G n) (i : Edge (Site n)) : edgeColor (shiftLaunch G n*ᵥ x) i=gaugeColor x (i.1+step i.2) := by rw [shiftLaunch, Matrix.sub_mulVec,map_sub,Pi.sub_apply, stardirect,mailed,cant_at,Pi.one_apply,G.adjoint_one]; abel |
| 162 | lemma vivid (U : Config G n) : mail U=mail (1:Config G n)+ motley U* shiftLaunch G n := by |
| 163 | refine testers fun x y => ?_; rw [mailed, add_mulVec,mailed, ← Matrix.mulVec_mulVec]; apply congr_arg _; apply edgeColor.injective; ext1 i; rw [map_add,Pi.add_apply,colorful,until_age,cant_at,cant_at,Pi.one_apply,G.adjoint_one]; abel |
| 164 | end YM.Stationary |
| 165 | end |
| 166 | |
| 167 | /-! |
| 168 | # Uniform film for motley changes. Includes real canvas size and zero. D¹ |
| 169 | rotates actual background; edge indexed with color slots. -/ |
| 170 | noncomputable section |
| 171 | namespace YM.Stationary |
| 172 | open Function Filter Lattice RG Audience Exterior Precision Bloch Wilson Laurent Matrix Finset |
| 173 | open scoped Topology ContDiff BigOperators Matrix.Norms.Frobenius |
| 174 | variable {α ι : Type} [Fintype ι] [DecidableEq ι] {G : Gauge} {P : Patch} {c f L n : Side} {p : Momentum} {m : ℕ} {K : KernelChoices} {σ C : ℝ} |
| 175 | |
| 176 | def harpoon (P : Patch) (i : Site P.L) : Plaza P := ⟨lift i,alley (hatch P i)⟩ |
| 177 | def canalBox (u v : Loc G 1) (a : Site P.L) (x : BassInput G P) := if u.1=v.1 then scattering G (G.lieExp (whipF false (harpoon P a) (axisEquiv.symm u.1) x)) u.2 v.2 else 0 |
| 178 | def frameBrill (M : Eye ι (Acts G P)) : Leagues ι (Co P.L (Loc G 1)) (Co P.L (Loc G 1)) := fun n p i _ => fiber (fun a : Site P.L => of fun u v => beat (canalBox u v a) 0 n (lens (inviton M i p) p)) |
| 179 | def Dapper (M : Eye ι (Acts G P)) := recitalX (frameBrill M) |
| 180 | |
| 181 | section rates |
| 182 | lemma scat_rate (i j : G.ColorIndex) : ContDiffAt ℝ ω (fun u : G.Color => scattering G (G.lieExp u) i j) 0 := by |
| 183 | let V := (WithLp.toLp 2 (Pi.single j (1:ℝ)):G.Color) |
| 184 | have he : ∀ u, G.adjoint (G.lieExp u) V=G.projectColor (G.mat (G.lieExp u)*G.colorMat V*star (G.mat (G.lieExp u))) := fun u => by |
| 185 | rfl |
| 186 | have hh : ContDiffAt ℝ ω (fun u => G.adjoint (G.lieExp u) V) 0 := by |
| 187 | simp_rw [he]; let F u := G.mat (G.lieExp u) |
| 188 | have hp : ContDiffAt ℝ ω F 0 := G.exp_jet.contDiffAt |
| 189 | apply G.projectColor.toContinuousLinearMap.contDiff.contDiffAt.comp (f:=fun u => F u * G.colorMat V * star (F u)) _ |
| 190 | exact (hp.mul contDiffAt_const).mul ((show G.Mat≃L[ℝ] G.Mat from starL ℝ).contDiff.contDiffAt.comp _ hp) |
| 191 | obtain ⟨P,hP,hT⟩ := color_beak i |
| 192 | change ContDiffAt ℝ ω (fun u => (V-G.adjoint (G.lieExp u) V) i) _; simp_rw [← hP] |
| 193 | exact P.contDiff.contDiffAt.comp (g:=P) (f:=fun u => V-G.adjoint (G.lieExp u) V) _ (contDiffAt_const.sub hh) |
| 194 | lemma canal_diff (i j : Loc G 1) (a : Site P.L) : ContDiffAt ℝ ω (canalBox i j a) 0 := by |
| 195 | unfold canalBox; split |
| 196 | · let F := whipF (G:=G) (P:=P) false (harpoon P a) (axisEquiv.symm i.1) |
| 197 | exact ((show ContDiffAt ℝ ω (fun u : G.Color => scattering G (G.lieExp u) i.2 j.2) (F 0) by rw [map_zero]; exact scat_rate ..).comp (f:=F) _ F.contDiff.contDiffAt) |
| 198 | exact contDiffAt_const |
| 199 | end rates |
| 200 | section mesh |
| 201 | variable (S : StepData c f) (t : S.Choices) |
| 202 | lemma factorC_power (r : Bool) (x : Bang G c f) : (headOn S t r x).1=input G f x.1.2.1 := by cases r <;> rfl |
| 203 | lemma factorCG (x : Bang G c f) (a : Site c) (i : Site S.patch.L) (j : Axis) : |
| 204 | whipF false (harpoon S.patch i) j (pianist S a x)=edgeColor x.1.2.1 (S.ratio.assemble (a,i),j) := by |
| 205 | ext k |
| 206 | change x.1.2.1 (wrap f (Lattice.lift i)+ S.ratio.embed a,coord j,k)=x.1.2.1 (_,coord j,k) |
| 207 | rw [Ratio.assemble,add_comm _ (S.ratio.embed _)]; rfl |
| 208 | lemma canvas_in (x : Bang G c f) (r : Bool) (i j : Co c (Co S.patch.L (Loc G 1))) : |
| 209 | repackM (unitSplit G S 1) (unitSplit G S 1) (motley (headOn S t r x).1) i j = if i.1=j.1 ∧ i.2.1=j.2.1 then canalBox i.2.2 j.2.2 i.2.1 (pianist S i.1 x) else 0 := by |
| 210 | let T : Lines G f 1 ≃ Co c (Co S.patch.L (Loc G 1)) := unitSplit G S 1 |
| 211 | rcases i with ⟨i,u,k⟩; rcases j with ⟨j,v,l⟩ |
| 212 | have he i u k : T.symm (i,u,k)=(S.ratio.assemble (i,u),k) := by apply T.injective; rw [T.apply_symm_apply,show T (_,_)=((S.ratio.parent _ : Site c),_,k) from split_co .., S.ratio.assemble_parent,S.ratio.assemble_res] |
| 213 | change motley _ (T.symm _) (T.symm _)=_ |
| 214 | rw [he i u k,he j v l]; unfold motley; simp only [Matrix.of_apply] |
| 215 | have hp : S.ratio.assemble (i,u)=S.ratio.assemble (j,v) ↔ i=j ∧ u=v := by rw [S.ratio.assemble_bijective.injective.eq_iff]; exact Prod.mk.injEq .. ▸ Iff.rfl |
| 216 | by_cases h : i=j ∧ u=v <;> simp only [hp,h,false_and, ↓reduceIte,true_and] |
| 217 | unfold canalBox; split; next e => rw [factorC_power,input_color,factorCG S] |
| 218 | rfl |
| 219 | |
| 220 | variable (r : Bool) (Z : Corn (Co c ι)→L[ℝ] Bang G c f) {D : Eye ι (Acts G S.patch)} |
| 221 | theorem bending_ticket (h : Turns D (billZ S Z)) : |
| 222 | Ticket (Dapper D) (fun x => repackM (unitSplit G S 1) (unitSplit G S 1) (motley (headOn S t r (Z x)).1)) := by |
| 223 | classical |
| 224 | let M : OperatorF ι c (Co S.patch.L (Loc G 1)) (Co S.patch.L (Loc G 1)) := fun x => repackM (unitSplit G S 1) (unitSplit G S 1) (motley (headOn S t r (Z x)).1) |
| 225 | let A := billZ S Z |
| 226 | let K := Co c (Co S.patch.L (Loc G 1)) |
| 227 | let T := fun v a b => canalBox (P:=S.patch) (G:=G) a b v |
| 228 | have ht i (u : Site S.patch.L) (a b) : AnalyticAt ℝ (T u a b ∘ rehearsal S i) 0 := |
| 229 | (ContDiffAt.comp (x:=(0:Corn (Co c (Acts G S.patch)))) (g:=T u a b) (f:=rehearsal S i) (by rw [map_zero]; exact canal_diff ..) ((rehearsal S i).contDiff.contDiffAt)).analyticAt |
| 230 | have he (i j : K) x : M x i j= if i.1=j.1 ∧ i.2.1=j.2.1 then (T i.2.1 i.2.2 j.2.2 ∘ rehearsal S i.1) (A x) else 0 := by |
| 231 | refine (canvas_in S t _ _ i j).trans ?_; rw [Function.comp_apply, show rehearsal S i.1 (A x)= _ from rehearsing S (Z x) i.1] |
| 232 | refine all_ground (K:=frameBrill D) (M:=M) (fun i j => ?_) (fun n p i v hz q z hw w => ?_) |
| 233 | · simp_rw [he i j]; split |
| 234 | · exact (show ContDiffAt ℝ ω (T i.2.1 i.2.2 j.2.2 ∘ rehearsal S i.1) (A (0:_)) by rw [map_zero]; exact (ht ..).contDiffAt).comp _ A.contDiff.contDiffAt |
| 235 | exact contDiffAt_const |
| 236 | let R := fun j => relay (v j) (i j) |
| 237 | let k := lens (inviton D i p) p |
| 238 | obtain ⟨B,hB,hQ⟩ := h.basis |
| 239 | have hy (x y : K) : art M n R x y= if x.1=y.1 ∧ x.2.1=y.2.1 then cell (∑ j,v j) x.1 * beat (T x.2.1 x.2.2 y.2.2) 0 n k else 0 := by |
| 240 | unfold art; simp only [Matrix.of_apply]; simp_rw [he]; split; next e => |
| 241 | rw [show (fun a => (T x.2.1 x.2.2 y.2.2 ∘ rehearsal S x.1) (A a))= (T x.2.1 x.2.2 y.2.2 ∘ rehearsal S x.1) ∘ A from rfl,evaluated _ (fun x => (hB x).symm) (ht x.1 x.2.1 x.2.2 y.2.2),MultilinearMap.compLinearMap_apply,show (fun j => B (R j))=fun j => tune (v j) (inviton D i p j) from funext fun j => hQ (v j) (p j) (hz j) _] |
| 242 | exact audition S v p hz (inviton D i p) x.1 _ (canal_diff .. |>.analyticAt) |
| 243 | simp [beat,enlarge,recording_apply] |
| 244 | ext1 x |
| 245 | change (art M n R*ᵥ tune q w) x=tune _ _ x; simp only [Matrix.mulVec,dotProduct,Fintype.sum_prod_type] |
| 246 | simp_rw [hy]; unfold tune frameBrill; simp only [fiber,Matrix.of_apply] |
| 247 | rcases x with ⟨x,a,b⟩; simp only [ite_mul,ite_and]; simp |
| 248 | rw [cell_duality (q+_),cell_add,cell_duality x,cell_duality x] |
| 249 | simp only [Matrix.mulVec, dotProduct,Fintype.sum_prod_type, Matrix.of_apply,ite_mul] |
| 250 | simp [T,k] |
| 251 | simp_rw [Finset.mul_sum]; refine sum_congr rfl fun i _ => ?_; refine sum_congr rfl fun j _ => ?_; ring |
| 252 | end mesh |
| 253 | end YM.Stationary |
| 254 | end |
| 255 | |
| 256 | /-! |
| 257 | # Motley's diagonal pricing. Γ=RR* costs first regime by this. |
| 258 | No real cut assumptions. |
| 259 | -/ |
| 260 | noncomputable section |
| 261 | namespace YM.Stationary |
| 262 | open Function Filter Lattice RG Audience Exterior Precision Bloch Wilson Laurent Matrix Finset |
| 263 | open scoped Topology ContDiff BigOperators Matrix.Norms.Frobenius |
| 264 | variable {ι : Type} [Fintype ι] [DecidableEq ι] {G : Gauge} {P : Patch} {E : Eye ι (Acts G P)} {C σ : ℝ} |
| 265 | |
| 266 | lemma Dapper.green (h : Fresh E σ) : Play (Dapper E) σ := by |
| 267 | refine cosmic _ ?_ ?_ |
| 268 | · intro n p r i q z h1 h2 w1 w2 w3 |
| 269 | have he : lens (inviton E i p) p=lens (inviton E i r) r := by ext1 k; unfold lens inviton; rw [flips_melody _ (h1 k),h.shifts (h1 k) (w1 k)] |
| 270 | simp only [frameBrill,he] |
| 271 | intro X _ _ x n p q b w1 w2 w3 hP hQ i j |
| 272 | unfold frameBrill fiber; simp only [Matrix.of_apply]; split |
| 273 | · refine differentiableBeat (u:=fun z => lens (inviton E b (p z)) (p z)) (fun i => ?_) _ |
| 274 | exact melody_diff ((h.sense (w1 i) _).comp (f:=fun z => p z i) x (hP i)) (hP i) |
| 275 | exact differentiableAt_const _ |
| 276 | lemma Dapper.base : (Dapper E).tab=0 := by |
| 277 | funext p; ext i j; unfold Dapper frameBrill recitalX; simp only [fiber,Matrix.of_apply] |
| 278 | split; swap; exact rfl |
| 279 | rw [show lens (inviton E ![] ![]) ![]=axes ∘ (![]:Fin 0→BassInput G P) from Subsingleton.elim ..,beat_real,iteratedFDeriv_zero_apply]; simp [canalBox,scattering_one] |
| 280 | |
| 281 | -- PaCo budgets positive. actual period ℓ. Require for λ only staff. |
| 282 | def scatterCharge (G : Gauge) (n : ℕ) (C : ℝ) := ∑ i : G.ColorIndex,∑ j : G.ColorIndex, |encore (fun z : G.Color => scattering G (G.lieExp z) i j) 0 C n| |
| 283 | def dapperPrice (G : Gauge) (C : ℝ) (n : ℕ) := fest (Loc G 1) (Loc G 1)*((2:ℝ)^n*scatterCharge G n C) |
| 284 | lemma scattering_fare {C : ℝ} (h : 0≤C) (a : Site P.L) (n : ℕ) (p q : Loc G 1) : Gallop (balcony Unit) |
| 285 | (fun v i => i=0 ∧ StaffP G P C v i) (fun _ => canalBox p q a) n (inch P.L*scatterCharge G n C) := by |
| 286 | classical |
| 287 | unfold canalBox |
| 288 | by_cases ht : p.1=q.1 |
| 289 | · simp only [ht, ↓reduceIte]; let L := (whipF false (harpoon P a) (axisEquiv.symm q.1) : BassInput G P →L[ℝ] G.Color) |
| 290 | have he : ContDiffAt ℝ ω (fun z : G.Color => scattering G (G.lieExp z) p.2 q.2) 0 := scat_rate _ _ |
| 291 | let R (v : BassInput G P) (k : ℕ) := k=0 ∧ StaffP G P C v k |
| 292 | have hp : Gallop (balcony Unit) R (fun _ x => L x) n (inch P.L*C) := steelG R _ (fun i a hv => Hearing.sup (mul_nonneg (inch_pos _).le h) |
| 293 | (fun _ => (hv.2.fly _ _).all hv.1 (harpoon P _))) (mul_nonneg (inch_pos _).le h) n |
| 294 | apply (scaleG R hp (fun _ => L.map_zero) (inch_pos _).le (inch_le P.L) h he).raises le_rfl |
| 295 | gcongr; · exact (inch_pos P.L).le |
| 296 | let f i j := encore (fun z : G.Color => scattering G (G.lieExp z) i j) 0 C n |
| 297 | apply le_trans (le_abs_self _) <| le_trans (single_le_sum (s:=univ) (f:=fun j => |f p.2 j|) (fun j _ => abs_nonneg _) (mem_univ q.2)) _ |
| 298 | exact single_le_sum (s:=univ) (f:=fun i => ∑ j,|f i j|) (fun _ _ => sum_nonneg (fun j _ => abs_nonneg _)) (mem_univ p.2) |
| 299 | simp only [ht, ↓reduceIte] |
| 300 | exact Gallop.goes _ (mul_nonneg (inch_pos P.L).le (Finset.sum_nonneg (s:=univ) (f:=fun i=> ∑ j, |encore (fun z : G.Color => scattering G (G.lieExp z) i j) 0 C n|) (fun j _ => sum_nonneg (fun i _ => abs_nonneg _)))) |
| 301 | |
| 302 | lemma Dapper.trails (h : Spotlight P E σ C) : Charges (Slab.basic _) (Slab.basic _) (Dapper E) σ |
| 303 | (inch P.L * feeHead (dapperPrice G (muralRoom P.J*C))) := by |
| 304 | classical |
| 305 | have he := weight_staff h |
| 306 | have h' := inch_pos P.L |
| 307 | have hh n : 0 ≤ scatterCharge G n (muralRoom P.J*C) := by unfold scatterCharge; positivity |
| 308 | have hx n : 0 ≤ dapperPrice G (muralRoom P.J*C) n := mul_nonneg fest_pos (mul_nonneg (by positivity) (hh n)) |
| 309 | refine serial_caps (green h.fresh) (fun n hn i v w p ht _ => ?_) |
| 310 | refine serial.mono (A:=inch P.L*dapperPrice G (muralRoom P.J*C) n) ?_ (mul_le_mul_of_nonneg_left (fee_ge _ hn) (inch_pos _).le) |
| 311 | unfold frameBrill |
| 312 | rcases eq_or_ne n 0 with H|H |
| 313 | · subst n |
| 314 | have hs : i=![] := Subsingleton.elim ..; have hz : v=![] := Subsingleton.elim .. |
| 315 | rw [hs,hz,show fiber _=(Dapper E).tab p from rfl,Dapper.base]; exact serial.flat.mono (mul_nonneg h'.le (hx _)) |
| 316 | apply serial_basic; refine poster_flux (mul_nonneg h'.le (hx n)) (fun j => ?_) |
| 317 | unfold dapperPrice; rw [mul_left_comm] |
| 318 | apply flux_fest _ (by positivity [hh n]) |
| 319 | intro q z |
| 320 | let u := scatterCharge G n (muralRoom P.J*C) |
| 321 | let f : Unit → BassInput G P → ℝ := fun _ => canalBox q z j |
| 322 | let R (v : BassInput G P) (k : ℕ) := k=0∧ StaffP G P (muralRoom P.J*C) v k |
| 323 | let L := lens (inviton E i v) v |
| 324 | have hV := h.bright_lens v i w |
| 325 | have hp k : Shiny R (L k) 0 := ⟨⟨rfl,(hV k).1⟩,⟨rfl,(hV k).2⟩⟩ |
| 326 | have hb := through_charge (scattering_fare he j n q z |>.reaches n (Nat.pos_iff_ne_zero.mpr H) le_rfl) (b:=fun _ => 0) hp (by simp) |
| 327 | exact hb.all (by simp) () |>.trans_eq (by ring) |
| 328 | end YM.Stationary |
| 329 | end |
| 330 | |
| 331 | /-! |
| 332 | # Orbit regulator Γ first legs. Matrix budgets both directions independently. |
| 333 | -/ |
| 334 | set_option linter.unusedSectionVars false |
| 335 | noncomputable section |
| 336 | namespace YM.Stationary |
| 337 | open Function Filter Lattice RG Audience Exterior Precision Bloch Wilson Laurent Matrix Finset |
| 338 | open scoped Topology ContDiff BigOperators |
| 339 | variable {α β ι γ : Type} [Fintype α] [DecidableEq α] [Fintype β] [DecidableEq β] [Fintype ι] [DecidableEq ι] {G : Gauge} {c f L : Side} {P : Patch} {C D σ : ℝ} {p q : Momentum} |
| 340 | -- finite sum support |
| 341 | lemma Poster.tops (s : Finset γ) (F : γ→Momentum→CompM α β) (h : ∀ i∈s, Poster σ (F i)) : Poster σ (∑ i∈s,F i) := by |
| 342 | classical |
| 343 | induction s using Finset.induction with |
| 344 | | empty => rw [sum_empty]; exact Poster.web _ |
| 345 | | insert a s hs ih => rw [sum_insert hs]; exact Poster.amounts (h _ (by simp)) (ih fun i hi => h i (by simp [hi])) |
| 346 | lemma serial.tops (s : Finset γ) (F : γ →CompM α β) {k : γ→ℝ} {X : Slab α} {Y : Slab β} (h : ∀ i∈ s,serial X Y p q (F i) (k i)) : serial X Y p q (∑ i∈s,F i) (∑ i∈s, k i) := by |
| 347 | classical |
| 348 | induction s using Finset.induction with |
| 349 | | empty => rw [sum_empty, sum_empty]; exact serial.flat |
| 350 | | insert a s hs ih => rw [sum_insert hs,sum_insert hs]; exact serial.plus (h a (by simp)) (ih fun i hi => h i (by simp [hi])) |
| 351 | lemma Jaunt.summations (s : Finset γ) (K : γ→CircM c α β) {F : γ →Momentum→CompM α β} {p : Site c} (h : ∀ i∈s,Jaunt (K i) (F i) p) : Jaunt (∑ i ∈ s,K i) (∑ i∈s,F i) p := by |
| 352 | classical |
| 353 | induction s using Finset.induction with |
| 354 | | empty => rw [sum_empty,sum_empty]; exact Jaunt.zero p |
| 355 | | insert a s ha ih => rw [sum_insert ha,sum_insert ha]; exact Jaunt.plus (h a (by simp)) (ih fun i hi => h i (by simp [hi])) |
| 356 | |
| 357 | abbrev VRange (G : Gauge) (i : ℕ) (L : Side) := Co L (Loc G i) |
| 358 | |
| 359 | def areaRef (G : Gauge) (L : Side) (p : Momentum) := -(furnish L (pageD G 0) p) |
| 360 | def stairRow (G : Gauge) (L : Side) (v : Axis) := furnish L (fun _ => dasher G v) |
| 361 | def roomStart (G : Gauge) (L : Side) := ∑ i : Axis,fun p : Momentum => (stairRow G L i (-p))ᵀ |
| 362 | |
| 363 | def stableF (G : Gauge) (ι : Type) (L : Side) := Film.cardF (ι:=ι) (areaRef G L) |
| 364 | def leapF (G : Gauge) (ι : Type) (L : Side) := Film.cardF (ι:=ι) (roomStart G L-areaRef G L) |
| 365 | def sectorMail (P : Patch) (E : Eye ι (Acts G P)) := (stableF G ι P.L).plus ((Dapper E).pay (leapF G ι P.L)) |
| 366 | |
| 367 | lemma areaNice (G : Gauge) (L : Side) : Poster σ (areaRef G L) := by |
| 368 | have h : Poster σ (fun p => -(1:ℂ) • furnish L (pageD G 0) p) := ((page_linen _).furnish_ok).plus_nec _ |
| 369 | simp only [neg_smul,one_smul] at h; exact h |
| 370 | lemma rowNice (v : Axis) : Poster σ (stairRow G L v) := (Poster.web (dasher G v)).furnish_ok |
| 371 | lemma startNice : Poster σ (roomStart G L) := Poster.tops _ _ fun i _ => (rowNice i).reverse |
| 372 | |
| 373 | |
| 374 | section actual |
| 375 | variable (G) (S : StepData c f) |
| 376 | lemma zero_neat : Jaunt (approached (repackM (unitSplit G S 1) (unitSplit G S 0) (mail (1:Config G f)))) (areaRef G S.patch.L) 0 := by |
| 377 | let X : Lines G f 1 ≃ Co c (Co S.patch.L (Loc G 1)) := unitSplit G S 1 |
| 378 | let Y : Lines G f 0≃ Co c (Co S.patch.L (Loc G 0)) := unitSplit G S 0 |
| 379 | let Q := patron G (d 0 f) |
| 380 | change Jaunt (approached (repackM X Y _)) _ _ |
| 381 | rw [show mail (1:Config G f)= -Q from mailed_zero,show repackM X Y (-Q)= -repackM X Y Q from rfl,prom_negation] |
| 382 | exact (staff (S:=S) 0 (G:=G)).backside |
| 383 | lemma seatOpen (i : Axis) : Jaunt (approached (repackM (unitSplit G S 0) (unitSplit G S 1) (stagehand i G f))) (stairRow G S.patch.L i) 0 := by |
| 384 | change Jaunt ((approached (stagehand i G f)).submatrix (splitCo S.ratio (Loc G 0)).symm (splitCo S.ratio (Loc G 1)).symm) (furnish S.ratio.count (fun _ => dasher G i)) 0 |
| 385 | exact Jaunt.press S.ratio (dash_far (G:=G) (n:=f) i) (σ:=1) (Poster.web _) zero_lt_one |
| 386 | lemma initiate : Jaunt (approached (repackM (unitSplit G S 1) (unitSplit G S 0) (restaged G f))) (roomStart G S.patch.L) 0 := by |
| 387 | let A := unitSplit G S 0; let B := unitSplit G S 1 |
| 388 | let T := fun i => approached (repackM A B (stagehand i G f)) |
| 389 | have ht i : Jaunt ((T i)ᵀ) (fun p => (stairRow G S.patch.L i (-p))ᵀ) 0 := (seatOpen G S i).takes |
| 390 | have hh := Jaunt.summations univ _ (fun i _ => ht i) |
| 391 | have he : approached (repackM (unitSplit G S 1) (unitSplit G S 0) (restaged G f))= ∑ i : Axis,(T i)ᵀ := by ext i j; simp [approached,repackM,T,A,B,restaged, Matrix.sum_apply] |
| 392 | rw [he]; exact hh |
| 393 | lemma jumpZero : Ticket (leapF G ι S.patch.L) (fun _ : Corn (Co c ι) => repackM (unitSplit G S 1) (unitSplit G S 0) (shiftLaunch G f)) := by |
| 394 | classical |
| 395 | apply Ticket.current _ _ |
| 396 | have he := (initiate G S).plus (zero_neat G S).backside |
| 397 | let X : Lines G f 1 ≃ Co c (Co S.patch.L (Loc G 1)) := unitSplit G S 1 |
| 398 | let Y : Lines G f 0 ≃ Co c (Co S.patch.L (Loc G 0)) := unitSplit G S 0 |
| 399 | change Jaunt (approached (repackM X Y _)) _ _ |
| 400 | let M := restaged G f; let N := mail (1:Config G f) |
| 401 | rw [show shiftLaunch G f=M+ -N from sub_eq_add_neg .., show repackM X Y (M+ -N)=repackM X Y M+ -repackM X Y N from rfl,prom_addition,prom_negation,sub_eq_add_neg]; exact he |
| 402 | variable {G} |
| 403 | theorem mail_for (Z : Corn (Co c ι)→L[ℝ] Bang G c f) {D : Eye ι (Acts G S.patch)} (h : Turns D (billZ S Z)) (t : S.Choices) (r : Bool) : |
| 404 | Ticket (sectorMail S.patch D) (fun x => repackM (unitSplit G S 1) (unitSplit G S 0) (mail (headOn S t r (Z x)).1)) := by |
| 405 | classical |
| 406 | let K : Eye ι (Acts G S.patch) := D; let U x := (headOn S t r (Z x)).1 |
| 407 | apply Ticket.foreign (Ticket.plus (Ticket.current (ι:=ι) (m:=c) (areaRef G S.patch.L) _ (zero_neat G S)) (Ticket.pay (bending_ticket S t r Z h) (jumpZero G S))) |
| 408 | refine Eventually.of_forall (fun x => ?_); simp only [Pi.add_apply] |
| 409 | change _= repackM (unitSplit G S 1) (unitSplit G S 0) (mail (U x)); conv_rhs => rw [vivid (U x),show repackM _ _ (_ + _) = repackM (unitSplit G S 1) (unitSplit G S 0) (mail (1:Config G f))+ repackM (unitSplit G S 1) (unitSplit G S 0) (motley (U x)*shiftLaunch G f) from rfl,repack_multiply _ (unitSplit G S 1)]; |
| 410 | rfl |
| 411 | end actual |
| 412 | end YM.Stationary |
| 413 | end |
| 414 | |
| 415 | /-! |
| 416 | # Mail obtains character tariffs. `direct` costs all in strip BEFORE L. |
| 417 | -/ |
| 418 | set_option linter.unusedSectionVars false |
| 419 | noncomputable section |
| 420 | namespace YM.Stationary |
| 421 | open Function Filter Lattice RG Audience Exterior Precision Bloch Wilson Laurent Matrix Finset |
| 422 | open scoped Topology ContDiff BigOperators |
| 423 | variable {α β γ ι : Type} [Fintype α] [DecidableEq α] [Fintype β] [DecidableEq β] [Fintype γ] [DecidableEq γ] [Fintype ι] [DecidableEq ι] {G : Gauge} {c f L : Side} {P : Patch} {C D σ : ℝ} {p q : Momentum} |
| 424 | section reweight |
| 425 | -- costs change ONLY width≤1, µ^power, no product artifacts. |
| 426 | lemma advance {X : Slab α} {Y T : Slab β} {A : Film ι α β} (hp : Charges X Y A σ C) (ht : ∀ p∈strip σ,serial Y T p p 1 D) : Charges X T A σ (C*D) := by |
| 427 | refine ⟨hp.covered,fun h => ?_,fun i p q h => ?_,fun i j p q r h => ?_⟩ |
| 428 | · simpa using (hp.base h).bond (ht _ h) |
| 429 | · simpa using (hp.detail i h).bond (ht _ h.basic) |
| 430 | simpa using (hp.stamp i j h).bond (ht _ h.oneWay.basic) |
| 431 | lemma revertX {X T : Slab α} {Y : Slab β} {A : Film ι α β} (hp : Charges X Y A σ C) (ht : ∀ p∈strip σ,serial T X p p 1 D) : Charges T Y A σ (D*C) := by |
| 432 | refine ⟨hp.covered,fun h => ?_,fun i p q h => ?_,fun i j p q r h => ?_⟩ |
| 433 | · simpa using (ht _ h).bond (hp.base h) |
| 434 | · simpa using (ht _ h.added).bond (hp.detail i h) |
| 435 | simpa using (ht _ h.total).bond (hp.stamp i j h) |
| 436 | lemma leftward (h : σ ≤ 1) (p : Momentum) (he : p∈strip σ) : serial (Slab.basic (Co L α)) (altarTile L α) p p 1 (Real.exp 4*(inch L)⁻¹) := by |
| 437 | simpa only [one_mul] using cruise (L:=L) (α:=α) (σ:=1) p (fun i=> (he i).trans_le h) |
| 438 | lemma westward (h : σ ≤ 1) (p : Momentum) (he : p∈strip σ) : serial (altarTile L α).dual (Slab.basic (Co L α)) p p 1 (Real.exp 4*(inch L)⁻¹) := by |
| 439 | simpa only [neg_neg,transpose_one,slide_basic] using (leftward (α:=α) (L:=L) h _ (negResident he)).slide |
| 440 | end reweight |
| 441 | section ahead |
| 442 | |
| 443 | def stageTariff (G : Gauge) (i : Axis) : ℝ := Real.exp 4 * vflux (dasher G i) * Real.exp 4 |
| 444 | def runTariff (G : Gauge) : ℝ := (∑ i,stageTariff G i) + pageOrd G 0 |
| 445 | def paceTariff (G : Gauge) (j : ℕ) (C : ℝ) : ℝ := pageSmooth G 0 + 4*feeHead (dapperPrice G (muralRoom j*C))*runTariff G * Real.exp 4 |
| 446 | |
| 447 | lemma stableT1 (L : Side) : Charges (Slab.basic _) (altarTile L _) (stableF G ι L) 1 (pageSmooth G 0) := by |
| 448 | have he p (hv : p∈strip (1:ℝ)) : serial (Slab.basic _) (altarTile L _) p p (areaRef G L p) (pageSmooth G 0) := (pageTroop L p 0 hv).neg |
| 449 | exact Charges.current (areaNice _ _) ((he (0:Momentum) (Work.F07.realStrip _ zero_lt_one (by simp))).fence) he |
| 450 | lemma stableT2 (L : Side) : Charges (altarTile L _|>.dual) (Slab.basic _) (stableF G ι L) 1 (pageSmooth G 0) := by |
| 451 | have he p (hv : p∈strip (1:ℝ)) : serial (altarTile L _|>.dual) (Slab.basic _) p p (areaRef G L p) (pageSmooth G 0) := (pageFrame L p 0 hv).neg |
| 452 | exact Charges.current (areaNice _ _) ((he (0:Momentum) (Work.F07.realStrip _ zero_lt_one (by simp))).fence) he |
| 453 | lemma leapTariff (L : Side) : Charges (Slab.basic _) (Slab.basic _) (leapF G ι L) 1 (runTariff G) := by |
| 454 | have hh (i : Axis) p (hp : p∈strip (1:ℝ)) : serial (Slab.basic _) (Slab.basic _) p p (stairRow G L i p) (stageTariff G i) := plankPrice _ hp (flux_nonneg (dasher G i)) (fun j => le_rfl) |
| 455 | have hx p (hp : p∈strip (1:ℝ)) : serial (Slab.basic _) (Slab.basic _) p p (leapF G ι L|>.tab p) (runTariff G) := by |
| 456 | simp only [leapF,Film.cardF,Pi.sub_apply]; refine serial.sub ?_ (serial.neg (pageBase L p _ hp)) |
| 457 | unfold roomStart; rw [Finset.sum_apply]; apply serial.tops; intro i _; simpa only [slide_basic,neg_neg] using (hh i (-p) (negResident hp)).slide |
| 458 | exact Charges.current (Poster.shares startNice (areaNice ..)) ((hx (0:Momentum) (Work.F07.realStrip _ zero_lt_one (by simp))).fence) hx |
| 459 | lemma paceTariff_pays {D : Eye ι (Acts G P)} (he : Spotlight P D σ C) (hp : 0<σ) : |
| 460 | Charges (Slab.basic _) (altarTile P.L _) (sectorMail P D) σ (paceTariff G P.J C) ∧ |
| 461 | Charges (altarTile P.L _|>.dual) (Slab.basic _) (sectorMail P D) σ (paceTariff G P.J C) := by |
| 462 | have hx := (stableT1 (G:=G) (ι:=ι) P.L).mono he.width le_rfl |
| 463 | have hq := (stableT2 (G:=G) (ι:=ι) P.L).mono he.width le_rfl |
| 464 | have hh := (Dapper.trails he).pay ((leapTariff (G:=G) (ι:=ι) P.L).mono he.width le_rfl) hp |
| 465 | unfold sectorMail paceTariff; constructor |
| 466 | · apply Charges.plus hx |
| 467 | convert advance hh (leftward (L:=P.L) he.width) using 1; field_simp [(inch_pos P.L).ne'] |
| 468 | apply Charges.plus hq |
| 469 | convert revertX hh (westward (L:=P.L) he.width) using 1; field_simp [(inch_pos P.L).ne'] |
| 470 | end ahead |
| 471 | end YM.Stationary |
| 472 | end |