feat: Double contraction of indices lemma

This commit is contained in:
jstoobysmith 2024-08-06 15:43:58 -04:00
parent 9123431424
commit d02e94886d
10 changed files with 543 additions and 362 deletions

View file

@ -264,8 +264,9 @@ noncomputable def fromIndexString (T : 𝓣.Tensor cn) (s : String)
(hn : n = (IndexString.toIndexList (⟨s, hs⟩ : IndexString 𝓣.Color)).length)
(hc : IndexListColorProp 𝓣.toTensorColor (
IndexString.toIndexList (⟨s, hs⟩ : IndexString 𝓣.Color)))
(hd : TensorColor.DualMap (IndexString.toIndexList (⟨s, hs⟩ : IndexString 𝓣.Color)).colorMap
(cn ∘ Fin.cast hn.symm)) : 𝓣.TensorIndex :=
(hd : TensorColor.ColorMap.DualMap
(IndexString.toIndexList (⟨s, hs⟩ : IndexString 𝓣.Color)).colorMap
(cn ∘ Fin.cast hn.symm)) : 𝓣.TensorIndex :=
TensorStructure.TensorIndex.mkDualMap T
⟨(IndexString.toIndexList (⟨s, hs⟩ : IndexString 𝓣.Color)), hc⟩ hn hd