import YM.Analysis.Polydisc import YM.Bid.Corners /-! # Centered insertions on the common Union via all-spectator matrix elements -/ set_option autoImplicit false noncomputable section namespace YM.Work.C01 open Function OS Word Boundary Bid open scoped NNReal InnerProductSpace variable {G : Gauge} {L : Register G} {S T : Table L} variable {V : Chamber T timeAxis} lemma op_ext {M N : V.H.Op} (h : ∀ x y, inner ℂ (V.GNS.plant x) (M (V.GNS.plant y)) = inner ℂ (V.GNS.plant x) (N (V.GNS.plant y))) : M = N := by apply V.GNS.by_bud intro y apply V.GNS.whole.eq_of_inner_right ℂ intro x induction x using Finsupp.induction_linear with | zero => simp | add f g hf hg => simp only [map_add,inner_add_left,hf,hg] | single i c => simp only [Kernel.Gram.stems,Finsupp.linearCombination_single,inner_smul_left,h] def center (p : ℝ≥0) (v : L.Token) : L.Plant := (position 0 p,v) theorem centerTime (p : ℝ≥0) (v : L.Token) : (center p v).1 timeAxis = (p:ℝ) := time_position _ _ lemma centeredSlab (p : ℝ≥0) (v : L.Token) (h : 0 < p) : Slab timeAxis (p+p) [center p v] := by have hv : 0 < (p:ℝ) := h refine ⟨add_pos h h,⟨locations.mpr (by simp),?_⟩,?_⟩ <;> simpa only [List.mem_singleton,forall_eq,centerTime,NNReal.coe_add,lt_add_iff_pos_right] using hv lemma centeredBuffer (p : ℝ≥0) (v : L.Token) : OS.buffer timeAxis p (p+p) [center p v] := by refine ⟨?_,?_⟩ · intro i j h exact (h (Subsingleton.elim (α := Fin 1) i j)).elim simp [centerTime] def spectators (p : ℝ≥0) (x y : Future L timeAxis) : L.Word := reflect x.val timeAxis ++ raised timeAxis (p+p) y.val lemma cleared {p : ℝ≥0} (v : L.Token) (hp : 0 < p) (x y : Future L timeAxis) : distinct (center p v :: spectators p x y) := by have he : distinct (reflect x.val timeAxis ++ center p v :: raised timeAxis (p+p) y.val) := twoSides x.property (entering (centeredSlab p v hp) y).property exact locations.mpr ((List.perm_middle.map Prod.fst).nodup (locations.mp he)) lemma inner_raw (A : Spread V) (ht : T.Symmetric) {p : ℝ≥0} (hp : 0 ?_) i <;> simp /-- Each finite level gives an algebraically linear map, by placing the variable plant in the second (linear) side of the Gram elements. -/ def single (A : Spread V) (ht : T.Symmetric) {p : ℝ≥0} (hp : 0 hf d v⟩ exact ⟨0,fun _ _ hp => (h hp).elim⟩ theorem answer : YM.Bid.C01 := by intro G L S T V P A H choose f hf using at_width P A H let B : Small S V := ⟨f⟩ refine ⟨B,fun d v p hp => hf p d v hp,?_⟩ intro v obtain ⟨d,w,rfl⟩ := P.covered H.head.laws.toSymmetric H.rises v let t : L.Token := Ward.expose (⟨d,w⟩ : S.Tag) obtain ⟨C,K,hC,hCK⟩ := H.counter.cap d ‖t.2‖ refine ⟨C,K,hC,?_⟩ intro p hp change ‖f p _‖ ≤ _; rw [hf p d w hp.1] have hc : constrained d ‖t.2‖ [center p t] := by intro i hi obtain rfl := List.mem_singleton.mp hi exact ⟨le_rfl,le_rfl⟩ have he := hCK _ _ hc (centeredSlab p t hp.1) p (show 0 < (p:ℝ) from hp.1) (show (p:ℝ) ≤ 1 from hp.2.le) (centeredBuffer p t) simpa only [Spread.radius,List.length_cons,List.length_nil,Nat.zero_add,Nat.cast_one,pow_one,mul_one,one_div] using he end YM.Work.C01