feat: unit contract vec
This commit is contained in:
parent
5603a67642
commit
5d21f74062
3 changed files with 55 additions and 23 deletions
|
@ -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]) :=
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue