-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtelingo.tex
63 lines (59 loc) · 1.94 KB
/
telingo.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
% ----------------------------------------------------------------------
\begin{frame}{\telingo}
\begin{itemize}
\item \structure{Idea} \ extend \clingo\ with means for addressing dynamic problems
\item \structure{Features} \
\begin{itemize}
\item adds language elements from temporal, dynamic, (metric) logics
eg.\
\begin{itemize}\small
\item next, always, eventually, until, etc
\item regular expressions
\item (intervals)
\end{itemize}
\item computes shortest trajectories
\end{itemize}
\item \structure{References} \ \cite{cakamosc19a,cadilasc20a}
\end{itemize}
\end{frame}
% ----------------------------------------------------------------------
\begin{frame}[fragile]{Example}{Elevator control}
\only<1>{%
\begin{tikzpicture}[remember picture,overlay]
\node[anchor=north east,xshift=-3em,yshift=-2cm] at (current page.north east){%
\includegraphics[width=.2\textwidth]{pictures/elevator-initial}};
\end{tikzpicture}}%
\only<2->{%
\begin{tikzpicture}[remember picture,overlay]
\node[anchor=north east,xshift=-3em,yshift=-2cm] at (current page.north east){%
\includegraphics[width=.2\textwidth]{pictures/elevator-final}};
\end{tikzpicture}}%
\begin{adjustbox}{max totalsize={\textwidth}{.75\textheight},keepaspectratio}
\begin{lstlisting}[escapeinside=||]
#program init.
called(3).
at(1).
floor(1..3).
#program always.
{ wait; up; down; serve } = 1 :- not &final.
:- up, at(X), not _floor(X+1).
:- down, at(X), not _floor(X-1).
at(X+1):- 'up, 'at(X).
at(X-1):- 'down, 'at(X).
at(X) :- 'at(X), not 'up, not 'down.
called(X):- 'called(X), #false:'at(X), 'serve.
:- called(X), &final.
ready :- called(X), at(X).
|\pause[3]|
:- not &del{
*( (*up + *down);; ?ready;; serve);; *wait .>? &final
}, &initial.
\end{lstlisting}
\end{adjustbox}
\end{frame}
% ----------------------------------------------------------------------
%
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "../../main"
%%% End: