Slides/Slides7.thy
author Christian Urban <urbanc@in.tum.de>
Mon, 18 Jul 2011 00:21:51 +0100
changeset 2971 d629240f0f63
parent 2775 5f3387b7474f
permissions -rw-r--r--
some tuning
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 {*
2775
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
    15
  \renewcommand{\slidecaption}{Beijing, 29.~April 2011}
2772
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
2775
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
    93
  we least expect it.
2772
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->
2775
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   240
  {Looks OK \ldots let's ship it to customers\hspace{5mm} 
2772
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$)} & \\
2775
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   332
       &          & \bl{\;\;\;\;+ (if nullable r$_1$ then der c r$_2$ else $\varnothing$)}\\
2772
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
2775
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   386
  By \alert<4->{induction}, we can {\bf prove} these properties.\bigskip
2772
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 
2775
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   527
  to be more\\ suitable for theorem proving.
2772
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\\
2775
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   617
  \;\;\;\smath{\text{finite}\,(U\!N\!IV /\!/ \approx_L) \Rightarrow \exists r.\; L = \mathbb{L}(r)}\\[3mm]
2772
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]
2775
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   634
  \frametitle{\LARGE Final Equiv.~Classes}
2772
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}
2775
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   639
  \item \smath{\text{finals}\,L \dn 
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   640
     \{{\lbrack\mkern-2mu\lbrack{s}\rbrack\mkern-2mu\rbrack}_\approx\;|\; s \in L\}}\\
2772
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   641
  \medskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   642
2775
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   643
  \item we can prove: \smath{L = \bigcup (\text{finals}\,L)}
2772
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   644
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   645
  \end{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   646
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   647
  \end{frame}}
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
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   651
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   652
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   653
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   654
  \begin{frame}[c]
2775
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   655
  \frametitle{\LARGE Transitions between ECs}
2772
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   656
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   657
  \smath{L = \{[c]\}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   658
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   659
  \begin{tabular}{@ {\hspace{-7mm}}cc}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   660
  \begin{tabular}{c}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   661
  \begin{tikzpicture}[shorten >=1pt,node distance=2cm,auto, ultra thick]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   662
  \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
   663
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   664
  %\draw[help lines] (0,0) grid (3,2);
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   665
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   666
  \node[state,initial]   (q_0)                        {$R_1$};
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   667
  \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
   668
  \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
   669
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   670
  \path[->] (q_0) edge                node        {c} (q_1)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   671
                  edge                node [swap] {$\Sigma-{c}$} (q_2)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   672
            (q_2) edge [loop below]   node        {$\Sigma$} ()
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   673
            (q_1) edge                node        {$\Sigma$} (q_2);
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   674
  \end{tikzpicture}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   675
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   676
  &
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   677
  \begin{tabular}[t]{ll}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   678
  \\[-20mm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   679
  \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
   680
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   681
  \smath{R_1}: & \smath{\{[]\}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   682
  \smath{R_2}: & \smath{\{[c]\}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   683
  \smath{R_3}: & \smath{U\!N\!IV - \{[], [c]\}}\\[6mm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   684
  \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
   685
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   686
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   687
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   688
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   689
  \end{frame}}
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
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   694
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   695
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   696
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   697
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   698
  \frametitle{\LARGE Systems of Equations}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   699
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   700
  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
   701
  characterising the equivalence classes:
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   702
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   703
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   704
  \begin{tabular}{@ {\hspace{-20mm}}c}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   705
  \\[-13mm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   706
  \begin{tikzpicture}[shorten >=1pt,node distance=2cm,auto, ultra thick]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   707
  \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
   708
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   709
  %\draw[help lines] (0,0) grid (3,2);
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   710
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   711
  \node[state,initial]   (p_0)                  {$R_1$};
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   712
  \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
   713
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   714
  \path[->] (p_0) edge [bend left]   node        {a} (p_1)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   715
                  edge [loop above]   node       {b} ()
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   716
            (p_1) edge [loop above]   node       {a} ()
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   717
                  edge [bend left]   node        {b} (p_0);
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   718
  \end{tikzpicture}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   719
  \\[-13mm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   720
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   721
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   722
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   723
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   724
  \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
   725
  & \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
   726
  & \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
   727
  \onslide<3->{we can prove} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   728
  & \onslide<3->{\smath{R_1}} & \onslide<3->{\smath{=}} 
2775
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   729
      & \onslide<3->{\smath{R_1;; \mathbb{L}(b) \,\cup\, R_2;;\mathbb{L}(b) \,\cup\, \{[]\}}}\\
2772
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   730
  & \onslide<3->{\smath{R_2}} & \onslide<3->{\smath{=}}    
2775
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   731
      & \onslide<3->{\smath{R_1;; \mathbb{L}(a) \,\cup\, R_2;;\mathbb{L}(a)}}\\
2772
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   732
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   733
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   734
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   735
  \end{frame}}
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
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   740
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   741
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   742
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   743
  \begin{frame}<1>[t]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   744
  \small
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   745
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   746
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   747
  \begin{tabular}{l@ {\hspace{1mm}}c@ {\hspace{1mm}}ll}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   748
  \onslide<1->{\smath{R_1}} & \onslide<1->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   749
      & \onslide<1->{\smath{R_1; b + R_2; b + \lambda;[]}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   750
  \onslide<1->{\smath{R_2}} & \onslide<1->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   751
      & \onslide<1->{\smath{R_1; a + R_2; a}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   752
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   753
  & & & \onslide<2->{by Arden}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   754
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   755
  \onslide<2->{\smath{R_1}} & \onslide<2->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   756
      & \onslide<2->{\smath{R_1; b + R_2; b + \lambda;[]}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   757
  \onslide<2->{\smath{R_2}} & \onslide<2->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   758
      & \only<2>{\smath{R_1; a + R_2; a}}%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   759
        \only<3->{\smath{R_1; a\cdot a^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   760
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   761
  & & & \onslide<4->{by Arden}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   762
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   763
  \onslide<4->{\smath{R_1}} & \onslide<4->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   764
      & \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
   765
  \onslide<4->{\smath{R_2}} & \onslide<4->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   766
      & \onslide<4->{\smath{R_1; a\cdot a^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   767
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   768
  & & & \onslide<5->{by substitution}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   769
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   770
  \onslide<5->{\smath{R_1}} & \onslide<5->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   771
      & \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
   772
  \onslide<5->{\smath{R_2}} & \onslide<5->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   773
      & \onslide<5->{\smath{R_1; a\cdot a^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   774
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   775
  & & & \onslide<6->{by Arden}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   776
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   777
  \onslide<6->{\smath{R_1}} & \onslide<6->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   778
      & \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
   779
  \onslide<6->{\smath{R_2}} & \onslide<6->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   780
      & \onslide<6->{\smath{R_1; a\cdot a^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   781
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   782
  & & & \onslide<7->{by substitution}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   783
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   784
  \onslide<7->{\smath{R_1}} & \onslide<7->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   785
      & \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
   786
  \onslide<7->{\smath{R_2}} & \onslide<7->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   787
      & \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
   788
          \cdot a\cdot a^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   789
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   790
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   791
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   792
  \end{frame}}
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
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   796
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   797
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   798
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   799
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   800
  \frametitle{\LARGE A Variant of Arden's Lemma}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   801
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   802
  {\bf Arden's Lemma:}\smallskip 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   803
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   804
  If \smath{[] \not\in A} then
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   805
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   806
  \smath{X = X; A + \text{something}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   807
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   808
  has the (unique) solution
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   809
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   810
  \smath{X = \text{something} ; A^\star}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   811
  \end{center}
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
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   814
  \end{frame}}
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
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   819
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   820
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   821
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   822
  \begin{frame}<1->[t]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   823
  \small
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   824
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   825
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   826
  \begin{tabular}{l@ {\hspace{1mm}}c@ {\hspace{1mm}}ll}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   827
  \onslide<1->{\smath{R_1}} & \onslide<1->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   828
      & \onslide<1->{\smath{R_1; b + R_2; b + \lambda;[]}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   829
  \onslide<1->{\smath{R_2}} & \onslide<1->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   830
      & \onslide<1->{\smath{R_1; a + R_2; a}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   831
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   832
  & & & \onslide<2->{by Arden}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   833
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   834
  \onslide<2->{\smath{R_1}} & \onslide<2->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   835
      & \onslide<2->{\smath{R_1; b + R_2; b + \lambda;[]}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   836
  \onslide<2->{\smath{R_2}} & \onslide<2->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   837
      & \only<2>{\smath{R_1; a + R_2; a}}%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   838
        \only<3->{\smath{R_1; a\cdot a^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   839
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   840
  & & & \onslide<4->{by Arden}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   841
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   842
  \onslide<4->{\smath{R_1}} & \onslide<4->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   843
      & \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
   844
  \onslide<4->{\smath{R_2}} & \onslide<4->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   845
      & \onslide<4->{\smath{R_1; a\cdot a^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   846
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   847
  & & & \onslide<5->{by substitution}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   848
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   849
  \onslide<5->{\smath{R_1}} & \onslide<5->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   850
      & \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
   851
  \onslide<5->{\smath{R_2}} & \onslide<5->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   852
      & \onslide<5->{\smath{R_1; a\cdot a^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   853
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   854
  & & & \onslide<6->{by Arden}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   855
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   856
  \onslide<6->{\smath{R_1}} & \onslide<6->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   857
      & \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
   858
  \onslide<6->{\smath{R_2}} & \onslide<6->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   859
      & \onslide<6->{\smath{R_1; a\cdot a^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   860
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   861
  & & & \onslide<7->{by substitution}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   862
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   863
  \onslide<7->{\smath{R_1}} & \onslide<7->{\smath{=}} 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   864
      & \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
   865
  \onslide<7->{\smath{R_2}} & \onslide<7->{\smath{=}}    
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   866
      & \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
   867
          \cdot a\cdot a^\star}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   868
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   869
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   870
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   871
  \only<8->{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   872
  \begin{textblock}{6}(2.5,4)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   873
  \begin{block}{}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   874
  \begin{minipage}{8cm}\raggedright
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   875
  
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   876
  \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
   877
  \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
   878
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   879
  %\draw[help lines] (0,0) grid (3,2);
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   880
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   881
  \node[state,initial]   (p_0)                  {$R_1$};
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   882
  \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
   883
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   884
  \path[->] (p_0) edge [bend left]   node        {a} (p_1)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   885
                  edge [loop above]   node       {b} ()
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   886
            (p_1) edge [loop above]   node       {a} ()
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   887
                  edge [bend left]   node        {b} (p_0);
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   888
  \end{tikzpicture}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   889
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   890
  \end{minipage}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   891
  \end{block}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   892
  \end{textblock}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   893
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   894
  \end{frame}}
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
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   899
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   900
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   901
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   902
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   903
  \frametitle{\LARGE The Equ's Solving Algorithm}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   904
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   905
  \begin{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   906
  \item The algorithm must terminate: Arden makes one equation smaller; 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   907
  substitution deletes one variable from the right-hand sides.\bigskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   908
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   909
  \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
   910
  (if \smath{[] \not\in A} then \ldots):\medskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   911
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   912
  \begin{center}\small
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   913
  \begin{tabular}{l@ {\hspace{1mm}}c@ {\hspace{1mm}}ll}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   914
  \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
   915
  \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
   916
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   917
  & & & by Arden\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   918
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   919
  \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
   920
  \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
   921
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   922
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   923
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   924
  \end{itemize}
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
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   927
  \end{frame}}
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
2775
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   932
2772
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   933
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   934
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   935
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   936
  \begin{frame}[c]
2775
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   937
  \frametitle{\LARGE The Other Direction}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   938
  
2772
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   939
  One has to prove
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   940
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   941
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   942
  \smath{\text{finite} (U\!N\!IV /\!/ \approx_{\mathbb{L}(r)})}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   943
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   944
2775
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   945
  by induction on \smath{r}. This is straightforward for \\the base cases:\small
2772
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   946
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   947
  \begin{center}
2775
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   948
  \begin{tabular}{l@ {\hspace{1mm}}l}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   949
  \smath{U\!N\!IV /\!/ \!\approx_{\emptyset}} & \smath{= \{U\!N\!IV\}}\smallskip\\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   950
  \smath{U\!N\!IV /\!/ \!\approx_{\{[]\}}} & \smath{\subseteq \{\{[]\}, U\!N\!IV - \{[]\}\}}\smallskip\\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   951
  \smath{U\!N\!IV /\!/ \!\approx_{\{[c]\}}} & \smath{\subseteq \{\{[]\}, \{[c]\}, U\!N\!IV - \{[], [c]\}\}}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   952
  \end{tabular}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   953
  \end{center}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   954
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   955
  
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   956
  \end{frame}}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   957
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   958
*}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   959
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   960
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   961
text_raw {*
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   962
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   963
  \mode<presentation>{
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   964
  \begin{frame}[t]
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   965
  \frametitle{\LARGE The Other Direction}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   966
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   967
  More complicated are the inductive cases:\\ one needs to prove that if
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   968
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   969
  \begin{center}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   970
  \smath{\text{finite} (U\!N\!IV /\!/ \approx_{\mathbb{L}(r_1)})}\hspace{3mm}
2772
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   971
  \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
   972
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   973
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   974
  then
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   975
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   976
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   977
  \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
   978
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   979
  
2775
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   980
  \end{frame}}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   981
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   982
*}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   983
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   984
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   985
text_raw {*
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   986
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   987
  \mode<presentation>{
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   988
  \begin{frame}[t]
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   989
  \frametitle{\LARGE Helper Lemma}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   990
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   991
  \begin{center}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   992
  \begin{tabular}{p{10cm}}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   993
  %If \smath{\text{finite} (f\;' A)} and \smath{f} is injective 
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   994
  %(on \smath{A}),\\ then \smath{\text{finite}\,A}.
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   995
  Given two equivalence relations \smath{R_1} and \smath{R_2} with
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   996
  \smath{R_1} refining \smath{R_2} (\smath{R_1 \subseteq R_2}).\\ 
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   997
  Then\medskip\\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   998
  \smath{\;\;\text{finite} (U\!N\!IV /\!/ R_1) \Rightarrow \text{finite} (U\!N\!IV /\!/ R_2)}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
   999
  \end{tabular}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1000
  \end{center}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1001
  
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1002
  \end{frame}}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1003
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1004
*}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1005
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1006
text_raw {*
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1007
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1008
  \mode<presentation>{
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1009
  \begin{frame}[c]
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1010
  \frametitle{\Large Derivatives and Left-Quotients}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1011
  \small
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1012
  Work by Brozowski ('64) and Antimirov ('96):\pause\smallskip
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1013
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1014
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1015
  \begin{tabular}{@ {}l@ {\hspace{2mm}}c@ {\hspace{2mm}}l@ {\hspace{-10mm}}l@ {}}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1016
  \multicolumn{4}{@ {}l}{Left-Quotient:}\\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1017
  \multicolumn{4}{@ {}l}{\bl{$\text{Ders}\;\text{s}\,A \dn \{\text{s'} \;|\; \text{s @ s'} \in A\}$}}\bigskip\\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1018
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1019
  \multicolumn{4}{@ {}l}{Derivative:}\\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1020
  \bl{der c ($\varnothing$)}       & \bl{$=$} & \bl{$\varnothing$} & \\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1021
  \bl{der c ([])}                  & \bl{$=$} & \bl{$\varnothing$} & \\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1022
  \bl{der c (d)}                   & \bl{$=$} & \bl{if c = d then [] else $\varnothing$} & \\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1023
  \bl{der c (r$_1$ + r$_2$)}       & \bl{$=$} & \bl{(der c r$_1$) + (der c r$_2$)} & \\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1024
  \bl{der c (r$_1$ $\cdot$ r$_2$)} & \bl{$=$} & \bl{((der c r$_1$) $\cdot$ r$_2$)} & \\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1025
       &          & \bl{\;\;\;\;+ (if nullable r$_1$ then der c r$_2$ else $\varnothing$)}\\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1026
  \bl{der c (r$^*$)}          & \bl{$=$} & \bl{(der c r) $\cdot$ r$^*$} &\smallskip\\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1027
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1028
  \bl{ders [] r}     & \bl{$=$} & \bl{r} & \\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1029
  \bl{ders (s @ [c]) r} & \bl{$=$} & \bl{der c (ders s r)} & \\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1030
  \end{tabular}\pause
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1031
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1032
  \begin{center}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1033
  \alert{$\Rightarrow$}\smath{\;\;\text{Ders}\,\text{s}\,(\mathbb{L}(\text{r})) = \mathbb{L} (\text{ders s r})}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1034
  \end{center}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1035
  
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1036
  \end{frame}}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1037
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1038
*}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1039
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1040
text_raw {*
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1041
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1042
  \mode<presentation>{
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1043
  \begin{frame}[c]
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1044
  \frametitle{\LARGE Left-Quotients and MN-Rels}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1045
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1046
  \begin{itemize}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1047
  \item \smath{x \approx_{A} y \,\dn\, \forall z.\; x @ z \in A \Leftrightarrow y @ z \in A}\medskip
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1048
  \item \bl{$\text{Ders}\;s\,A \dn \{s' \;|\; s @ s' \in A\}$}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1049
  \end{itemize}\bigskip
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1050
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1051
  \begin{center}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1052
  \smath{x \approx_A y  \Longleftrightarrow \text{Ders}\;x\;A = \text{Ders}\;y\;A}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1053
  \end{center}\bigskip\pause\small
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1054
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1055
  which means
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1056
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1057
  \begin{center}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1058
  \smath{x \approx_{\mathbb{L}(r)} y  \Longleftrightarrow 
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1059
  \mathbb{L}(\text{ders}\;x\;r) = \mathbb{L}(\text{ders}\;y\;r)}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1060
  \end{center}\pause
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1061
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1062
  \hspace{8.8mm}or
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1063
  \smath{\;x \approx_{\mathbb{L}(r)} y  \Longleftarrow 
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1064
  \text{ders}\;x\;r = \text{ders}\;y\;r}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1065
2772
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
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1068
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1069
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1070
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1071
2775
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1072
text_raw {*
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1073
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1074
  \mode<presentation>{
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1075
  \begin{frame}[c]
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1076
  \frametitle{\LARGE Partial Derivatives}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1077
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1078
  Antimirov: \bl{pder : rexp $\Rightarrow$ rexp set}\bigskip
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1079
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1080
  \begin{tabular}{@ {}l@ {\hspace{2mm}}c@ {\hspace{2mm}}l@ {\hspace{-10mm}}l@ {}}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1081
  \bl{pder c ($\varnothing$)}       & \bl{$=$} & \bl{\{$\varnothing$\}} & \\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1082
  \bl{pder c ([])}                  & \bl{$=$} & \bl{\{$\varnothing$\}} & \\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1083
  \bl{pder c (d)}                   & \bl{$=$} & \bl{if c = d then \{[]\} else \{$\varnothing$\}} & \\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1084
  \bl{pder c (r$_1$ + r$_2$)}       & \bl{$=$} & \bl{(pder c r$_1$) $\cup$ (pder c r$_2$)} & \\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1085
  \bl{pder c (r$_1$ $\cdot$ r$_2$)} & \bl{$=$} & \bl{(pder c r$_1$) $\odot$ r$_2$} & \\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1086
       &          & \bl{\hspace{-10mm}$\cup$ (if nullable r$_1$ then pder c r$_2$ else $\varnothing$)}\\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1087
  \bl{pder c (r$^*$)}          & \bl{$=$} & \bl{(pder c r) $\odot$ r$^*$} &\smallskip\\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1088
  \end{tabular}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1089
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1090
  \begin{tabular}{@ {}l@ {\hspace{2mm}}c@ {\hspace{2mm}}l@ {\hspace{-10mm}}l@ {}}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1091
  \bl{pders [] r}     & \bl{$=$} & \bl{r} & \\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1092
  \bl{pders (s @ [c]) r} & \bl{$=$} & \bl{pder c (pders s r)} & \\
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1093
  \end{tabular}\pause
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1094
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1095
  \begin{center}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1096
  \alert{$\Rightarrow$}\smath{\;\;\text{Ders}\,\text{s}\,(\mathbb{L}(\text{r})) = \bigcup (\mathbb{L}\;`\; (\text{pders s r}))}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1097
  \end{center}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1098
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1099
  \end{frame}}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1100
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1101
*}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1102
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1103
text_raw {*
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1104
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1105
  \mode<presentation>{
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1106
  \begin{frame}[t]
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1107
  \frametitle{\LARGE Final Result}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1108
  
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1109
  \mbox{}\\[7mm]
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1110
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1111
  \begin{itemize}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1112
  \item \alt<1>{\smath{\text{pders x r \mbox{$=$} pders y r}}}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1113
            {\smath{\underbrace{\text{pders x r \mbox{$=$} pders y r}}_{R_1}}} 
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1114
        refines \bl{x $\approx_{\mathbb{L}(\text{r})}$ y}\pause
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1115
  \item \smath{\text{finite} (U\!N\!IV /\!/ R_1)} \bigskip\pause
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1116
  \item Therefore \smath{\text{finite} (U\!N\!IV /\!/ \approx_{\mathbb{L}(r)})}. Qed.
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1117
  \end{itemize}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1118
  
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1119
  \end{frame}}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1120
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1121
*}
5f3387b7474f more on pearl-paper
Christian Urban <urbanc@in.tum.de>
parents: 2772
diff changeset
  1122
2772
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1123
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1124
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1125
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1126
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1127
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1128
  \frametitle{\LARGE What Have We Achieved?}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1129
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1130
  \begin{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1131
  \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
  1132
  \bigskip\pause
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1133
  \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
  1134
  \begin{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1135
  \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
  1136
  \end{center}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1137
  \end{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1138
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1139
  
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1140
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1141
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1142
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1143
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1144
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1145
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1146
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1147
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1148
  \frametitle{\LARGE Examples}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1149
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1150
  \begin{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1151
  \item \smath{L \equiv \Sigma^\star 0 \Sigma} is regular
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1152
  \begin{quote}\small
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1153
  \begin{tabular}{lcl}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1154
  \smath{A_1} & \smath{=} & \smath{\Sigma^\star 00}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1155
  \smath{A_2} & \smath{=} & \smath{\Sigma^\star 01}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1156
  \smath{A_3} & \smath{=} & \smath{\Sigma^\star 10 \cup \{0\}}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1157
  \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
  1158
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1159
  \end{quote}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1160
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1161
  \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
  1162
  \begin{quote}\small
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1163
  \begin{tabular}{lcl}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1164
  \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
  1165
  \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
  1166
  \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
  1167
  \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
  1168
              & \smath{\vdots} &\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1169
  \end{tabular}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1170
  \end{quote}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1171
  \end{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1172
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1173
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1174
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1175
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1176
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1177
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1178
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1179
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1180
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1181
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1182
  \frametitle{\LARGE What We Have Not Achieved}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1183
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1184
  \begin{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1185
  \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
  1186
  one for a language (DFAs have this notion)\pause\bigskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1187
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1188
  \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
  1189
  
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1190
  \begin{quote}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1191
  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
  1192
  a pushdown automaton.\bigskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1193
  \end{quote}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1194
  \end{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1195
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1196
  \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
  1197
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1198
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1199
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1200
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1201
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1202
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1203
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1204
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1205
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1206
  \begin{frame}[c]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1207
  \frametitle{\LARGE Conclusion}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1208
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1209
  \begin{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1210
  \item We formalised the Myhill-Nerode theorem based on 
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1211
  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
  1212
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1213
  \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
  1214
  to better suit formal treatment.\smallskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1215
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1216
  \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
  1217
  implement the matcher directly inside the theorem prover
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1218
  (ongoing work).\smallskip
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1219
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1220
  \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
  1221
  \end{itemize}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1222
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1223
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1224
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1225
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1226
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1227
text_raw {*
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1228
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1229
  \mode<presentation>{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1230
  \begin{frame}<1>[b]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1231
  \frametitle{
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1232
  \begin{tabular}{c}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1233
  \mbox{}\\[13mm]
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1234
  \alert{\LARGE Thank you very much!}\\
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1235
  \alert{\Large Questions?}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1236
  \end{tabular}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1237
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1238
  \end{frame}}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1239
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1240
*}
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1241
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1242
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1243
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1244
(*<*)
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1245
end
c3ff26204d2a added slides for beijing
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1246
(*>*)