fix: Correct tensor evaluation

This commit is contained in:
jstoobysmith 2024-10-21 14:28:02 +00:00
parent 7fc850cc38
commit baf5169171
2 changed files with 18 additions and 2 deletions

View file

@ -448,6 +448,7 @@ noncomputable section
Note: This function is not fully defined yet. -/
def tensor : ∀ {n : } {c : Fin n → S.C}, TensorTree S c → S.F.obj (OverColor.mk c) := fun
| tensorNode t => t
| twoNode t => (OverColor.Discrete.pairIsoSep S.FDiscrete).hom.hom t
| constTwoNode t => (OverColor.Discrete.pairIsoSep S.FDiscrete).hom.hom (t.hom (1 : S.k))
| add t1 t2 => t1.tensor + t2.tensor
| perm σ t => (S.F.map σ).hom t.tensor