feat: unit contract vec

This commit is contained in:
jstoobysmith 2024-11-18 05:13:21 +00:00
parent 5603a67642
commit 5d21f74062
3 changed files with 55 additions and 23 deletions

View file

@ -25,6 +25,7 @@ open TensorTree
variable {S : TensorSpecies}
/-- Th map built contracting a 1-tensor with a 2-tensor using basic categorical consstructions. -/
def contrOneTwoLeft {c1 c2 : S.C}
(x : S.F.obj (OverColor.mk ![c1])) (y : S.F.obj (OverColor.mk ![S.τ c1, c2])) :
S.F.obj (OverColor.mk ![c2]) :=