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