import YM.MergeProof.South.Admit import YM.MergeProof.South.Wakes import YM.FullVolume.Fields.Tarry import YM.MergeProof.South.Window import YM.PhysicalNext.RG_NEXT_COMPLETE_REPEATABLE_NONLINEAR_STEP.Slide.Clock /-! purchase from finite intermediate assignment Y. weight d preserved in Wakes for yoga. -/ set_option autoImplicit false noncomputable section namespace YM.MergeProof.Accent open Finset Function Filter MeasureTheory Lattice Wilson RG Push Marker Extra.Histories Ac Menu Overlay open scoped Topology Matrix.Norms.Frobenius BigOperators Classical ContDiff variable {V : Type} [Fintype V][DecidableEq V]{B:Census V}{G:Gauge} open GridApprox.Nil Local Extra.Trajectories Source Extra.Multi section variable (A:History G) (r:ℕ→ℕ)(δ u:ℕ→ℝ)(D:∀ N p m:ℕ,mA.levels.budget local notation "R"=> (A.rep N p) variable (f:∀ m:ℕ,V → Config G (A.S.side m p)→ℂ)(g:∀ m:ℕ,V→ℕ → Config G (A.S.side m p)→ℂ) local notation "M"=> manifest A p N f g local notation "T"=> tapes A p N g variable {X:Config G (A.S.side j p)→Poly B} (h:A.Selected)(ht:Matchup A r δ p j k o w B) (hh:Retain A r δ u D N p k) (hl:∀ i:V,Wakes A k j N p (fun m=>o m i) (fun m=>w m i) (fun m=>f m i) (fun m=>g m i) D e) (hQ:Served (A.rep N p j) (f j) (tapes A p N g j) X (o j) (w j) ((A.levels.budget j).supportExponent-2) 1) (he: Integrable X (prior G _)) local notation "C"=> gust A N p j X include h ht hh hl hQ he -- hQ usual purchase at retained exponent. can reduce by one or two at top intermediate if necessary. set_option maxHeartbeats 800000 in lemma Retain.waft (m:ℕ)(hK:k ≤ m)(hm:m ≤ j): Served (R m) (f m) (T m) (C m hm) (o m) (w m) (if m=j then (A.levels.budget m).supportExponent-2 else (A.levels.budget m).supportExponent) 1:=by induction hm using Nat.decreasingInduction with | self =>rw [gust_base,if_pos rfl]; exact hQ | of_succ m hm IH=> have hm': k ≤ m+1:= hK.trans m.le_succ let q:= gust A N p j X (m+1) hm; have hR : Integrable q (prior G _):= gust_live _ _ _ _ _ he hm have hc:=IH hm'; rw [gust_step A N p j X hm]; let P':=(A.levels.clock.op m p).push ((R (m+1)).beta) q have hN : m (q U).part (B.fire i))=M (m+1) i:=funext fun U=> hc.relay (fun i=> (hl i).stocked (m+1) hm' hm) ((h.represents _ _ _ hN).good.labels) U |>.1 i have hy(i):(fun U=>(P' U).part (B.fire i))= M m i:= (push_get (A.levels.transition_mass ..) hR _).trans (by rw [hY]; exact (hl i).feeds m hK hm|>.symm) choose ψ ν y x hf hs hX hD using fun i=> (hl i).sways m hK hm obtain ⟨v,g',hj,hb⟩:= hh.days m hK hN have hk:= ht.pins m hK hm let Z:= A.levels.clock.op m p; let x':=Z.ratio.parent ∘ o (m+1); have hP:x'=o m:=hk have hC:Occupancy x' (r m):=by rw [hP]; exact ht.occ _ hK hm.le have hA:Repegs x' (P m).B (fun i=>δ m*w (m+1) i) (w m) (1/2) 1 B:=by rw [hP]; exact ht.runs _ hK hm have hu(U i): (P' U).part (B.fire i)=coin (R m) (f m i) (g m i) U:= congr_fun (hy i) U have hΨ(i:V): ∃ Z': Set PhysicalNext.Repeat.Lotus.Wing, Z'.Finite∧Tale Z' (o (m+1) i) (x' i) 1 (f (m+1) i) (T (m+1) i) (T m i) (ν i) (y i) (x i) (D N p m hN):=by rw [hP]; exact ⟨ψ i,hf i,hD i⟩ have hT := Duty.pre A N m p r h hN hb hj (ht.pos _ hm' hm) (ht.pos _ hK hm.le) (F':=f m) (δ:=ν) (s:=y) (r:=x) hc (by split <;> linarith only) (ht.next _ hK hm) hC hA (fun i=> (hl i).stocked _ hK hm.le) hu hs hX hΨ rw [if_neg hm.ne]; exact (congr_arg (fun (z: V → Site (A.S.side m p)) =>Served (R m) (f m) (T m) P' z (w m) (P m).supportExponent 1) hP).mp hT end end YM.MergeProof.Accent #print axioms YM.MergeProof.Accent.Retain.waft