Slides/Slides8.thy
author Christian Urban <urbanc@in.tum.de>
Sun, 22 May 2011 10:20:18 +0200
changeset 2785 c63ffe1735eb
child 2786 bccda961a612
permissions -rw-r--r--
added slides for copenhagen
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2785
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
(*<*)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
theory Slides8
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
imports "~~/src/HOL/Library/LaTeXsugar" "Main"
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
begin
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
declare [[show_question_marks = false]]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
notation (latex output)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
  set ("_") and
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
  Cons  ("_::/_" [66,65] 65) 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
(*>*)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
  \renewcommand{\slidecaption}{Copenhagen, 23rd~May 2011}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
  \newcommand{\abst}[2]{#1.#2}% atom-abstraction
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
  \newcommand{\pair}[2]{\langle #1,#2\rangle} % pairing
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
  \newcommand{\susp}{{\boldsymbol{\cdot}}}% for suspensions
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
  \newcommand{\unit}{\langle\rangle}% unit
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
  \newcommand{\app}[2]{#1\,#2}% application
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
  \newcommand{\eqprob}{\mathrel{{\approx}?}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
  \newcommand{\freshprob}{\mathrel{\#?}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
  \newcommand{\redu}[1]{\stackrel{#1}{\Longrightarrow}}% reduction
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
  \newcommand{\id}{\varepsilon}% identity substitution
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    27
  \newcommand{\bl}[1]{\textcolor{blue}{#1}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    28
  \newcommand{\gr}[1]{\textcolor{gray}{#1}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    29
  \newcommand{\rd}[1]{\textcolor{red}{#1}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    30
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    31
  \newcommand{\ok}{\includegraphics[scale=0.07]{ok.png}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    32
  \newcommand{\notok}{\includegraphics[scale=0.07]{notok.png}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    33
  \newcommand{\largenotok}{\includegraphics[scale=1]{notok.png}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    34
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    35
  \renewcommand{\Huge}{\fontsize{61.92}{77}\selectfont}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    36
  \newcommand{\veryHuge}{\fontsize{74.3}{93}\selectfont}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    37
  \newcommand{\VeryHuge}{\fontsize{89.16}{112}\selectfont}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    38
  \newcommand{\VERYHuge}{\fontsize{107}{134}\selectfont}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    39
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    40
  \newcommand{\LL}{$\mathbb{L}\,$}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    41
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    42
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    43
  \pgfdeclareradialshading{smallbluesphere}{\pgfpoint{0.5mm}{0.5mm}}%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    44
  {rgb(0mm)=(0,0,0.9);
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    45
  rgb(0.9mm)=(0,0,0.7);
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    46
  rgb(1.3mm)=(0,0,0.5);
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    47
  rgb(1.4mm)=(1,1,1)}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    48
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    49
  \def\myitemi{\begin{pgfpicture}{-1ex}{-0.55ex}{1ex}{1ex}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    50
    \usebeamercolor[fg]{subitem projected}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    51
    {\pgftransformscale{0.8}\pgftext{\normalsize\pgfuseshading{bigsphere}}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    52
    \pgftext{%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    53
      \usebeamerfont*{subitem projected}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    54
  \end{pgfpicture}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    55
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    56
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    57
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    58
  \begin{frame}<1>[t]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    59
  \frametitle{%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    60
  \begin{tabular}{@ {\hspace{-3mm}}c@ {}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    61
  \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    62
  \LARGE Verifying a Regular Expression\\[-1mm] 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    63
  \LARGE Matcher and Formal Language\\[-1mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    64
  \LARGE Theory\\[5mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    65
  \end{tabular}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    66
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    67
  Christian Urban\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    68
  \small Technical University of Munich, Germany
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    69
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    70
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    71
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    72
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    73
  \small joint work with Chunhan Wu and Xingyuan Zhang from the PLA
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    74
  University of Science and Technology in Nanjing
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    75
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    76
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    77
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    78
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    79
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    80
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    81
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    82
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    83
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    84
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    85
  \begin{frame}[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    86
  \frametitle{This Talk: 4 Points}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    87
  \large
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    88
  \begin{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    89
  \item It is easy to make mistakes.\medskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    90
  \item Theorem provers can prevent mistakes, {\bf if} the problem
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    91
  is formulated so that it is suitable for theorem provers.\medskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    92
  \item This re-formulation can be done, even in domains where
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    93
  we least expect it.\medskip 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    94
  \item Where theorem provers are superior to the {\color{gray}{(best)}} human reasoners. ;o)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    95
  \end{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    96
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    97
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    98
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    99
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   100
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   101
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   102
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   103
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   104
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   105
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   106
  \begin{frame}[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   107
  \frametitle{}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   108
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   109
  \begin{tabular}{c@ {\hspace{2mm}}c}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   110
  \\[6mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   111
  \begin{tabular}{c}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   112
  \includegraphics[scale=0.12]{harper.jpg}\\[-2mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   113
  {\footnotesize Bob Harper}\\[-2.5mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   114
  {\footnotesize (CMU)}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   115
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   116
  \begin{tabular}{c}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   117
  \includegraphics[scale=0.36]{pfenning.jpg}\\[-2mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   118
  {\footnotesize Frank Pfenning}\\[-2.5mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   119
  {\footnotesize (CMU)}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   120
  \end{tabular} &
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   121
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   122
  \begin{tabular}{p{6cm}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   123
  \raggedright
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   124
  \color{gray}{published a proof in\\ {\bf ACM Transactions on Computational Logic} (2005),
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   125
  $\sim$31pp}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   126
  \end{tabular}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   127
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   128
  \pause
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   129
  \\[0mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   130
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   131
  \begin{tabular}{c}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   132
  \includegraphics[scale=0.36]{appel.jpg}\\[-2mm] 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   133
  {\footnotesize Andrew Appel}\\[-2.5mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   134
  {\footnotesize (Princeton)}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   135
  \end{tabular} &
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   136
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   137
  \begin{tabular}{p{6cm}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   138
  \raggedright
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   139
  \color{gray}{relied on their proof in a\\ {\bf security} critical application}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   140
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   141
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   142
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   143
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   144
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   145
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   146
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   147
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   148
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   149
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   150
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   151
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   152
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   153
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   154
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   155
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   156
  \begin{frame}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   157
  \frametitle{Proof-Carrying Code}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   158
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   159
  \begin{textblock}{10}(2.5,2.2)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   160
  \begin{block}{Idea:}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   161
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   162
  \begin{tikzpicture}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   163
  \draw[help lines,cream] (0,0.2) grid (8,4);
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   164
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   165
  \draw[line width=1mm, red] (5.5,0.6) rectangle (7.5,4);
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   166
  \node[anchor=base] at (6.5,2.8) 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   167
     {\small\begin{tabular}{@ {}p{1.9cm}@ {}}\centering  user: untrusted code\end{tabular}};
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   168
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   169
  \draw[line width=1mm, red] (0.5,0.6) rectangle (2.5,4);
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   170
  \node[anchor=base] at (1.5,2.3) 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   171
     {\small\begin{tabular}{@ {}p{1.9cm}@ {}}\centering  developer ---\\ web server\end{tabular}};
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   172
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   173
  \onslide<3->{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   174
  \draw[line width=1mm, red, fill=red] (5.5,0.6) rectangle (7.5,1.8);
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   175
  \node[anchor=base,white] at (6.5,1.1) 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   176
     {\small\begin{tabular}{@ {}p{1.9cm}@ {}}\bf\centering proof- checker\end{tabular}};}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   177
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   178
  \node at (3.8,3.0) [single arrow, fill=red,text=white, minimum height=3cm]{\bf code};
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   179
  \onslide<2->{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   180
  \node at (3.8,1.3) [single arrow, fill=red,text=white, minimum height=3cm]{\bf certificate};
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   181
  \node at (3.8,1.9) {\small\color{gray}{\mbox{}\hspace{-1mm}a proof in LF}};
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   182
  }
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   183
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   184
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   185
  \end{tikzpicture}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   186
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   187
  \end{block}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   188
  \end{textblock}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   189
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   190
  %\begin{textblock}{15}(2,12)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   191
  %\small
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   192
  %\begin{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   193
  %\item<4-> Appel's checker is $\sim$2700 lines of code (1865 loc of\\ LF definitions; 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   194
  %803 loc in C including 2 library functions)\\[-3mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   195
  %\item<5-> 167 loc in C implement a type-checker
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   196
  %\end{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   197
  %\end{textblock}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   198
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   199
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   200
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   201
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   202
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   203
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   204
text {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   205
  \tikzstyle{every node}=[node distance=25mm,text height=1.5ex, text depth=.25ex]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   206
  \tikzstyle{node1}=[rectangle, minimum size=10mm, rounded corners=3mm, very thick, 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   207
                     draw=black!50, top color=white, bottom color=black!20]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   208
  \tikzstyle{node2}=[rectangle, minimum size=12mm, rounded corners=3mm, very thick, 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   209
                     draw=red!70, top color=white, bottom color=red!50!black!20]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   210
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   211
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   212
  \begin{frame}<2->[squeeze]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   213
  \frametitle{} 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   214
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   215
  \begin{columns}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   216
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   217
  \begin{column}{0.8\textwidth}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   218
  \begin{textblock}{0}(1,2)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   219
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   220
  \begin{tikzpicture}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   221
  \matrix[ampersand replacement=\&,column sep=7mm, row sep=5mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   222
  { \&[-10mm] 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   223
    \node (def1)   [node1] {\large\hspace{1mm}Spec\hspace{1mm}\mbox{}}; \&
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   224
    \node (proof1) [node1] {\large Proof}; \&
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   225
    \node (alg1)   [node1] {\large\hspace{1mm}Alg\hspace{1mm}\mbox{}}; \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   226
    
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   227
    \onslide<4->{\node {\begin{tabular}{c}\small 1st\\[-2.5mm] \footnotesize solution\end{tabular}};} \&
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   228
    \onslide<4->{\node (def2)   [node2] {\large Spec$^\text{+ex}$};} \&
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   229
    \onslide<4->{\node (proof2) [node1] {\large Proof};} \&
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   230
    \onslide<4->{\node (alg2)   [node1] {\large\hspace{1mm}Alg\hspace{1mm}\mbox{}};} \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   231
     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   232
    \onslide<5->{\node {\begin{tabular}{c}\small 2nd\\[-2.5mm] \footnotesize solution\end{tabular}};} \&
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   233
    \onslide<5->{\node (def3)   [node1] {\large\hspace{1mm}Spec\hspace{1mm}\mbox{}};} \&
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   234
    \onslide<5->{\node (proof3) [node1] {\large Proof};} \&
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   235
    \onslide<5->{\node (alg3)   [node2] {\large Alg$^\text{-ex}$};} \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   236
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   237
    \onslide<6->{\node {\begin{tabular}{c}\small 3rd\\[-2.5mm] \footnotesize solution\end{tabular}};} \&
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   238
    \onslide<6->{\node (def4)   [node1] {\large\hspace{1mm}Spec\hspace{1mm}\mbox{}};} \&
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   239
    \onslide<6->{\node (proof4) [node2] {\large\hspace{1mm}Proof\hspace{1mm}};} \&
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   240
    \onslide<6->{\node (alg4)   [node1] {\large\hspace{1mm}Alg\hspace{1mm}\mbox{}};} \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   241
  };
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   242
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   243
  \draw[->,black!50,line width=2mm] (proof1) -- (def1);
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   244
  \draw[->,black!50,line width=2mm] (proof1) -- (alg1);
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   245
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   246
  \onslide<4->{\draw[->,black!50,line width=2mm] (proof2) -- (def2);}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   247
  \onslide<4->{\draw[->,black!50,line width=2mm] (proof2) -- (alg2);}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   248
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   249
  \onslide<5->{\draw[->,black!50,line width=2mm] (proof3) -- (def3);}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   250
  \onslide<5->{\draw[->,black!50,line width=2mm] (proof3) -- (alg3);}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   251
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   252
  \onslide<6->{\draw[->,black!50,line width=2mm] (proof4) -- (def4);}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   253
  \onslide<6->{\draw[->,black!50,line width=2mm] (proof4) -- (alg4);}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   254
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   255
  \onslide<3->{\draw[white,line width=1mm] (1.1,3.2) -- (0.9,2.85) -- (1.1,2.35) -- (0.9,2.0);} 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   256
  \end{tikzpicture}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   257
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   258
  \end{textblock}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   259
  \end{column}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   260
  \end{columns}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   261
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   262
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   263
  \begin{textblock}{3}(12,3.6)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   264
  \onslide<4->{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   265
  \begin{tikzpicture}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   266
  \node at (0,0) [single arrow, shape border rotate=270, fill=red,text=white]{2h};
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   267
  \end{tikzpicture}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   268
  \end{textblock}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   269
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   270
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   271
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   272
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   273
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   274
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   275
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   276
(*<*)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   277
atom_decl name
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   278
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   279
nominal_datatype lam = 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   280
    Var "name"
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   281
  | App "lam" "lam"
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   282
  | Lam "\<guillemotleft>name\<guillemotright>lam" ("Lam [_]._" [100,100] 100)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   283
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   284
nominal_primrec
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   285
  subst :: "lam \<Rightarrow> name \<Rightarrow> lam \<Rightarrow> lam"  ("_[_::=_]")
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   286
where
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   287
  "(Var x)[y::=s] = (if x=y then s else (Var x))"
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   288
| "(App t\<^isub>1 t\<^isub>2)[y::=s] = App (t\<^isub>1[y::=s]) (t\<^isub>2[y::=s])"
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   289
| "x\<sharp>(y,s) \<Longrightarrow> (Lam [x].t)[y::=s] = Lam [x].(t[y::=s])"
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   290
apply(finite_guess)+
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   291
apply(rule TrueI)+
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   292
apply(simp add: abs_fresh)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   293
apply(fresh_guess)+
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   294
done
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   295
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   296
lemma  subst_eqvt[eqvt]:
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   297
  fixes pi::"name prm"
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   298
  shows "pi\<bullet>(t1[x::=t2]) = (pi\<bullet>t1)[(pi\<bullet>x)::=(pi\<bullet>t2)]"
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   299
by (nominal_induct t1 avoiding: x t2 rule: lam.strong_induct)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   300
   (auto simp add: perm_bij fresh_atm fresh_bij)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   301
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   302
lemma fresh_fact:
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   303
  fixes z::"name"
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   304
  shows "\<lbrakk>z\<sharp>s; (z=y \<or> z\<sharp>t)\<rbrakk> \<Longrightarrow> z\<sharp>t[y::=s]"
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   305
by (nominal_induct t avoiding: z y s rule: lam.strong_induct)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   306
   (auto simp add: abs_fresh fresh_prod fresh_atm)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   307
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   308
lemma forget: 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   309
  assumes asm: "x\<sharp>L"
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   310
  shows "L[x::=P] = L"
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   311
  using asm 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   312
by (nominal_induct L avoiding: x P rule: lam.strong_induct)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   313
   (auto simp add: abs_fresh fresh_atm)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   314
(*>*)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   315
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   316
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   317
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   318
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   319
  \begin{frame}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   320
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   321
  \begin{textblock}{16}(1,1)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   322
  \renewcommand{\isasymbullet}{$\cdot$}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   323
  \tiny\color{black}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   324
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   325
lemma substitution_lemma_not_to_be_tried_at_home: 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   326
  assumes asm: "x\<noteq>y" "x\<sharp>L"
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   327
  shows "M[x::=N][y::=L] = M[y::=L][x::=N[y::=L]]"
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   328
using asm
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   329
proof (induct M arbitrary: x y N L rule: lam.induct)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   330
  case (Lam z M1) 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   331
  have ih: "\<And>x y N L. \<lbrakk>x\<noteq>y; x\<sharp>L\<rbrakk> \<Longrightarrow> M1[x::=N][y::=L] = M1[y::=L][x::=N[y::=L]]" by fact
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   332
  have "x\<noteq>y" by fact
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   333
  have "x\<sharp>L" by fact
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   334
  obtain z'::"name" where fc: "z'\<sharp>(x,y,z,M1,N,L)" by (rule exists_fresh) (auto simp add: fs_name1)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   335
  have eq: "Lam [z'].([(z',z)]\<bullet>M1) = Lam [z].M1" using fc 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   336
    by (auto simp add: lam.inject alpha fresh_prod fresh_atm)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   337
  have fc': "z'\<sharp>N[y::=L]" using fc by (simp add: fresh_fact fresh_prod)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   338
  have "([(z',z)]\<bullet>x) \<noteq> ([(z',z)]\<bullet>y)" using `x\<noteq>y` by (auto simp add: calc_atm)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   339
  moreover
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   340
  have "([(z',z)]\<bullet>x)\<sharp>([(z',z)]\<bullet>L)" using `x\<sharp>L` by (simp add: fresh_bij)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   341
  ultimately 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   342
  have "M1[([(z',z)]\<bullet>x)::=([(z',z)]\<bullet>N)][([(z',z)]\<bullet>y)::=([(z',z)]\<bullet>L)] 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   343
        = M1[([(z',z)]\<bullet>y)::=([(z',z)]\<bullet>L)][([(z',z)]\<bullet>x)::=([(z',z)]\<bullet>N)[([(z',z)]\<bullet>y)::=([(z',z)]\<bullet>L)]]"
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   344
    using ih by simp
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   345
  then have "[(z',z)]\<bullet>(M1[([(z',z)]\<bullet>x)::=([(z',z)]\<bullet>N)][([(z',z)]\<bullet>y)::=([(z',z)]\<bullet>L)] 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   346
        = M1[([(z',z)]\<bullet>y)::=([(z',z)]\<bullet>L)][([(z',z)]\<bullet>x)::=([(z',z)]\<bullet>N)[([(z',z)]\<bullet>y)::=([(z',z)]\<bullet>L)]])"
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   347
    by (simp add: perm_bool)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   348
  then have ih': "([(z',z)]\<bullet>M1)[x::=N][y::=L] = ([(z',z)]\<bullet>M1)[y::=L][x::=N[y::=L]]"
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   349
    by (simp add: eqvts perm_swap)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   350
  show "(Lam [z].M1)[x::=N][y::=L] = (Lam [z].M1)[y::=L][x::=N[y::=L]]" (is "?LHS=?RHS") 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   351
  proof - 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   352
    have "?LHS = (Lam [z'].([(z',z)]\<bullet>M1))[x::=N][y::=L]" using eq by simp
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   353
    also have "\<dots> = Lam [z'].(([(z',z)]\<bullet>M1)[x::=N][y::=L])" using fc by (simp add: fresh_prod)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   354
    also from ih have "\<dots> = Lam [z'].(([(z',z)]\<bullet>M1)[y::=L][x::=N[y::=L]])" sorry 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   355
    also have "\<dots> = (Lam [z'].([(z',z)]\<bullet>M1))[y::=L][x::=N[y::=L]]" using fc fc' by (simp add: fresh_prod)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   356
    also have "\<dots> = ?RHS" using eq by simp
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   357
    finally show "?LHS = ?RHS" .
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   358
  qed
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   359
qed (auto simp add: forget)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   360
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   361
  \end{textblock}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   362
  \mbox{}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   363
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   364
  \only<2->{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   365
  \begin{textblock}{11.5}(4,2.3)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   366
  \begin{minipage}{9.3cm}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   367
  \begin{block}{}\footnotesize
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   368
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   369
lemma substitution_lemma\<iota>:
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   370
  assumes asm: "x \<noteq> y" "x \<sharp> L"
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   371
  shows "M[x::=N][y::=L] = M[y::=L][x::=N[y::=L]]"
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   372
  using asm
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   373
by (nominal_induct M avoiding: x y N L rule: lam.strong_induct)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   374
     (auto simp add: forget fresh_fact)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   375
text_raw {*  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   376
  \end{block}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   377
  \end{minipage}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   378
  \end{textblock}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   379
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   380
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   381
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   382
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   383
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   384
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   385
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   386
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   387
  \begin{frame}<1->[t]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   388
  \frametitle{Regular Expressions}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   389
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   390
  \begin{textblock}{6}(2,4)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   391
  \begin{tabular}{@ {}rrl}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   392
  \bl{r} & \bl{$::=$}  & \bl{$\varnothing$}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   393
         & \bl{$\mid$} & \bl{[]}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   394
         & \bl{$\mid$} & \bl{c}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   395
         & \bl{$\mid$} & \bl{r$_1$ + r$_2$}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   396
         & \bl{$\mid$} & \bl{r$_1$ $\cdot$ r$_2$}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   397
         & \bl{$\mid$} & \bl{r$^*$}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   398
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   399
  \end{textblock}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   400
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   401
  \begin{textblock}{6}(8,3.5)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   402
  \includegraphics[scale=0.35]{Screen1.png}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   403
  \end{textblock}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   404
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   405
  \begin{textblock}{6}(10.2,2.8)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   406
  \footnotesize Isabelle:
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   407
  \end{textblock}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   408
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   409
  \only<2>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   410
  \begin{textblock}{9}(3.6,11.8)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   411
  \bl{matches r s $\;\Longrightarrow\;$ true $\vee$ false}\\[3.5mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   412
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   413
  \hspace{10mm}\begin{tikzpicture}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   414
  \coordinate (m1) at (0.4,1);
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   415
  \draw (0,0.3) node (m2) {\small\color{gray}rexp};
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   416
  \path[overlay, ->, line width = 0.5mm, shorten <=-1mm, draw = gray] (m2) edge (m1);
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   417
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   418
  \coordinate (s1) at (0.81,1);
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   419
  \draw (1.3,0.3) node (s2) {\small\color{gray} string};
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   420
  \path[overlay, ->, line width = 0.5mm, shorten <=-1mm, draw = gray] (s2) edge (s1);
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   421
  \end{tikzpicture}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   422
  \end{textblock}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   423
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   424
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   425
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   426
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   427
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   428
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   429
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   430
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   431
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   432
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   433
  \begin{frame}<1->[t]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   434
  \frametitle{Specification}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   435
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   436
  \small
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   437
  \begin{textblock}{6}(0,3.5)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   438
  \begin{tabular}{r@ {\hspace{0.5mm}}r@ {\hspace{1.5mm}}c@ {\hspace{1.5mm}}l}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   439
  \multicolumn{4}{c}{rexp $\Rightarrow$ set of strings}\bigskip\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   440
  &\bl{\LL ($\varnothing$)}   & \bl{$\dn$} & \bl{$\varnothing$}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   441
  &\bl{\LL ([])}              & \bl{$\dn$} & \bl{\{[]\}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   442
  &\bl{\LL (c)}               & \bl{$\dn$} & \bl{\{c\}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   443
  &\bl{\LL (r$_1$ + r$_2$)}   & \bl{$\dn$} & \bl{\LL (r$_1$) $\cup$ \LL (r$_2$)}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   444
  \rd{$\Rightarrow$} &\bl{\LL (r$_1$ $\cdot$ r$_2$)} & \bl{$\dn$} & \bl{\LL (r$_1$) ;; \LL (r$_2$)}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   445
  \rd{$\Rightarrow$} &\bl{\LL (r$^*$)}           & \bl{$\dn$} & \bl{(\LL (r))$^\star$}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   446
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   447
  \end{textblock}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   448
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   449
  \begin{textblock}{9}(7.3,3)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   450
  {\mbox{}\hspace{2cm}\footnotesize Isabelle:\smallskip}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   451
  \includegraphics[scale=0.325]{Screen3.png}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   452
  \end{textblock}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   453
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   454
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   455
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   456
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   457
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   458
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   459
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   460
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   461
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   462
  \begin{frame}<1->[t]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   463
  \frametitle{Version 1}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   464
  \small
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   465
  \mbox{}\\[-8mm]\mbox{}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   466
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   467
  \begin{center}\def\arraystretch{1.05}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   468
  \begin{tabular}{@ {\hspace{-5mm}}l@ {\hspace{2.5mm}}c@ {\hspace{2.5mm}}l@ {}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   469
  \bl{match [] []}                   & \bl{$=$} & \bl{true}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   470
  \bl{match [] (c::s)}               & \bl{$=$} & \bl{false}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   471
  \bl{match ($\varnothing$::rs) s}   & \bl{$=$} & \bl{false}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   472
  \bl{match ([]::rs) s}              & \bl{$=$} & \bl{match rs s}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   473
  \bl{match (c::rs) []}              & \bl{$=$} & \bl{false}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   474
  \bl{match (c::rs) (d::s)}          & \bl{$=$} & \bl{if c = d then match rs s else false}\\     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   475
  \bl{match (r$_1$ + r$_2$::rs) s} & \bl{$=$} & \bl{match (r$_1$::rs) s $\vee$ match (r$_2$::rs) s}\\ 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   476
  \bl{match (r$_1$ $\cdot$ r$_2$::rs) s} & \bl{$=$} & \bl{match (r$_1$::r$_2$::rs) s}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   477
  \bl{match (r$^*$::rs) s}          & \bl{$=$} & \bl{match rs s $\vee$ match (r::r$^*$::rs) s}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   478
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   479
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   480
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   481
  \begin{textblock}{9}(0.2,1.6)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   482
  \hspace{10mm}\begin{tikzpicture}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   483
  \coordinate (m1) at (0.44,-0.5);
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   484
  \draw (0,0.3) node (m2) {\small\color{gray}\mbox{}\hspace{-9mm}list of rexps};
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   485
  \path[overlay, ->, line width = 0.5mm, shorten <=-1mm, draw = gray] (m2) edge (m1);
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   486
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   487
  \coordinate (s1) at (0.86,-0.5);
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   488
  \draw (1.5,0.3) node (s2) {\small\color{gray} string};
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   489
  \path[overlay, ->, line width = 0.5mm, shorten <=-1mm, draw = gray] (s2) edge (s1);
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   490
  \end{tikzpicture}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   491
  \end{textblock}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   492
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   493
  \begin{textblock}{9}(2.8,11.8)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   494
  \bl{matches$_1$ r s $\;=\;$ match [r] s}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   495
  \end{textblock}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   496
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   497
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   498
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   499
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   500
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   501
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   502
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   503
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   504
  \begin{frame}<1->[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   505
  \frametitle{Testing}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   506
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   507
  \small
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   508
  Every good programmer should do thourough tests: 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   509
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   510
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   511
  \begin{tabular}{@ {\hspace{-20mm}}lcl}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   512
  \bl{matches$_1$ (a$\cdot$b)$^*\;$ []}     & \bl{$\mapsto$} & \bl{true}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   513
  \bl{matches$_1$ (a$\cdot$b)$^*\;$ ab}   & \bl{$\mapsto$} & \bl{true}\\ 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   514
  \bl{matches$_1$ (a$\cdot$b)$^*\;$ aba}  & \bl{$\mapsto$} & \bl{false}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   515
  \bl{matches$_1$ (a$\cdot$b)$^*\;$ abab} & \bl{$\mapsto$} & \bl{true}\\ 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   516
  \bl{matches$_1$ (a$\cdot$b)$^*\;$ abaa} & \bl{$\mapsto$} & \bl{false}\medskip\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   517
  \onslide<2->{\bl{matches$_1$ x$\cdot$(0$|$1)$^*\;$ x}   & \bl{$\mapsto$} & \bl{true}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   518
  \onslide<2->{\bl{matches$_1$ x$\cdot$(0$|$1)$^*\;$ x0}  & \bl{$\mapsto$} & \bl{true}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   519
  \onslide<2->{\bl{matches$_1$ x$\cdot$(0$|$1)$^*\;$ x3}  & \bl{$\mapsto$} & \bl{false}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   520
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   521
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   522
 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   523
  \onslide<3->
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   524
  {Looks OK \ldots let's ship it to customers\hspace{5mm} 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   525
   \raisebox{-5mm}{\includegraphics[scale=0.05]{sun.png}}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   526
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   527
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   528
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   529
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   530
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   531
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   532
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   533
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   534
  \begin{frame}<1->[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   535
  \frametitle{Version 1}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   536
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   537
  \only<1->{Several hours later\ldots}\pause
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   538
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   539
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   540
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   541
  \begin{tabular}{@ {\hspace{0mm}}lcl}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   542
  \bl{matches$_1$ []$^*$ s}     & \bl{$\mapsto$} & loops\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   543
  \onslide<4->{\bl{matches$_1$ ([] + \ldots)$^*$ s}   & \bl{$\mapsto$} & loops\\} 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   544
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   545
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   546
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   547
  \small
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   548
  \onslide<3->{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   549
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   550
  \begin{tabular}{@ {}l@ {\hspace{2mm}}c@ {\hspace{2mm}}l@ {}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   551
  \ldots\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   552
  \bl{match ([]::rs) s}           & \bl{$=$} & \bl{match rs s}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   553
  \ldots\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   554
  \bl{match (r$^*$::rs) s}        & \bl{$=$} & \bl{match rs s $\vee$ match (r::r$^*$::rs) s}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   555
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   556
  \end{center}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   557
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   558
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   559
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   560
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   561
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   562
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   563
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   564
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   565
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   566
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   567
  \begin{frame}<1->[t]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   568
  \frametitle{Testing}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   569
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   570
  \begin{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   571
  \item While testing is an important part in the process of programming development\pause\ldots
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   572
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   573
  \item we can only test a {\bf finite} amount of examples.\bigskip\pause
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   574
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   575
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   576
  \colorbox{cream}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   577
  {\gr{\begin{minipage}{10cm}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   578
  ``Testing can only show the presence of errors, never their
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   579
  absence.'' (Edsger W.~Dijkstra)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   580
  \end{minipage}}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   581
  \end{center}\bigskip\pause
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   582
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   583
  \item In a theorem prover we can establish properties that apply to 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   584
  {\bf all} input and {\bf all} output. 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   585
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   586
  \end{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   587
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   588
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   589
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   590
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   591
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   592
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   593
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   594
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   595
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   596
  \begin{frame}<1->[t]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   597
  \frametitle{Version 2}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   598
  \mbox{}\\[-14mm]\mbox{}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   599
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   600
  \small
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   601
  \begin{tabular}{@ {}l@ {\hspace{2mm}}c@ {\hspace{2mm}}ll@ {}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   602
  \bl{nullable ($\varnothing$)}   & \bl{$=$} & \bl{false} &\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   603
  \bl{nullable ([])}              & \bl{$=$} & \bl{true}  &\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   604
  \bl{nullable (c)}               & \bl{$=$} & \bl{false} &\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   605
  \bl{nullable (r$_1$ + r$_2$)}   & \bl{$=$} & \bl{nullable r$_1$ $\vee$ nullable r$_2$} & \\ 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   606
  \bl{nullable (r$_1$ $\cdot$ r$_2$)} & \bl{$=$} & \bl{nullable r$_1$ $\wedge$ nullable r$_2$} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   607
  \bl{nullable (r$^*$)}           & \bl{$=$} & \bl{true} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   608
  \end{tabular}\medskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   609
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   610
  \begin{tabular}{@ {}l@ {\hspace{2mm}}c@ {\hspace{2mm}}l@ {\hspace{-10mm}}l@ {}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   611
  \bl{der c ($\varnothing$)}       & \bl{$=$} & \bl{$\varnothing$} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   612
  \bl{der c ([])}                  & \bl{$=$} & \bl{$\varnothing$} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   613
  \bl{der c (d)}                   & \bl{$=$} & \bl{if c = d then [] else $\varnothing$} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   614
  \bl{der c (r$_1$ + r$_2$)}       & \bl{$=$} & \bl{(der c r$_1$) + (der c r$_2$)} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   615
  \bl{der c (r$_1$ $\cdot$ r$_2$)} & \bl{$=$} & \bl{((der c r$_1$) $\cdot$ r$_2$)} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   616
       &          & \bl{\;\;\;\;+ (if nullable r$_1$ then der c r$_2$ else $\varnothing$)}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   617
  \bl{der c (r$^*$)}          & \bl{$=$} & \bl{(der c r) $\cdot$ r$^*$} &\smallskip\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   618
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   619
  \bl{derivative r []}     & \bl{$=$} & \bl{r} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   620
  \bl{derivative r (c::s)} & \bl{$=$} & \bl{derivative (der c r) s} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   621
  \end{tabular}\medskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   622
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   623
  \bl{matches$_2$ r s $=$ nullable (derivative r s)}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   624
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   625
  \begin{textblock}{6}(9.5,0.9)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   626
  \begin{flushright}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   627
  \color{gray}``if r matches []'' 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   628
  \end{flushright}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   629
  \end{textblock}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   630
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   631
  \begin{textblock}{6}(9.5,6.18)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   632
  \begin{flushright}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   633
  \color{gray}``derivative w.r.t.~a char'' 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   634
  \end{flushright}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   635
  \end{textblock}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   636
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   637
  \begin{textblock}{6}(9.5,12.1)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   638
  \begin{flushright}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   639
  \color{gray}``deriv.~w.r.t.~a string'' 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   640
  \end{flushright}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   641
  \end{textblock}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   642
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   643
  \begin{textblock}{6}(9.5,13.98)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   644
  \begin{flushright}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   645
  \color{gray}``main'' 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   646
  \end{flushright}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   647
  \end{textblock}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   648
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   649
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   650
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   651
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   652
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   653
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   654
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   655
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   656
  \begin{frame}<1->[t]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   657
  \frametitle{Is the Matcher Error-Free?}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   658
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   659
  We expect that
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   660
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   661
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   662
  \begin{tabular}{lcl}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   663
  \bl{matches$_2$ r s = true}  & \only<1>{\rd{$\Longrightarrow\,\,$}}\only<2>{\rd{$\Longleftarrow\,\,$}}% 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   664
  \only<3->{\rd{$\Longleftrightarrow$}} & \bl{s $\in$ \LL(r)}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   665
  \bl{matches$_2$ r s = false} & \only<1>{\rd{$\Longrightarrow\,\,$}}\only<2>{\rd{$\Longleftarrow\,\,$}}%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   666
  \only<3->{\rd{$\Longleftrightarrow$}} & \bl{s $\notin$ \LL(r)}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   667
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   668
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   669
  \pause\pause\bigskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   670
  By \alert<4->{induction}, we can {\bf prove} these properties.\bigskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   671
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   672
  \begin{tabular}{lrcl}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   673
  Lemmas:  & \bl{nullable (r)}          & \bl{$\Longleftrightarrow$} & \bl{[] $\in$ \LL (r)}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   674
           & \bl{s $\in$ \LL (der c r)} & \bl{$\Longleftrightarrow$} & \bl{(c::s) $\in$ \LL (r)}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   675
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   676
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   677
  \only<4->{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   678
  \begin{textblock}{3}(0.9,4.5)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   679
  \rd{\huge$\forall$\large{}r s.}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   680
  \end{textblock}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   681
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   682
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   683
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   684
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   685
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   686
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   687
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   688
  \begin{frame}<1>[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   689
  \frametitle{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   690
  \begin{tabular}{c}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   691
  \mbox{}\\[23mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   692
  \LARGE Demo
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   693
  \end{tabular}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   694
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   695
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   696
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   697
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   698
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   699
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   700
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   701
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   702
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   703
  \begin{frame}<1->[t]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   704
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   705
  \mbox{}\\[-2mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   706
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   707
  \small
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   708
  \begin{tabular}{@ {}l@ {\hspace{2mm}}c@ {\hspace{2mm}}ll@ {}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   709
  \bl{nullable (NULL)}            & \bl{$=$} & \bl{false} &\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   710
  \bl{nullable (EMPTY)}           & \bl{$=$} & \bl{true}  &\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   711
  \bl{nullable (CHR c)}           & \bl{$=$} & \bl{false} &\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   712
  \bl{nullable (ALT r$_1$ r$_2$)} & \bl{$=$} & \bl{(nullable r$_1$) orelse (nullable r$_2$)} & \\ 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   713
  \bl{nullable (SEQ r$_1$ r$_2$)} & \bl{$=$} & \bl{(nullable r$_1$) andalso (nullable r$_2$)} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   714
  \bl{nullable (STAR r)}          & \bl{$=$} & \bl{true} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   715
  \end{tabular}\medskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   716
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   717
  \begin{tabular}{@ {}l@ {\hspace{2mm}}c@ {\hspace{2mm}}l@ {\hspace{-10mm}}l@ {}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   718
  \bl{der c (NULL)}            & \bl{$=$} & \bl{NULL} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   719
  \bl{der c (EMPTY)}           & \bl{$=$} & \bl{NULL} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   720
  \bl{der c (CHR d)}           & \bl{$=$} & \bl{if c=d then EMPTY else NULL} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   721
  \bl{der c (ALT r$_1$ r$_2$)} & \bl{$=$} & \bl{ALT (der c r$_1$) (der c r$_2$)} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   722
  \bl{der c (SEQ r$_1$ r$_2$)} & \bl{$=$} & \bl{ALT (SEQ (der c r$_1$) r$_2$)} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   723
       &          & \bl{\phantom{ALT} (if nullable r$_1$ then der c r$_2$ else NULL)}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   724
  \bl{der c (STAR r)}          & \bl{$=$} & \bl{SEQ (der c r) (STAR r)} &\smallskip\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   725
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   726
  \bl{derivative r []}     & \bl{$=$} & \bl{r} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   727
  \bl{derivative r (c::s)} & \bl{$=$} & \bl{derivative (der c r) s} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   728
  \end{tabular}\medskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   729
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   730
  \bl{matches r s $=$ nullable (derivative r s)}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   731
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   732
  \only<2>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   733
  \begin{textblock}{8}(1.5,4)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   734
  \includegraphics[scale=0.3]{approved.png}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   735
  \end{textblock}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   736
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   737
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   738
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   739
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   740
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   741
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   742
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   743
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   744
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   745
  \begin{frame}[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   746
  \frametitle{No Automata?}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   747
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   748
  You might be wondering why I did not use any automata?
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   749
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   750
  \begin{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   751
  \item {\bf Def.:} A \alert{regular language} is one where there is a DFA that 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   752
  recognises it.\bigskip\pause
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   753
  \end{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   754
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   755
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   756
  There are many reasons why this is a good definition:\medskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   757
  \begin{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   758
  \item pumping lemma
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   759
  \item closure properties of regular languages\\ (e.g.~closure under complement)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   760
  \end{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   761
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   762
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   763
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   764
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   765
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   766
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   767
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   768
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   769
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   770
  \begin{frame}[t]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   771
  \frametitle{Really Bad News!}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   772
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   773
  DFAs are bad news for formalisations in theorem provers. They might
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   774
  be represented as:
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   775
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   776
  \begin{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   777
  \item graphs
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   778
  \item matrices
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   779
  \item partial functions
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   780
  \end{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   781
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   782
  All constructions are messy to reason about.\bigskip\bigskip 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   783
  \pause
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   784
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   785
  \small
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   786
  \only<2>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   787
  Constable et al needed (on and off) 18 months for a 3-person team 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   788
  to formalise automata theory in Nuprl including Myhill-Nerode. There is 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   789
  only very little other formalised work on regular languages I know of
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   790
  in Coq, Isabelle and HOL.}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   791
  \only<3>{Typical textbook reasoning goes like: ``\ldots if \smath{M} and \smath{N} are any two
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   792
  automata with no inaccessible states \ldots''
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   793
  }
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   794
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   795
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   796
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   797
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   798
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   799
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   800
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   801
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   802
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   803
  \begin{frame}[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   804
  \frametitle{}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   805
  \large
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   806
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   807
  \begin{tabular}{p{9cm}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   808
  My point:\bigskip\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   809
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   810
  The theory about regular languages can be reformulated 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   811
  to be more\\ suitable for theorem proving.
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   812
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   813
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   814
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   815
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   816
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   817
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   818
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   819
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   820
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   821
  \begin{frame}[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   822
  \frametitle{\LARGE The Myhill-Nerode Theorem}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   823
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   824
  \begin{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   825
  \item provides necessary and suf\!ficient conditions for a language 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   826
  being regular (pumping lemma only necessary)\medskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   827
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   828
  \item will help with closure properties of regular languages\bigskip\pause
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   829
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   830
  \item key is the equivalence relation:\smallskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   831
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   832
  \smath{x \approx_{L} y \,\dn\, \forall z.\; x @ z \in L \Leftrightarrow y @ z \in L}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   833
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   834
  \end{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   835
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   836
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   837
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   838
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   839
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   840
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   841
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   842
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   843
  \begin{frame}[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   844
  \frametitle{\LARGE The Myhill-Nerode Theorem}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   845
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   846
  \mbox{}\\[5cm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   847
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   848
  \begin{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   849
  \item \smath{\text{finite}\, (U\!N\!IV /\!/ \approx_L) \;\Leftrightarrow\; L\; \text{is regular}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   850
  \end{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   851
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   852
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   853
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   854
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   855
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   856
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   857
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   858
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   859
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   860
  \begin{frame}[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   861
  \frametitle{\LARGE Equivalence Classes}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   862
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   863
  \begin{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   864
  \item \smath{L = []}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   865
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   866
  \smath{\Big\{\{[]\},\; U\!N\!IV - \{[]\}\Big\}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   867
  \end{center}\bigskip\bigskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   868
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   869
  \item \smath{L = [c]}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   870
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   871
  \smath{\Big\{\{[]\},\; \{[c]\},\; U\!N\!IV - \{[], [c]\}\Big\}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   872
  \end{center}\bigskip\bigskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   873
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   874
  \item \smath{L = \varnothing}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   875
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   876
  \smath{\Big\{U\!N\!IV\Big\}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   877
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   878
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   879
  \end{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   880
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   881
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   882
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   883
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   884
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   885
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   886
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   887
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   888
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   889
  \begin{frame}[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   890
  \frametitle{\LARGE Regular Languages}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   891
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   892
  \begin{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   893
  \item \smath{L} is regular \smath{\dn} if there is an automaton \smath{M} 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   894
  such that \smath{\mathbb{L}(M) = L}\\[1.5cm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   895
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   896
  \item Myhill-Nerode:
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   897
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   898
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   899
  \begin{tabular}{l}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   900
  finite $\Rightarrow$ regular\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   901
  \;\;\;\smath{\text{finite}\,(U\!N\!IV /\!/ \approx_L) \Rightarrow \exists r.\; L = \mathbb{L}(r)}\\[3mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   902
  regular $\Rightarrow$ finite\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   903
  \;\;\;\smath{\text{finite}\, (U\!N\!IV /\!/ \approx_{\mathbb{L}(r)})}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   904
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   905
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   906
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   907
  \end{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   908
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   909
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   910
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   911
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   912
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   913
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   914
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   915
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   916
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   917
  \begin{frame}[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   918
  \frametitle{\LARGE Final Equiv.~Classes}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   919
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   920
  \mbox{}\\[3cm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   921
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   922
  \begin{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   923
  \item \smath{\text{finals}\,L \dn 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   924
     \{{\lbrack\mkern-2mu\lbrack{s}\rbrack\mkern-2mu\rbrack}_\approx\;|\; s \in L\}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   925
  \medskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   926
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   927
  \item we can prove: \smath{L = \bigcup (\text{finals}\,L)}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   928
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   929
  \end{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   930
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   931
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   932
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   933
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   934
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   935
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   936
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   937
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   938
  \begin{frame}[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   939
  \frametitle{\LARGE Transitions between ECs}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   940
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   941
  \smath{L = \{[c]\}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   942
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   943
  \begin{tabular}{@ {\hspace{-7mm}}cc}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   944
  \begin{tabular}{c}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   945
  \begin{tikzpicture}[shorten >=1pt,node distance=2cm,auto, ultra thick]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   946
  \tikzstyle{state}=[circle,thick,draw=blue!75,fill=blue!20,minimum size=0mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   947
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   948
  %\draw[help lines] (0,0) grid (3,2);
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   949
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   950
  \node[state,initial]   (q_0)                        {$R_1$};
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   951
  \node[state,accepting] (q_1) [above right of=q_0]   {$R_2$};
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   952
  \node[state]           (q_2) [below right of=q_0]   {$R_3$};
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   953
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   954
  \path[->] (q_0) edge                node        {c} (q_1)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   955
                  edge                node [swap] {$\Sigma-{c}$} (q_2)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   956
            (q_2) edge [loop below]   node        {$\Sigma$} ()
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   957
            (q_1) edge                node        {$\Sigma$} (q_2);
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   958
  \end{tikzpicture}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   959
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   960
  &
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   961
  \begin{tabular}[t]{ll}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   962
  \\[-20mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   963
  \multicolumn{2}{l}{\smath{U\!N\!IV /\!/\approx_L} produces}\\[4mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   964
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   965
  \smath{R_1}: & \smath{\{[]\}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   966
  \smath{R_2}: & \smath{\{[c]\}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   967
  \smath{R_3}: & \smath{U\!N\!IV - \{[], [c]\}}\\[6mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   968
  \multicolumn{2}{l}{\onslide<2->{\smath{X \stackrel{c}{\longrightarrow} Y \dn X ;; [c] \subseteq Y}}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   969
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   970
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   971
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   972
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   973
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   974
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   975
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   976
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   977
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   978
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   979
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   980
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   981
  \begin{frame}[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   982
  \frametitle{\LARGE Systems of Equations}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   983
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   984
  Inspired by a method of Brzozowski\;'64, we can build an equational system
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   985
  characterising the equivalence classes:
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   986
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   987
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   988
  \begin{tabular}{@ {\hspace{-20mm}}c}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   989
  \\[-13mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   990
  \begin{tikzpicture}[shorten >=1pt,node distance=2cm,auto, ultra thick]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   991
  \tikzstyle{state}=[circle,thick,draw=blue!75,fill=blue!20,minimum size=0mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   992
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   993
  %\draw[help lines] (0,0) grid (3,2);
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   994
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   995
  \node[state,initial]   (p_0)                  {$R_1$};
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   996
  \node[state,accepting] (p_1) [right of=q_0]   {$R_2$};
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   997
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   998
  \path[->] (p_0) edge [bend left]   node        {a} (p_1)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   999
                  edge [loop above]   node       {b} ()
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1000
            (p_1) edge [loop above]   node       {a} ()
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1001
                  edge [bend left]   node        {b} (p_0);
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1002
  \end{tikzpicture}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1003
  \\[-13mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1004
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1005
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1006
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1007
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1008
  \begin{tabular}{@ {\hspace{-6mm}}ll@ {\hspace{1mm}}c@ {\hspace{1mm}}l}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1009
  & \smath{R_1} & \smath{\equiv} & \smath{R_1;b + R_2;b \onslide<2->{\alert<2>{+ \lambda;[]}}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1010
  & \smath{R_2} & \smath{\equiv} & \smath{R_1;a + R_2;a}\medskip\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1011
  \onslide<3->{we can prove} 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1012
  & \onslide<3->{\smath{R_1}} & \onslide<3->{\smath{=}} 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1013
      & \onslide<3->{\smath{R_1;; \mathbb{L}(b) \,\cup\, R_2;;\mathbb{L}(b) \,\cup\, \{[]\}}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1014
  & \onslide<3->{\smath{R_2}} & \onslide<3->{\smath{=}}    
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1015
      & \onslide<3->{\smath{R_1;; \mathbb{L}(a) \,\cup\, R_2;;\mathbb{L}(a)}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1016
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1017
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1018
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1019
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1020
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1021
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1022
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1023
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1024
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1025
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1026
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1027
  \begin{frame}<1>[t]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1028
  \small
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1029
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1030
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1031
  \begin{tabular}{l@ {\hspace{1mm}}c@ {\hspace{1mm}}ll}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1032
  \onslide<1->{\smath{R_1}} & \onslide<1->{\smath{=}} 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1033
      & \onslide<1->{\smath{R_1; b + R_2; b + \lambda;[]}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1034
  \onslide<1->{\smath{R_2}} & \onslide<1->{\smath{=}}    
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1035
      & \onslide<1->{\smath{R_1; a + R_2; a}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1036
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1037
  & & & \onslide<2->{by Arden}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1038
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1039
  \onslide<2->{\smath{R_1}} & \onslide<2->{\smath{=}} 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1040
      & \onslide<2->{\smath{R_1; b + R_2; b + \lambda;[]}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1041
  \onslide<2->{\smath{R_2}} & \onslide<2->{\smath{=}}    
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1042
      & \only<2>{\smath{R_1; a + R_2; a}}%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1043
        \only<3->{\smath{R_1; a\cdot a^\star}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1044
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1045
  & & & \onslide<4->{by Arden}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1046
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1047
  \onslide<4->{\smath{R_1}} & \onslide<4->{\smath{=}} 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1048
      & \onslide<4->{\smath{R_2; b \cdot b^\star+ \lambda;b^\star}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1049
  \onslide<4->{\smath{R_2}} & \onslide<4->{\smath{=}}    
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1050
      & \onslide<4->{\smath{R_1; a\cdot a^\star}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1051
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1052
  & & & \onslide<5->{by substitution}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1053
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1054
  \onslide<5->{\smath{R_1}} & \onslide<5->{\smath{=}} 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1055
      & \onslide<5->{\smath{R_1; a\cdot a^\star \cdot b \cdot b^\star+ \lambda;b^\star}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1056
  \onslide<5->{\smath{R_2}} & \onslide<5->{\smath{=}}    
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1057
      & \onslide<5->{\smath{R_1; a\cdot a^\star}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1058
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1059
  & & & \onslide<6->{by Arden}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1060
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1061
  \onslide<6->{\smath{R_1}} & \onslide<6->{\smath{=}} 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1062
      & \onslide<6->{\smath{\lambda;b^\star\cdot (a\cdot a^\star \cdot b \cdot b^\star)^\star}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1063
  \onslide<6->{\smath{R_2}} & \onslide<6->{\smath{=}}    
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1064
      & \onslide<6->{\smath{R_1; a\cdot a^\star}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1065
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1066
  & & & \onslide<7->{by substitution}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1067
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1068
  \onslide<7->{\smath{R_1}} & \onslide<7->{\smath{=}} 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1069
      & \onslide<7->{\smath{\lambda;b^\star\cdot (a\cdot a^\star \cdot b \cdot b^\star)^\star}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1070
  \onslide<7->{\smath{R_2}} & \onslide<7->{\smath{=}}    
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1071
      & \onslide<7->{\smath{\lambda; b^\star\cdot (a\cdot a^\star \cdot b \cdot b^\star)^\star 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1072
          \cdot a\cdot a^\star}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1073
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1074
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1075
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1076
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1077
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1078
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1079
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1080
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1081
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1082
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1083
  \begin{frame}[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1084
  \frametitle{\LARGE A Variant of Arden's Lemma}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1085
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1086
  {\bf Arden's Lemma:}\smallskip 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1087
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1088
  If \smath{[] \not\in A} then
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1089
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1090
  \smath{X = X; A + \text{something}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1091
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1092
  has the (unique) solution
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1093
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1094
  \smath{X = \text{something} ; A^\star}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1095
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1096
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1097
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1098
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1099
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1100
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1101
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1102
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1103
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1104
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1105
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1106
  \begin{frame}<1->[t]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1107
  \small
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1108
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1109
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1110
  \begin{tabular}{l@ {\hspace{1mm}}c@ {\hspace{1mm}}ll}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1111
  \onslide<1->{\smath{R_1}} & \onslide<1->{\smath{=}} 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1112
      & \onslide<1->{\smath{R_1; b + R_2; b + \lambda;[]}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1113
  \onslide<1->{\smath{R_2}} & \onslide<1->{\smath{=}}    
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1114
      & \onslide<1->{\smath{R_1; a + R_2; a}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1115
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1116
  & & & \onslide<2->{by Arden}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1117
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1118
  \onslide<2->{\smath{R_1}} & \onslide<2->{\smath{=}} 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1119
      & \onslide<2->{\smath{R_1; b + R_2; b + \lambda;[]}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1120
  \onslide<2->{\smath{R_2}} & \onslide<2->{\smath{=}}    
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1121
      & \only<2>{\smath{R_1; a + R_2; a}}%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1122
        \only<3->{\smath{R_1; a\cdot a^\star}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1123
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1124
  & & & \onslide<4->{by Arden}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1125
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1126
  \onslide<4->{\smath{R_1}} & \onslide<4->{\smath{=}} 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1127
      & \onslide<4->{\smath{R_2; b \cdot b^\star+ \lambda;b^\star}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1128
  \onslide<4->{\smath{R_2}} & \onslide<4->{\smath{=}}    
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1129
      & \onslide<4->{\smath{R_1; a\cdot a^\star}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1130
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1131
  & & & \onslide<5->{by substitution}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1132
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1133
  \onslide<5->{\smath{R_1}} & \onslide<5->{\smath{=}} 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1134
      & \onslide<5->{\smath{R_1; a\cdot a^\star \cdot b \cdot b^\star+ \lambda;b^\star}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1135
  \onslide<5->{\smath{R_2}} & \onslide<5->{\smath{=}}    
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1136
      & \onslide<5->{\smath{R_1; a\cdot a^\star}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1137
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1138
  & & & \onslide<6->{by Arden}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1139
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1140
  \onslide<6->{\smath{R_1}} & \onslide<6->{\smath{=}} 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1141
      & \onslide<6->{\smath{\lambda;b^\star\cdot (a\cdot a^\star \cdot b \cdot b^\star)^\star}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1142
  \onslide<6->{\smath{R_2}} & \onslide<6->{\smath{=}}    
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1143
      & \onslide<6->{\smath{R_1; a\cdot a^\star}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1144
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1145
  & & & \onslide<7->{by substitution}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1146
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1147
  \onslide<7->{\smath{R_1}} & \onslide<7->{\smath{=}} 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1148
      & \onslide<7->{\smath{\lambda;b^\star\cdot (a\cdot a^\star \cdot b \cdot b^\star)^\star}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1149
  \onslide<7->{\smath{R_2}} & \onslide<7->{\smath{=}}    
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1150
      & \onslide<7->{\smath{\lambda; b^\star\cdot (a\cdot a^\star \cdot b \cdot b^\star)^\star 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1151
          \cdot a\cdot a^\star}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1152
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1153
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1154
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1155
  \only<8->{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1156
  \begin{textblock}{6}(2.5,4)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1157
  \begin{block}{}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1158
  \begin{minipage}{8cm}\raggedright
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1159
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1160
  \begin{tikzpicture}[shorten >=1pt,node distance=2cm,auto, ultra thick, inner sep=1mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1161
  \tikzstyle{state}=[circle,thick,draw=blue!75,fill=blue!20,minimum size=0mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1162
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1163
  %\draw[help lines] (0,0) grid (3,2);
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1164
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1165
  \node[state,initial]   (p_0)                  {$R_1$};
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1166
  \node[state,accepting] (p_1) [right of=q_0]   {$R_2$};
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1167
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1168
  \path[->] (p_0) edge [bend left]   node        {a} (p_1)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1169
                  edge [loop above]   node       {b} ()
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1170
            (p_1) edge [loop above]   node       {a} ()
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1171
                  edge [bend left]   node        {b} (p_0);
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1172
  \end{tikzpicture}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1173
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1174
  \end{minipage}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1175
  \end{block}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1176
  \end{textblock}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1177
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1178
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1179
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1180
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1181
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1182
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1183
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1184
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1185
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1186
  \begin{frame}[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1187
  \frametitle{\LARGE The Equ's Solving Algorithm}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1188
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1189
  \begin{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1190
  \item The algorithm must terminate: Arden makes one equation smaller; 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1191
  substitution deletes one variable from the right-hand sides.\bigskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1192
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1193
  \item We need to maintain the invariant that Arden is applicable
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1194
  (if \smath{[] \not\in A} then \ldots):\medskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1195
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1196
  \begin{center}\small
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1197
  \begin{tabular}{l@ {\hspace{1mm}}c@ {\hspace{1mm}}ll}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1198
  \smath{R_1} & \smath{=} & \smath{R_1; b + R_2; b + \lambda;[]}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1199
  \smath{R_2} & \smath{=} & \smath{R_1; a + R_2; a}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1200
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1201
  & & & by Arden\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1202
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1203
  \smath{R_1} & \smath{=} & \smath{R_1; b + R_2; b + \lambda;[]}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1204
  \smath{R_2} & \smath{=} & \smath{R_1; a\cdot a^\star}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1205
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1206
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1207
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1208
  \end{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1209
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1210
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1211
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1212
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1213
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1214
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1215
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1216
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1217
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1218
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1219
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1220
  \begin{frame}[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1221
  \frametitle{\LARGE The Other Direction}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1222
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1223
  One has to prove
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1224
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1225
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1226
  \smath{\text{finite} (U\!N\!IV /\!/ \approx_{\mathbb{L}(r)})}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1227
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1228
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1229
  by induction on \smath{r}. This is straightforward for \\the base cases:\small
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1230
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1231
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1232
  \begin{tabular}{l@ {\hspace{1mm}}l}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1233
  \smath{U\!N\!IV /\!/ \!\approx_{\emptyset}} & \smath{= \{U\!N\!IV\}}\smallskip\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1234
  \smath{U\!N\!IV /\!/ \!\approx_{\{[]\}}} & \smath{\subseteq \{\{[]\}, U\!N\!IV - \{[]\}\}}\smallskip\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1235
  \smath{U\!N\!IV /\!/ \!\approx_{\{[c]\}}} & \smath{\subseteq \{\{[]\}, \{[c]\}, U\!N\!IV - \{[], [c]\}\}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1236
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1237
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1238
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1239
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1240
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1241
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1242
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1243
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1244
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1245
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1246
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1247
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1248
  \begin{frame}[t]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1249
  \frametitle{\LARGE The Other Direction}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1250
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1251
  More complicated are the inductive cases:\\ one needs to prove that if
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1252
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1253
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1254
  \smath{\text{finite} (U\!N\!IV /\!/ \approx_{\mathbb{L}(r_1)})}\hspace{3mm}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1255
  \smath{\text{finite} (U\!N\!IV /\!/ \approx_{\mathbb{L}(r_2)})}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1256
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1257
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1258
  then
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1259
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1260
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1261
  \smath{\text{finite} (U\!N\!IV /\!/ \approx_{\mathbb{L}(r_1) \,\cup\, \mathbb{L}(r_2)})}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1262
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1263
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1264
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1265
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1266
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1267
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1268
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1269
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1270
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1271
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1272
  \begin{frame}[t]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1273
  \frametitle{\LARGE Helper Lemma}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1274
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1275
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1276
  \begin{tabular}{p{10cm}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1277
  %If \smath{\text{finite} (f\;' A)} and \smath{f} is injective 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1278
  %(on \smath{A}),\\ then \smath{\text{finite}\,A}.
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1279
  Given two equivalence relations \smath{R_1} and \smath{R_2} with
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1280
  \smath{R_1} refining \smath{R_2} (\smath{R_1 \subseteq R_2}).\\ 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1281
  Then\medskip\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1282
  \smath{\;\;\text{finite} (U\!N\!IV /\!/ R_1) \Rightarrow \text{finite} (U\!N\!IV /\!/ R_2)}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1283
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1284
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1285
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1286
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1287
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1288
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1289
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1290
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1291
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1292
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1293
  \begin{frame}[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1294
  \frametitle{\Large Derivatives and Left-Quotients}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1295
  \small
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1296
  Work by Brozowski ('64) and Antimirov ('96):\pause\smallskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1297
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1298
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1299
  \begin{tabular}{@ {}l@ {\hspace{2mm}}c@ {\hspace{2mm}}l@ {\hspace{-10mm}}l@ {}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1300
  \multicolumn{4}{@ {}l}{Left-Quotient:}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1301
  \multicolumn{4}{@ {}l}{\bl{$\text{Ders}\;\text{s}\,A \dn \{\text{s'} \;|\; \text{s @ s'} \in A\}$}}\bigskip\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1302
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1303
  \multicolumn{4}{@ {}l}{Derivative:}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1304
  \bl{der c ($\varnothing$)}       & \bl{$=$} & \bl{$\varnothing$} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1305
  \bl{der c ([])}                  & \bl{$=$} & \bl{$\varnothing$} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1306
  \bl{der c (d)}                   & \bl{$=$} & \bl{if c = d then [] else $\varnothing$} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1307
  \bl{der c (r$_1$ + r$_2$)}       & \bl{$=$} & \bl{(der c r$_1$) + (der c r$_2$)} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1308
  \bl{der c (r$_1$ $\cdot$ r$_2$)} & \bl{$=$} & \bl{((der c r$_1$) $\cdot$ r$_2$)} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1309
       &          & \bl{\;\;\;\;+ (if nullable r$_1$ then der c r$_2$ else $\varnothing$)}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1310
  \bl{der c (r$^*$)}          & \bl{$=$} & \bl{(der c r) $\cdot$ r$^*$} &\smallskip\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1311
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1312
  \bl{ders [] r}     & \bl{$=$} & \bl{r} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1313
  \bl{ders (s @ [c]) r} & \bl{$=$} & \bl{der c (ders s r)} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1314
  \end{tabular}\pause
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1315
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1316
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1317
  \alert{$\Rightarrow$}\smath{\;\;\text{Ders}\,\text{s}\,(\mathbb{L}(\text{r})) = \mathbb{L} (\text{ders s r})}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1318
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1319
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1320
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1321
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1322
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1323
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1324
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1325
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1326
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1327
  \begin{frame}[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1328
  \frametitle{\LARGE Left-Quotients and MN-Rels}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1329
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1330
  \begin{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1331
  \item \smath{x \approx_{A} y \,\dn\, \forall z.\; x @ z \in A \Leftrightarrow y @ z \in A}\medskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1332
  \item \bl{$\text{Ders}\;s\,A \dn \{s' \;|\; s @ s' \in A\}$}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1333
  \end{itemize}\bigskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1334
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1335
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1336
  \smath{x \approx_A y  \Longleftrightarrow \text{Ders}\;x\;A = \text{Ders}\;y\;A}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1337
  \end{center}\bigskip\pause\small
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1338
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1339
  which means
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1340
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1341
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1342
  \smath{x \approx_{\mathbb{L}(r)} y  \Longleftrightarrow 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1343
  \mathbb{L}(\text{ders}\;x\;r) = \mathbb{L}(\text{ders}\;y\;r)}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1344
  \end{center}\pause
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1345
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1346
  \hspace{8.8mm}or
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1347
  \smath{\;x \approx_{\mathbb{L}(r)} y  \Longleftarrow 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1348
  \text{ders}\;x\;r = \text{ders}\;y\;r}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1349
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1350
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1351
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1352
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1353
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1354
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1355
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1356
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1357
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1358
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1359
  \begin{frame}[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1360
  \frametitle{\LARGE Partial Derivatives}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1361
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1362
  Antimirov: \bl{pder : rexp $\Rightarrow$ rexp set}\bigskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1363
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1364
  \begin{tabular}{@ {}l@ {\hspace{2mm}}c@ {\hspace{2mm}}l@ {\hspace{-10mm}}l@ {}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1365
  \bl{pder c ($\varnothing$)}       & \bl{$=$} & \bl{\{$\varnothing$\}} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1366
  \bl{pder c ([])}                  & \bl{$=$} & \bl{\{$\varnothing$\}} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1367
  \bl{pder c (d)}                   & \bl{$=$} & \bl{if c = d then \{[]\} else \{$\varnothing$\}} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1368
  \bl{pder c (r$_1$ + r$_2$)}       & \bl{$=$} & \bl{(pder c r$_1$) $\cup$ (pder c r$_2$)} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1369
  \bl{pder c (r$_1$ $\cdot$ r$_2$)} & \bl{$=$} & \bl{(pder c r$_1$) $\odot$ r$_2$} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1370
       &          & \bl{\hspace{-10mm}$\cup$ (if nullable r$_1$ then pder c r$_2$ else $\varnothing$)}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1371
  \bl{pder c (r$^*$)}          & \bl{$=$} & \bl{(pder c r) $\odot$ r$^*$} &\smallskip\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1372
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1373
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1374
  \begin{tabular}{@ {}l@ {\hspace{2mm}}c@ {\hspace{2mm}}l@ {\hspace{-10mm}}l@ {}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1375
  \bl{pders [] r}     & \bl{$=$} & \bl{r} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1376
  \bl{pders (s @ [c]) r} & \bl{$=$} & \bl{pder c (pders s r)} & \\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1377
  \end{tabular}\pause
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1378
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1379
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1380
  \alert{$\Rightarrow$}\smath{\;\;\text{Ders}\,\text{s}\,(\mathbb{L}(\text{r})) = \bigcup (\mathbb{L}\;`\; (\text{pders s r}))}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1381
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1382
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1383
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1384
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1385
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1386
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1387
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1388
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1389
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1390
  \begin{frame}[t]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1391
  \frametitle{\LARGE Final Result}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1392
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1393
  \mbox{}\\[7mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1394
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1395
  \begin{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1396
  \item \alt<1>{\smath{\text{pders x r \mbox{$=$} pders y r}}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1397
            {\smath{\underbrace{\text{pders x r \mbox{$=$} pders y r}}_{R_1}}} 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1398
        refines \bl{x $\approx_{\mathbb{L}(\text{r})}$ y}\pause
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1399
  \item \smath{\text{finite} (U\!N\!IV /\!/ R_1)} \bigskip\pause
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1400
  \item Therefore \smath{\text{finite} (U\!N\!IV /\!/ \approx_{\mathbb{L}(r)})}. Qed.
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1401
  \end{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1402
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1403
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1404
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1405
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1406
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1407
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1408
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1409
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1410
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1411
  \begin{frame}[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1412
  \frametitle{\LARGE What Have We Achieved?}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1413
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1414
  \begin{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1415
  \item \smath{\text{finite}\, (U\!N\!IV /\!/ \approx_L) \;\Leftrightarrow\; L\; \text{is regular}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1416
  \bigskip\pause
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1417
  \item regular languages are closed under complementation; this is now easy\medskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1418
  \begin{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1419
  \smath{U\!N\!IV /\!/ \approx_L \;\;=\;\; U\!N\!IV /\!/ \approx_{-L}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1420
  \end{center}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1421
  \end{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1422
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1423
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1424
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1425
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1426
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1427
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1428
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1429
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1430
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1431
  \begin{frame}[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1432
  \frametitle{\LARGE Examples}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1433
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1434
  \begin{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1435
  \item \smath{L \equiv \Sigma^\star 0 \Sigma} is regular
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1436
  \begin{quote}\small
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1437
  \begin{tabular}{lcl}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1438
  \smath{A_1} & \smath{=} & \smath{\Sigma^\star 00}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1439
  \smath{A_2} & \smath{=} & \smath{\Sigma^\star 01}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1440
  \smath{A_3} & \smath{=} & \smath{\Sigma^\star 10 \cup \{0\}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1441
  \smath{A_4} & \smath{=} & \smath{\Sigma^\star 11 \cup \{1\} \cup \{[]\}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1442
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1443
  \end{quote}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1444
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1445
  \item \smath{L \equiv \{ 0^n 1^n \,|\, n \ge 0\}} is not regular
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1446
  \begin{quote}\small
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1447
  \begin{tabular}{lcl}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1448
  \smath{B_0} & \smath{=} & \smath{\{0^n 1^n \,|\,     n \ge 0\}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1449
  \smath{B_1} & \smath{=} & \smath{\{0^n 1^{(n-1)} \,|\, n \ge 1\}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1450
  \smath{B_2} & \smath{=} & \smath{\{0^n 1^{(n-2)} \,|\, n \ge 2\}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1451
  \smath{B_3} & \smath{=} & \smath{\{0^n 1^{(n-3)} \,|\, n \ge 3\}}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1452
              & \smath{\vdots} &\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1453
  \end{tabular}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1454
  \end{quote}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1455
  \end{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1456
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1457
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1458
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1459
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1460
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1461
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1462
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1463
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1464
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1465
  \begin{frame}[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1466
  \frametitle{\LARGE What We Have Not Achieved}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1467
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1468
  \begin{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1469
  \item regular expressions are not good if you look for a minimal
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1470
  one for a language (DFAs have this notion)\pause\bigskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1471
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1472
  \item Is there anything to be said about context free languages:\medskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1473
  
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1474
  \begin{quote}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1475
  A context free language is where every string can be recognised by
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1476
  a pushdown automaton.\bigskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1477
  \end{quote}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1478
  \end{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1479
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1480
  \textcolor{gray}{\footnotesize Yes. Derivatives also work for c-f grammars. Ongoing work.}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1481
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1482
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1483
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1484
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1485
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1486
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1487
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1488
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1489
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1490
  \begin{frame}[c]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1491
  \frametitle{\LARGE Conclusion}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1492
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1493
  \begin{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1494
  \item We formalised the Myhill-Nerode theorem based on 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1495
  regular expressions only (DFAs are difficult to deal with in a theorem prover).\smallskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1496
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1497
  \item Seems to be a common theme: algorithms need to be reformulated
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1498
  to better suit formal treatment.\smallskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1499
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1500
  \item The most interesting aspect is that we are able to
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1501
  implement the matcher directly inside the theorem prover
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1502
  (ongoing work).\smallskip
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1503
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1504
  \item Parsing is a vast field which seem to offer new results. 
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1505
  \end{itemize}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1506
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1507
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1508
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1509
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1510
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1511
text_raw {*
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1512
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1513
  \mode<presentation>{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1514
  \begin{frame}<1>[b]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1515
  \frametitle{
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1516
  \begin{tabular}{c}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1517
  \mbox{}\\[13mm]
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1518
  \alert{\LARGE Thank you very much!}\\
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1519
  \alert{\Large Questions?}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1520
  \end{tabular}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1521
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1522
  \end{frame}}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1523
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1524
*}
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1525
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1526
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1527
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1528
(*<*)
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1529
end
c63ffe1735eb added slides for copenhagen
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1530
(*>*)