-
Notifications
You must be signed in to change notification settings - Fork 1
/
example6.tex
146 lines (145 loc) · 4.9 KB
/
example6.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
% ----------------------------------------------------------------------
\begin{frame}<1-8>[fragile]{\only<8>{\alert{Combined}\ }Recursion}
\input{recursion_2}
\end{frame}
%%%\begin{frame}[fragile]{\only<8>{\alert{Combined}\ }Recursion}
%%%\begin{columns}
%%%\begin{column}{0.05\textwidth}\end{column}
%%%\begin{column}{0.2\textwidth}
%%%\texttt{%
%%%\{a\}. \newline
%%%\alert<1>{%
%%%\alt<8>{\alert<8>{\hspace{2mm}b\hspace{1.85mm}:- c.}}{\{b\}:- c.} \newline
%%%\{c\}:- a. \newline
%%%\{a\}:- 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, shorten <= 0.5mm, shorten >= 0.5mm},
%%% rule_arrow_neg/.style={rule_arrow, dashed},
%%%]
%%%
%%%
%%%%
%%%% smodel
%%%%
%%%
%%%\visible<-7>{
%%%% line 0
%%%%\uncover<2->{\alert<2>{
%%%\node[smodel] (node01) at ( 0, 0) {};
%%%%}}
%%%
%%%
%%%%
%%%% correct models
%%%%
%%%
%%%% line 1
%%%\node[smodel, below left=of node01] (node11) {} edge [arrow] (node01);
%%%\node[smodel, below right=of node01] (node12) {a} edge [arrow] (node01);
%%%
%%%\only<-4>{
%%%% line 2
%%%\uncover<2-4>{\alert<2>{
%%%\node[smodel, below=of node11] (node21) {} edge [cycle_arrow] (node11);
%%%\node[smodel, below left=of node12, small, xshift=0mm] (node22) {a} edge [cycle_arrow] (node12);
%%%\node[smodel, below right=of node12, small, xshift=0mm] (node23) {a c} edge [cycle_arrow] (node12);
%%%}}
%%%
%%%% line 3
%%%\uncover<3-4>{\alert<3>{
%%%\node[smodel, below=of node21] (node31) {} edge [cycle_arrow] (node21);
%%%\node[smodel, below=of node22, small] (node32) {a} edge [cycle_arrow] (node22);
%%%\node[smodel, below left=of node23, xshift=0mm, small] (node33) {a c} edge [cycle_arrow] (node23);
%%%\node[smodel, below right=of node23, xshift=0mm, small] (node34) {a c b} edge [cycle_arrow] (node23);
%%%\draw[cycle_arrow,->] (node22) -- (node33);
%%%}}
%%%
%%%% line 4
%%%\uncover<4>{\alert<4>{
%%%\node[smodel, below=of node31] (node41) {} edge [cycle_arrow] (node31);
%%%\node[smodel, below=of node32, small] (node42) {a} edge [cycle_arrow] (node32);
%%%\node[smodel, below=of node33, small] (node43) {a c} edge [cycle_arrow] (node33);
%%%\node[smodel, below=of node34, small] (node44) {a c b} edge [cycle_arrow] (node34);
%%%\draw[cycle_arrow,->] (node32) -- (node43);
%%%\draw[cycle_arrow,->] (node33) -- (node44);
%%%}}
%%%
%%%} %\only
%%%
%%%% line 2
%%%\visible<5->{\alert<5>{
%%%\node[smodel, below=of node11] (node21) {} edge [arrow] (node11);
%%%\node[smodel, below left=of node12, small] (node22) {a} edge [arrow] (node12);
%%%\node[smodel, below=of node12, small] (node23) {a c} edge [arrow] (node12);
%%%\node[smodel, below right=of node12, small, xshift=8mm] (node24) {a c b} edge [arrow] (node12);
%%%}}
%%%
%%%\visible<6->{
%%%\node[any] (ok1) at ($ (node21.south east) + (2mm,-1mm) $) {\OK};
%%%\node[any] (ok2) at ($ (node22.south east) + (1.5mm,-1mm) $) {\OK};
%%%\node[any] (ok3) at ($ (node23.south east) + (2.5mm,-1mm) $) {\OK};
%%%\node[any] (ok4) at ($ (node24.south east) + (3mm,-1mm) $) {\OK};
%%%}
%%%
%%%} % \visible
%%%
%%%%
%%%% rule sequence
%%%%
%%%
%%%\node[rule, right=of node12, xshift=3.3cm] (rule_seq_1) {\scode \{a\}.\hspace{9mm}};
%%%
%%%\alert<1>{
%%%\alert<8>{
%%%\node[rule, below=of rule_seq_1] (rule_seq_2) {\scode \hspace{2mm}\alt<8>{\phantom{\{}b\phantom{\}}}{\{b\}} :- c.};
%%%}
%%%\node[rule, below=of rule_seq_2, yshift=7mm] (rule_seq_3) {\scode \hspace{2.5mm}\{c\} :- a.};
%%%\node[rule, below=of rule_seq_3, yshift=7mm] (rule_seq_4) {\scode \hspace{2.5mm}\{a\} :- b.};
%%%}
%%%
%%%% rectangle
%%%%\only<9-14>{\alert<9>{
%%%\visible<-6,8>{\alert<1>{
%%%\draw[very thick, dotted, rounded corners]
%%% ($ (rule_seq_2.north west) + (1.3mm,1mm) $) rectangle ($ (rule_seq_4.south east) + (-0mm,-1mm) $);
%%%}}
%%%
%%%
%%%% box
%%%\visible<7>{
%%% \draw[on grid] ($ (rule_seq_1.north west) + (0mm,-0.1) $) rectangle ($ (rule_seq_4.south east) + (-0mm,0.1) $);
%%% \node[on grid] at ($ (rule_seq_1.north) + (0mm,3.5mm) $) {\texttt{example6.lp}};
%%%}
%%%
%%%% (Later)
%%%%\only<8>{
%%%%\node[align=center] at ($ (rule_seq_3.east) + (+2cm,0) $) {\Large{\textbf{\alert{Later\ldots}}}};
%%%%}
%%%
%%%\end{tikzpicture}
%%%\end{center}
%%%\end{column}
%%%\begin{column}{0.25\textwidth}\end{column}
%%%\end{columns}
%%%
%%%% Later...
%%%\only<8>{
%%%\begin{tikzpicture}[remember picture,overlay]
%%%%\node[align=center] at (10,-1) {\Large{\textbf{\alert{Later\ldots}}}};
%%%\node[align=center] at (5.5,1) {\Large{\textbf{\alert{Later\ldots}}}};
%%%\end{tikzpicture}
%%%}
%%%\end{frame}