import YM.Next.RANK.LineBox import YM.Next.RANK.Peaks import YM.Next.RANK.SolveRay /-! # Quantify discrepancy using weighted radial reads for SHORT and long H Local extractors from old mask, on the true cubical origin. Long terms included in Taylor bill but not with any `.PiVanish`. Functions along different real tests need not agree away from the germ once supports and thresholds enter. -/ set_option autoImplicit false noncomputable section namespace YM.Next.Rank.Spindle open Lattice RG Wilson Source Labels Source.Drops Configuration Beamer Normal Rise Asymptotics Filter Set Function MvPolynomial MeasureTheory open scoped Classical Matrix.Norms.Frobenius Topology ContDiff BigOperators variable {G : Gauge} {n : Side} {o : Site n} {D R d : ℕ} (H : Hol G) def south (o : Site n) (A : Snap G d) (t s : ℝ) := H.testLinks d o (expand d (t • A)) s def spots {o : Site n} (h : 2*(R+1) domain H R (register h x) A p.threshold r lemma spots_read {o : Site n} (h : 2*(R+1) (Hs _ _ p.threshold_pos p.threshold_le (register h i)).1),funext fun i=> (Hs _ _ p.threshold_pos p.threshold_le (register h i)).2.2.1⟩ lemma spot_green {o : Site n} (h : 2*(R+1) G.mat (travel (H.links d (expand d y) 1) 0 (paths e.1++[posDir e.2]++ Lattice.reverse (paths (e.1+step e.2)))) := by funext s; symm; rw [travel_append,travel_append,stops,stop_append, stops,travel,travel,mul_one, show stop (e.1:Cover) [posDir e.2]=e.1+step e.2 from rfl]; have hr := travel_reverse (x:=0) (paths (e.1+step e.2)) (H.links d (expand d s) 1); rw [stops] at hr; rw [hr]; rfl rw [hp]; exact (Work.G02.walkGerm H d _ _).1 have hk (t : ℝ) : Tendsto (fun r => flash (t • A) r) (𝓝 0) (𝓝 0) := by simpa using (flashDiff (n:=1) (t•A)).continuous.tendsto 0 have hg : Tendsto v (𝓝 0) (𝓝 1) := by apply ((G.continuous_mat.isClosedEmbedding G.mat_injective).isEmbedding.isInducing.tendsto_nhds_iff).2 change Tendsto (fun r => G.mat (W r i.val)) _ _ simp_rw [hz,G.mat_one,← flash_smul] simpa only [unroll] using! he.continuousAt.tendsto.comp (hk p.threshold) filter_upwards [hg.eventually G.plog_right] with r hr rw [spots_read, wired, smul_smul,mul_inv_cancel₀ p.threshold_pos.ne',one_smul]; exact hr filter_upwards [eventually_all.mpr hh] with r ha intro e he ht; let i:Dim o R:= ⟨e,Finset.mem_filter.mpr ⟨Finset.mem_univ e,he,ht⟩⟩ exact (net_in p _ i).trans (ha i) -- at a physical support. Weighted error from polynomial vTest. No projecting H long. def snips {o : Site n} (h : 2*(R+1)?_⟩ have he (i : links G o b) := HC b p.threshold p.threshold_pos p.threshold_le (register h i.1) i.2 let U:= snips (o:=o) H h p A let V:= tacks (o:=o) H h A let a:=1+(b:ℝ); have hv : 1 ≤ a := le_add_of_nonneg_right (Nat.cast_nonneg _) have hC : 1≤C*a^L := one_le_mul_of_one_le_of_one_le hc (one_le_pow₀ hv) refine ⟨fun i => (he i).1,fun i=> (he i).2.1,fun P hp=>?_⟩ obtain ⟨hh,hv,ht⟩ := HK (links G o b) U V (C*a^L) p.threshold hC p.threshold_pos.le { east i := ⟨(he i).1,fun j h=> ((he i).2.2.2.2 j h).1⟩, west i := ⟨(he i).2.1,fun j h=> ((he i).2.2.2.2 j h).2.1⟩ bar i := ⟨(by change ContDiffAt ℝ m (U i - V i) 0; exact ((he i).1).sub ((he i).2.1)),fun j h=> ((he i).2.2.2.2 j h).2.2⟩ } P hp refine ⟨(count_probe m _ hv).trans_eq ?_,?_⟩ · unfold a; rw [mul_pow,pow_mul]; ring change ‖evaluate_ray (walked U P) m-evaluate_ray (walked V P) m‖≤ _ rw [net_probe m hh.1 hv.1]; refine (count_probe m _ ht).trans_eq ?_; unfold a; rw [mul_pow,pow_mul]; ring lemma genuine (x : Support n) (F : Config G n→ℂ) (p : RG.BudgetPoint) (a : ℂ) (T : poly (links G o R)) (S : Rules G) (Z : ℝ) (P : p.Regular x F) (hx : x ⊆ patch R o) (h : 2*(R+1) a*F (south H o A p.threshold r))-W) := by obtain ⟨C,v,c,HC⟩ := shades H A d D let X:= spots (o:=o) H h p A intro W; obtain ⟨hf,ht⟩:= spots_cost H (o:=o) h p A 1 have hv : Tendsto X (𝓝 0) (𝓝 0):= by rw [← show X 0=0 from ht]; exact hf.continuousAt.tendsto have he:= (show HasFDerivAt X _ 0 from (hf.differentiableAt one_ne_zero).hasFDerivAt).isBigO_sub obtain ⟨L,hL,HL⟩ := he.exists_pos refine ⟨walks _ _ (HC R n o h p).1 _, knock hd (error_power (Z*L^(D+1)) ?_)⟩ filter_upwards [HL.bound,hv.eventually (Metric.ball_mem_nhds (0:Space G o R) (pane_pos S)),spot_green H (o:=o) h p A] with r hp hp' hR change ‖X r-X 0‖ ≤ L* ‖r-0‖ at hp; rw [show X 0=0 from ht,sub_zero,sub_zero] at hp let B:= south H o A p.threshold r change ‖a*F B-text (scan (X r)) T‖≤ _ rw [show F B=F (net p o R (X r)) from (P.symmetry (fingers B o) B).symm.trans (P.sites _ _ (by intro i he hh; exact (hR i (hx he) (hx hh)).symm))] apply (hh _ (by rw [dist_zero_right] at hp'; exact le_of_lt hp')).trans ((mul_le_mul_of_nonneg_left (pow_le_pow_left₀ (norm_nonneg _) hp _) hr).trans_eq ?_) ring end YM.Next.Rank.Spindle