import YM.Axis.Matrix /-! # Outer analysis: genuine coordinate-axis spectral kernels Both arbitrary clusters and point-like clusters are finite linear combinations of strictly separated words. The correlation tested below is *antilinear* in the cluster at the origin, **linear** in the cluster placed at `y`; we include ordinary conjugation (not plane reflection) on the former. (The final real-kernel and arbitrary-quotient-label identities do not put this conjugation into the local Ward maps.) Character projection acts on offsets too. We guard collision values by zero; no integral uses them as a trace. -/ set_option autoImplicit false noncomputable section namespace YM.Outer open Set Filter Function MeasureTheory Measure Matrix Complex Boundary Probe Row OS Word open scoped Topology NNReal ENNReal InnerProductSpace BigOperators ComplexConjugate variable {G : Gauge} {L : Register G} {S : Table L} lemma act_comp (s t : Signed) (w : L.Word) : act s (act t w)=act (s*t) w := by simp only [act, List.map_map] congr 1 funext p; rcases p with ⟨p,v⟩ refine Prod.ext ?_ ?_ · change Ortho.move _ (Ortho.move _ _) = _ rw [← Ortho.move_mul,show (s*t).ortho=s.ortho*t.ortho from map_mul Signed.inclusionO s t] · cases v simp [Register.move] lemma act_id (w : L.Word) : act 1 w=w := by unfold Word.act convert List.map_id w using 1 congr 1 funext p; rcases p with ⟨p,d,v⟩ simp [Register.move, show (1 : Signed).ortho=1 from map_one Signed.inclusionO] lemma act_conj (s : Signed) (w : L.Word) : act s (Word.conjugate w)=Word.conjugate (act s w) := by simp only [Word.conjugate,Word.act,List.map_map] congr 1 funext p; rcases p with ⟨p,d,v⟩ simp [Register.move, Register.conjugate] lemma carried (s : Signed) (w : L.Word) (x : E4) : carry (act s w) (Ortho.move s.ortho x)=act s (carry w x) := by simp only [Word.act, carry,List.map_map]; congr 1 funext p; rcases p with ⟨p,v⟩ exact Prod.ext ((Ortho.motion _).map_add _ _).symm rfl lemma distinct_act (s : Signed) (w : L.Word) : distinct (act s w) ↔ distinct w := by have imp (s : Signed) (w : L.Word) (h : distinct w) : distinct (act s w) := by rw [locations, show List.map Prod.fst (act s w) = List.map (Ortho.move s.ortho) (w.map Prod.fst) by simp [act,List.map_map]] exact (locations.mp h).map (Ortho.move_injective _) refine ⟨fun h => ?_,imp s w⟩ simpa only [act_comp,inv_mul_cancel,act_id] using imp s⁻¹ (act s w) h def rotate (s : Signed) : Core L ≃ Core L where toFun w := ⟨act s w.val,(distinct_act s _).mpr w.property⟩ invFun w := ⟨act s⁻¹ w.val,(distinct_act _ _).mpr w.property⟩ left_inv w := Subtype.ext (by simp [act_comp,act_id]) right_inv w := Subtype.ext (by simp [act_comp,act_id]) def ink (s : Signed) : Weight L ≃ₗ[ℂ] Weight L := Finsupp.domLCongr (rotate s) lemma ink_single (s : Signed) (w : Core L) (c : ℂ) : ink s (Finsupp.single w c)=Finsupp.single (rotate s w) c := Finsupp.domLCongr_single .. def signValue (b : Bool) : ℂ := if b then -1 else 1 lemma sign_real (b) : star (signValue b)=signValue b := by cases b <;> simp [signValue] lemma sign_sq (b) : signValue b*signValue b=1 := by cases b <;> simp [signValue] /-- True is odd. Reflection on the raw alphabet already (with its offsets). Existence of eigen-combinations posing the stress probes will use character projection; no assumption the chosen section of quotient fields preserves anything here. -/ def Own (A : Weight L) (a : Axis) (b : Bool) : Prop := ink (Signed.mirror a) A = signValue b • A variable (S) open scoped Classical in def bare (v w : Core L) (y : E4) : ℂ := let p := conjugate v.val.reverse ++ carry w.val y if distinct p then S.expect p else 0 def readsCluster (B A : Weight L) (y : E4) := B.sum (fun v b => star b * A.sum (fun w a => a * bare S v w y)) lemma bare_turn (h : S.RealSpin) (s : Signed) (v w : Core L) (y : E4) : bare S (rotate s v) (rotate s w) (Ortho.move s.ortho y)=bare S v w y := by classical let p := conjugate v.val.reverse ++ carry w.val y have he : Word.conjugate (act s v.val).reverse ++ carry (act s w.val) (Ortho.move s.ortho y)=act s p := by rw [carried,show (act s _).reverse=act s v.val.reverse from List.map_reverse.symm,← act_conj] simp [Word.act,p,-List.map_reverse] change (if distinct _ then _ else _) = if distinct p then _ else _ have he' : Word.conjugate ((rotate s v).val.reverse) ++ carry (rotate s w).val (Ortho.move s.ortho y)=act s p := he simp only [he', distinct_act] split_ifs with H · have hp : act s p = realize (L.move s ∘ tokens p) (Points.move s.ortho (positions p)) := by let f := fun x : L.Plant => (Ortho.move s.ortho x.1,L.move s x.2) have hf : (List.ofFn p.get).map f = List.ofFn (f ∘ p.get) := List.map_ofFn rw [List.ofFn_get] at hf exact hf rw [hp,Table.readAt]; exact h.mirror s H _ · rfl lemma reads_add_l (B C A : Weight L) (y) : readsCluster S (B+C) A y=readsCluster S B A y+readsCluster S C A y := by classical unfold readsCluster rw [Finsupp.sum_add_index'] all_goals simp [add_mul] lemma reads_add_r (B C A : Weight L) (y) : readsCluster S B (C+A) y=readsCluster S B C y+readsCluster S B A y := by classical unfold readsCluster simp [Finsupp.sum_add_index', Finsupp.sum_add, add_mul,mul_add] lemma reads_smul_l (B A : Weight L) (c : ℂ) (y) : readsCluster S (c•B) A y = star c * readsCluster S B A y := by classical unfold readsCluster rw [Finsupp.sum_smul_index]; swap; · simp simp only [Finsupp.sum,Finset.mul_sum] apply Finset.sum_congr rfl intro i hi rw [star_mul,mul_comm (star _)] simp [mul_assoc] lemma reads_smul_r (B A : Weight L) (c : ℂ) (y) : readsCluster S B (c•A) y = c * readsCluster S B A y := by classical have hx (v) : (c • A).sum (fun w a => a * bare S v w y) = c * A.sum (fun w a => a * bare S v w y) := by rw [Finsupp.sum_smul_index]; swap; · simp simp only [Finsupp.sum, Finset.mul_sum, mul_assoc] unfold readsCluster simp_rw [hx] simp only [Finsupp.sum,Finset.mul_sum] exact Finset.sum_congr rfl fun i hi => Finset.sum_congr rfl fun j hj => mul_left_comm _ _ _ lemma reads_ink_l (B A : Weight L) (s : Signed) (y : E4) : readsCluster S (ink s B) A y = B.sum (fun v b => star b * A.sum (fun w a => a * bare S (rotate s v) w y)) := by induction B using Finsupp.induction_linear with | zero => simp [readsCluster] | add p q hp hq => simp [reads_add_l,hp,hq,Finsupp.sum_add_index',add_mul] | single i z => simp [ink_single,readsCluster,Finsupp.sum_single_index] lemma reads_turn (H : S.RealSpin) (s : Signed) (B A : Weight L) (y : E4) : readsCluster S (ink s B) (ink s A) (Ortho.move s.ortho y)=readsCluster S B A y := by induction A using Finsupp.induction_linear with | zero => simp [readsCluster] | add p q hp hq => simp only [map_add,reads_add_r,hp,hq] | single i z => rw [ink_single, reads_ink_l] simp [readsCluster,bare_turn S H] /-- Temporal parity works before any distribution extension. -/ lemma reads_mirror (H : S.RealSpin) (i : Axis) (B A : Weight L) (b a) (hb : Own B i b) (ha : Own A i a) (y : E4) : readsCluster S B A (Ortho.move (Signed.reflect i) y)=signValue b*(signValue a * readsCluster S B A y) := by have he := reads_turn S H (Signed.mirror i) B A y rw [show ink _ B=_ from hb, show ink _ A=_ from ha, reads_smul_l, reads_smul_r, sign_real] at he rw [← he] cases a <;> cases b <;> simp [signValue,Signed.reflect] variable {S} {i : Axis} variable (V : Chamber S i) lemma moved_cross (x : Cross i) : V.flow.unit.translation x.val = V.flow.U x := by have hx : Semigroup.SEP i x.val=x := by apply Subtype.ext change x.val-x.val i • basis i=x.val rw [x.property,zero_smul,sub_zero] change (V.flow.edge (x.val i)).comp _=_ rw [hx,x.property,V.flow.birth,ContinuousLinearMap.id_comp] private lemma lifted (u : ℝ≥0) (w : Core L) (h : ∀ p∈w.val,0