confluence.tex 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. \begin{tikzpicture}[node distance=1cm,>=stealth',scale=1,transform shape, on grid, auto]
  2. \tikzstyle{node}=[text centered]
  3. \node (t) {$t$};
  4. \node (ghost) [below of=t] {};
  5. \node (t1) [left of=ghost] {$t_1$};
  6. \node (t2) [right of=ghost] {$t_2$};
  7. \node (tprime) [below of=ghost] {$t'$};
  8. \path[->,draw] (t) -- node [above,xshift=-0.1cm, yshift=-0.1cm] {$^*$} (t1);
  9. \path[->,draw] (t) -- node [above,xshift=0.1cm, yshift=-0.1cm] {$^*$} (t2);
  10. \path[dotted,->,draw] (t1) -- node [below,xshift=-0.1cm, yshift=0.1cm] {$^*$} (tprime);
  11. \path[dotted,->,draw] (t2) -- node [below,xshift=0.1cm, yshift=0.1cm] {$^*$} (tprime);
  12. %\begin{scope}
  13. % %confluence
  14. % \node [node] (t) {$t$};
  15. % \path (t)+(-1.3,-1.3) node (t1) [node]{$t_1$};
  16. % \path (t)+(1.3,-1.3) node (t2) [node] {$t_2$};
  17. % \path (t1)+(1.3,-1.3) node (tprime) [node] {$t'$};
  18. % %Church-Rosser
  19. % \path (t2)+(4.0,0.0) node (tt1) [node] {$t_1$};
  20. % \path (tt1)+(2.6,0.0) node (tt2) [node] {$t_2$};
  21. % \path (tt1)+(1.3,-1.3) node (tt) [node] {$t'$};
  22. %\end{scope}
  23. % Draw arrows between elements
  24. %confluence
  25. %\path [draw, ->] (t.south)+(-0.2,0.0) -- node [above] {$^*$} (t1);
  26. %\path [draw, ->] (t.south)+(0.2,0.0)-- node [above] {$^*$} (t2);
  27. %\path [draw, dotted, ->] (t1.south)+(0.2,0.0)-- node [above] {$^*$}
  28. %(tprime);
  29. %\path [draw, dotted, ->] (t2.south)+(-0.2,0.0)-- node [above] {$^*$}
  30. %(tprime);
  31. %Church-Rosser
  32. %\path [draw, <->] (tt1.east)+(0.0,0.0) -- node [above] {$^*$} (tt2);
  33. %\path [draw, dotted, ->] (tt1.south)+(0.2,0.0)-- node [above] {$^*$} (tt);
  34. %\path [draw, dotted, ->] (tt2.south)+(-0.2,0.0)-- node [above] {$^*$} (tt);
  35. \end{tikzpicture}