-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.tex
432 lines (328 loc) · 9.41 KB
/
Main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
\documentclass[11pt, a4paper, twoside, openright]{book}
\usepackage{a4wide}
\usepackage{amsmath,amssymb, amsthm} % AMS math
\usepackage{color}
\usepackage{enumerate}
\usepackage{fancyhdr}
\usepackage{fancyvrb}
\usepackage{floatflt}
\usepackage{multirow}
\usepackage{url}
\usepackage{rotating}
\usepackage{placeins}
\usepackage{todonotes}
\usepackage{listings}
\usepackage{minitoc}
\usepackage{nextpage}
\usepackage{parskip}
\usepackage{setspace}
\usepackage{xspace}
\usepackage{float}
\usepackage{subfig}
\usepackage{subfloat}
\usepackage{booktabs}
\usepackage{makeidx}
\usepackage{nth}
\usepackage{soul}
\usepackage[nodayofweek,level]{datetime}
\newcommand*\justify{%
\fontdimen2\font=0.4em% interword space
\fontdimen3\font=0.2em% interword stretch
\fontdimen4\font=0.1em% interword shrink
\fontdimen7\font=0.1em% extra space
\hyphenchar\font=`\-% allowing hyphenation
}
\pdfcompresslevel=9
\setcounter{tocdepth}{1}
\setcounter{minitocdepth}{1}
\setcounter{secnumdepth}{3}
\pagestyle{fancyplain}
\renewcommand{\chaptermark}[1]%
{\markboth{\chaptername\ \thechapter\ \ #1}{}}
\renewcommand{\sectionmark}[1]%
{\markright{\thesection\ \ #1}}
\fancyhead[LE,RO]{\fancyplain{}{\thepage}}
\fancyhead[RE]{\fancyplain{}{\it\leftmark}}
\fancyhead[LO]{\fancyplain{}{\it\rightmark}}
\fancyfoot[C]{\fancyplain{\thepage}{}}
\setlength{\headheight}{15pt}
\newcommand{\thesischapter}[2]{\chapter[#2]{#1}\minitoc}
\usepackage{stmaryrd, hyphenat}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{verbatim}
\usepackage{mathtools}
\usepackage{xspace}
\usepackage{bussproofs}
\usepackage{multirow}
\usepackage{framed}
\usepackage{listings}
\usepackage{afterpage}
\lstset{numbers = left , stepnumber = 1 , framexleftmargin=30pt, frame = single}
\providecommand{\Monus}{% Don't redefine it if available
\mathbin{% We want a binary operation
\vphantom{+}% The same height as a plus or minus
\text{% Change size in sub/superscripts
\mathsurround=0pt % To be on the safe side
\ooalign{% Superimpose the two symbols
\noalign{\kern-.35ex}% but the dot is raised a bit
\hidewidth$\smash{\cdot}$\hidewidth\cr % Dot
\noalign{\kern.35ex}% Backup for vertical alignment
$-$\cr % Minus
}%
}%
}%
}
\newcommand{\mybar}[1]{\overline{#1}}
\newcommand{\mypause}{\pause}
\newcommand{\var}[1]{\mathrm{Var}(#1)}
\newcommand{\freevar}[1]{\mathrm{FreeVar}(#1)}
% \newenvironment{proof}[1][Proof]{\begin{trivlist}
% \item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\newcommand{\SCADE}{{SCADE\ }}
\newcommand{\scade}{{\small \sc \textit{SCADE}}}
% \newtheorem{theorem}{Theorem}[section]
\usepackage{tikz}
\usepgflibrary{arrows}
\usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,fit}
\usetikzlibrary{shapes.geometric}
\usepgflibrary{shapes.geometric}
\usetikzlibrary{shapes.symbols}
\usepgflibrary{shapes.callouts}
\usetikzlibrary{shapes.callouts}
\usepgflibrary{arrows}
\usetikzlibrary{through}
%%\usetikzlibrary{arrows,backgrounds,snakes,shapes}
\renewcommand{\lstlistingname}{Code Listing}
\newcommand{\rungStart}{
%% Draw a -
-- ++(2,0)
}
\newcommand{\contact}[1]{
%% Draw a -
-- ++(1,0)
%% Draw ]
+(-0.1, 0.5) -- +(0, 0.5) -- +(0, -0.5) -- +(-0.1, -0.5)
%% Move across
++(0.4, 0)
%% Draw text above
+(0,0.8) node{#1}
%% Move across
++(0.4, 0)
%% Draw [
+(0.1, 0.5) -- +(0, 0.5) -- +(0, -0.5) -- +(0.1, -0.5)
%% Reset to current point
++(0, 0) --
%% Draw a -
++(1,0)
}
\newcommand{\closedContact}[1]{
%% Draw a -
-- ++(1,0)
%% Draw ]
+(-0.1, 0.5) -- +(0, 0.5) -- +(0, -0.5) -- +(-0.1, -0.5)
%% Move across
++(0.4, 0)
%% Draw text above
+(0,0.8) node{#1}
%% Draw close i.e. /
+(-0.2, -0.5) -- +(0.2, 0.5)
%% Reset to current point (i.e. middle)
++(0, 0)
%% Move across
++(0.4, 0)
%% Draw [
+(0.1, 0.5) -- +(0, 0.5) -- +(0, -0.5) -- +(0.1, -0.5)
%% Reset to current point
++(0, 0) --
%% Draw a -
++(1,0)
}
\newcommand{\coil}[1]{
%% Draw a -
-- ++(1,0)
%% Move to end of -
+(0.5,-0.5)
%% Draw arc (
arc (270:90:0.5cm)
%% Move across
++(0.3, 0)
%% Draw text above
+(0,0.3) node{#1}
%% Reset
+(0.3,-1)
%% Draw Arc )
arc (-90:90:0.5cm)
%% Move to center of )
++(0.5,-0.5)
%% Finish Path
;
}
\newcommand{\thesisdate}{\formatdate{1}{6}{2015}}
\newcommand{\nodeLink}[1]{
%% Draw a -
-- ++(0.5,0) node[inner sep=0pt, minimum size=0pt] (#1){};
}
\newcommand{\nodeLinkInline}[1]{
%% Draw a -
-- ++(0.5,0) node[inner sep=0pt, minimum size=0pt] (#1){} -- ++(0.5,0)
}
\newcommand\boxAngle{150}
\newcommand{\mybox}[5]{
%% #1 = Width, #2 = Height, #3 = Depth, #4 = x, #5 = y
%% Front face
\draw (#4,#5) rectangle +(#1,#2);
%% Draw side
\draw [fill=gray!25] (#4,#5) -- ++(\boxAngle:#3) -- ++(0,#2) -- ++(\boxAngle:-#3);
%% Draw top
\draw [fill=gray!50] (#4,#5) ++(0,#2) -- ++(\boxAngle:#3) -- ++(#1,0) -- ++(\boxAngle:-#3);
}
\tikzstyle{myArrow}=[draw,->, line width=1.5pt]
\tikzstyle{box}=[fill=blue!20,draw=blue!80,rounded corners,thick,text width=1.9cm,text centered,font=\tiny]
\tikzstyle{box3}=[draw,thick,text width=1.9cm,text centered,font=\tiny]
\tikzstyle{oval}=[box,fill=red!20,draw=red!80]
\tikzstyle{rdm}=[box,fill=green!20,draw=green!80]
\tikzstyle{to}=[->,thick,shorten >=1pt,shorten <=1pt]
\tikzstyle{from}=[to,<-]
\tikzstyle{train}=[line width=3pt,color=blue,>=fast cap,<-,densely dashed]
\usepgflibrary{arrows}
\usetikzlibrary{through}
\def\kw#1{{\color{red}#1}}
\def\dull#1{{\color{black!75}#1}}
\newtheorem{mydef}{Definition}
\newtheorem{mytheorem}{Theorem}
\newtheorem{proposition}{Proposition}
\newtheorem{myremark}{Remark}
\newtheorem{proofbegin}{Proof}
\newtheorem{mylemma}{Lemma}
\newtheorem{myproof}{Proof}
\newtheorem{myexample}{Example}
\newtheorem{mycorollary}{Corollary}
\newcommand{\dpllrule}[1]{\mathbf{#1}}
\newcommand{\Conflict}{\dpllrule{Conflict}}
\newcommand{\Unit}{\dpllrule{Unit}}
\newcommand{\Elim}{\dpllrule{Elim}}
\newcommand{\Red}{\dpllrule{Red}}
\newcommand{\Split}{\dpllrule{Split}}
\newcommand{\resrule}[1]{\mathbf{#1}}
\newcommand{\Res}{\resrule{Res}}
\newcommand{\Sub}{\resrule{Sub}}
\newcommand{\consistent}[1]{\mathrm{cons}(#1)}
\newcommand{\consvals}{\mathrm{Cons}}
\newcommand{\mynote}[1]{{{\textbf{#1}}}}
\newcommand{\Nat}{{\mathbb N}}
\newcommand{\Real}{{\mathbb R}}
\newcommand{\compatible}[2]{\mathrm{compatible}(#1,#2)}
\newcommand{\incompatible}[2]{\mathrm{incompatible}(#1,#2)}
\newcommand{\modres}[1]{\overset{#1}{\underset{\text{\tiny Res}}{\vdash}}}
\newcommand{\moddpll}[1]{\overset{#1}{\underset{\text{\tiny DPLL}}{\vdash}}}
\newcommand{\True}{\mathrm{True}}
\newcommand{\muu}[3]{\mu(#1;#2;#3)}
\newcommand{\measure}[2]{|#2 \setminus\!\!\setminus \var{#1}|}
\newcommand{\weight}[1]{\#(#1)}
\newcommand{\NC}{\mathrm{nc}}
\newcommand{\forallnc}{\forall_{\NC}}
\newcommand{\existsnc}{\exists_{\NC}}
\newcommand{\BD}[1]{\mathrm{BD}(#1)}
\newcommand{\DMA}[2]{\mathrm{DMA}(#1,#2)}
\begin{document}
${ \ } $ \vspace{4cm}
%
%% Titlepage 1
%
%%% Im not sure on the title currently. We havent actually applied theorem proving to train control system but model checking
%%% The interactive theorem proving was applied to our SAT algorithm
\begin{center}
{\huge \bf Verification of Train Control Systems: Tools and Techniques}
\end{center}
\begin{center}
{\large \bf Andrew Lawrence}
\end{center}
\begin{center}
\thesisdate
\end{center}
\vspace{2.5cm}
\vfill
\begin{center}
A thesis submitted to Swansea University\\
in candidature for the degree of Doctor of Philosophy.
\end{center}
\begin{center}
\includegraphics[scale=0.4]{logo}
\end{center}
\begin{center}
Department of Computer Science\\
Swansea University
\end{center}
\thispagestyle{empty}
\newpage
\thispagestyle{empty}
\mbox{}
\clearpage
\thispagestyle{empty}
\section*{Declaration}
This work has not previously been accepted in substance for any degree
and is not being currently submitted for any degree.
\vspace{0.5cm}
\begin{tabular}{l}
\thesisdate \\
\\
Signed:
\end{tabular}
\section*{Statement 1}
This thesis is being submitted in partial fulfilment of the
requirements for the degree of Doctor of Philosophy.
\vspace{0.5cm}
\begin{tabular}{l}
\thesisdate \\
\\
Signed:
\end{tabular}
\section*{Statement 2}
This thesis is the result of my own independent
work/investigation, except where otherwise stated. Other sources are
specifically acknowledged by clear cross referencing to author, work,
and pages using the bibliography/references. I understand that failure
to do this amounts to plagiarism and will be considered grounds for
failure of this dissertation and the degree examination as a whole.
\vspace{0.5cm}
\begin{tabular}{l}
\thesisdate \\
\\
Signed:
\end{tabular}
\section*{Statement 3}
I hereby give consent for my thesis to be available for
photocopying and for inter-library loan, and for the title and summary
to be made available to outside organisations.
\vspace{0.5cm}
\begin{tabular}{l}
\thesisdate \\
\\
Signed:
\end{tabular}
\clearpage
\thispagestyle{empty}
\mbox{}
\newpage
\dominitoc
\tableofcontents
\clearpage
\input{Introduction.tex}
\input{BackgroundLogic.tex}
\input{BackgroundSAT.tex}
\input{EVDP.tex}
\input{minlogdpll.tex}
\input{ECLSA.tex}
%%%\input{minlogcdcl.tex}
\input{BackgroundTrad.tex}
\input{BackgroundModelChecking.tex}
%%%\input{VerifyingSSI.tex}
\input{BackgroundERTMS.tex}
\input{Hybridautomata.tex}
\input{Maude.tex}
\input{verifyertms.tex}
\bibliographystyle{alpha}
\bibliography{lit}
\input{Appendix.tex}
\end{document}