Lean 4 · 4
declarations statementsfull
noncomputable def fourBodyCoefficient (Q r D T p j k : ℕ) : ℝ := body · 2 lines
if r ≤ j+k then Real.sqrt 2 * physicalCouplingCoefficient Q Q r (j+k) j *
physicalCouplingCoefficient (2*Q-2) (2*Q-2*r) (D-r) (T-r) p else 0theorem pairCoupledWedge_off (Q r n : ℕ) (hr : r ≤ Q) (i : WedgePairIndex Q)
(hi : i.val.1.val+i.val.2.val ≠ r+n) :
pairCoupledWedge Q r hr n i = 0 := by proof · 2 lines
simp only [pairCoupledWedge,tensorToWedgePair,pairCoupledTensor,Pi.smul_apply,smul_eq_mul,
genericUnitDescendant_off Q Q r n hr hr i.val hi,mul_zero]theorem genericUnitDescendant_transport_right (A B B' z n : ℕ) (he : B=B')
(hA : z ≤ A) (hB : z ≤ B) (hB' : z ≤ B') (i : SpinIndex A B) :
genericUnitDescendant A B z hA hB n i =
genericUnitDescendant A B' z hA hB' n (i.1,Fin.cast (congrArg (fun k => k+1) he) i.2) := by proof · 1 line
subst B'; rfltheorem fourBodyCopy_source_coefficient (Q r D T : ℕ) (hrD : r ≤ D) (hDT : D ≤ T)
(hQT : T+2 ≤ Q) (p : Fin ((2*Q-2)+1)) (i : WedgePairIndex Q)
(hT : p.val+i.val.1.val+i.val.2.val=T) :
fourBodyCopy Q r D (by omega) (by omega) (by unfold genericCoupledWeight; omega)
(T-D) (p,i) = fourBodyCoefficient Q r D T p.val i.val.1.val i.val.2.val := by proof · 33 lines
have hcw : genericCoupledWeight Q Q r = 2*Q-2*r := by unfold genericCoupledWeight; omega
rw [fourBodyCopy_coordinate]
by_cases hri : r ≤ i.val.1.val+i.val.2.val
· let b : Fin (genericCoupledWeight Q Q r+1) := ⟨i.val.1.val+i.val.2.val-r,by
rw [hcw]; omega⟩
rw [Finset.sum_eq_single b]
· unfold fourBodyCoefficient
rw [ite_eq_left hri]
have hI : r ≤ i.val.1.val+i.val.2.val ∧ i.val.1.val ≤ i.val.1.val+i.val.2.val ∧
i.val.1.val+i.val.2.val ≤ Q ∧ i.val.1.val+i.val.2.val ≤ Q := by omega
have hO : D-r ≤ T-r ∧ p.val ≤ T-r ∧ T-r ≤ 2*Q-2 ∧ T-r ≤ 2*Q-2*r := by omega
rw [physicalCouplingCoefficient,dite_eq_left hI,physicalCouplingCoefficient,dite_eq_left hO]
simp only [pairCoupledWedge,tensorToWedgePair,pairCoupledTensor,Pi.smul_apply,smul_eq_mul]
have hi2 : i.val.1.val+i.val.2.val-i.val.1.val=i.val.2.val := by omega
have hb : T-r-p.val=b.val := by dsimp [b]; omega
have hn : T-r-(D-r)=T-D := by omega
try simp only [hi2,hn]
have hbfin : (⟨T-r-p.val,by omega⟩ : Fin (2*Q-2*r+1)) =
⟨b.val,by rw [← hcw]; exact b.isLt⟩ := by apply Fin.ext; exact hb
rw [hbfin]
have hout := genericUnitDescendant_transport_right (2*Q-2) (genericCoupledWeight Q Q r)
(2*Q-2*r) (D-r) (T-D) hcw (by omega) (by unfold genericCoupledWeight; omega)
(by omega) (p,b)
rw [hout]
rfl
· intro c hc hcb
rw [pairCoupledWedge_off Q r c.val (by omega) i (by
intro he; apply hcb; apply Fin.ext; dsimp [b]; omega),zero_mul]
· simp
· rw [fourBodyCoefficient,ite_eq_right hri]
apply Finset.sum_eq_zero
intro c hc
rw [pairCoupledWedge_off Q r c.val (by omega) i (by omega),zero_mul]Outline
Xet Storage Details
- Size:
- 3.19 kB
- Xet hash:
- 78cd608eb9765376a2043ec7d5496a2c7293cbc48fa1a5cb82e1bbf622c6a32e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.