source: CIVL/doc/manual/preambular.tex@ 32410ee

1.23 2.0 acw/focus-triggers main test-branch
Last change on this file since 32410ee was f4bf184, checked in by Stephen Siegel <siegel@…>, 12 years ago

Fixed svn:ignore in doc section, small updates to manual.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@658 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 7.6 KB
Line 
1% number subsubsections and put them in the table of contents...
2\setcounter{tocdepth}{3}
3\setcounter{secnumdepth}{3}
4
5\newcommand{\notimp}{\emph{Status:} Not yet implemented.}
6
7% algorithm2e package settings...
8
9\SetInd{1mm}{2mm}
10\SetVlineSkip{.5mm}
11\SetKw{Break}{break}
12\SetKw{Assert}{assert}
13\SetKw{Integer}{Integer}
14\SetKw{Array}{array}
15\SetKw{Of}{of}
16\SetKwFor{Procedure}{procedure}{is}{end procedure}
17\SetKwInOut{Uses}{uses}
18\SetKwInOut{Invariant}{invariant}
19
20% Type/font styles...
21\newcommand{\setsty}[1]{\textsf{\textcolor{blue}{\textup{#1}}}}
22\newcommand{\code}[1]{\texttt{\textcolor{blue}{#1}}}
23\newcommand{\ct}[1]{\texttt{#1}}
24
25% Theorem environments...
26\newtheorem{theorem}{Theorem}
27\theoremstyle{definition}
28\newtheorem{definition}{Definition}[subsection]
29
30% Symbols...
31\renewcommand{\implies}{\Rightarrow}
32\newcommand{\ra}{\rightarrow}
33\newcommand{\B}{\mathbb{B}}
34\newcommand{\N}{\mathbb{N}}
35\newcommand{\lb}{\texttt{\char`\{}}
36\newcommand{\rb}{\texttt{\char`\}}}
37\newcommand{\U}{{\ttfamily\symbol{'137}}}
38\newcommand{\UU}{\U\U}
39
40% Static notions...
41\newcommand{\rootscope}{\setsty{root}} % root static scope
42\newcommand{\start}{\setsty{start}} % start location $l_0$
43\newcommand{\Var}{\setsty{Var}} % set of all variables
44\newcommand{\bool}{\setsty{bool}} % boolean type
45\newcommand{\proc}{\setsty{proc}} % process reference type
46\newcommand{\Val}{\setsty{Val}} % set of all values
47\newcommand{\vtype}{\setsty{vtype}} % type of variable
48\newcommand{\etype}{\setsty{etype}} % type of expression
49\newcommand{\Type}{\setsty{Type}} % set of all types
50\newcommand{\Expr}{\setsty{Expr}} % set of all expressions
51\newcommand{\Eval}{\setsty{Eval}} % set of all valuations on variables
52\newcommand{\eval}{\setsty{eval}} % evaluation of an expression
53\newcommand{\sparent}{\setsty{sparent}} % parent of a static scope
54\newcommand{\dparent}{\setsty{dparent}} % parent of a dynamic scope
55\newcommand{\fscope}{\setsty{fscope}} % scope of a function
56\newcommand{\lscope}{\setsty{lscope}} % scope of a location
57\newcommand{\static}{\setsty{static}} % static scope associated to a dynamic one
58\newcommand{\stack}{\setsty{stack}} % call stack
59\newcommand{\vars}{\setsty{vars}} % variables declared in a scope
60\newcommand{\ancestors}{\setsty{ancestors}} % as in tree
61\newcommand{\descendants}{\setsty{descendants}} % as in tree
62\newcommand{\returntype}{\setsty{returnType}} % function's return type
63\newcommand{\numparams}{\setsty{numParams}} % number of params for a func.
64\newcommand{\params}{\setsty{params}} % sequence of formal parameters
65\newcommand{\void}{\setsty{void}} % type for func. returning nothing
66\newcommand{\Loc}{\setsty{Loc}} % locations in function's trans. sys.
67\newcommand{\Func}{\mathcal{F}} % set of function symbols
68\newcommand{\true}{\textit{true}} % boolean value true
69\newcommand{\false}{\textit{false}} % boolean value false
70\newcommand{\default}{\setsty{default}} % default value of type
71\newcommand{\len}{\setsty{length}} % length of sequence
72\newcommand{\func}{\setsty{func}} % function a static scope belongs to
73
74% Dynamic notions...
75\newcommand{\fnode}{\setsty{fnode}} % function node of dyscope
76\newcommand{\State}{\setsty{State}} % set of all states of model
77\newcommand{\deval}{\setsty{deval}} % valuation on dyscope
78\newcommand{\droot}{\setsty{droot}} % root dyscope
79\newcommand{\Frame}{\setsty{Frame}} % set of activation frames
80
81% Tables...
82\newcommand{\notationtable}{%
83 \begin{tabular}{lll}
84 Symbol & Section & Meaning\\ \hline
85 $\B$ & \S\ref{sec:notation} & \{\true,\false\}\\
86 $\N$ & \S\ref{sec:notation} & \{0,1,2,\ldots\}\\
87 $\ancestors$ & \S\ref{sec:notation} & set of ancestors of node in a tree (inclusive)\\
88 $\descendants$ & \S\ref{sec:notation} & set of descendants of node
89 in a tree (inclusive)\\
90 $\len$ & \S\ref{sec:notation} & length of a sequence\\
91 $\Var$ & \S\ref{sec:context} & the set of all variables\\
92 $\bool$ & \S\ref{sec:context} & the boolean type\\
93 $\proc$ & \S\ref{sec:context} & the process reference type\\
94 $\Val$ & \S\ref{sec:context} & the set of all values\\
95 $\Val_t$ & \S\ref{sec:context} & values of type $t$\\
96 $\default_t$ & \S\ref{sec:context} & default value of type $t$\\
97 $\vtype$ & \S\ref{sec:context} & function $\Var\ra\Type$ giving type of each variable\\
98 $\Eval$ & \S\ref{sec:context} & set of all valuations on $\Var$\\
99 $\Eval(V)$ & \S\ref{sec:state} & set of all valuations on variables in $V\subseteq\Var$\\
100 $\Expr$ & \S\ref{sec:context} & set of typed expressions over $\Var$\\
101 $\etype$ & \S\ref{sec:context} & $\Expr\ra\Type$, gives type of each expression\\
102 $\eval$ & \S\ref{sec:context} & $\Expr\times\Eval\ra\Val$, the evaluation function\\
103 $\mathcal{C}$ & \S\ref{sec:context} & a CIVL context\\
104 $\Sigma$ & \S\ref{sec:scopes} & set of all static scopes\\
105 $\rootscope$ & \S\ref{sec:scopes} & the root scope (member of $\Sigma$)\\
106 $\sparent$ & \S\ref{sec:scopes} & $\Sigma\setminus\{\rootscope\}\ra\Sigma$, parent function in static scope tree\\
107 $\vars$ & \S\ref{sec:scopes} & $\Sigma\ra 2^{\Var}$, specifies variables declared in scope\\
108 $\Lambda$ & \S\ref{sec:scopes} & a lexical scope system\\
109 $\void$ & \S\ref{sec:functions} & type used for function that does not return a value\\
110 $\Type'$ & \S\ref{sec:functions} & $\Type\cup\{\void\}$\\
111 $\Func$ & \S\ref{sec:functions} & set of function symbols\\
112 $\fscope$ & \S\ref{sec:functions} & $\Func\ra\Sigma\setminus\{\rootscope\}$, gives function scope of each function\\
113 $\returntype$ & \S\ref{sec:functions} & $\Func\ra\Type'$, gives return type of each function\\
114% $\numparams$ & \S\ref{sec:functions} & $\Func\ra\N$, gives number of inputs for each function\\
115 $\params$ & \S\ref{sec:functions} & $\Func\ra\Var^*$, formal
116 parameter sequence for $f\in\Func$\\
117 $f_0$ & \S\ref{sec:functions} & the root function (member of
118 $\mathcal{F}$)\\
119 $\func$ & \S\ref{sec:functions} & $\Sigma\ra\Func$, function to
120 which scope belongs\\
121 $\Loc_f$ & \S\ref{sec:gts} & set of locations for $f\in\Func$\\
122 $\lscope_f$ & \S\ref{sec:gts} & $\Loc_f\ra\Sigma$, gives scope of each location for $f\in\Func$\\
123 $\start_f$ & \S\ref{sec:gts} & start location for $f\in\Func$ (member of $\Loc_f$)\\
124 $T_f$ & \S\ref{sec:gts} & set of guarded transitions for $f\in\Func$\\
125 \end{tabular}
126}
127
128
129% CIVL-C keywords
130
131\newcommand{\cckey}{\$}
132\newcommand{\cc}[1]{\mbox{\texttt{\cckey{}#1}}}
133\newcommand{\cproc}{\cc{proc}}
134\newcommand{\cself}{\cc{self}}
135\newcommand{\cinput}{\cc{input}}
136\newcommand{\coutput}{\cc{output}}
137\newcommand{\cspawn}{\cc{spawn}}
138\newcommand{\cwait}{\cc{wait}}
139\newcommand{\cassert}{\cc{assert}}
140\newcommand{\ctrue}{\cc{true}}
141\newcommand{\cfalse}{\cc{false}}
142\newcommand{\cassume}{\cc{assume}}
143\newcommand{\catom}{\cc{atom}}
144\newcommand{\catomic}{\cc{atomic}}
145\newcommand{\cwhen}{\cc{when}}
146\newcommand{\cchoose}{\cc{choose}}
147\newcommand{\cchooseint}{\cc{choose{\U}int}}
148\newcommand{\cinvariant}{\cc{invariant}}
149\newcommand{\crequires}{\cc{requires}}
150\newcommand{\censures}{\cc{ensures}}
151\newcommand{\cexit}{\cc{exit}}
152\newcommand{\cresult}{\cc{result}}
153\newcommand{\cat}{\texttt{@}}
154\newcommand{\ccollective}{\cc{collective}}
155
156%\newcommand{\cheap}{\cc{heap}}
157\newcommand{\cscope}{\cc{scope}}
158\newcommand{\cscopeof}{\cc{scopeof}}
159\newcommand{\cscopeparent}{\cc{scope{\U}parent}}
160\newcommand{\cscoperoot}{\cc{root}}
161\newcommand{\chere}{\cc{here}}
162\newcommand{\cregion}{\cc{region}}
163\newcommand{\cmalloc}{\cc{malloc}}
164
165\newcommand{\cbundle}{\cc{bundle}}
166\newcommand{\cmessage}{\cc{message}}
167\newcommand{\ccomm}{\cc{comm}}
168\newcommand{\cgcomm}{\cc{gcomm}}
169
170\newcommand{\cforall}{\cc{forall}}
171\newcommand{\cexists}{\cc{exists}}
172\newcommand{\cimplies}{\ct{=>}}
Note: See TracBrowser for help on using the repository browser.