import YM.RG08.Flat.KStep /-! # Precise flat Wilson history used for the formal coefficients Adapter from the *same* actual gauge history; no existential tuning/volume limits used here. Also admits contexts with no deep-demand promises (fixed smoothing formal tests). `pair` extends to artificial periods with exactly the same cover-block germ. Does not supply real Estimates for those periods. -/ set_option autoImplicit false noncomputable section namespace YM.RG08 open Function Filter Lattice Wilson RG Exterior Precision Next.Free open Laurent Bloch Matrix Work.F08 open scoped Topology BigOperators structure Chain where S : Schedule kernel : KernelChoices J : ℕ→ℕ adm i : 4 ≤ J i mono i : J i ≤ J (i+1) slow i : J (i+1) ≤ J i + 1 namespace Chain variable (X : Chain) {G : Gauge} /-- Blocking can be imported *literally* from the cutoff witness. -/ def actual (a : Levels G) : Chain := ⟨a.S,a.clock.kernel,a.clock.J,a.clock.adm, fun _ => a.fits.mono (Nat.le_succ _),a.fits.stepSlow⟩ def patch (m : ℕ) : Patch := ⟨X.S.block m,X.J (m+1),X.adm _,X.S.block_large m,X.S.block_odd m⟩ def pair (m : ℕ) (c f : Side) (h : f.val=c.val*(X.S.block m).val) : StepData c f := ⟨X.patch m,X.kernel,h⟩ def stepOp (m p : ℕ) : StepData (X.S.side m p) (X.S.side (m+1) p) := X.pair m _ _ (X.S.oneStep m p).exact_size lemma stepOp_uses (a : Levels G) (m p) : (actual a).stepOp m p = a.clock.op m p := rfl def step (m : ℕ) (v : Train (X.J (m+1))) : Flight (X.J (m+1)) (X.J m) := ⟨X.S.block m,X.S.block_odd _,X.S.block_large _,X.adm _,X.mono m,X.slow m,v⟩ def link (d i : ℕ) : Train (X.J i) := match d with | 0 => Train.top _ | d+1 => (X.step i (link d (i+1))).land def history (N i : ℕ) := X.link (N-i) i lemma history_top (N : ℕ) : X.history N N=Train.top _ := by rw [history,Nat.sub_self,link] def flight (N i : ℕ) := X.step i (X.history N (i+1)) lemma history_step (N i : ℕ) (h : i rfl | succ m ih => rw [link,ih, flying]; rfl lemma A₀_actual (a : Levels G) (N m) : (actual a).A₀ N m=((destination a N m).duo a.clock.kernel.penalty).A0 := by unfold A₀ flight history; rw [link_actual]; rfl lemma metric_actual (a : Levels G) (N m) : (actual a).metric N m=pink a.clock.kernel.penalty (location a N m) := by unfold metric history; rw [link_actual]; rfl lemma side_infinite (s : YM.Schedule) (m : ℕ) : Tendsto (fun i => (s.side m i).val) atTop atTop := by refine tendsto_atTop_mono (fun i => ?_) s.period_strict.tendsto_atTop exact Nat.le_mul_of_pos_right _ (s.denominator m).property /-- No A-A' difference on the right. -/ theorem k_difference_step (m N N' : ℕ) (h:m rfl) (side_infinite X.S m) (X.metric_whole _ _) (X.metric_whole _ _) (X.metric_whole _ _) (X.metric_whole _ _) (X.az_whole _ _) (X.az_whole _ _) (.of_forall fun i => ⟨X.canonical _ _ h (c:=X.S.side m i) (f:=X.S.side (m+1) i) (X.S.oneStep m i).exact_size, X.canonical _ _ hh (c:=X.S.side m i) (f:=X.S.side (m+1) i) (X.S.oneStep m i).exact_size, X.metric_sym .., X.metric_sym ..⟩) /-- Any horizon with the actual Rack identities yields precisely this Hessian on every admitted level, not claiming similar uniqueness for higher real path data. -/ theorem same_rack (a : Levels G) (Q : Horizon a) (p : MapPrices) (h : Craft.Rack a p Q) (N m : ℕ) (hm:m≤N) : (actual a).K₀ N m=hessian (Q.H N m).metric := by let s := actual a have hv i hi : Whole (Q.H N i).metric := ⟨_,_,p.alpha_pos _, (h.covers N i hi).2.1⟩ have hk i L : (s.K₀ N i).acts L= K ((s.metric N i).acts L) := sym_acts .. change s.K₀ N m=_ induction hm using Nat.decreasingInduction with | self => apply bank_injective (s.k_whole ..).safe (hessian_whole (hv _ le_rfl)).safe intro L rw [hessian_acts (hv _ le_rfl),hk,s.metric_wilson,acts_unit] have hz := (h.traces N N le_rfl L).same rw [h.top] at hz rw [K,K,Matrix.mul_assoc, Matrix.mul_assoc, hz] | of_succ i hi IH => apply row_ext_tail (side_infinite a.S i) (s.k_whole ..).safe (hessian_whole (hv _ hi.le)).safe refine Eventually.of_forall fun z => ?_ let F := a.S.side (i+1) z; let c := a.S.side i z let S := a.clock.op i z have ha := s.canonical _ _ hi (c:=c) (f:=F) (a.S.oneStep i z).exact_size have hX := cross_identity S (s.metric_sym ..) (s.metric_sym ..) ha (h.crosses N i z hi|>.trial) have hm := hv (i+1) hi have hs : s.K₀ N (i+1) = _ := IH rw [← hk (i+1) F,hs,hessian_acts hm,sub_self,Matrix.mul_zero,Matrix.zero_mul] at hX rw [hk i c,hessian_acts (hv _ hi.le)]; exact sub_eq_zero.mp hX end Chain end YM.RG08