Is there any package for LaTeX which will support writing Z specifications? I am interested in both horizontal and vertical formats for schemas.
+3
A:
There is a package, it is called zed-csp. Here's a reference on how to use it.
Here's an example schema:
\begin{schema}{InitJunction1}
\Delta Sys\\
junc?: JUNCTION\\
road1?: ROAD\\
road2?: ROAD
\where
road1? \neq road2?\\
junc? \notin juncList\\
\forall j: juncList @ \neg ((road1? \in roadsInJunc(j)) \land (road2? \in roadsInJunc(j))\\
roadsInJunc' = roadsInJunc \cup \{junc? \mapsto \{road1,road2\}\}\\
juncList' = juncList \cup \{junc?\}
\end{schema}
See my question and answer on the subject: http://stackoverflow.com/questions/2637928/zed-notation-in-lyx/2656575#2656575
Amir Rachum
2010-06-19 19:03:49
Thanks, I was affraid that question would refer to something LyX specific.
Gabriel Ščerbák
2010-06-19 19:31:22
Thanks one more time, works like a charm.
Gabriel Ščerbák
2010-06-19 19:56:52
@Gabriel Ščerbák no problem, thanks for the votes :P
Amir Rachum
2010-06-19 20:27:56