Slides/Slides1.thy
author urbanc
Tue, 23 Aug 2011 08:42:51 +0000
changeset 207 bef3af148df5
parent 206 69c22ded2f49
child 208 6e5d17a808d1
permissions -rw-r--r--
more on the slides
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
204
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
     1
(*<*)
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
     2
theory Slides1
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
     3
imports "~~/src/HOL/Library/LaTeXsugar"
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
     4
begin
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
     5
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
     6
notation (latex output)
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
     7
  set ("_") and
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
     8
  Cons  ("_::/_" [66,65] 65) 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
     9
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    10
(*>*)
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    11
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    12
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    13
text_raw {*
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    14
  %\renewcommand{\slidecaption}{Cambridge, 9 November 2010}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    15
  \renewcommand{\slidecaption}{Nijmegen, 25 August 2011}
206
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
    16
  \renewcommand{\ULthickness}{2pt}
204
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    17
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    18
  \mode<presentation>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    19
  \begin{frame}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    20
  \frametitle{%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    21
  \begin{tabular}{@ {}c@ {}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    22
  \Large A Formalisation of the\\[-4mm] 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    23
  \Large Myhill-Nerode Theorem based on\\[-4mm] 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    24
  \Large Regular Expressions\\[-4mm]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    25
  \Large (Proof Pearl)\\[0mm] 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    26
  \end{tabular}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    27
  
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    28
  \begin{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    29
  \begin{tabular}{c@ {\hspace{15mm}}c}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    30
  \includegraphics[scale=0.034]{chunhan.jpg} &
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    31
  \includegraphics[scale=0.034]{xingyuan.jpg}\\[-5mm]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    32
  \end{tabular}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    33
  \end{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    34
 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    35
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    36
  \begin{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    37
  \small joint work with Chunhan Wu and Xingyuan Zhang from the PLA
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    38
  University of Science and Technology in Nanjing
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    39
  \end{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    40
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    41
  \begin{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    42
  \small Christian Urban\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    43
  TU Munich
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    44
  \end{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    45
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    46
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    47
  \end{frame}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    48
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    49
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    50
*}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    51
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    52
text_raw {*
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    53
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    54
  \mode<presentation>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    55
  \begin{frame}[c]
206
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
    56
  \frametitle{}
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
    57
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
    58
  \begin{textblock}{12.9}(1.5,3.2)
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
    59
  \begin{block}{}
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
    60
  \begin{minipage}{12.4cm}\raggedright
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
    61
  \large I want to teach \alert{students}\\ 
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
    62
  with theorem provers (induction).
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
    63
  \end{minipage}
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
    64
  \end{block}
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
    65
  \end{textblock}\pause
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
    66
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
    67
  \mbox{}\\[35mm]\mbox{}
204
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    68
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    69
  \begin{itemize}
206
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
    70
  \item \only<2>{\smath{\text{fib}}, \smath{\text{even}} and \smath{\text{odd}}}%
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
    71
        \only<3->{\textcolor{red}{\sout{\textcolor{black}%
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
    72
        {\smath{\text{fib}}, \smath{\text{even}} and \smath{\text{odd}}}}}}\medskip
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
    73
  \item<3-> formal language theory \\
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
    74
  \mbox{}\;\;@{text "\<Rightarrow>"} nice textbooks: Kozen, Hopcroft \& Ullman
204
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    75
  \end{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    76
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    77
  \end{frame}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    78
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    79
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    80
*}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    81
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    82
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    83
text_raw {*
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    84
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    85
  \mode<presentation>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    86
  \begin{frame}[c]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    87
  \frametitle{\normalsize Formal language theory\ldots\hfill\mbox{}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    88
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    89
  \begin{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    90
  \huge\bf\textcolor{gray}{in Nuprl}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    91
  \end{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    92
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    93
  \begin{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    94
  \item Constable, Jackson, Naumov, Uribe\medskip
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    95
  \item \alert{18 months} for automata theory, Hopcroft \& Ullman chapters 1--11 (including Myhill-Nerode)
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    96
  \end{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    97
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    98
  \end{frame}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
    99
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   100
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   101
*}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   102
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   103
text_raw {*
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   104
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   105
  \mode<presentation>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   106
  \begin{frame}[c]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   107
  \frametitle{\normalsize Formal language theory\ldots\hfill\mbox{}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   108
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   109
  \begin{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   110
  \huge\bf\textcolor{gray}{in Coq}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   111
  \end{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   112
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   113
  \begin{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   114
  \item Filli\^atre, Briais, Braibant and others
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   115
  \item multi-year effort; a number of results in automata theory, e.g.\medskip 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   116
    \begin{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   117
    \item Kleene's thm.~by Filli\^atre (\alert{``rather big''})
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   118
    \item automata theory by Briais (5400 loc)
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   119
    \item Braibant ATBR library, including Myhill-Nerode ($>\!\!\!>$2000 loc)
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   120
    \item Mirkin's partial derivative automaton construction (10600 loc)
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   121
    \end{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   122
  \end{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   123
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   124
  \end{frame}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   125
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   126
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   127
*}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   128
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   129
text_raw {*
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   130
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   131
  \mode<presentation>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   132
  \begin{frame}[t]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   133
  \frametitle{\normalsize Formal language theory\ldots\hfill\mbox{}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   134
  \mbox{}\\[-10mm]\mbox{}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   135
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   136
  \begin{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   137
  \huge\bf\textcolor{gray}{in HOL}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   138
  \end{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   139
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   140
  \begin{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   141
  \item automata @{text "\<Rightarrow>"} graphs, matrices, functions
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   142
  \item<2-> combining automata/graphs
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   143
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   144
  \onslide<2->{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   145
  \begin{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   146
  \begin{tabular}{ccc}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   147
  \begin{tikzpicture}[scale=1]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   148
  %\draw[step=2mm] (-1,-1) grid (1,1);
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   149
  
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   150
  \draw[rounded corners=1mm, very thick] (-1.0,-0.3) rectangle (-0.2,0.3);
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   151
  \draw[rounded corners=1mm, very thick] ( 0.2,-0.3) rectangle ( 1.0,0.3);
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   152
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   153
  \node (A) at (-1.0,0.0) [circle, very thick, draw, fill=white, inner sep=0.4mm] {};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   154
  \node (B) at ( 0.2,0.0) [circle, very thick, draw, fill=white, inner sep=0.4mm] {};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   155
  
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   156
  \node (C) at (-0.2, 0.13) [circle, very thick, draw, fill=white, inner sep=0.4mm] {};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   157
  \node (D) at (-0.2,-0.13) [circle, very thick, draw, fill=white, inner sep=0.4mm] {};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   158
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   159
  \node (E) at (1.0, 0.2) [circle, very thick, draw, fill=white, inner sep=0.4mm] {};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   160
  \node (F) at (1.0,-0.0) [circle, very thick, draw, fill=white, inner sep=0.4mm] {};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   161
  \node (G) at (1.0,-0.2) [circle, very thick, draw, fill=white, inner sep=0.4mm] {};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   162
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   163
  \draw (-0.6,0.0) node {\small$A_1$};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   164
  \draw ( 0.6,0.0) node {\small$A_2$};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   165
  \end{tikzpicture}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   166
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   167
  & 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   168
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   169
  \onslide<3->{\raisebox{1.1mm}{\bf\Large$\;\Rightarrow\,$}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   170
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   171
  &
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   172
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   173
  \onslide<3->{\begin{tikzpicture}[scale=1]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   174
  %\draw[step=2mm] (-1,-1) grid (1,1);
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   175
  
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   176
  \draw[rounded corners=1mm, very thick] (-1.0,-0.3) rectangle (-0.2,0.3);
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   177
  \draw[rounded corners=1mm, very thick] ( 0.2,-0.3) rectangle ( 1.0,0.3);
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   178
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   179
  \node (A) at (-1.0,0.0) [circle, very thick, draw, fill=white, inner sep=0.4mm] {};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   180
  \node (B) at ( 0.2,0.0) [circle, very thick, draw, fill=white, inner sep=0.4mm] {};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   181
  
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   182
  \node (C) at (-0.2, 0.13) [circle, very thick, draw, fill=white, inner sep=0.4mm] {};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   183
  \node (D) at (-0.2,-0.13) [circle, very thick, draw, fill=white, inner sep=0.4mm] {};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   184
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   185
  \node (E) at (1.0, 0.2) [circle, very thick, draw, fill=white, inner sep=0.4mm] {};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   186
  \node (F) at (1.0,-0.0) [circle, very thick, draw, fill=white, inner sep=0.4mm] {};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   187
  \node (G) at (1.0,-0.2) [circle, very thick, draw, fill=white, inner sep=0.4mm] {};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   188
  
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   189
  \draw (C) to [red, very thick, bend left=45] (B);
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   190
  \draw (D) to [red, very thick, bend right=45] (B);
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   191
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   192
  \draw (-0.6,0.0) node {\small$A_1$};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   193
  \draw ( 0.6,0.0) node {\small$A_2$};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   194
  \end{tikzpicture}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   195
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   196
  \end{tabular}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   197
  \end{center}\medskip
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   198
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   199
  \only<4-5>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   200
  \begin{tabular}{@ {}l@ {}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   201
  disjoint union:\\[2mm]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   202
  \smath{A_1\uplus A_2 \dn \{(1, x)\,|\, x \in A_1\} \,\cup\, \{(2, y)\,|\, y \in A_2\}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   203
  \end{tabular}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   204
  \end{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   205
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   206
  \only<5>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   207
  \begin{textblock}{13.9}(0.7,7.7)
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   208
  \begin{block}{}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   209
  \medskip
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   210
  \begin{minipage}{14cm}\raggedright
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   211
  Problems with definition for regularity (Slind):\bigskip\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   212
  \smath{\;\text{is\_regular}(A) \dn \exists M.\;\text{is\_dfa}(M) \wedge {\cal L} (M) = A}\bigskip
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   213
  \end{minipage}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   214
  \end{block}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   215
  \end{textblock}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   216
  \medskip
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   217
206
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
   218
  \only<6->{A solution:\;\;\smath{\text{nat}} \;@{text "\<Rightarrow>"}\; state nodes\medskip}
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
   219
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
   220
  \only<7->{You have to \alert{\uline{rename}} states!}
204
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   221
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   222
  \end{frame}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   223
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   224
*}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   225
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   226
text_raw {*
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   227
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   228
  \mode<presentation>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   229
  \begin{frame}[t]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   230
  \frametitle{\normalsize Formal language theory\ldots\hfill\mbox{}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   231
  \mbox{}\\[-10mm]\mbox{}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   232
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   233
  \begin{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   234
  \huge\bf\textcolor{gray}{in HOL}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   235
  \end{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   236
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   237
  \begin{itemize}
206
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
   238
  \item Kozen's paper proof of Myhill-Nerode:\\ 
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
   239
  \hspace{2cm}requires absence of \alert{inaccessible states}
204
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   240
  \end{itemize}\bigskip\bigskip
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   241
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   242
  \begin{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   243
  \smath{\;\text{is\_regular}(A) \dn \exists M.\;\text{is\_dfa}(M) \wedge {\cal L} (M) = A}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   244
  \end{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   245
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   246
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   247
  \end{frame}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   248
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   249
*}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   250
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   251
text_raw {*
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   252
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   253
  \mode<presentation>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   254
  \begin{frame}[t]
206
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
   255
  \frametitle{}
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
   256
  \mbox{}\\[25mm]\mbox{}
204
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   257
206
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
   258
  \begin{textblock}{13.9}(0.7,1.2)
204
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   259
  \begin{block}{}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   260
  \begin{minipage}{13.4cm}\raggedright
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   261
  {\bf Definition:}\smallskip\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   262
  
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   263
  A language \smath{A} is \alert{regular}, provided there exists a\\ 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   264
  regular expression that matches all strings of \smath{A}.
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   265
  \end{minipage}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   266
  \end{block}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   267
  \end{textblock}\pause
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   268
  
206
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
   269
  {\noindent\large\bf\alert{\ldots{}and forget about automata}}\bigskip\bigskip\pause
204
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   270
206
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
   271
  Do we lose anything?\pause
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
   272
  \begin{itemize}
204
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   273
  \item pumping lemma\pause
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   274
  \item closure under complementation\pause
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   275
  \item \only<6>{regular expression matching}%
206
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
   276
  \only<7->{\textcolor{red}{\sout{\textcolor{black}{regular expression matching}}}}
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
   277
  \item<8-> most textbooks are about automata
204
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   278
  \end{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   279
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   280
  
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   281
  \end{frame}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   282
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   283
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   284
*}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   285
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   286
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   287
text_raw {*
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   288
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   289
  \mode<presentation>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   290
  \begin{frame}[c]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   291
  \frametitle{\LARGE The Myhill-Nerode Theorem}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   292
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   293
  \begin{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   294
  \item provides necessary and suf\!ficient conditions for a language 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   295
  being regular (pumping lemma only necessary)\medskip
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   296
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   297
  \item will help with closure properties of regular languages\bigskip\pause
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   298
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   299
  \item key is the equivalence relation:\smallskip
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   300
  \begin{center}
206
69c22ded2f49 more on the slides
urbanc
parents: 204
diff changeset
   301
  \smath{x \approx_{A} y \,\dn\, \forall z.\; x @ z \in A \Leftrightarrow y @ z \in A}
204
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   302
  \end{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   303
  \end{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   304
207
bef3af148df5 more on the slides
urbanc
parents: 206
diff changeset
   305
  \only<2->
bef3af148df5 more on the slides
urbanc
parents: 206
diff changeset
   306
  \begin{textblock}{9.9}(0.7,1.2)
bef3af148df5 more on the slides
urbanc
parents: 206
diff changeset
   307
  \begin{block}{}
bef3af148df5 more on the slides
urbanc
parents: 206
diff changeset
   308
  \begin{minipage}{9.4cm}\raggedright
bef3af148df5 more on the slides
urbanc
parents: 206
diff changeset
   309
  Two directions:\smallskip\\
bef3af148df5 more on the slides
urbanc
parents: 206
diff changeset
   310
bef3af148df5 more on the slides
urbanc
parents: 206
diff changeset
   311
  1.) \\
bef3af148df5 more on the slides
urbanc
parents: 206
diff changeset
   312
  2.) \\
bef3af148df5 more on the slides
urbanc
parents: 206
diff changeset
   313
  \end{minipage}
bef3af148df5 more on the slides
urbanc
parents: 206
diff changeset
   314
  \end{block}
bef3af148df5 more on the slides
urbanc
parents: 206
diff changeset
   315
  \end{textblock}}
bef3af148df5 more on the slides
urbanc
parents: 206
diff changeset
   316
204
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   317
  \end{frame}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   318
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   319
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   320
*}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   321
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   322
text_raw {*
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   323
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   324
  \mode<presentation>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   325
  \begin{frame}[c]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   326
  \frametitle{\LARGE The Myhill-Nerode Theorem}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   327
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   328
  \mbox{}\\[5cm]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   329
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   330
  \begin{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   331
  \item \smath{\text{finite}\, (U\!N\!IV /\!/ \approx_L) \;\Leftrightarrow\; L\; \text{is regular}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   332
  \end{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   333
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   334
  \end{frame}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   335
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   336
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   337
*}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   338
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   339
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   340
text_raw {*
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   341
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   342
  \mode<presentation>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   343
  \begin{frame}[c]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   344
  \frametitle{\LARGE Regular Languages}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   345
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   346
  \begin{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   347
  \item \smath{L} is regular \smath{\dn} if there is an automaton \smath{M} 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   348
  such that \smath{\mathbb{L}(M) = L}\\[1.5cm]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   349
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   350
  \item Myhill-Nerode:
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   351
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   352
  \begin{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   353
  \begin{tabular}{l}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   354
  finite $\Rightarrow$ regular\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   355
  \;\;\;\smath{\text{finite}\,(U\!N\!IV /\!/ \approx_L) \Rightarrow \exists r. L = \mathbb{L}(r)}\\[3mm]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   356
  regular $\Rightarrow$ finite\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   357
  \;\;\;\smath{\text{finite}\, (U\!N\!IV /\!/ \approx_{\mathbb{L}(r)})}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   358
  \end{tabular}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   359
  \end{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   360
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   361
  \end{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   362
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   363
  \end{frame}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   364
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   365
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   366
*}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   367
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   368
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   369
text_raw {*
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   370
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   371
  \mode<presentation>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   372
  \begin{frame}[c]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   373
  \frametitle{\LARGE Final States}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   374
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   375
  \mbox{}\\[3cm]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   376
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   377
  \begin{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   378
  \item \smath{\text{final}_L\,X \dn}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   379
  \smath{\hspace{6mm}X \in (U\!N\!IV /\!/\approx_L) \;\wedge\; \forall s \in X.\; s \in L}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   380
  \smallskip
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   381
  \item we can prove: \smath{L = \bigcup \{X.\;\text{final}_L\,X\}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   382
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   383
  \end{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   384
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   385
  \end{frame}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   386
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   387
*}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   388
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   389
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   390
text_raw {*
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   391
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   392
  \mode<presentation>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   393
  \begin{frame}[c]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   394
  \frametitle{\LARGE Transitions between\\[-3mm] Equivalence Classes}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   395
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   396
  \smath{L = \{[c]\}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   397
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   398
  \begin{tabular}{@ {\hspace{-7mm}}cc}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   399
  \begin{tabular}{c}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   400
  \begin{tikzpicture}[shorten >=1pt,node distance=2cm,auto, ultra thick]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   401
  \tikzstyle{state}=[circle,thick,draw=blue!75,fill=blue!20,minimum size=0mm]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   402
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   403
  %\draw[help lines] (0,0) grid (3,2);
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   404
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   405
  \node[state,initial]   (q_0)                        {$R_1$};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   406
  \node[state,accepting] (q_1) [above right of=q_0]   {$R_2$};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   407
  \node[state]           (q_2) [below right of=q_0]   {$R_3$};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   408
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   409
  \path[->] (q_0) edge                node        {c} (q_1)
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   410
                  edge                node [swap] {$\Sigma-{c}$} (q_2)
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   411
            (q_2) edge [loop below]   node        {$\Sigma$} ()
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   412
            (q_1) edge                node        {$\Sigma$} (q_2);
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   413
  \end{tikzpicture}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   414
  \end{tabular}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   415
  &
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   416
  \begin{tabular}[t]{ll}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   417
  \\[-20mm]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   418
  \multicolumn{2}{l}{\smath{U\!N\!IV /\!/\approx_L} produces}\\[4mm]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   419
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   420
  \smath{R_1}: & \smath{\{[]\}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   421
  \smath{R_2}: & \smath{\{[c]\}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   422
  \smath{R_3}: & \smath{U\!N\!IV - \{[], [c]\}}\\[6mm]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   423
  \multicolumn{2}{l}{\onslide<2->{\smath{X \stackrel{c}{\longrightarrow} Y \dn X ; [c] \subseteq Y}}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   424
  \end{tabular}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   425
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   426
  \end{tabular}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   427
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   428
  \end{frame}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   429
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   430
*}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   431
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   432
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   433
text_raw {*
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   434
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   435
  \mode<presentation>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   436
  \begin{frame}[c]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   437
  \frametitle{\LARGE Systems of Equations}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   438
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   439
  Inspired by a method of Brzozowski\;'64, we can build an equational system
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   440
  characterising the equivalence classes:
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   441
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   442
  \begin{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   443
  \begin{tabular}{@ {\hspace{-20mm}}c}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   444
  \\[-13mm]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   445
  \begin{tikzpicture}[shorten >=1pt,node distance=2cm,auto, ultra thick]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   446
  \tikzstyle{state}=[circle,thick,draw=blue!75,fill=blue!20,minimum size=0mm]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   447
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   448
  %\draw[help lines] (0,0) grid (3,2);
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   449
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   450
  \node[state,initial]   (p_0)                  {$R_1$};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   451
  \node[state,accepting] (p_1) [right of=q_0]   {$R_2$};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   452
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   453
  \path[->] (p_0) edge [bend left]   node        {a} (p_1)
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   454
                  edge [loop above]   node       {b} ()
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   455
            (p_1) edge [loop above]   node       {a} ()
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   456
                  edge [bend left]   node        {b} (p_0);
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   457
  \end{tikzpicture}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   458
  \\[-13mm]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   459
  \end{tabular}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   460
  \end{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   461
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   462
  \begin{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   463
  \begin{tabular}{@ {\hspace{-6mm}}ll@ {\hspace{1mm}}c@ {\hspace{1mm}}l}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   464
  & \smath{R_1} & \smath{\equiv} & \smath{R_1;b + R_2;b \onslide<2->{\alert<2>{+ \lambda;[]}}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   465
  & \smath{R_2} & \smath{\equiv} & \smath{R_1;a + R_2;a}\medskip\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   466
  \onslide<3->{we can prove} 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   467
  & \onslide<3->{\smath{R_1}} & \onslide<3->{\smath{=}} 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   468
      & \onslide<3->{\smath{R_1; \mathbb{L}(b) \,\cup\, R_2;\mathbb{L}(b) \,\cup\, \{[]\};\{[]\}}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   469
  & \onslide<3->{\smath{R_2}} & \onslide<3->{\smath{=}}    
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   470
      & \onslide<3->{\smath{R_1; \mathbb{L}(a) \,\cup\, R_2;\mathbb{L}(a)}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   471
  \end{tabular}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   472
  \end{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   473
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   474
  \end{frame}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   475
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   476
*}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   477
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   478
text_raw {*
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   479
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   480
  \mode<presentation>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   481
  \begin{frame}<1>[t]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   482
  \small
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   483
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   484
  \begin{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   485
  \begin{tabular}{l@ {\hspace{1mm}}c@ {\hspace{1mm}}ll}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   486
  \onslide<1->{\smath{R_1}} & \onslide<1->{\smath{=}} 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   487
      & \onslide<1->{\smath{R_1; b + R_2; b + \lambda;[]}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   488
  \onslide<1->{\smath{R_2}} & \onslide<1->{\smath{=}}    
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   489
      & \onslide<1->{\smath{R_1; a + R_2; a}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   490
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   491
  & & & \onslide<2->{by Arden}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   492
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   493
  \onslide<2->{\smath{R_1}} & \onslide<2->{\smath{=}} 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   494
      & \onslide<2->{\smath{R_1; b + R_2; b + \lambda;[]}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   495
  \onslide<2->{\smath{R_2}} & \onslide<2->{\smath{=}}    
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   496
      & \only<2>{\smath{R_1; a + R_2; a}}%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   497
        \only<3->{\smath{R_1; a\cdot a^\star}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   498
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   499
  & & & \onslide<4->{by Arden}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   500
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   501
  \onslide<4->{\smath{R_1}} & \onslide<4->{\smath{=}} 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   502
      & \onslide<4->{\smath{R_2; b \cdot b^\star+ \lambda;b^\star}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   503
  \onslide<4->{\smath{R_2}} & \onslide<4->{\smath{=}}    
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   504
      & \onslide<4->{\smath{R_1; a\cdot a^\star}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   505
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   506
  & & & \onslide<5->{by substitution}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   507
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   508
  \onslide<5->{\smath{R_1}} & \onslide<5->{\smath{=}} 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   509
      & \onslide<5->{\smath{R_1; a\cdot a^\star \cdot b \cdot b^\star+ \lambda;b^\star}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   510
  \onslide<5->{\smath{R_2}} & \onslide<5->{\smath{=}}    
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   511
      & \onslide<5->{\smath{R_1; a\cdot a^\star}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   512
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   513
  & & & \onslide<6->{by Arden}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   514
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   515
  \onslide<6->{\smath{R_1}} & \onslide<6->{\smath{=}} 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   516
      & \onslide<6->{\smath{\lambda;b^\star\cdot (a\cdot a^\star \cdot b \cdot b^\star)^\star}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   517
  \onslide<6->{\smath{R_2}} & \onslide<6->{\smath{=}}    
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   518
      & \onslide<6->{\smath{R_1; a\cdot a^\star}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   519
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   520
  & & & \onslide<7->{by substitution}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   521
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   522
  \onslide<7->{\smath{R_1}} & \onslide<7->{\smath{=}} 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   523
      & \onslide<7->{\smath{\lambda;b^\star\cdot (a\cdot a^\star \cdot b \cdot b^\star)^\star}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   524
  \onslide<7->{\smath{R_2}} & \onslide<7->{\smath{=}}    
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   525
      & \onslide<7->{\smath{\lambda; b^\star\cdot (a\cdot a^\star \cdot b \cdot b^\star)^\star 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   526
          \cdot a\cdot a^\star}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   527
  \end{tabular}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   528
  \end{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   529
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   530
  \end{frame}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   531
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   532
*}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   533
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   534
text_raw {*
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   535
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   536
  \mode<presentation>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   537
  \begin{frame}[c]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   538
  \frametitle{\LARGE A Variant of Arden's Lemma}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   539
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   540
  {\bf Arden's Lemma:}\smallskip 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   541
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   542
  If \smath{[] \not\in A} then
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   543
  \begin{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   544
  \smath{X = X; A + \text{something}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   545
  \end{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   546
  has the (unique) solution
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   547
  \begin{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   548
  \smath{X = \text{something} ; A^\star}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   549
  \end{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   550
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   551
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   552
  \end{frame}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   553
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   554
*}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   555
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   556
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   557
text_raw {*
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   558
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   559
  \mode<presentation>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   560
  \begin{frame}<1->[t]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   561
  \small
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   562
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   563
  \begin{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   564
  \begin{tabular}{l@ {\hspace{1mm}}c@ {\hspace{1mm}}ll}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   565
  \onslide<1->{\smath{R_1}} & \onslide<1->{\smath{=}} 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   566
      & \onslide<1->{\smath{R_1; b + R_2; b + \lambda;[]}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   567
  \onslide<1->{\smath{R_2}} & \onslide<1->{\smath{=}}    
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   568
      & \onslide<1->{\smath{R_1; a + R_2; a}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   569
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   570
  & & & \onslide<2->{by Arden}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   571
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   572
  \onslide<2->{\smath{R_1}} & \onslide<2->{\smath{=}} 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   573
      & \onslide<2->{\smath{R_1; b + R_2; b + \lambda;[]}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   574
  \onslide<2->{\smath{R_2}} & \onslide<2->{\smath{=}}    
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   575
      & \only<2>{\smath{R_1; a + R_2; a}}%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   576
        \only<3->{\smath{R_1; a\cdot a^\star}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   577
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   578
  & & & \onslide<4->{by Arden}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   579
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   580
  \onslide<4->{\smath{R_1}} & \onslide<4->{\smath{=}} 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   581
      & \onslide<4->{\smath{R_2; b \cdot b^\star+ \lambda;b^\star}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   582
  \onslide<4->{\smath{R_2}} & \onslide<4->{\smath{=}}    
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   583
      & \onslide<4->{\smath{R_1; a\cdot a^\star}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   584
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   585
  & & & \onslide<5->{by substitution}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   586
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   587
  \onslide<5->{\smath{R_1}} & \onslide<5->{\smath{=}} 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   588
      & \onslide<5->{\smath{R_1; a\cdot a^\star \cdot b \cdot b^\star+ \lambda;b^\star}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   589
  \onslide<5->{\smath{R_2}} & \onslide<5->{\smath{=}}    
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   590
      & \onslide<5->{\smath{R_1; a\cdot a^\star}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   591
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   592
  & & & \onslide<6->{by Arden}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   593
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   594
  \onslide<6->{\smath{R_1}} & \onslide<6->{\smath{=}} 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   595
      & \onslide<6->{\smath{\lambda;b^\star\cdot (a\cdot a^\star \cdot b \cdot b^\star)^\star}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   596
  \onslide<6->{\smath{R_2}} & \onslide<6->{\smath{=}}    
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   597
      & \onslide<6->{\smath{R_1; a\cdot a^\star}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   598
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   599
  & & & \onslide<7->{by substitution}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   600
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   601
  \onslide<7->{\smath{R_1}} & \onslide<7->{\smath{=}} 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   602
      & \onslide<7->{\smath{\lambda;b^\star\cdot (a\cdot a^\star \cdot b \cdot b^\star)^\star}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   603
  \onslide<7->{\smath{R_2}} & \onslide<7->{\smath{=}}    
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   604
      & \onslide<7->{\smath{\lambda; b^\star\cdot (a\cdot a^\star \cdot b \cdot b^\star)^\star 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   605
          \cdot a\cdot a^\star}}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   606
  \end{tabular}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   607
  \end{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   608
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   609
  \only<8->{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   610
  \begin{textblock}{6}(2.5,4)
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   611
  \begin{block}{}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   612
  \begin{minipage}{8cm}\raggedright
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   613
  
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   614
  \begin{tikzpicture}[shorten >=1pt,node distance=2cm,auto, ultra thick, inner sep=1mm]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   615
  \tikzstyle{state}=[circle,thick,draw=blue!75,fill=blue!20,minimum size=0mm]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   616
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   617
  %\draw[help lines] (0,0) grid (3,2);
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   618
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   619
  \node[state,initial]   (p_0)                  {$R_1$};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   620
  \node[state,accepting] (p_1) [right of=q_0]   {$R_2$};
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   621
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   622
  \path[->] (p_0) edge [bend left]   node        {a} (p_1)
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   623
                  edge [loop above]   node       {b} ()
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   624
            (p_1) edge [loop above]   node       {a} ()
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   625
                  edge [bend left]   node        {b} (p_0);
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   626
  \end{tikzpicture}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   627
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   628
  \end{minipage}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   629
  \end{block}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   630
  \end{textblock}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   631
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   632
  \end{frame}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   633
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   634
*}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   635
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   636
text_raw {*
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   637
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   638
  \mode<presentation>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   639
  \begin{frame}[c]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   640
  \frametitle{\LARGE The Equ's Solving Algorithm}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   641
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   642
  \begin{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   643
  \item The algorithm must terminate: Arden makes one equation smaller; 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   644
  substitution deletes one variable from the right-hand sides.\bigskip
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   645
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   646
  \item We need to maintain the invariant that Arden is applicable
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   647
  (if \smath{[] \not\in A} then \ldots):\medskip
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   648
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   649
  \begin{center}\small
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   650
  \begin{tabular}{l@ {\hspace{1mm}}c@ {\hspace{1mm}}ll}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   651
  \smath{R_1} & \smath{=} & \smath{R_1; b + R_2; b + \lambda;[]}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   652
  \smath{R_2} & \smath{=} & \smath{R_1; a + R_2; a}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   653
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   654
  & & & by Arden\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   655
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   656
  \smath{R_1} & \smath{=} & \smath{R_1; b + R_2; b + \lambda;[]}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   657
  \smath{R_2} & \smath{=} & \smath{R_1; a\cdot a^\star}\\
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   658
  \end{tabular}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   659
  \end{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   660
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   661
  \end{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   662
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   663
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   664
  \end{frame}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   665
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   666
*}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   667
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   668
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   669
text_raw {*
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   670
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   671
  \mode<presentation>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   672
  \begin{frame}[c]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   673
  \frametitle{\LARGE Other Direction}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   674
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   675
  One has to prove
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   676
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   677
  \begin{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   678
  \smath{\text{finite} (U\!N\!IV /\!/ \approx_{\mathbb{L}(r)})}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   679
  \end{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   680
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   681
  by induction on \smath{r}. Not trivial, but after a bit 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   682
  of thinking (by Chunhan), one can prove that if
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   683
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   684
  \begin{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   685
  \smath{\text{finite} (U\!N\!IV /\!/ \approx_{\mathbb{L}(r_1)})}\hspace{5mm}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   686
  \smath{\text{finite} (U\!N\!IV /\!/ \approx_{\mathbb{L}(r_2)})}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   687
  \end{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   688
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   689
  then
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   690
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   691
  \begin{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   692
  \smath{\text{finite} (U\!N\!IV /\!/ \approx_{\mathbb{L}(r_1) \,\cup\, \mathbb{L}(r_2)})}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   693
  \end{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   694
  
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   695
  
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   696
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   697
  \end{frame}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   698
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   699
*}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   700
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   701
text_raw {*
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   702
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   703
  \mode<presentation>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   704
  \begin{frame}[c]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   705
  \frametitle{\LARGE What Have We Achieved?}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   706
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   707
  \begin{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   708
  \item \smath{\text{finite}\, (U\!N\!IV /\!/ \approx_L) \;\Leftrightarrow\; L\; \text{is regular}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   709
  \bigskip\pause
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   710
  \item regular languages are closed under complementation; this is easy
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   711
  \begin{center}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   712
  \smath{U\!N\!IV /\!/ \approx_L \;\;=\;\; U\!N\!IV /\!/ \approx_{-L}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   713
  \end{center}\pause\bigskip
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   714
  
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   715
  \item if you want to do regular expression matching (see Scott's paper)\pause\bigskip
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   716
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   717
  \item I cannot yet give definite numbers
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   718
  \end{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   719
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   720
  \only<2>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   721
  \begin{textblock}{10}(4,14)
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   722
  \small
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   723
  \smath{x \approx_{L} y \,\dn\, \forall z.\; x @ z \in L \Leftrightarrow y @ z \in L}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   724
  \end{textblock}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   725
  }
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   726
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   727
  
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   728
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   729
  \end{frame}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   730
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   731
*}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   732
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   733
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   734
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   735
text_raw {*
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   736
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   737
  \mode<presentation>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   738
  \begin{frame}[c]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   739
  \frametitle{\LARGE What We Have Not Achieved}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   740
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   741
  \begin{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   742
  \item regular expressions are not good if you look for a minimal
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   743
  one for a language (DFAs have this notion)\pause\bigskip
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   744
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   745
  \item Is there anything to be said about context free languages:\medskip
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   746
  
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   747
  \begin{quote}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   748
  A context free language is where every string can be recognised by
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   749
  a pushdown automaton.
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   750
  \end{quote}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   751
  \end{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   752
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   753
  \end{frame}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   754
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   755
*}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   756
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   757
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   758
text_raw {*
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   759
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   760
  \mode<presentation>{
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   761
  \begin{frame}[c]
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   762
  \frametitle{\LARGE Conclusion}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   763
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   764
  \begin{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   765
  \item on balance regular expression are superior 
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   766
  to DFAs, in my opinion\bigskip
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   767
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   768
  \item I cannot think of a reason to not teach regular languages
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   769
  to students this way (!?)\bigskip
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   770
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   771
  \item I have never ever seen a proof of Myhill-Nerode based on
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   772
  regular expressions\bigskip
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   773
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   774
  \item no application, but lots of fun\bigskip
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   775
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   776
  \item great source of examples
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   777
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   778
  \end{itemize}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   779
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   780
  \end{frame}}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   781
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   782
*}
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   783
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   784
(*<*)
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   785
end
e7edf55befc6 beginnig of the slides (not yet finished)
urbanc
parents:
diff changeset
   786
(*>*)