lemmalocal_source_exchange (u v : ℝ)
(hu : YangBaxter.denominator u≠0) (hv : YangBaxter.denominator v≠0) (hd : YangBaxter.denominator (u-v)≠0)
(s t : Spin) : sourceMatrix (u-v)*localForward (sourceR u) (sourceR v) s t=
localBackward (sourceR u) (sourceR v) s t*sourceMatrix (u-v) :=by
proof · 11
lines
ext ⟨a,b⟩ ⟨d,e⟩
simp only [Matrix.mul_apply,Fintype.sum_prod_type,localForward,localBackward,
Matrix.kronecker,Matrix.kroneckerMap,block,Matrix.sum_apply,Matrix.of_apply,
Finset.mul_sum,Finset.sum_mul]
simp only [sourceMatrix]
have hh:=source_yang_baxter u v hu hv hd a b s d e t
convert hh using1 <;>
(apply Finset.sum_congr rfl;intro j hj
apply Finset.sum_congr rfl;intro k hk
apply Finset.sum_congr rfl;intro l hl
ring)
theoremsource_row_exchange (n : ℕ) (ξ : Fin n→ℝ) (u v : ℝ)
(hu : ∀ i,YangBaxter.denominator (u+ξ i)≠0) (hv : ∀ i,YangBaxter.denominator (v+ξ i)≠0)
(hd : YangBaxter.denominator (u-v)≠0) (s t : Space n) :
sourceMatrix (u-v)*forward n (spectralSites n ξ u) (spectralSites n ξ v) s t=
backward n (spectralSites n ξ u) (spectralSites n ξ v) s t*sourceMatrix (u-v) :=by
proof · 5
lines
apply row_exchange
intro i a b
havehh : (u+ξ i)-(v+ξ i)=u-v :=by ring
simpa only [spectralSites,hh] using
local_source_exchange (u+ξ i) (v+ξ i) (hu i) (hv i) (by simpa only [hh] using hd) a b
theoremexact_row_exchange (n : ℕ) (ξ : Fin n→ℝ) (u v : ℝ)
(hu : ∀ i,Reflection.Q (u+ξ i)≠0) (hv : ∀ i,Reflection.Q (v+ξ i)≠0)
(hd : Reflection.Q (u-v)≠0) (s t : Space n) :
Reflection.spectralR (u-v)*forward n (exactSites n ξ u) (exactSites n ξ v) s t=
backward n (exactSites n ξ u) (exactSites n ξ v) s t*Reflection.spectralR (u-v) :=by
proof · 6
lines
have hh:=source_row_exchange n ξ u v
(fun i=>by simpa only [yangBaxter_denominator] using hu i)
(fun i=>by simpa only [yangBaxter_denominator] using hv i)
(by simpa only [yangBaxter_denominator] using hd) s t
simpa only [sourceMatrix_spectral (u-v) hd,spectralSites_exact n ξ u hu,
spectralSites_exact n ξ v hv] using hh
lemmasine_zero_countable : Set.Countable {x : ℝ | sine x=0} :=by
proof · 6
lines
apply (Set.countable_range (funn : ℤ=> (n:ℝ)*Real.pi)).mono
intro x hx
change sine x=0 at hx
havehx' : Real.sin x=0:=by simpa only [sine,Complex.ofReal_eq_zero] using hx
rcases Real.sin_eq_zero_iff.mp hx' with ⟨n,hn⟩
exact ⟨n,hn⟩
have h₁ := sine_zero_countable.preimage (f:=funx : ℝ=>Real.pi/4+x)
(fun x y h => add_left_cancel h)
have h₂ := sine_zero_countable.preimage (f:=funx : ℝ=> b+x)
(fun x y h => add_left_cancel h)
change Set.Countable {x : ℝ | sine (Real.pi/4+x)=0} at h₁
change Set.Countable {x : ℝ | sine (b+x)=0} at h₂
simpa only [Q,mul_eq_zero,Set.ofPred_or] using h₁.union h₂
have h₁ :=Q_zero_countable.preimage (f:=funv : ℝ=> u-v)
(fun x y h => sub_right_injective h)
have h₂ :=Q_zero_countable.preimage (f:=funv : ℝ=> u+v)
(fun x y h => add_left_cancel h)
have h₃ :=Q_zero_countable.preimage (f:=funv : ℝ=> -(u-v))
(fun x y h => sub_right_injective (neg_injective h))
have h₄ :=Q_zero_countable.preimage (f:=funv : ℝ=> -(b-(u+v)))
(fun x y h => add_left_cancel (sub_right_injective (neg_injective h)))
have hd := (((h₁.union h₂).union h₃).union h₄).dense_compl ℝ
convert hd using1
ext v
simp only [Set.mem_compl_iff,Set.mem_union,Set.mem_preimage,Set.mem_ofPred_eq]
tauto
lemmamatrix_entry_continuousAt {a c k : Type*} [TopologicalSpace k]
{f : ℝ→Matrix a c k} {u : ℝ} (h : ContinuousAt f u) (i : a) (j : c) :
ContinuousAt (fun x => f x i j) u :=
lemmacontinuousAt_row (n : ℕ) (A : ℝ→Fin n →Local) (u : ℝ)
(hA : ∀ i, ContinuousAt (fun x =>A x i) u) (s t : Space n) :
ContinuousAt (fun x => row n (A x) s t) u :=by
proof · 10
lines
induction n with
| zero => exact continuousAt_const
| succ n ih =>
change ContinuousAt (fun x => block (A x 0) (s 0) (t 0) *
row n (Fin.tail (A x)) (Fin.tail s) (Fin.tail t)) u
havehb : ContinuousAt (fun x => block (A x 0) (s 0) (t 0)) u :=by
apply continuousAt_pi.2; intro i
apply continuousAt_pi.2; intro j
exact matrix_entry_continuousAt (hA 0) (i,s 0) (j,t 0)
exact hb.mul (ih (fun x =>Fin.tail (A x)) (fun i => hA i.succ) _ _)
lemmacontinuousAt_exact_row (n : ℕ) (ξ : Fin n →ℝ) (u : ℝ)
(hu : ∀ i, Q (u+ξ i)≠0) (s t : Space n) :
ContinuousAt (fun x => row n (exactSites n ξ x) s t) u :=by
lemmacontinuousAt_K (e : Jet) (u : ℝ) (hu : sine (gamma+u)≠0) (p : Pair) :
ContinuousAt (fun x =>K e x p) u :=by
proof · 6
lines
haveh0 : ContinuousAt (fun x =>K0 x p) u :=
continuousAt_const.mul (matrix_entry_continuousAt (continuousAt_boundary0 u hu) p.1 p.2.rev)
haveh1 : ContinuousAt (fun x =>K1 x p) u :=
continuousAt_const.mul (matrix_entry_continuousAt (continuousAt_boundary1 u hu) p.1 p.2.rev)
exact (continuous_C.continuousAt.comp h0).add
(continuousAt_const.mul (continuous_C.continuousAt.comp h1))
apply continuousAt_pi.2; intro s
apply continuousAt_pi.2; intro t
unfold T
apply tendsto_finsetSum; intro p hp
apply tendsto_finsetSum; intro q hq
exact (((continuousAt_K eL (b-u) hu.2.1 p).comp (f:=funx : ℝ=> b-x)
(continuousAt_const.sub continuousAt_id)).mul
(continuous_C.continuousAt.comp (matrix_entry_continuousAt (continuousAt_bulkRows N ξ u hu s t) p q))).mul
(continuousAt_K eR u hu.1 q)
lemmamarked_right_invariant (e : Jet) (he : e*e=0) (t y : ℝ)
(hm : Q (t-y)≠0) (hp : Q (t+y)≠0)
(hnm : Q (-(t-y))≠0) (hnp : Q (-(b-(t+y)))≠0)
(ht : sine (gamma+t)≠0) (hy : sine (gamma+y)≠0) :
(exactTrain t y).map C *ᵥ tensorBoundary (K e t) (K e y) =
tensorBoundary (K e t) (K e y) :=by
proof · 6
lines
rw [K_tensor e he]
apply map_right_jet (k:=ℂ) (k':=Jet) (ι:=AuxSpin) C (exactTrain t y)
(flatten4 (pairVector (boundary0 t) (boundary0 y)))
(flatten4 (pairVector (boundary1 t) (boundary0 y)+pairVector (boundary0 t) (boundary1 y)))
(exactTrain_right_constant t y hm hp hnm hnp ht hy)
(exactTrain_right_linear t y hm hp hnm hnp ht hy) e
lemmamarked_left_invariant (e : Jet) (he : e*e=0) (t y : ℝ)
(hm : Q (t-y)≠0) (hp : Q (t+y)≠0)
(hnm : Q (-(t-y))≠0) (hnp : Q (-(b-(t+y)))≠0)
(ht : sine (gamma+(b-t))≠0) (hy : sine (gamma+(b-y))≠0) :
tensorBoundary (K e (b-t)) (K e (b-y)) ᵥ* (exactTrain t y).map C =
tensorBoundary (K e (b-t)) (K e (b-y)) :=by
proof · 6
lines
rw [K_tensor e he]
apply map_left_jet (k:=ℂ) (k':=Jet) (ι:=AuxSpin) C (exactTrain t y)
(flatten4 (pairVector (boundary0 (b-t)) (boundary0 (b-y))))
(flatten4 (pairVector (boundary1 (b-t)) (boundary0 (b-y))+pairVector (boundary0 (b-t)) (boundary1 (b-y))))
(exactTrain_left_constant t y hm hp hnm hnp ht hy)
(exactTrain_left_linear t y hm hp hnm hnp ht hy) e
lemmaexactTrain_jet (u v : ℝ) : (exactTrain u v).map C =
auxTrain ((spectralR (b-(u+v))).map C) ((spectralR (u-v)).map C)
((spectralR (-(u-v))).map C) ((spectralR (-(b-(u+v)))).map C) :=by
haveh₁ : ∀ s t, (spectralR (b-(u+v))).map C *
forwardPair (JRowN ξ (b-u)) (JRowN ξ v) s t =
backwardPair (JRowN ξ (b-u)) (JRowN ξ v) s t *
(spectralR (b-(u+v))).map C:=byhavehd : Q ((b-u)-v)≠0:=by
rw [show (b-u)-v=b-(u+v) by ring,reflected_Q]
exact hp
simpa only [show (b-u)-v=b-(u+v) by ring] usingJRow_exchangeN ξ (b-u) v (fun i => (hu.2.2 i).2) (fun i => (hv.2.2 i).1) hd
have h₂ :=JRow_exchangeN ξ u v (fun i => (hu.2.2 i).1) (fun i => (hv.2.2 i).1) hm
haveh₃ : ∀ s t, (spectralR (-(u-v))).map C *
forwardPair (JRowN ξ (b-u)) (JRowN ξ (b-v)) s t =
backwardPair (JRowN ξ (b-u)) (JRowN ξ (b-v)) s t *
(spectralR (-(u-v))).map C:=byhavehd : Q ((b-u)-(b-v))≠0:=by simpa only [show (b-u)-(b-v)=-(u-v) by ring] using hnm
simpa only [show (b-u)-(b-v)=-(u-v) by ring] usingJRow_exchangeN ξ (b-u) (b-v) (fun i => (hu.2.2 i).2) (fun i => (hv.2.2 i).2) hd
haveh₄ : ∀ s t, (spectralR (-(b-(u+v)))).map C *
forwardPair (JRowN ξ u) (JRowN ξ (b-v)) s t =
backwardPair (JRowN ξ u) (JRowN ξ (b-v)) s t *
(spectralR (-(b-(u+v)))).map C:=byhavehd : Q (u-(b-v))≠0:=by simpa only [show u-(b-v)=-(b-(u+v)) by ring] using hnp
simpa only [show u-(b-v)=-(b-(u+v)) by ring] usingJRow_exchangeN ξ u (b-v) (fun i => (hu.2.2 i).1) (fun i => (hv.2.2 i).2) hd
have hl := marked_left_invariant eL (by simpa only [pow_two] using eL_sq) u v
hm hp hnm hnp hu.2.1 hv.2.1have hr := marked_right_invariant eR (by simpa only [pow_two] using eR_sq) u v
hm hp hnm hnp hu.1 hv.1
rw [exactTrain_jet] at hl hr
rw [T_closePair,T_closePair]
exact closed_four_train (JRowN ξ u) (JRowN ξ (b-u))
(JRowN ξ v) (JRowN ξ (b-v))
((spectralR (b-(u+v))).map C) ((spectralR (u-v)).map C)
((spectralR (-(u-v))).map C) ((spectralR (-(b-(u+v)))).map C)
(K eL (b-u)) (K eL (b-v)) (K eR u) (K eR v) h₁ h₂ h₃ h₄ hl hr
lemmaK_swap (e : Jet) (u : ℝ) (hd : Q (u-(b-u))≠0)
(hu : sine (gamma+u)≠0) (hr : sine (gamma+(b-u))≠0) :
(spectralR (u-(b-u))).map C*ᵥK e u = pairSwap*ᵥK e (b-u) :=by
proof · 13
lines
havehe : (spectralR (u-(b-u))).map C*ᵥK e u = fun p=>C ((spectralR (u-(b-u))*ᵥK0 u) p)+e*C ((spectralR (u-(b-u))*ᵥK1 u) p) :=by
funext p
simp only [K,Matrix.mulVec,dotProduct,Matrix.map_apply,map_sum,map_mul,
Finset.mul_sum,mul_add,Finset.sum_add_distrib]
congr 1
apply Finset.sum_congr rfl
intro i hi
ring
rw [he,source_K0_swap u hd hu hr,source_K1_swap u hd hu hr]
funext p
rw [pairSwap_mulVec]
rfl
rw [T_closePair,T_closePair,sub_sub_cancel]
funext s t
rw [closePair_dot,closePair_dot]
have he :=JRow_exchangeN ξ u (b-u) (fun i=>(hu.2.2 i).1)
(fun i=>(hu.2.2 i).2) hd s t
have hc := closed_pair_reflection ((spectralR (u-(b-u))).map C)
(forwardPair (JRowN ξ u) (JRowN ξ (b-u)) s t)
(backwardPair (JRowN ξ u) (JRowN ξ (b-u)) s t)
(K eL (b-u)) (K eR u) (K eL u) (K eR (b-u))
he (spectral_PT_jet (u-(b-u))) (K_swap eL u hd hu.1 hu.2.1)
(K_swap eR u hd hu.1 hu.2.1)
rw [swap_backward] at hc
exact hc
lemmaR_periodic_entry (u : ℝ) (p q : Pair) :
spectralR (u+Real.pi) p q=parity p.1*parity q.1*spectralR u p q :=by
proof · 4
lines
rcases p with ⟨a,b⟩;rcases q with ⟨c,d⟩
fin_cases a <;> fin_cases b <;> fin_cases c <;> fin_cases d <;>
simp [spectralR,bulkNumerator,parity,Q_periodic,A_antiperiodic,H_antiperiodic,
V_periodic,C_periodic,D_periodic,neg_div,mul_neg]
lemmarow_parity (n : ℕ) (AB : Fin n→Local)
(h : ∀ i p q,B i p q=parity p.1*parity q.1*A i p q)
(s t : Space n) (a b : Spin) :
row n B s t a b=parity a*parity b*row n A s t a b :=by
proof · 15
lines
induction n generalizing a b with
| zero =>
simp only [row,Matrix.one_apply]
split_ifs with he
· subst b;rw [parity_sq,mul_one]
· ring
| succ n ih =>
simp only [row,Matrix.mul_apply,block,h,ih (Fin.tail A) (Fin.tail B) (fun i=>h i.succ)]
rw [Finset.mul_sum]
apply Finset.sum_congr rfl
intro c hc
calc
_=(parity a*parity b*(A0 (a,s 0) (c,t 0)*
row n (Fin.tail A) (Fin.tail s) (Fin.tail t) c b))*(parity c*parity c) :=by ring
_=_ :=by rw [parity_sq,mul_one]
lemmaspectral_row_periodic (N : ℕ) (ξ : FinN→ℝ) (u : ℝ)
(s t : SpaceN) (a b : Spin) :
row N (exactSites N ξ (u+Real.pi)) s t a b=
parity a*parity b*row N (exactSites N ξ u) s t a b :=by
proof · 3
lines
apply row_parity
intro i p q
simp only [exactSites,show u+Real.pi+ξ i=(u+ξ i)+Real.pi by ring,R_periodic_entry]
lemmaspectral_row_sub_period (N : ℕ) (ξ : FinN→ℝ) (u : ℝ)
(s t : SpaceN) (a b : Spin) :
row N (exactSites N ξ (u-Real.pi)) s t a b=
parity a*parity b*row N (exactSites N ξ u) s t a b :=by
proof · 7
lines
have h:=spectral_row_periodic N ξ (u-Real.pi) s t a b
rw [sub_add_cancel] at h
rw [h]
symm
calc
_=(parity a*parity a)*(parity b*parity b)*row N (exactSites N ξ (u-Real.pi)) s t a b :=by ring
_=_ :=by rw [parity_sq,parity_sq];ring
lemmabulkRows_periodic (N : ℕ) (ξ : FinN→ℝ) (u : ℝ)
(s t : SpaceN) (p q : Pair) :
bulkRows N ξ (u+Real.pi) s t p q=
pairParity p*pairParity q*bulkRows N ξ u s t p q :=by
proof · 7
lines
simp only [bulkRows,forward,Matrix.sum_apply,Matrix.kronecker,Matrix.kroneckerMap,
Matrix.of_apply,show b-(u+Real.pi)=(b-u)-Real.pi by ring,
spectral_row_periodic,spectral_row_sub_period,Finset.mul_sum]
apply Finset.sum_congr rfl
intro v hv
unfold pairParity
ring
lemmacoefficient_periodic (N : ℕ) (ξ : FinN→ℝ) (u : ℝ) (i j : Bool) :
coefficient N ξ (u+Real.pi) i j=coefficient N ξ u i j :=by
proof · 12
lines
funext s t
simp only [coefficient,show b-(u+Real.pi)=(b-u)-Real.pi by ring,
Kpart_sub_period,Kpart_periodic,bulkRows_periodic]
apply Finset.sum_congr rfl
intro p hp
apply Finset.sum_congr rfl
intro q hq
calc
_=(pairParity p*pairParity p)*(pairParity q*pairParity q)*
((if i thenK1 (b-u) p elseK0 (b-u) p)*bulkRows N ξ u s t p q*
(if j thenK1 u q elseK0 u q)) :=by ring
_=_ :=by rw [pairParity_sq,pairParity_sq,one_mul,one_mul]
lemmalocalForward_cap_expand (AB : Local) (s t : Spin) (p : Pair) :
(localForward AB s t*ᵥcap) p=
∑v : Spin,∑a : Spin,A (p.1,s) (a,v)*B (p.2,v) (a.rev,t)*Reflection.phase^(spinValue a) :=by
proof · 4
lines
simp only [localForward,Matrix.sum_mulVec,Finset.sum_apply]
apply Finset.sum_congr rfl;intro v hv
rw [Matrix.mulVec,dotProduct,sum_cap]
rfl
lemmalocalForward_cap (u : ℝ) (hu : Q u≠0) (hn : Q (-u)≠0) (s t : Spin) :
localForward (spectralR u) (spectralR (b+u)) s t*ᵥcap=
if s=t then cap else0:=by
proof · 28
lines
funext p
rw [localForward_cap_expand]
have hcross (v a : Spin) :
spectralR (b+u) (p.2,v) (a.rev,t)*Reflection.phase^(spinValue a)=
Reflection.phase^(-spinValue p.2)*spectralR (-u) (p.2.rev,t) (a,v) :=by
rw [show b+u=b-(-u) by ring,source_crossing,Fin.rev_rev]
calc
_=(Reflection.phase^(spinValue a.rev-spinValue p.2)*Reflection.phase^(spinValue a))*
spectralR (-u) (p.2.rev,t) (a,v) :=by ring
_=_ :=by rw [phase_cancel]
havehe : (∑v : Spin,∑a : Spin,spectralR u (p.1,s) (a,v)*
spectralR (b+u) (p.2,v) (a.rev,t)*Reflection.phase^(spinValue a))=
Reflection.phase^(-spinValue p.2)*((spectralR u*(spectralR (-u))ᵀ) (p.1,s) (p.2.rev,t)) :=by
simp only [Matrix.mul_apply,Matrix.transpose_apply,Fintype.sum_prod_type,Finset.mul_sum]
rw [Finset.sum_comm]
apply Finset.sum_congr rfl;intro v hv
apply Finset.sum_congr rfl;intro a ha
rw [mul_assoc,hcross]
ring
rw [he,spectral_unitarity u hu hn,Matrix.one_apply]
by_cases hs : s=t
· subst t
by_cases hp : p.2=p.1.rev
· havehp' : p.2.rev=p.1:=by rw [hp,Fin.rev_rev]
simp [hp,cap,spinValue_rev]
· havehp' : p.1≠p.2.rev :=by intro h;apply hp;rw [h,Fin.rev_rev]
simp [hp',cap,hp]
· simp [hs]
lemmalocalForward_period_cap (u : ℝ) (hu : Q u≠0) (hn : Q (-u)≠0) (s t : Spin) :
localForward (spectralR (u+Real.pi)) (spectralR (b+u)) s t*ᵥ(fun p=>parity p.1*cap p)=
if s=t then (fun p=>parity p.1*cap p) else0:=by
proof · 17
lines
funext p
have hl (q : Pair) :
localForward (spectralR (u+Real.pi)) (spectralR (b+u)) s t p q=
parity p.1*parity q.1*localForward (spectralR u) (spectralR (b+u)) s t p q :=by
simp only [localForward,Matrix.sum_apply,Matrix.kronecker,Matrix.kroneckerMap,Matrix.of_apply,block,R_periodic_entry,Finset.mul_sum]
apply Finset.sum_congr rfl;intro v hv;ring
change (∑ q,localForward (spectralR (u+Real.pi)) (spectralR (b+u)) s t p q*
(parity q.1*cap q))=_
simp only [hl]
havehe : (∑ q,parity p.1*parity q.1*localForward (spectralR u) (spectralR (b+u)) s t p q*
(parity q.1*cap q))=parity p.1*(localForward (spectralR u) (spectralR (b+u)) s t*ᵥcap) p :=by
simp only [Matrix.mulVec,dotProduct,Finset.mul_sum]
apply Finset.sum_congr rfl;intro q hq
have hq:=parity_sq q.1
linear_combination parity p.1*localForward (spectralR u) (spectralR (b+u)) s t p q*cap q*hq
rw [he,localForward_cap u hu hn]
split_ifs <;> simp