Shared-site coefficient context · ChargedSpectrumRigidity
DefinitionMarkovScatteringCharged_ChargedSpectrumRigiditymarkov-scattering
Source context from the finite shared-site cubic model and its supporting definitions and checked lemmas.
Definition code
import Definitions.Def_MarkovScatteringCharged_ChargedSpectrumNeutralProbe
/-! Reconstruction of a shared-site scalar model from masses and its measured
multiplication tensor. A change of hidden coordinates preserving pointwise
multiplication can only permute the sites. -/
namespace MarkovScattering.ChargedSpectrum.Sites
noncomputable section
open Matrix
variable {A : Type*} [Fintype A] [DecidableEq A]
omit [Fintype A] in
private theorem single_times (j : A) (f : A → ℂ) :
(Pi.single j 1 : A → ℂ) * f = f j • (Pi.single j 1 : A → ℂ) := by
funext k
by_cases h : j=k
· subst k; simp
· simp [Pi.single_eq_of_ne (Ne.symm h)]
/-- Every invertible linear change of site coordinates preserving the shared
product acts by a single permutation on every input function. -/
theorem copy_rigidity (U W : Matrix A A ℂ) (leftInv : W*U=1) (rightInv : U*W=1)
(product : ∀ f g : A → ℂ, U *ᵥ (f*g) = (U*ᵥ f)*(U*ᵥ g)) :
∃ e : A ≃ A, ∀ (f : A → ℂ) (x : A), (U *ᵥ f) x = f (e x) := by
have nonzero (x : A) : ∃ j, U x j ≠ 0 := by
by_contra! hn
have h := congrArg (fun M : Matrix A A ℂ => M x x) rightInv
exact zero_ne_one (by simpa only [Matrix.mul_apply,hn,zero_mul,Finset.sum_const_zero,Matrix.one_apply_eq] using h : (0:ℂ)=1)
choose σ hσ using nonzero
have evaluates (f : A → ℂ) (x : A) : (U*ᵥ f) x = f (σ x) := by
have h := congrFun (product (Pi.single (σ x) 1) f) x
rw [single_times,Matrix.mulVec_smul,Matrix.mulVec_single_one] at h
change f (σ x) * U x (σ x) = U x (σ x) * (U*ᵥ f) x at h
rw [mul_comm (f (σ x))] at h
exact (mul_left_cancel₀ (hσ x) h).symm
have onto : Function.Surjective σ := by
intro j
by_contra! hn
let v : A → ℂ := Pi.single j 1
have hv : U *ᵥ v = 0 := by
funext x
rw [evaluates]
exact Pi.single_eq_of_ne (hn x) _
have restore : W *ᵥ (U *ᵥ v) = v := by rw [mulVec_mulVec,leftInv,one_mulVec]
rw [hv,mulVec_zero] at restore
have h := congrFun restore j
simp [v] at h
exact ⟨Equiv.ofBijective σ onto.bijective_of_finite,evaluates⟩
variable {P Q : Matrix A A ℂ}
/-- Identically phased species masses (at a common nonzero mass scale) and
the shared-site coupling table determine every transition up to a relabelling.
All species components, including any degenerate subspaces, are calibrated
in the same external mode convention in the two experiments. -/
theorem walk_identified (F : Frame P) (H : Frame Q) {offset scale : ℝ} (hs : scale ≠ 0)
(hm : F.mass offset scale = H.mass offset scale) (hc : F.fusion = H.fusion) :
∃ e : A ≃ A, (∀ x y, Q x y = P (e x) (e y)) ∧
∀ x a, H.synth x a = F.synth (e x) a := by
let U := H.synth*F.analyze
let W := F.synth*H.analyze
have compose (a b c d : Matrix A A ℂ) : (a*b)*(c*d) = a*(b*c)*d := by simp only [mul_assoc]
have hu : U * W = 1 := by rw [show U*W = _ from compose ..,F.analyze_synth,mul_one,H.synth_analyze]
have hw : W * U = 1 := by rw [show W*U = _ from compose ..,H.analyze_synth,mul_one,F.synth_analyze]
have shared (u v : A → ℂ) : F.analyze *ᵥ ((F.synth *ᵥ u)*(F.synth *ᵥ v)) =
H.analyze *ᵥ ((H.synth *ᵥ u)*(H.synth *ᵥ v)) := by
funext a
rw [← fuse F,← fuse H,hc]
have product (f g : A → ℂ) : U *ᵥ (f*g) = (U *ᵥ f)*(U *ᵥ g) := by
have h := shared (F.analyze *ᵥ f) (F.analyze *ᵥ g)
simp only [mulVec_mulVec,F.synth_analyze,one_mulVec] at h
change (H.synth*F.analyze) *ᵥ (f*g) = _
rw [← mulVec_mulVec,h,mulVec_mulVec,H.synth_analyze,one_mulVec]
obtain ⟨e,eval⟩ := copy_rigidity U W hw hu product
have gain : F.gain = H.gain := by
funext a
have h := congrFun hm a
dsimp only [Frame.mass] at h
have := mul_left_cancel₀ hs (add_left_cancel h)
linarith
have intertwines : Q * U = U * P := by
calc
Q * U = (H.synth*diagonal (fun a => (H.gain a : ℂ))*H.analyze) * (H.synth*F.analyze) := by
rw [← H.kernel_eq]
_ = H.synth*diagonal (fun a => (F.gain a : ℂ))*F.analyze := by
rw [compose,H.analyze_synth,mul_one,gain]
_ = (H.synth*F.analyze)*(F.synth*diagonal (fun a => (F.gain a : ℂ))*F.analyze) := by
simp only [mul_assoc]
rw [← mul_assoc F.analyze F.synth,F.analyze_synth,one_mul]
_ = U * P := by rw [← F.kernel_eq]
refine ⟨e,?_,?_⟩
· intro x y
let v : A → ℂ := Pi.single (e y) 1
have hv : U*ᵥ v = Pi.single y 1 := by
funext k
rw [eval]
by_cases h : y=k
· subst k; simp [v]
· simp [v,Pi.single_eq_of_ne (Ne.symm h),Pi.single_eq_of_ne (e.injective.ne (Ne.symm h))]
have hi : Q *ᵥ (U *ᵥ v) = U *ᵥ (P *ᵥ v) := by rw [mulVec_mulVec,intertwines,mulVec_mulVec]
simpa only [hv,mulVec_single_one,Matrix.col_apply,eval,v] using congrFun hi x
· intro x a
have h : U *ᵥ F.synth.col a = H.synth.col a := by
change (H.synth*F.analyze)*ᵥ F.synth.col a = _
rw [← mulVec_single_one,mulVec_mulVec,mul_assoc,F.analyze_synth,mul_one,mulVec_single_one]
exact (congrFun h x).symm.trans (eval _ _)
private theorem row_normalization (F : Frame P) (π : A → ℝ)
(weighted : ∀ a x, F.analyze a x = star (F.synth x a) * (π x : ℂ)) (x : A) :
(∑ a, F.synth x a * star (F.synth x a)) * (π x : ℂ) = 1 := by
have h := congrArg (fun M : Matrix A A ℂ => M x x) F.synth_analyze
simpa only [Matrix.mul_apply,weighted,Finset.sum_mul,mul_assoc,Matrix.one_apply_eq] using h
/-- A common clock, labelled masses, phased four-leg probes and weighted
mode normalization identify both the transition law and the site measure.
The kinematics only require finite nonvanishing probe factors. -/
theorem walk_from_neutral_probes (F : Frame P) (H : Frame Q) {offset scale : ℝ} (hs : scale ≠ 0)
(hm : F.mass offset scale = H.mass offset scale) (X : Finset (Fin 2) → ℝ)
(regular : ∀ b c, probeWeight (F.mass offset scale) X b c ≠ 0)
(same : ∀ a b c, SpeciesTree.observe (F.speciesData offset scale X (F.neutralPreparation b c)) Finset.univ 0 a =
SpeciesTree.observe (H.speciesData offset scale X (H.neutralPreparation b c)) Finset.univ 0 a)
(π ρ : A → ℝ) (hF : ∀ a x, F.analyze a x = star (F.synth x a)*(π x : ℂ))
(hH : ∀ a x, H.analyze a x = star (H.synth x a)*(ρ x : ℂ)) :
∃ e : A ≃ A, (∀ x y, Q x y = P (e x) (e y)) ∧ (∀ x, ρ x = π (e x)) ∧
∀ x a, H.synth x a = F.synth (e x) a := by
have hc : F.fusion = H.fusion := by
funext a b c
have hreg := regular b c
rw [← fusion_eq_probed F offset scale X a b c hreg]
rw [hm] at hreg
rw [← fusion_eq_probed H offset scale X a b c hreg,hm,same]
obtain ⟨e,kernel,sites⟩ := walk_identified F H hs hm hc
refine ⟨e,kernel,fun x => ?_,sites⟩
have l := row_normalization F π hF (e x)
have r := row_normalization H ρ hH x
simp only [sites] at r
have nonzero : (∑ a, F.synth (e x) a * star (F.synth (e x) a)) ≠ 0 := by
intro h
rw [h,zero_mul] at l
exact zero_ne_one l
exact_mod_cast mul_left_cancel₀ nonzero (r.trans l.symm)
end
end MarkovScattering.ChargedSpectrum.Sites
Source