import YM.RG05Readout.Address.Fiber /-! # High-rank physical scalar steps The underlying datum composite splitting for root shift. Pays (single-step) only, retains full trace. -/ set_option autoImplicit false noncomputable section namespace YM.RG05Readout.Address open Function Filter Set MeasureTheory Lattice Wilson Labels RG Source Bid open Extra.Histories Push Local Planned.GuardedAtom Guard MergeProof Extra.Histories.Relay Native open PhysicalNext.Repeat Lotus Motion Trace.Physical Offsets open scoped Topology ContDiff BigOperators Matrix.Norms.Frobenius Classical variable {G:Gauge} section ops variable {d:ℕ}{n:Side}{F:Labels.Frame G d} variable (o:Site n) (S:SectionData F)(R: Rep G n) lemma local_core (x:F.Coeff) : invoice (Extra.Histories.primary o x) o S R=(fun U=> (R.eval U:ℂ)*part S o R U x,Local.primary S o R.p.threshold x,0):=by let P:=Extra.Histories.primary o x have hx : P.exponentialEntry o S R=Local.primary S o R.p.threshold x:=by funext U; have ht i:P.maskedTerm R i U=0:=congr_fun (map_zero (maskLinear _ _)) _ change Local.primary S o R.p.threshold x U + ∑' i,P.maskedTerm R i U=_; simp [ht] exact Prod.ext (funext (primary_density S R x)) (Prod.ext hx rfl) lemma core_linear : IsLinearMap ℂ fun x=>invoice (Extra.Histories.primary o x) o S R:=by have H(z: ℂ) (x:F.Coeff) (U:Config G n): ((R.eval U:ℂ)*part S o R U (z • x))=z • ((R.eval U:ℂ) *part S o R U x):=by rw [map_smul]; simp only [smul_eq_mul];ring constructor · intro x y; simp_rw [local_core,map_add]; apply Prod.ext · exact funext (fun U=>by simp [mul_add]) apply Prod.ext · rfl exact (add_zero _).symm intro z x; rw [local_core,local_core]; exact Prod.ext (funext (H z x)) (Prod.ext (map_smul ..) (smul_zero z).symm) lemma core_expands (x:F.Coeff):invoice (Extra.Histories.primary o x) o S R=∑ i,x i • invoice (Extra.Histories.primary o (Size.axis F i)) o S R:=by let A:= (core_linear o S R).mk' _; conv_lhs=> rw [← Size.sum_axes F x] change A _=∑ i,x i • A _; simp only [map_sum,map_smul] def remove (P:Coefficient F n):Coefficient F n:={ P with x:=0 } lemma removable (P:Coefficient F n) (A:Hol G)(hp:P.Format o A R):(remove P).Format o A R:= ⟨hp.smooth,hp.origin,hp.identity_null,hp.projects,hp.forcing,hp.carried,hp.invariant,hp.supported,hp.borel⟩ lemma bundle (P:Coefficient F n):invoice P o S R=invoice (Extra.Histories.primary o P.x) o S R+invoice (remove P) o S R:=by rw [local_core]; let Q:= remove P have hx: P.exponentialEntry o S R= Local.primary S o R.p.threshold P.x+Q.exponentialEntry o S R:=by funext U; change Local.primary _ _ _ P.x U+(∑' i,P.maskedTerm R i U) =Local.primary S o R.p.threshold P.x U+(Local.primary S o R.p.threshold 0 U+∑' i,P.maskedTerm R i U); rw [map_zero]; exact congr_arg _ (zero_add _).symm apply Prod.ext _ (Prod.ext hx (zero_add Q.forced).symm); funext U change P.density o S R U=(R.eval U:ℂ)*part S o R U P.x+Q.density o S R U rw [Coefficient.density, Coefficient.density,hx,Pi.add_apply,mul_add]; rw [add_assoc]; rfl lemma scale_n {i:F.Index} (L:Side): F.coeffSize (vowel F L (Size.axis F i)) = (L.val:ℝ)^(d-(F.grades i).1):=by rw [Frame.coeffSize,Finset.sum_eq_single i]; simp [vowel,Size.axis] intro j _ hj; simp [vowel,Size.axis,hj]; simp end ops section variable (C:Family G)(N m p d:ℕ) set_option quotPrecheck false local notation "Z"=>C.path.levels.clock.op m p local notation "R"=> C.path.rep N p m local notation "M"=> C.path.rep N p (m+1) local notation "F"=>C.labels.level d local notation "Y"=> C.params local notation "S"=> C.localSection d local notation "κ"=> kappa C.path local notation "L"=> C.path.S.block m local notation "v"=> ((L).val:ℂ)^d variable (o:Site (C.path.S.side (m+1) p)) variable {a c α β g r J :ℝ} {X:Extra.Histories.Heading (C.labels.level d)} (D:GaugeDoor (C.path.rep N p (m+1)) (C.path.rep N p m)) local notation "q"=> Pricing S C.path N p m Y variable (h:C.Makes) (hm:m simp only [Finset.sum_empty]; refine ⟨Extra.Histories.primary 0 0,primary_format _,primary_rem _ hδ,?_,?_⟩ · simp [Extra.Histories.primary,Frame.coeffSize] rw [invoice_zero]; exact Ride.vac | @insert i s hi ih=> simp only [Finset.sum_insert hi]; obtain ⟨T,hT,hV,hW,hY⟩:=ih; obtain ⟨L',hr,hL,hz,hY'⟩:=hf i obtain ⟨hq,hA⟩:=presentation hr hL hT hV; refine ⟨beside L' T,hq,hA,?_,?_⟩ · rw [reckon]; exact (Size.add ..).trans (add_le_add hz hW) rw [invoice_add L' 0 (S) (R) T (h.wilson.represents N p m hm.le).good hL hV]; exact hY'.taller hY hw.soundD (C.path.levels.transition_mass ..) G' (h.wilson.represents N p m hm.le).good obtain ⟨T,hT,hZ,hW,hY⟩:=hU Finset.univ; unfold U at hY; rw [← core_expands o S M P.x] at hY have hv: ∑ i,f i=u*W:= (Finset.sum_mul ..).symm.trans (mul_comm ..) rw [hv] at hW hZ; obtain ⟨Q,hF,hQ,hξ,hR⟩:= regular_grant C N m p d o D h hm ho hw (remove P) hα hκ (removable o (M) P Y hp) hP rfl -- binder verify obtain ⟨hA,hB⟩:= presentation hT hZ hF hQ; refine ⟨beside T Q,hA,hB,?_,?_⟩ · rw [bundle o S M P,invoice_add T 0 (S) R Q (h.wilson.represents N p m hm.le).good hZ hQ]; rw [show (1+u+β)* W=∑ i, ‖P.x i‖*(1+u+β) from (mul_comm ..).trans (Finset.sum_mul ..)] exact hY.taller hξ hw.soundD (C.path.levels.transition_mass ..) G' (h.wilson.represents N p m hm.le).good rw [reckon]; exact (Size.add ..).trans (add_le_add hW hR) end end YM.RG05Readout.Address