-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample5.tex
162 lines (160 loc) · 4.41 KB
/
example5.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
% ----------------------------------------------------------------------
\begin{frame}[fragile]{Recursion}
\input{recursion_1}
\end{frame}
% ----------------------------------------------------------------------
%%%\begin{frame}[fragile]{Recursion}
%%%\begin{columns}
%%%\begin{column}{0.05\textwidth}\end{column}
%%%\begin{column}{0.2\textwidth}
%%%\texttt{%
%%%\{a\}. \newline
%%%\phantom{\{}b\phantom{\}}:- c. \newline
%%%\phantom{\{}c\phantom{\}}:- a. \newline
%%%\phantom{\{}a\phantom{\}}:- b. \newline
%%%}
%%%\end{column}
%%%\begin{column}{0.5\textwidth}
%%%\vspace{-1cm}
%%%\begin{center}
%%%\begin{tikzpicture}
%%%[
%%% examples,
%%% x=1cm,
%%% y=-1cm,
%%% every node/.style={node distance=1.2cm and 1cm, on grid},
%%% small/.style={inner sep=0.5mm},
%%% rule_dep/.style={align=center, draw},
%%% rule_arrow/.style={<-},
%%% cycle_arrow/.style={rule_arrow, dotted, thick},
%%% rule_arrow_neg/.style={rule_arrow, dashed},
%%%]
%%%
%%%
%%%%
%%%% smodel
%%%%
%%%
%%%% line 0
%%%\uncover<2->{\alert<2>{
%%%\node[smodel] (node01) at ( 0, 0) {};
%%%}}
%%%
%%%% line 1
%%%\uncover<3->{\alert<3>{
%%%\node[smodel, below left=of node01] (node11) {} edge [arrow] (node01);
%%%\node[smodel, below right=of node01] (node12) {a} edge [arrow] (node01);
%%%}}
%%%
%%%%
%%%% wrong models
%%%%
%%%
%%%\only<-8>{
%%%% line 2
%%%\uncover<4-8>{\alert<4>{
%%%\node[smodel, below=of node11] (node21) {} edge [arrow] (node11);
%%%\node[smodel, below=of node12] (node22) {a} edge [arrow] (node12);
%%%}}
%%%
%%%% line 3
%%%\uncover<5-8>{\alert<5>{
%%%\node[smodel, below=of node21] (node31) {} edge [arrow] (node21);
%%%\node[smodel, below=of node22] (node32) {a c} edge [arrow] (node22);
%%%}}
%%%
%%%% line 4
%%%\uncover<6-8>{\alert<6>{
%%%\node[smodel, below=of node31] (node41) {} edge [arrow] (node31);
%%%\node[smodel, below=of node32] (node42) {a c} edge [arrow] (node32);
%%%}}
%%%} %\only
%%%
%%%%
%%%% correct models
%%%%
%%%
%%%% line 2
%%%\visible<10-12>{\alert<10>{
%%%\node[smodel, below=of node11] (node21) {} edge [cycle_arrow] (node11);
%%%\node[smodel, below=of node12] (node22) {a c} edge [cycle_arrow] (node12);
%%%}}
%%%
%%%% line 3
%%%\visible<11-12>{\alert<11>{
%%%\node[smodel, below=of node21] (node31) {} edge [cycle_arrow] (node21);
%%%\node[smodel, below=of node22] (node32) {a c b} edge [cycle_arrow] (node22);
%%%}}
%%%
%%%% line 4
%%%\visible<12>{\alert<12>{
%%%\node[smodel, below=of node31] (node41) {} edge [cycle_arrow] (node31);
%%%\node[smodel, below=of node32] (node42) {a c b} edge [cycle_arrow] (node32);
%%%}}
%%%
%%%% line 2
%%%\visible<13->{\alert<13>{
%%%\node[smodel, below=of node11] (node21) {} edge [arrow] (node11);
%%%\node[smodel, below=of node12] (node22) {a c b} edge [arrow] (node12);
%%%}}
%%%
%%%\visible<14->{
%%%\node[any, below=of node12, xshift=11.5mm, yshift=-2mm] (ok) {\OK};
%%%\node[any, below=of node11, xshift=4.5mm, yshift=-2mm] (ok) {\OK};
%%%}
%%%
%%%%
%%%% rule sequence
%%%%
%%%
%%%\uncover<3->{\alert<3>{
%%%\node[rule, right=of node12, xshift=1.4cm] (rule_seq_1) {\scode \{a\}.\hspace{8mm}};
%%%}}
%%%
%%%\uncover<4->{\alert<4,9>{
%%%\node[rule, below=of rule_seq_1] (rule_seq_2) {\scode b :- c.};
%%%}}
%%%
%%%\only<-8>{
%%%\uncover<5-8>{\alert<5>{
%%%\node[rule, below=of rule_seq_2] (rule_seq_3) {\scode c :- a.};
%%%}}
%%%
%%%\uncover<6-8>{\alert<6>{
%%%\node[rule, below=of rule_seq_3] (rule_seq_4) {\scode a :- b.};
%%%}}
%%%} %\only
%%%
%%%\only<9->{\alert<9>{
%%%\node[rule, below=of rule_seq_2, yshift=7mm] (rule_seq_3) {\scode c :- a.};
%%%\node[rule, below=of rule_seq_3, yshift=7mm] (rule_seq_4) {\scode a :- b.};
%%%}}
%%%
%%%% rectangle
%%%\only<9-14>{\alert<9>{
%%%\draw[very thick, dotted, rounded corners]
%%% ($ (rule_seq_2.north west) + (1mm,1mm) $) rectangle ($ (rule_seq_4.south east) + (-1.4mm,-1mm) $);
%%%}}
%%%
%%%
%%%
%%%% box
%%%\visible<15>{
%%% \draw[on grid] ($ (rule_seq_1.north west) + (1mm,-0.1) $) rectangle ($ (rule_seq_4.south east) + (-1.4mm,0.1) $);
%%% \node[on grid] at ($ (rule_seq_1.north) + (0mm,3.5mm) $) {\texttt{example5.lp}};
%%%}
%%%
%%%\end{tikzpicture}
%%%\end{center}
%%%\end{column}
%%%\begin{column}{0.25\textwidth}\end{column}
%%%\end{columns}
%%%
%%%\begin{tikzpicture}[remember picture,overlay]
%%%% KO
%%%\visible<8>{\node at (6.3,2.2) {\BigBigKO};}
%%%% Not in order
%%%\visible<7-8>{\node at (10,2.2) {\Large{\textbf{\alert{Not in order}}}};}
%%%\end{tikzpicture}
%%%
%%%\end{frame}