% ---- tikz helpers for the double-category figures and the string diagrams ---- \usetikzlibrary{arrows.meta,decorations.markings,shapes.geometric} \tikzset{ % double categories: a loose morphism carries a bar, a tight morphism is plain loosebar/.style={postaction={decorate,decoration={markings,mark=at position 0.5 with {\draw[-,line width=0.7pt] (0,-4.5pt) -- (0,4.5pt);}}}}, % string diagrams of Markov categories, read top to bottom (Convention (m)). % A state is a triangle with its base down, the output leaving from the base. Every wire ends on a node: a box, a copy dot, % a discard dot or an output label. Diagrams in one display share the height H % of their output labels and are centred on the math axis by sd=-H/2. sd/.style={x=0.5cm,y=0.5cm,line width=0.7pt,baseline={#1*0.5cm-0.25em}}, sdbox/.style={draw,rectangle,line width=0.6pt,fill=white,inner sep=1.3pt,minimum height=4mm,minimum width=4.6mm,font=\scriptsize}, sdstate/.style={draw,regular polygon,regular polygon sides=3,line width=0.6pt,fill=white,inner sep=0pt,minimum size=6.2mm,font=\scriptsize}, sdwidestate/.style={draw,isosceles triangle,isosceles triangle stretches,shape border rotate=90,line width=0.6pt,fill=white,inner sep=0pt,minimum width=9mm,minimum height=4.6mm,font=\scriptsize}, sdcopy/.style={circle,fill=black,inner sep=0pt,minimum size=3.6pt}, sddel/.style={circle,fill=black,inner sep=0pt,minimum size=3.6pt},% discard is a black dot ending a wire sdout/.style={font=\scriptsize,inner sep=1pt,anchor=north,text height=1.5ex,text depth=0.35ex} }