Slides/Slides7.thy
author Christian Urban <urbanc@in.tum.de>
Tue, 03 May 2011 13:25:02 +0100
changeset 2778 d7183105e304
parent 2772 c3ff26204d2a
child 2775 5f3387b7474f
permissions -rw-r--r--
deleted two functions from the API
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2772
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
(*<*)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
theory Slides7
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
imports "~~/src/HOL/Library/LaTeXsugar" "Main"
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
begin
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
declare [[show_question_marks = false]]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
notation (latex output)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
  set ("_") and
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
  Cons  ("_::/_" [66,65] 65) 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
(*>*)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
  \renewcommand{\slidecaption}{Hefei, 15.~April 2011}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
  \newcommand{\abst}[2]{#1.#2}% atom-abstraction
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
  \newcommand{\pair}[2]{\langle #1,#2\rangle} % pairing
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
  \newcommand{\susp}{{\boldsymbol{\cdot}}}% for suspensions
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
  \newcommand{\unit}{\langle\rangle}% unit
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
  \newcommand{\app}[2]{#1\,#2}% application
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
  \newcommand{\eqprob}{\mathrel{{\approx}?}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
  \newcommand{\freshprob}{\mathrel{\#?}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
  \newcommand{\redu}[1]{\stackrel{#1}{\Longrightarrow}}% reduction
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
  \newcommand{\id}{\varepsilon}% identity substitution
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
  
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    27
  \newcommand{\bl}[1]{\textcolor{blue}{#1}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    28
  \newcommand{\gr}[1]{\textcolor{gray}{#1}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    29
  \newcommand{\rd}[1]{\textcolor{red}{#1}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    30
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    31
  \newcommand{\ok}{\includegraphics[scale=0.07]{ok.png}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    32
  \newcommand{\notok}{\includegraphics[scale=0.07]{notok.png}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    33
  \newcommand{\largenotok}{\includegraphics[scale=1]{notok.png}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    34
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    35
  \renewcommand{\Huge}{\fontsize{61.92}{77}\selectfont}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    36
  \newcommand{\veryHuge}{\fontsize{74.3}{93}\selectfont}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    37
  \newcommand{\VeryHuge}{\fontsize{89.16}{112}\selectfont}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    38
  \newcommand{\VERYHuge}{\fontsize{107}{134}\selectfont}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    39
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    40
  \newcommand{\LL}{$\mathbb{L}\,$}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    41
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    42
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    43
  \pgfdeclareradialshading{smallbluesphere}{\pgfpoint{0.5mm}{0.5mm}}%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    44
  {rgb(0mm)=(0,0,0.9);
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    45
  rgb(0.9mm)=(0,0,0.7);
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    46
  rgb(1.3mm)=(0,0,0.5);
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    47
  rgb(1.4mm)=(1,1,1)}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    48
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    49
  \def\myitemi{\begin{pgfpicture}{-1ex}{-0.55ex}{1ex}{1ex}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    50
    \usebeamercolor[fg]{subitem projected}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    51
    {\pgftransformscale{0.8}\pgftext{\normalsize\pgfuseshading{bigsphere}}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    52
    \pgftext{%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    53
      \usebeamerfont*{subitem projected}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    54
  \end{pgfpicture}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    55
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    56
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    57
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    58
  \begin{frame}<1>[t]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    59
  \frametitle{%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    60
  \begin{tabular}{@ {\hspace{-3mm}}c@ {}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    61
  \\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    62
  \LARGE Verifying a Regular Expression\\[-1mm] 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    63
  \LARGE Matcher and Formal Language\\[-1mm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    64
  \LARGE Theory\\[5mm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    65
  \end{tabular}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    66
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    67
  Christian Urban\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    68
  \small Technical University of Munich, Germany
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    69
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    70
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    71
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    72
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    73
  \small joint work with Chunhan Wu and Xingyuan Zhang from the PLA
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    74
  University of Science and Technology in Nanjing
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    75
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    76
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    77
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    78
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    79
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    80
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    81
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    82
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    83
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    84
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    85
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    86
  \frametitle{This Talk: 3 Points}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    87
  \large
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    88
  \begin{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    89
  \item It is easy to make mistakes.\bigskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    90
  \item Theorem provers can prevent mistakes, {\bf if} the problem
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    91
  is formulated so that it is suitable for theorem provers.\bigskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    92
  \item This re-formulation can be done, even in domains where
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    93
  we do not expect it.
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    94
  \end{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    95
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    96
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    97
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    98
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    99
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   100
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   101
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   102
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   103
  \begin{frame}<1->[t]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   104
  \frametitle{Regular Expressions}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   105
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   106
  \begin{textblock}{6}(2,4)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   107
  \begin{tabular}{@ {}rrl}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   108
  \bl{r} & \bl{$::=$}  & \bl{$\varnothing$}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   109
         & \bl{$\mid$} & \bl{[]}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   110
         & \bl{$\mid$} & \bl{c}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   111
         & \bl{$\mid$} & \bl{r$_1$ + r$_2$}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   112
         & \bl{$\mid$} & \bl{r$_1$ $\cdot$ r$_2$}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   113
         & \bl{$\mid$} & \bl{r$^*$}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   114
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   115
  \end{textblock}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   116
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   117
  \begin{textblock}{6}(8,3.5)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   118
  \includegraphics[scale=0.35]{Screen1.png}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   119
  \end{textblock}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   120
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   121
  \begin{textblock}{6}(10.2,2.8)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   122
  \footnotesize Isabelle:
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   123
  \end{textblock}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   124
  
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   125
  \only<2>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   126
  \begin{textblock}{9}(3.6,11.8)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   127
  \bl{matches r s $\;\Longrightarrow\;$ true $\vee$ false}\\[3.5mm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   128
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   129
  \hspace{10mm}\begin{tikzpicture}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   130
  \coordinate (m1) at (0.4,1);
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   131
  \draw (0,0.3) node (m2) {\small\color{gray}rexp};
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   132
  \path[overlay, ->, line width = 0.5mm, shorten <=-1mm, draw = gray] (m2) edge (m1);
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   133
  
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   134
  \coordinate (s1) at (0.81,1);
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   135
  \draw (1.3,0.3) node (s2) {\small\color{gray} string};
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   136
  \path[overlay, ->, line width = 0.5mm, shorten <=-1mm, draw = gray] (s2) edge (s1);
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   137
  \end{tikzpicture}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   138
  \end{textblock}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   139
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   140
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   141
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   142
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   143
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   144
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   145
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   146
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   147
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   148
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   149
  \begin{frame}<1->[t]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   150
  \frametitle{Specification}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   151
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   152
  \small
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   153
  \begin{textblock}{6}(0,3.5)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   154
  \begin{tabular}{r@ {\hspace{0.5mm}}r@ {\hspace{1.5mm}}c@ {\hspace{1.5mm}}l}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   155
  \multicolumn{4}{c}{rexp $\Rightarrow$ set of strings}\bigskip\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   156
  &\bl{\LL ($\varnothing$)}   & \bl{$\dn$} & \bl{$\varnothing$}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   157
  &\bl{\LL ([])}              & \bl{$\dn$} & \bl{\{[]\}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   158
  &\bl{\LL (c)}               & \bl{$\dn$} & \bl{\{c\}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   159
  &\bl{\LL (r$_1$ + r$_2$)}   & \bl{$\dn$} & \bl{\LL (r$_1$) $\cup$ \LL (r$_2$)}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   160
  \rd{$\Rightarrow$} &\bl{\LL (r$_1$ $\cdot$ r$_2$)} & \bl{$\dn$} & \bl{\LL (r$_1$) ;; \LL (r$_2$)}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   161
  \rd{$\Rightarrow$} &\bl{\LL (r$^*$)}           & \bl{$\dn$} & \bl{(\LL (r))$^\star$}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   162
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   163
  \end{textblock}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   164
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   165
  \begin{textblock}{9}(7.3,3)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   166
  {\mbox{}\hspace{2cm}\footnotesize Isabelle:\smallskip}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   167
  \includegraphics[scale=0.325]{Screen3.png}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   168
  \end{textblock}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   169
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   170
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   171
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   172
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   173
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   174
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   175
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   176
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   177
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   178
  \begin{frame}<1->[t]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   179
  \frametitle{Version 1}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   180
  \small
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   181
  \mbox{}\\[-8mm]\mbox{}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   182
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   183
  \begin{center}\def\arraystretch{1.05}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   184
  \begin{tabular}{@ {\hspace{-5mm}}l@ {\hspace{2.5mm}}c@ {\hspace{2.5mm}}l@ {}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   185
  \bl{match [] []}                   & \bl{$=$} & \bl{true}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   186
  \bl{match [] (c::s)}               & \bl{$=$} & \bl{false}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   187
  \bl{match ($\varnothing$::rs) s}   & \bl{$=$} & \bl{false}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   188
  \bl{match ([]::rs) s}              & \bl{$=$} & \bl{match rs s}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   189
  \bl{match (c::rs) []}              & \bl{$=$} & \bl{false}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   190
  \bl{match (c::rs) (d::s)}          & \bl{$=$} & \bl{if c = d then match rs s else false}\\     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   191
  \bl{match (r$_1$ + r$_2$::rs) s} & \bl{$=$} & \bl{match (r$_1$::rs) s $\vee$ match (r$_2$::rs) s}\\ 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   192
  \bl{match (r$_1$ $\cdot$ r$_2$::rs) s} & \bl{$=$} & \bl{match (r$_1$::r$_2$::rs) s}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   193
  \bl{match (r$^*$::rs) s}          & \bl{$=$} & \bl{match rs s $\vee$ match (r::r$^*$::rs) s}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   194
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   195
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   196
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   197
  \begin{textblock}{9}(0.2,1.6)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   198
  \hspace{10mm}\begin{tikzpicture}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   199
  \coordinate (m1) at (0.44,-0.5);
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   200
  \draw (0,0.3) node (m2) {\small\color{gray}\mbox{}\hspace{-9mm}list of rexps};
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   201
  \path[overlay, ->, line width = 0.5mm, shorten <=-1mm, draw = gray] (m2) edge (m1);
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   202
  
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   203
  \coordinate (s1) at (0.86,-0.5);
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   204
  \draw (1.5,0.3) node (s2) {\small\color{gray} string};
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   205
  \path[overlay, ->, line width = 0.5mm, shorten <=-1mm, draw = gray] (s2) edge (s1);
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   206
  \end{tikzpicture}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   207
  \end{textblock}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   208
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   209
  \begin{textblock}{9}(2.8,11.8)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   210
  \bl{matches$_1$ r s $\;=\;$ match [r] s}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   211
  \end{textblock}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   212
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   213
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   214
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   215
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   216
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   217
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   218
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   219
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   220
  \begin{frame}<1->[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   221
  \frametitle{Testing}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   222
  
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   223
  \small
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   224
  Every good programmer should do thourough tests: 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   225
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   226
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   227
  \begin{tabular}{@ {\hspace{-20mm}}lcl}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   228
  \bl{matches$_1$ (a$\cdot$b)$^*\;$ []}     & \bl{$\mapsto$} & \bl{true}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   229
  \bl{matches$_1$ (a$\cdot$b)$^*\;$ ab}   & \bl{$\mapsto$} & \bl{true}\\ 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   230
  \bl{matches$_1$ (a$\cdot$b)$^*\;$ aba}  & \bl{$\mapsto$} & \bl{false}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   231
  \bl{matches$_1$ (a$\cdot$b)$^*\;$ abab} & \bl{$\mapsto$} & \bl{true}\\ 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   232
  \bl{matches$_1$ (a$\cdot$b)$^*\;$ abaa} & \bl{$\mapsto$} & \bl{false}\medskip\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   233
  \onslide<2->{\bl{matches$_1$ x$\cdot$(0$|$1)$^*\;$ x}   & \bl{$\mapsto$} & \bl{true}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   234
  \onslide<2->{\bl{matches$_1$ x$\cdot$(0$|$1)$^*\;$ x0}  & \bl{$\mapsto$} & \bl{true}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   235
  \onslide<2->{\bl{matches$_1$ x$\cdot$(0$|$1)$^*\;$ x3}  & \bl{$\mapsto$} & \bl{false}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   236
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   237
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   238
 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   239
  \onslide<3->
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   240
  {looks OK \ldots let's ship it to customers\hspace{5mm} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   241
   \raisebox{-5mm}{\includegraphics[scale=0.05]{sun.png}}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   242
  
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   243
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   244
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   245
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   246
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   247
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   248
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   249
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   250
  \begin{frame}<1->[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   251
  \frametitle{Version 1}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   252
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   253
  \only<1->{Several hours later\ldots}\pause
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   254
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   255
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   256
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   257
  \begin{tabular}{@ {\hspace{0mm}}lcl}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   258
  \bl{matches$_1$ []$^*$ s}     & \bl{$\mapsto$} & loops\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   259
  \onslide<4->{\bl{matches$_1$ ([] + \ldots)$^*$ s}   & \bl{$\mapsto$} & loops\\} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   260
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   261
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   262
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   263
  \small
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   264
  \onslide<3->{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   265
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   266
  \begin{tabular}{@ {}l@ {\hspace{2mm}}c@ {\hspace{2mm}}l@ {}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   267
  \ldots\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   268
  \bl{match ([]::rs) s}           & \bl{$=$} & \bl{match rs s}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   269
  \ldots\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   270
  \bl{match (r$^*$::rs) s}        & \bl{$=$} & \bl{match rs s $\vee$ match (r::r$^*$::rs) s}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   271
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   272
  \end{center}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   273
  
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   274
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   275
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   276
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   277
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   278
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   279
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   280
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   281
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   282
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   283
  \begin{frame}<1->[t]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   284
  \frametitle{Testing}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   285
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   286
  \begin{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   287
  \item While testing is an important part in the process of programming development\pause\ldots
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   288
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   289
  \item we can only test a {\bf finite} amount of examples.\bigskip\pause
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   290
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   291
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   292
  \colorbox{cream}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   293
  {\gr{\begin{minipage}{10cm}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   294
  ``Testing can only show the presence of errors, never their
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   295
  absence.'' (Edsger W.~Dijkstra)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   296
  \end{minipage}}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   297
  \end{center}\bigskip\pause
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   298
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   299
  \item In a theorem prover we can establish properties that apply to 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   300
  {\bf all} input and {\bf all} output. 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   301
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   302
  \end{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   303
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   304
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   305
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   306
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   307
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   308
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   309
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   310
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   311
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   312
  \begin{frame}<1->[t]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   313
  \frametitle{Version 2}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   314
  \mbox{}\\[-14mm]\mbox{}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   315
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   316
  \small
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   317
  \begin{tabular}{@ {}l@ {\hspace{2mm}}c@ {\hspace{2mm}}ll@ {}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   318
  \bl{nullable ($\varnothing$)}   & \bl{$=$} & \bl{false} &\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   319
  \bl{nullable ([])}              & \bl{$=$} & \bl{true}  &\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   320
  \bl{nullable (c)}               & \bl{$=$} & \bl{false} &\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   321
  \bl{nullable (r$_1$ + r$_2$)}   & \bl{$=$} & \bl{nullable r$_1$ $\vee$ nullable r$_2$} & \\ 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   322
  \bl{nullable (r$_1$ $\cdot$ r$_2$)} & \bl{$=$} & \bl{nullable r$_1$ $\wedge$ nullable r$_2$} & \\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   323
  \bl{nullable (r$^*$)}           & \bl{$=$} & \bl{true} & \\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   324
  \end{tabular}\medskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   325
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   326
  \begin{tabular}{@ {}l@ {\hspace{2mm}}c@ {\hspace{2mm}}l@ {\hspace{-10mm}}l@ {}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   327
  \bl{der c ($\varnothing$)}       & \bl{$=$} & \bl{$\varnothing$} & \\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   328
  \bl{der c ([])}                  & \bl{$=$} & \bl{$\varnothing$} & \\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   329
  \bl{der c (d)}                   & \bl{$=$} & \bl{if c = d then [] else $\varnothing$} & \\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   330
  \bl{der c (r$_1$ + r$_2$)}       & \bl{$=$} & \bl{(der c r$_1$) + (der c r$_2$)} & \\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   331
  \bl{der c (r$_1$ $\cdot$ r$_2$)} & \bl{$=$} & \bl{((der c r$_1$) $\cdot$ r$_2$)} & \\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   332
       &          & \bl{\;\;+ (if nullable r$_1$ then der c r$_2$ else $\varnothing$)}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   333
  \bl{der c (r$^*$)}          & \bl{$=$} & \bl{(der c r) $\cdot$ r$^*$} &\smallskip\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   334
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   335
  \bl{derivative r []}     & \bl{$=$} & \bl{r} & \\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   336
  \bl{derivative r (c::s)} & \bl{$=$} & \bl{derivative (der c r) s} & \\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   337
  \end{tabular}\medskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   338
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   339
  \bl{matches$_2$ r s $=$ nullable (derivative r s)}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   340
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   341
  \begin{textblock}{6}(9.5,0.9)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   342
  \begin{flushright}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   343
  \color{gray}``if r matches []'' 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   344
  \end{flushright}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   345
  \end{textblock}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   346
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   347
  \begin{textblock}{6}(9.5,6.18)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   348
  \begin{flushright}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   349
  \color{gray}``derivative w.r.t.~a char'' 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   350
  \end{flushright}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   351
  \end{textblock}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   352
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   353
  \begin{textblock}{6}(9.5,12.1)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   354
  \begin{flushright}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   355
  \color{gray}``deriv.~w.r.t.~a string'' 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   356
  \end{flushright}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   357
  \end{textblock}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   358
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   359
  \begin{textblock}{6}(9.5,13.98)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   360
  \begin{flushright}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   361
  \color{gray}``main'' 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   362
  \end{flushright}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   363
  \end{textblock}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   364
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   365
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   366
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   367
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   368
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   369
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   370
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   371
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   372
  \begin{frame}<1->[t]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   373
  \frametitle{Is the Matcher Error-Free?}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   374
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   375
  We expect that
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   376
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   377
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   378
  \begin{tabular}{lcl}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   379
  \bl{matches$_2$ r s = true}  & \only<1>{\rd{$\Longrightarrow\,\,$}}\only<2>{\rd{$\Longleftarrow\,\,$}}% 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   380
  \only<3->{\rd{$\Longleftrightarrow$}} & \bl{s $\in$ \LL(r)}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   381
  \bl{matches$_2$ r s = false} & \only<1>{\rd{$\Longrightarrow\,\,$}}\only<2>{\rd{$\Longleftarrow\,\,$}}%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   382
  \only<3->{\rd{$\Longleftrightarrow$}} & \bl{s $\notin$ \LL(r)}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   383
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   384
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   385
  \pause\pause\bigskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   386
  ??? By \alert<4->{induction}, we can {\bf prove} these properties.\bigskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   387
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   388
  \begin{tabular}{lrcl}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   389
  Lemmas:  & \bl{nullable (r)}          & \bl{$\Longleftrightarrow$} & \bl{[] $\in$ \LL (r)}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   390
           & \bl{s $\in$ \LL (der c r)} & \bl{$\Longleftrightarrow$} & \bl{(c::s) $\in$ \LL (r)}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   391
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   392
  
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   393
  \only<4->{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   394
  \begin{textblock}{3}(0.9,4.5)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   395
  \rd{\huge$\forall$\large{}r s.}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   396
  \end{textblock}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   397
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   398
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   399
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   400
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   401
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   402
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   403
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   404
  \begin{frame}<1>[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   405
  \frametitle{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   406
  \begin{tabular}{c}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   407
  \mbox{}\\[23mm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   408
  \LARGE Demo
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   409
  \end{tabular}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   410
  
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   411
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   412
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   413
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   414
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   415
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   416
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   417
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   418
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   419
  \begin{frame}<1->[t]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   420
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   421
  \mbox{}\\[-2mm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   422
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   423
  \small
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   424
  \begin{tabular}{@ {}l@ {\hspace{2mm}}c@ {\hspace{2mm}}ll@ {}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   425
  \bl{nullable (NULL)}            & \bl{$=$} & \bl{false} &\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   426
  \bl{nullable (EMPTY)}           & \bl{$=$} & \bl{true}  &\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   427
  \bl{nullable (CHR c)}           & \bl{$=$} & \bl{false} &\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   428
  \bl{nullable (ALT r$_1$ r$_2$)} & \bl{$=$} & \bl{(nullable r$_1$) orelse (nullable r$_2$)} & \\ 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   429
  \bl{nullable (SEQ r$_1$ r$_2$)} & \bl{$=$} & \bl{(nullable r$_1$) andalso (nullable r$_2$)} & \\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   430
  \bl{nullable (STAR r)}          & \bl{$=$} & \bl{true} & \\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   431
  \end{tabular}\medskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   432
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   433
  \begin{tabular}{@ {}l@ {\hspace{2mm}}c@ {\hspace{2mm}}l@ {\hspace{-10mm}}l@ {}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   434
  \bl{der c (NULL)}            & \bl{$=$} & \bl{NULL} & \\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   435
  \bl{der c (EMPTY)}           & \bl{$=$} & \bl{NULL} & \\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   436
  \bl{der c (CHR d)}           & \bl{$=$} & \bl{if c=d then EMPTY else NULL} & \\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   437
  \bl{der c (ALT r$_1$ r$_2$)} & \bl{$=$} & \bl{ALT (der c r$_1$) (der c r$_2$)} & \\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   438
  \bl{der c (SEQ r$_1$ r$_2$)} & \bl{$=$} & \bl{ALT (SEQ (der c r$_1$) r$_2$)} & \\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   439
       &          & \bl{\phantom{ALT} (if nullable r$_1$ then der c r$_2$ else NULL)}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   440
  \bl{der c (STAR r)}          & \bl{$=$} & \bl{SEQ (der c r) (STAR r)} &\smallskip\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   441
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   442
  \bl{derivative r []}     & \bl{$=$} & \bl{r} & \\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   443
  \bl{derivative r (c::s)} & \bl{$=$} & \bl{derivative (der c r) s} & \\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   444
  \end{tabular}\medskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   445
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   446
  \bl{matches r s $=$ nullable (derivative r s)}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   447
  
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   448
  \only<2>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   449
  \begin{textblock}{8}(1.5,4)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   450
  \includegraphics[scale=0.3]{approved.png}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   451
  \end{textblock}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   452
  
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   453
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   454
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   455
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   456
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   457
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   458
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   459
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   460
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   461
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   462
  \frametitle{No Automata?}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   463
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   464
  You might be wondering why I did not use any automata?
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   465
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   466
  \begin{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   467
  \item {\bf Def.:} A \alert{regular language} is one where there is a DFA that 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   468
  recognises it.\bigskip\pause
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   469
  \end{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   470
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   471
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   472
  There are many reasons why this is a good definition:\medskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   473
  \begin{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   474
  \item pumping lemma
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   475
  \item closure properties of regular languages\\ (e.g.~closure under complement)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   476
  \end{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   477
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   478
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   479
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   480
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   481
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   482
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   483
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   484
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   485
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   486
  \begin{frame}[t]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   487
  \frametitle{Really Bad News!}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   488
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   489
  DFAs are bad news for formalisations in theorem provers. They might
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   490
  be represented as:
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   491
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   492
  \begin{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   493
  \item graphs
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   494
  \item matrices
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   495
  \item partial functions
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   496
  \end{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   497
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   498
  All constructions are messy to reason about.\bigskip\bigskip 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   499
  \pause
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   500
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   501
  \small
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   502
  \only<2>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   503
  Constable et al needed (on and off) 18 months for a 3-person team 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   504
  to formalise automata theory in Nuprl including Myhill-Nerode. There is 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   505
  only very little other formalised work on regular languages I know of
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   506
  in Coq, Isabelle and HOL.}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   507
  \only<3>{Typical textbook reasoning goes like: ``\ldots if \smath{M} and \smath{N} are any two
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   508
  automata with no inaccessible states \ldots''
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   509
  }
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   510
  
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   511
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   512
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   513
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   514
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   515
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   516
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   517
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   518
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   519
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   520
  \frametitle{}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   521
  \large
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   522
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   523
  \begin{tabular}{p{9cm}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   524
  My point:\bigskip\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   525
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   526
  The theory about regular languages can be reformulated 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   527
  to be more suitable for theorem proving.
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   528
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   529
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   530
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   531
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   532
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   533
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   534
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   535
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   536
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   537
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   538
  \frametitle{\LARGE The Myhill-Nerode Theorem}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   539
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   540
  \begin{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   541
  \item provides necessary and suf\!ficient conditions for a language 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   542
  being regular (pumping lemma only necessary)\medskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   543
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   544
  \item will help with closure properties of regular languages\bigskip\pause
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   545
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   546
  \item key is the equivalence relation:\smallskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   547
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   548
  \smath{x \approx_{L} y \,\dn\, \forall z.\; x @ z \in L \Leftrightarrow y @ z \in L}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   549
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   550
  \end{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   551
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   552
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   553
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   554
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   555
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   556
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   557
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   558
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   559
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   560
  \frametitle{\LARGE The Myhill-Nerode Theorem}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   561
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   562
  \mbox{}\\[5cm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   563
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   564
  \begin{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   565
  \item \smath{\text{finite}\, (U\!N\!IV /\!/ \approx_L) \;\Leftrightarrow\; L\; \text{is regular}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   566
  \end{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   567
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   568
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   569
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   570
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   571
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   572
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   573
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   574
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   575
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   576
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   577
  \frametitle{\LARGE Equivalence Classes}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   578
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   579
  \begin{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   580
  \item \smath{L = []}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   581
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   582
  \smath{\Big\{\{[]\},\; U\!N\!IV - \{[]\}\Big\}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   583
  \end{center}\bigskip\bigskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   584
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   585
  \item \smath{L = [c]}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   586
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   587
  \smath{\Big\{\{[]\},\; \{[c]\},\; U\!N\!IV - \{[], [c]\}\Big\}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   588
  \end{center}\bigskip\bigskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   589
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   590
  \item \smath{L = \varnothing}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   591
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   592
  \smath{\Big\{U\!N\!IV\Big\}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   593
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   594
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   595
  \end{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   596
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   597
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   598
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   599
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   600
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   601
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   602
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   603
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   604
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   605
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   606
  \frametitle{\LARGE Regular Languages}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   607
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   608
  \begin{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   609
  \item \smath{L} is regular \smath{\dn} if there is an automaton \smath{M} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   610
  such that \smath{\mathbb{L}(M) = L}\\[1.5cm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   611
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   612
  \item Myhill-Nerode:
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   613
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   614
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   615
  \begin{tabular}{l}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   616
  finite $\Rightarrow$ regular\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   617
  \;\;\;\smath{\text{finite}\,(U\!N\!IV /\!/ \approx_L) \Rightarrow \exists r. L = \mathbb{L}(r)}\\[3mm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   618
  regular $\Rightarrow$ finite\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   619
  \;\;\;\smath{\text{finite}\, (U\!N\!IV /\!/ \approx_{\mathbb{L}(r)})}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   620
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   621
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   622
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   623
  \end{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   624
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   625
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   626
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   627
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   628
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   629
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   630
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   631
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   632
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   633
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   634
  \frametitle{\LARGE Final States}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   635
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   636
  \mbox{}\\[3cm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   637
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   638
  \begin{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   639
  \item ??? \smath{\text{final}_L\,X \dn \{[|s|]_\approx\;|\; s \in X\}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   640
  \medskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   641
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   642
  \item we can prove: \smath{L = \bigcup \{X\;|\;\text{final}_L\,X\}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   643
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   644
  \end{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   645
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   646
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   647
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   648
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   649
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   650
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   651
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   652
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   653
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   654
  \frametitle{\LARGE Transitions between\\[-3mm] Equivalence Classes}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   655
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   656
  \smath{L = \{[c]\}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   657
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   658
  \begin{tabular}{@ {\hspace{-7mm}}cc}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   659
  \begin{tabular}{c}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   660
  \begin{tikzpicture}[shorten >=1pt,node distance=2cm,auto, ultra thick]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   661
  \tikzstyle{state}=[circle,thick,draw=blue!75,fill=blue!20,minimum size=0mm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   662
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   663
  %\draw[help lines] (0,0) grid (3,2);
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   664
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   665
  \node[state,initial]   (q_0)                        {$R_1$};
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   666
  \node[state,accepting] (q_1) [above right of=q_0]   {$R_2$};
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   667
  \node[state]           (q_2) [below right of=q_0]   {$R_3$};
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   668
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   669
  \path[->] (q_0) edge                node        {c} (q_1)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   670
                  edge                node [swap] {$\Sigma-{c}$} (q_2)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   671
            (q_2) edge [loop below]   node        {$\Sigma$} ()
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   672
            (q_1) edge                node        {$\Sigma$} (q_2);
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   673
  \end{tikzpicture}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   674
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   675
  &
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   676
  \begin{tabular}[t]{ll}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   677
  \\[-20mm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   678
  \multicolumn{2}{l}{\smath{U\!N\!IV /\!/\approx_L} produces}\\[4mm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   679
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   680
  \smath{R_1}: & \smath{\{[]\}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   681
  \smath{R_2}: & \smath{\{[c]\}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   682
  \smath{R_3}: & \smath{U\!N\!IV - \{[], [c]\}}\\[6mm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   683
  \multicolumn{2}{l}{\onslide<2->{\smath{X \stackrel{c}{\longrightarrow} Y \dn X ;; [c] \subseteq Y}}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   684
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   685
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   686
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   687
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   688
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   689
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   690
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   691
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   692
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   693
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   694
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   695
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   696
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   697
  \frametitle{\LARGE Systems of Equations}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   698
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   699
  Inspired by a method of Brzozowski\;'64, we can build an equational system
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   700
  characterising the equivalence classes:
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   701
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   702
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   703
  \begin{tabular}{@ {\hspace{-20mm}}c}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   704
  \\[-13mm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   705
  \begin{tikzpicture}[shorten >=1pt,node distance=2cm,auto, ultra thick]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   706
  \tikzstyle{state}=[circle,thick,draw=blue!75,fill=blue!20,minimum size=0mm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   707
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   708
  %\draw[help lines] (0,0) grid (3,2);
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   709
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   710
  \node[state,initial]   (p_0)                  {$R_1$};
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   711
  \node[state,accepting] (p_1) [right of=q_0]   {$R_2$};
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   712
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   713
  \path[->] (p_0) edge [bend left]   node        {a} (p_1)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   714
                  edge [loop above]   node       {b} ()
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   715
            (p_1) edge [loop above]   node       {a} ()
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   716
                  edge [bend left]   node        {b} (p_0);
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   717
  \end{tikzpicture}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   718
  \\[-13mm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   719
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   720
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   721
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   722
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   723
  \begin{tabular}{@ {\hspace{-6mm}}ll@ {\hspace{1mm}}c@ {\hspace{1mm}}l}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   724
  & \smath{R_1} & \smath{\equiv} & \smath{R_1;b + R_2;b \onslide<2->{\alert<2>{+ \lambda;[]}}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   725
  & \smath{R_2} & \smath{\equiv} & \smath{R_1;a + R_2;a}\medskip\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   726
  \onslide<3->{we can prove} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   727
  & \onslide<3->{\smath{R_1}} & \onslide<3->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   728
      & \onslide<3->{\smath{R_1; \mathbb{L}(b) \,\cup\, R_2;\mathbb{L}(b) \,\cup\, \{[]\};\{[]\}}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   729
  & \onslide<3->{\smath{R_2}} & \onslide<3->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   730
      & \onslide<3->{\smath{R_1; \mathbb{L}(a) \,\cup\, R_2;\mathbb{L}(a)}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   731
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   732
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   733
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   734
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   735
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   736
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   737
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   738
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   739
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   740
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   741
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   742
  \begin{frame}<1>[t]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   743
  \small
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   744
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   745
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   746
  \begin{tabular}{l@ {\hspace{1mm}}c@ {\hspace{1mm}}ll}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   747
  \onslide<1->{\smath{R_1}} & \onslide<1->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   748
      & \onslide<1->{\smath{R_1; b + R_2; b + \lambda;[]}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   749
  \onslide<1->{\smath{R_2}} & \onslide<1->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   750
      & \onslide<1->{\smath{R_1; a + R_2; a}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   751
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   752
  & & & \onslide<2->{by Arden}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   753
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   754
  \onslide<2->{\smath{R_1}} & \onslide<2->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   755
      & \onslide<2->{\smath{R_1; b + R_2; b + \lambda;[]}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   756
  \onslide<2->{\smath{R_2}} & \onslide<2->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   757
      & \only<2>{\smath{R_1; a + R_2; a}}%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   758
        \only<3->{\smath{R_1; a\cdot a^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   759
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   760
  & & & \onslide<4->{by Arden}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   761
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   762
  \onslide<4->{\smath{R_1}} & \onslide<4->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   763
      & \onslide<4->{\smath{R_2; b \cdot b^\star+ \lambda;b^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   764
  \onslide<4->{\smath{R_2}} & \onslide<4->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   765
      & \onslide<4->{\smath{R_1; a\cdot a^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   766
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   767
  & & & \onslide<5->{by substitution}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   768
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   769
  \onslide<5->{\smath{R_1}} & \onslide<5->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   770
      & \onslide<5->{\smath{R_1; a\cdot a^\star \cdot b \cdot b^\star+ \lambda;b^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   771
  \onslide<5->{\smath{R_2}} & \onslide<5->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   772
      & \onslide<5->{\smath{R_1; a\cdot a^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   773
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   774
  & & & \onslide<6->{by Arden}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   775
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   776
  \onslide<6->{\smath{R_1}} & \onslide<6->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   777
      & \onslide<6->{\smath{\lambda;b^\star\cdot (a\cdot a^\star \cdot b \cdot b^\star)^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   778
  \onslide<6->{\smath{R_2}} & \onslide<6->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   779
      & \onslide<6->{\smath{R_1; a\cdot a^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   780
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   781
  & & & \onslide<7->{by substitution}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   782
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   783
  \onslide<7->{\smath{R_1}} & \onslide<7->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   784
      & \onslide<7->{\smath{\lambda;b^\star\cdot (a\cdot a^\star \cdot b \cdot b^\star)^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   785
  \onslide<7->{\smath{R_2}} & \onslide<7->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   786
      & \onslide<7->{\smath{\lambda; b^\star\cdot (a\cdot a^\star \cdot b \cdot b^\star)^\star 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   787
          \cdot a\cdot a^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   788
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   789
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   790
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   791
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   792
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   793
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   794
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   795
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   796
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   797
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   798
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   799
  \frametitle{\LARGE A Variant of Arden's Lemma}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   800
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   801
  {\bf Arden's Lemma:}\smallskip 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   802
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   803
  If \smath{[] \not\in A} then
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   804
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   805
  \smath{X = X; A + \text{something}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   806
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   807
  has the (unique) solution
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   808
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   809
  \smath{X = \text{something} ; A^\star}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   810
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   811
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   812
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   813
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   814
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   815
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   816
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   817
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   818
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   819
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   820
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   821
  \begin{frame}<1->[t]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   822
  \small
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   823
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   824
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   825
  \begin{tabular}{l@ {\hspace{1mm}}c@ {\hspace{1mm}}ll}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   826
  \onslide<1->{\smath{R_1}} & \onslide<1->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   827
      & \onslide<1->{\smath{R_1; b + R_2; b + \lambda;[]}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   828
  \onslide<1->{\smath{R_2}} & \onslide<1->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   829
      & \onslide<1->{\smath{R_1; a + R_2; a}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   830
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   831
  & & & \onslide<2->{by Arden}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   832
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   833
  \onslide<2->{\smath{R_1}} & \onslide<2->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   834
      & \onslide<2->{\smath{R_1; b + R_2; b + \lambda;[]}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   835
  \onslide<2->{\smath{R_2}} & \onslide<2->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   836
      & \only<2>{\smath{R_1; a + R_2; a}}%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   837
        \only<3->{\smath{R_1; a\cdot a^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   838
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   839
  & & & \onslide<4->{by Arden}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   840
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   841
  \onslide<4->{\smath{R_1}} & \onslide<4->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   842
      & \onslide<4->{\smath{R_2; b \cdot b^\star+ \lambda;b^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   843
  \onslide<4->{\smath{R_2}} & \onslide<4->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   844
      & \onslide<4->{\smath{R_1; a\cdot a^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   845
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   846
  & & & \onslide<5->{by substitution}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   847
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   848
  \onslide<5->{\smath{R_1}} & \onslide<5->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   849
      & \onslide<5->{\smath{R_1; a\cdot a^\star \cdot b \cdot b^\star+ \lambda;b^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   850
  \onslide<5->{\smath{R_2}} & \onslide<5->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   851
      & \onslide<5->{\smath{R_1; a\cdot a^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   852
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   853
  & & & \onslide<6->{by Arden}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   854
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   855
  \onslide<6->{\smath{R_1}} & \onslide<6->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   856
      & \onslide<6->{\smath{\lambda;b^\star\cdot (a\cdot a^\star \cdot b \cdot b^\star)^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   857
  \onslide<6->{\smath{R_2}} & \onslide<6->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   858
      & \onslide<6->{\smath{R_1; a\cdot a^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   859
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   860
  & & & \onslide<7->{by substitution}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   861
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   862
  \onslide<7->{\smath{R_1}} & \onslide<7->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   863
      & \onslide<7->{\smath{\lambda;b^\star\cdot (a\cdot a^\star \cdot b \cdot b^\star)^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   864
  \onslide<7->{\smath{R_2}} & \onslide<7->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   865
      & \onslide<7->{\smath{\lambda; b^\star\cdot (a\cdot a^\star \cdot b \cdot b^\star)^\star 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   866
          \cdot a\cdot a^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   867
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   868
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   869
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   870
  \only<8->{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   871
  \begin{textblock}{6}(2.5,4)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   872
  \begin{block}{}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   873
  \begin{minipage}{8cm}\raggedright
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   874
  
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   875
  \begin{tikzpicture}[shorten >=1pt,node distance=2cm,auto, ultra thick, inner sep=1mm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   876
  \tikzstyle{state}=[circle,thick,draw=blue!75,fill=blue!20,minimum size=0mm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   877
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   878
  %\draw[help lines] (0,0) grid (3,2);
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   879
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   880
  \node[state,initial]   (p_0)                  {$R_1$};
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   881
  \node[state,accepting] (p_1) [right of=q_0]   {$R_2$};
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   882
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   883
  \path[->] (p_0) edge [bend left]   node        {a} (p_1)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   884
                  edge [loop above]   node       {b} ()
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   885
            (p_1) edge [loop above]   node       {a} ()
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   886
                  edge [bend left]   node        {b} (p_0);
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   887
  \end{tikzpicture}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   888
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   889
  \end{minipage}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   890
  \end{block}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   891
  \end{textblock}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   892
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   893
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   894
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   895
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   896
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   897
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   898
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   899
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   900
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   901
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   902
  \frametitle{\LARGE The Equ's Solving Algorithm}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   903
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   904
  \begin{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   905
  \item The algorithm must terminate: Arden makes one equation smaller; 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   906
  substitution deletes one variable from the right-hand sides.\bigskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   907
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   908
  \item We need to maintain the invariant that Arden is applicable
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   909
  (if \smath{[] \not\in A} then \ldots):\medskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   910
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   911
  \begin{center}\small
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   912
  \begin{tabular}{l@ {\hspace{1mm}}c@ {\hspace{1mm}}ll}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   913
  \smath{R_1} & \smath{=} & \smath{R_1; b + R_2; b + \lambda;[]}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   914
  \smath{R_2} & \smath{=} & \smath{R_1; a + R_2; a}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   915
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   916
  & & & by Arden\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   917
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   918
  \smath{R_1} & \smath{=} & \smath{R_1; b + R_2; b + \lambda;[]}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   919
  \smath{R_2} & \smath{=} & \smath{R_1; a\cdot a^\star}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   920
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   921
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   922
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   923
  \end{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   924
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   925
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   926
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   927
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   928
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   929
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   930
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   931
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   932
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   933
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   934
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   935
  \frametitle{\LARGE Other Direction}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   936
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   937
  One has to prove
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   938
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   939
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   940
  \smath{\text{finite} (U\!N\!IV /\!/ \approx_{\mathbb{L}(r)})}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   941
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   942
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   943
  by induction on \smath{r}. Not trivial, but after a bit 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   944
  of thinking, one can prove that if
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   945
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   946
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   947
  \smath{\text{finite} (U\!N\!IV /\!/ \approx_{\mathbb{L}(r_1)})}\hspace{5mm}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   948
  \smath{\text{finite} (U\!N\!IV /\!/ \approx_{\mathbb{L}(r_2)})}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   949
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   950
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   951
  then
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   952
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   953
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   954
  \smath{\text{finite} (U\!N\!IV /\!/ \approx_{\mathbb{L}(r_1) \,\cup\, \mathbb{L}(r_2)})}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   955
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   956
  
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   957
  
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   958
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   959
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   960
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   961
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   962
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   963
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   964
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   965
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   966
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   967
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   968
  \frametitle{\LARGE What Have We Achieved?}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   969
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   970
  \begin{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   971
  \item \smath{\text{finite}\, (U\!N\!IV /\!/ \approx_L) \;\Leftrightarrow\; L\; \text{is regular}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   972
  \bigskip\pause
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   973
  \item regular languages are closed under complementation; this is now easy\medskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   974
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   975
  \smath{U\!N\!IV /\!/ \approx_L \;\;=\;\; U\!N\!IV /\!/ \approx_{-L}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   976
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   977
  \end{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   978
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   979
  
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   980
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   981
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   982
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   983
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   984
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   985
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   986
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   987
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   988
  \frametitle{\LARGE Examples}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   989
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   990
  \begin{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   991
  \item \smath{L \equiv \Sigma^\star 0 \Sigma} is regular
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   992
  \begin{quote}\small
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   993
  \begin{tabular}{lcl}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   994
  \smath{A_1} & \smath{=} & \smath{\Sigma^\star 00}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   995
  \smath{A_2} & \smath{=} & \smath{\Sigma^\star 01}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   996
  \smath{A_3} & \smath{=} & \smath{\Sigma^\star 10 \cup \{0\}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   997
  \smath{A_4} & \smath{=} & \smath{\Sigma^\star 11 \cup \{1\} \cup \{[]\}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   998
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   999
  \end{quote}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1000
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1001
  \item \smath{L \equiv \{ 0^n 1^n \,|\, n \ge 0\}} is not regular
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1002
  \begin{quote}\small
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1003
  \begin{tabular}{lcl}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1004
  \smath{B_0} & \smath{=} & \smath{\{0^n 1^n \,|\,     n \ge 0\}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1005
  \smath{B_1} & \smath{=} & \smath{\{0^n 1^{(n-1)} \,|\, n \ge 1\}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1006
  \smath{B_2} & \smath{=} & \smath{\{0^n 1^{(n-2)} \,|\, n \ge 2\}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1007
  \smath{B_3} & \smath{=} & \smath{\{0^n 1^{(n-3)} \,|\, n \ge 3\}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1008
              & \smath{\vdots} &\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1009
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1010
  \end{quote}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1011
  \end{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1012
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1013
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1014
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1015
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1016
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1017
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1018
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1019
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1020
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1021
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1022
  \frametitle{\LARGE What We Have Not Achieved}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1023
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1024
  \begin{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1025
  \item regular expressions are not good if you look for a minimal
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1026
  one for a language (DFAs have this notion)\pause\bigskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1027
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1028
  \item Is there anything to be said about context free languages:\medskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1029
  
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1030
  \begin{quote}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1031
  A context free language is where every string can be recognised by
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1032
  a pushdown automaton.\bigskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1033
  \end{quote}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1034
  \end{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1035
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1036
  \textcolor{gray}{\footnotesize Yes. Derivatives also work for c-f grammars. Ongoing work.}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1037
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1038
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1039
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1040
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1041
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1042
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1043
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1044
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1045
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1046
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1047
  \frametitle{\LARGE Conclusion}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1048
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1049
  \begin{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1050
  \item We formalised the Myhill-Nerode theorem based on 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1051
  regular expressions only (DFAs are difficult to deal with in a theorem prover).\smallskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1052
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1053
  \item Seems to be a common theme: algorithms need to be reformulated
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1054
  to better suit formal treatment.\smallskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1055
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1056
  \item The most interesting aspect is that we are able to
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1057
  implement the matcher directly inside the theorem prover
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1058
  (ongoing work).\smallskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1059
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1060
  \item Parsing is a vast field which seem to offer new results. 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1061
  \end{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1062
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1063
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1064
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1065
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1066
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1067
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1068
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1069
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1070
  \begin{frame}<1>[b]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1071
  \frametitle{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1072
  \begin{tabular}{c}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1073
  \mbox{}\\[13mm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1074
  \alert{\LARGE Thank you very much!}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1075
  \alert{\Large Questions?}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1076
  \end{tabular}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1077
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1078
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1079
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1080
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1081
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1082
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1083
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1084
(*<*)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1085
end
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1086
(*>*)