@@ -16,15 +16,14 @@ public export infixr 0 >@
1616||| Categorical product of containers
1717public export
1818(>*< ) : Cont -> Cont -> Cont
19- (shp !> pos) >*< (shp' !> pos')
20- = ((s, s') : (shp, shp')) !> Either (pos s) (pos' s')
19+ c1 >*< c2 = ((s, s') : (c1. Shp , c2. Shp )) !> (c1. Pos s, c2. Pos s')
2120
2221||| Non-categorical product of containers, often also called
23- ||| 'Hancock' (Scotland), 'Dirichlet' (Spivak ), or 'Tensor product' (various)
22+ ||| 'Hancock' (Scotland), 'Dirichlet' (Spivak), or 'Tensor product' (various)
2423||| Monoid with CUnit
2524public export
2625(>< ) : Cont -> Cont -> Cont
27- (shp !> pos) >< (shp' !> pos') = ((s, s') : (shp, shp' )) !> (pos s, pos' s')
26+ c1 >< c2 = ((s, s') : (c1 . Shp , c2 . Shp )) !> (c1 . Pos s, c2 . Pos s')
2827
2928
3029||| Coproduct of containers
@@ -39,19 +38,19 @@ public export
3938||| Monoid with Scalar
4039public export
4140(>@) : Cont -> Cont -> Cont
42- c >@ d = (ex : Ext c d.shp ) !> (cp : c.pos (shapeExt ex ) ** d.pos (index ex cp))
41+ c >@ d = (ex : Ext c d.Shp ) !> (cp : c.Pos (shapeExt ex ) ** d.Pos (index ex cp))
4342
4443public export infixr 0 @>
4544
4645||| Diagrammatic composition of containers
4746public export
4847(@>) : Cont -> Cont -> Cont
49- c @> d = (ex : Ext d c.shp ) !> (dp : d.pos (shapeExt ex ) ** c.pos (index ex dp))
48+ c @> d = (ex : Ext d c.Shp ) !> (dp : d.Pos (shapeExt ex ) ** c.Pos (index ex dp))
5049
5150
5251||| Derivative of a container
53- ||| Given c =(shp !> pos) the derivative can be thought of as
54- ||| a shape s : shp , a distinguished position p : pos s , and the set of *all other positions*
52+ ||| Given c =(Shp !> pos) the derivative can be thought of as
53+ ||| a shape s : Shp , a distinguished position p : pos s , and the set of *all other positions*
5554public export
5655Deriv : (c : Cont) ->
5756 InterfaceOnPositions c DecEq =>
0 commit comments