Slides/Slides6.thy
author Christian Urban <urbanc@in.tum.de>
Tue, 12 Apr 2011 15:46:35 +0800
changeset 2764 03de62208942
parent 2762 1a1a2b778ba2
child 2771 66ef2a2c64fb
permissions -rw-r--r--
shanghai slides
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 {*
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
  \renewcommand{\slidecaption}{Shanghai, 12.~April 2011}
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
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   131
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   132
text_raw {*
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   133
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   134
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   135
  \mode<presentation>{
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   136
  \begin{frame}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   137
  \frametitle{Getting Papers Correct}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   138
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   139
  \begin{minipage}{1.1\textwidth}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   140
  My work over the last 5 years.\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   141
  {\small (in the fields of programming languages, logic and lambda-calculi)}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   142
  \end{minipage}\bigskip
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   143
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   144
  \only<1>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   145
  \mbox{}\\[15mm]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   146
  \begin{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   147
  \begin{tikzpicture}[node distance=0.5mm]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   148
  \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
   149
  \node [left=of proof]{\Large\bf Specification};
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   150
  \node [right=of proof]{\Large\bf Code};
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   151
  \end{tikzpicture}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   152
  \end{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   153
  }
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   154
  \pause
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   155
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   156
  \begin{tabular}{c@ {\hspace{2mm}}c}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   157
  \begin{tabular}{c}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   158
  \includegraphics[scale=0.09]{harper.jpg}\\[-2mm]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   159
  {\footnotesize Bob Harper}\\[-2.5mm]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   160
  {\footnotesize (CMU)}
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   161
  \end{tabular}
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   162
  \begin{tabular}{c}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   163
  \includegraphics[scale=0.31]{pfenning.jpg}\\[-2mm]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   164
  {\footnotesize Frank Pfenning}\\[-2.5mm]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   165
  {\footnotesize (CMU)}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   166
  \end{tabular} &
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   167
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   168
  \begin{tabular}{p{6cm}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   169
  \raggedright\small
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   170
  \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
   171
  $\sim$31pp}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   172
  \end{tabular}\\
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   173
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   174
  \\[-4mm]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   175
  
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   176
  \begin{tabular}{c}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   177
  \includegraphics[scale=0.3]{appel.jpg}\\[-2mm] 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   178
  {\footnotesize Andrew Appel}\\[-2.5mm]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   179
  {\footnotesize (Princeton)}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   180
  \end{tabular} &
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   181
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   182
  \begin{tabular}{p{6cm}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   183
  \raggedright\small
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   184
  \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
   185
  \end{tabular}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   186
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   187
  \end{tabular}\medskip
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   188
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   189
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   190
  
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   191
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   192
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   193
  \end{frame}}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   194
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   195
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   196
*}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   197
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   198
text_raw {*
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   199
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   200
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   201
  \mode<presentation>{
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   202
  \begin{frame}
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   203
  \frametitle{Proof-Carrying Code}
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   204
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   205
  \begin{textblock}{10}(2.5,2.2)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   206
  \begin{block}{Idea:}
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   207
  \begin{center}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   208
  \begin{tikzpicture}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   209
  \draw[help lines,cream] (0,0.2) grid (8,4);
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   210
  
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   211
  \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
   212
  \node[anchor=base] at (6.5,2.8) 
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   213
     {\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
   214
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   215
  \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
   216
  \node[anchor=base] at (1.5,2.3) 
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   217
     {\small\begin{tabular}{@ {}p{1.9cm}@ {}}\centering  code developer/ web server/ Apple 
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   218
  Store\end{tabular}};
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   219
  
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   220
  \onslide<4->{
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   221
  \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
   222
  \node[anchor=base,white] at (6.5,1.1) 
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   223
     {\small\begin{tabular}{@ {}p{1.9cm}@ {}}\bf\centering proof- checker\end{tabular}};}
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
  \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
   226
  \onslide<3->{
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   227
  \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
   228
  \node at (3.8,1.9) {\small certificate};
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   229
  }
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   230
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   231
  \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
   232
  
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   233
  \end{tikzpicture}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   234
  \end{center}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   235
  \end{block}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   236
  \end{textblock}
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   237
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   238
  \begin{textblock}{15}(2,12)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   239
  \small
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   240
  \begin{itemize}
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   241
  \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
   242
  803 loc in C including 2 library functions)\\[-3mm]
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   243
  \item<5-> 167 loc in C implement a type-checker
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   244
  \end{itemize}
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   245
  \end{textblock}
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   246
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   247
  \end{frame}}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   248
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   249
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   250
*}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   251
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   252
text {*
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   253
  \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
   254
  \tikzstyle{node1}=[rectangle, minimum size=10mm, rounded corners=3mm, very thick, 
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   255
                     draw=black!50, top color=white, bottom color=black!20]
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   256
  \tikzstyle{node2}=[rectangle, minimum size=12mm, rounded corners=3mm, very thick, 
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   257
                     draw=red!70, top color=white, bottom color=red!50!black!20]
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   258
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   259
  \mode<presentation>{
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   260
  \begin{frame}<2->[squeeze]
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   261
  \frametitle{Type-Checking in LF} 
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
  \begin{columns}
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   264
  
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   265
  \begin{column}{0.8\textwidth}
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   266
  \begin{textblock}{0}(1,2)
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   267
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   268
  \begin{tikzpicture}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   269
  \matrix[ampersand replacement=\&,column sep=7mm, row sep=5mm]
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   270
  { \&[-10mm] 
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   271
    \node (def1)   [node1] {\large\hspace{1mm}Spec\hspace{1mm}\mbox{}}; \&
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   272
    \node (proof1) [node1] {\large Proof}; \&
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   273
    \node (alg1)   [node1] {\large\hspace{1mm}Alg\hspace{1mm}\mbox{}}; \\
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   274
    
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   275
    \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
   276
    \onslide<4->{\node (def2)   [node2] {\large Spec$^\text{+ex}$};} \&
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   277
    \onslide<4->{\node (proof2) [node1] {\large Proof};} \&
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   278
    \onslide<4->{\node (alg2)   [node1] {\large\hspace{1mm}Alg\hspace{1mm}\mbox{}};} \\
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   279
     
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   280
    \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
   281
    \onslide<5->{\node (def3)   [node1] {\large\hspace{1mm}Spec\hspace{1mm}\mbox{}};} \&
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   282
    \onslide<5->{\node (proof3) [node1] {\large Proof};} \&
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   283
    \onslide<5->{\node (alg3)   [node2] {\large Alg$^\text{-ex}$};} \\
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   284
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   285
    \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
   286
    \onslide<6->{\node (def4)   [node1] {\large\hspace{1mm}Spec\hspace{1mm}\mbox{}};} \&
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   287
    \onslide<6->{\node (proof4) [node2] {\large\hspace{1mm}Proof\hspace{1mm}};} \&
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   288
    \onslide<6->{\node (alg4)   [node1] {\large\hspace{1mm}Alg\hspace{1mm}\mbox{}};} \\
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   289
  };
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   290
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   291
  \draw[->,black!50,line width=2mm] (proof1) -- (def1);
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   292
  \draw[->,black!50,line width=2mm] (proof1) -- (alg1);
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<4->{\draw[->,black!50,line width=2mm] (proof2) -- (def2);}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   295
  \onslide<4->{\draw[->,black!50,line width=2mm] (proof2) -- (alg2);}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   296
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   297
  \onslide<5->{\draw[->,black!50,line width=2mm] (proof3) -- (def3);}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   298
  \onslide<5->{\draw[->,black!50,line width=2mm] (proof3) -- (alg3);}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   299
  
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   300
  \onslide<6->{\draw[->,black!50,line width=2mm] (proof4) -- (def4);}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   301
  \onslide<6->{\draw[->,black!50,line width=2mm] (proof4) -- (alg4);}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   302
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   303
  \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
   304
  \end{tikzpicture}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   305
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   306
  \end{textblock}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   307
  \end{column}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   308
  \end{columns}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   309
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   310
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   311
  \begin{textblock}{3}(12,3.6)
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   312
  \onslide<4->{
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   313
  \begin{tikzpicture}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   314
  \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
   315
  \end{tikzpicture}}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   316
  \end{textblock}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   317
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   318
  \only<7->{
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   319
  \begin{textblock}{14}(0.6,12.8)
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   320
  \begin{block}{}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   321
  \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
   322
  You have to be able to keep definitions and proofs consistent.
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   323
  \end{block}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   324
  \end{textblock}}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   325
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   326
  \end{frame}}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   327
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   328
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   329
*}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   330
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   331
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   332
text_raw {*
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   333
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   334
  \mode<presentation>{
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   335
  \begin{frame}<1->[c]
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   336
  \frametitle{Theorem Provers}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   337
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   338
  \begin{itemize}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   339
  \item Theorem provers help with keeping large proofs consistent;
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   340
  make them modifiable.\medskip
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
  \item They can ensure that all cases are covered.\medskip
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   343
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   344
  \item Some reasoning can be automated. 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   345
  \end{itemize}\bigskip\pause
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   346
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   347
  \begin{minipage}{1.1\textwidth}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   348
  Formal reasoning needs to be ``smooth''.\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   349
  {\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
   350
  \end{minipage}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   351
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   352
  \only<2->{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   353
  \begin{textblock}{3}(0.1,9.9)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   354
  \begin{tikzpicture}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   355
  \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
   356
  \end{tikzpicture}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   357
  \end{textblock}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   358
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   359
  
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   360
  \end{frame}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   361
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   362
*}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   363
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   364
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
atom_decl name
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   367
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   368
nominal_datatype lam = 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   369
    Var "name"
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   370
  | App "lam" "lam"
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   371
  | Lam "\<guillemotleft>name\<guillemotright>lam" ("Lam [_]._" [100,100] 100)
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
nominal_primrec
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   374
  subst :: "lam \<Rightarrow> name \<Rightarrow> lam \<Rightarrow> lam"  ("_[_::=_]")
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   375
where
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   376
  "(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
   377
| "(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
   378
| "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
   379
apply(finite_guess)+
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   380
apply(rule TrueI)+
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   381
apply(simp add: abs_fresh)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   382
apply(fresh_guess)+
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   383
done
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   384
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   385
lemma  subst_eqvt[eqvt]:
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   386
  fixes pi::"name prm"
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   387
  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
   388
by (nominal_induct t1 avoiding: x t2 rule: lam.strong_induct)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   389
   (auto simp add: perm_bij fresh_atm fresh_bij)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   390
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   391
lemma fresh_fact:
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   392
  fixes z::"name"
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   393
  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
   394
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
   395
   (auto simp add: abs_fresh fresh_prod fresh_atm)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   396
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   397
lemma forget: 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   398
  assumes asm: "x\<sharp>L"
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   399
  shows "L[x::=P] = L"
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   400
  using asm 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   401
by (nominal_induct L avoiding: x P rule: lam.strong_induct)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   402
   (auto simp add: abs_fresh fresh_atm)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   403
(*>*)
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   404
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   405
text_raw {*
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   406
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   407
  \mode<presentation>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   408
  \begin{frame}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   409
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   410
  \begin{textblock}{16}(1,1)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   411
  \renewcommand{\isasymbullet}{$\cdot$}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   412
  \tiny\color{black}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   413
*}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   414
lemma substitution_lemma_not_to_be_tried_at_home: 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   415
  assumes asm: "x\<noteq>y" "x\<sharp>L"
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   416
  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
   417
using asm
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   418
proof (induct M arbitrary: x y N L rule: lam.induct)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   419
  case (Lam z M1) 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   420
  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
   421
  have "x\<noteq>y" by fact
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   422
  have "x\<sharp>L" by fact
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   423
  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
   424
  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
   425
    by (auto simp add: lam.inject alpha fresh_prod fresh_atm)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   426
  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
   427
  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
   428
  moreover
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   429
  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
   430
  ultimately 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   431
  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
   432
        = 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
   433
    using ih by simp
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   434
  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
   435
        = 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
   436
    by (simp add: perm_bool)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   437
  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
   438
    by (simp add: eqvts perm_swap)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   439
  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
   440
  proof - 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   441
    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
   442
    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
   443
    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
   444
    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
   445
    also have "\<dots> = ?RHS" using eq by simp
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   446
    finally show "?LHS = ?RHS" .
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   447
  qed
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   448
qed (auto simp add: forget)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   449
text_raw {*
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   450
  \end{textblock}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   451
  \mbox{}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   452
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   453
  \only<2->{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   454
  \begin{textblock}{11.5}(4,2.3)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   455
  \begin{minipage}{9.3cm}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   456
  \begin{block}{}\footnotesize
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   457
*}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   458
lemma substitution_lemma\<iota>:
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   459
  assumes asm: "x \<noteq> y" "x \<sharp> L"
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   460
  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
   461
  using asm
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   462
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
   463
     (auto simp add: forget fresh_fact)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   464
text_raw {*  
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   465
  \end{block}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   466
  \end{minipage}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   467
  \end{textblock}}
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   468
  \end{frame}}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   469
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   470
*}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   471
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   472
text_raw {*
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   473
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   474
  \mode<presentation>{
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   475
  \begin{frame}<1>[c]
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   476
  \frametitle{Getting Programs Correct}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   477
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   478
  \begin{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   479
  \begin{tikzpicture}[node distance=0.5mm]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   480
  \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
   481
  \node [left=of proof]{\Large\bf Specification};
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   482
  \node [right=of proof]{\Large\bf Code};
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   483
  \end{tikzpicture}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   484
  \end{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   485
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   486
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   487
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   488
  \end{frame}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   489
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   490
*}
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
text_raw {*
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   493
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   494
  \mode<presentation>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   495
  \begin{frame}<1->[t]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   496
  \frametitle{Regular Expressions}
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   497
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   498
  \begin{textblock}{6}(2,4)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   499
  \begin{tabular}{@ {}rrl}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   500
  \bl{r} & \bl{$::=$}  & \bl{$\varnothing$}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   501
         & \bl{$\mid$} & \bl{[]}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   502
         & \bl{$\mid$} & \bl{c}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   503
         & \bl{$\mid$} & \bl{r$_1$ + r$_2$}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   504
         & \bl{$\mid$} & \bl{r$_1$ $\cdot$ r$_2$}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   505
         & \bl{$\mid$} & \bl{r$^*$}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   506
  \end{tabular}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   507
  \end{textblock}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   508
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   509
  \begin{textblock}{6}(8,3.5)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   510
  \includegraphics[scale=0.35]{Screen1.png}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   511
  \end{textblock}
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   512
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   513
  \begin{textblock}{6}(10.2,2.8)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   514
  \footnotesize Isabelle:
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   515
  \end{textblock}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   516
  
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   517
  \only<2>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   518
  \begin{textblock}{9}(3.6,11.8)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   519
  \bl{matches r s $\;\Longrightarrow\;$ true $\vee$ false}\\[3.5mm]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   520
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   521
  \hspace{10mm}\begin{tikzpicture}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   522
  \coordinate (m1) at (0.4,1);
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   523
  \draw (0,0.3) node (m2) {\small\color{gray}rexp};
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   524
  \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
   525
  
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   526
  \coordinate (s1) at (0.81,1);
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   527
  \draw (1.3,0.3) node (s2) {\small\color{gray} string};
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   528
  \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
   529
  \end{tikzpicture}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   530
  \end{textblock}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   531
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   532
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   533
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   534
  \end{frame}}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   535
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   536
*}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   537
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   538
text_raw {*
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   539
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   540
  \mode<presentation>{
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   541
  \begin{frame}<1->[t]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   542
  \frametitle{Specification}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   543
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   544
  \small
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   545
  \begin{textblock}{6}(0,3.5)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   546
  \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
   547
  \multicolumn{4}{c}{rexp $\Rightarrow$ set of strings}\bigskip\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   548
  &\bl{\LL ($\varnothing$)}   & \bl{$\dn$} & \bl{$\varnothing$}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   549
  &\bl{\LL ([])}              & \bl{$\dn$} & \bl{\{[]\}}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   550
  &\bl{\LL (c)}               & \bl{$\dn$} & \bl{\{c\}}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   551
  &\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
   552
  \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
   553
  \rd{$\Rightarrow$} &\bl{\LL (r$^*$)}           & \bl{$\dn$} & \bl{(\LL (r))$^\star$}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   554
  \end{tabular}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   555
  \end{textblock}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   556
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   557
  \begin{textblock}{9}(7.3,3)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   558
  {\mbox{}\hspace{2cm}\footnotesize Isabelle:\smallskip}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   559
  \includegraphics[scale=0.325]{Screen3.png}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   560
  \end{textblock}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   561
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   562
  \end{frame}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   563
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   564
*}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   565
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   566
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   567
text_raw {*
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   568
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   569
  \mode<presentation>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   570
  \begin{frame}<1->[t]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   571
  \frametitle{Version 1}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   572
  \small
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   573
  \mbox{}\\[-8mm]\mbox{}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   574
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   575
  \begin{center}\def\arraystretch{1.05}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   576
  \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
   577
  \bl{match [] []}                   & \bl{$=$} & \bl{true}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   578
  \bl{match [] (c::s)}               & \bl{$=$} & \bl{false}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   579
  \bl{match ($\varnothing$::rs) s}   & \bl{$=$} & \bl{false}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   580
  \bl{match ([]::rs) s}              & \bl{$=$} & \bl{match rs s}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   581
  \bl{match (c::rs) []}              & \bl{$=$} & \bl{false}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   582
  \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
   583
  \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
   584
  \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
   585
  \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
   586
  \end{tabular}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   587
  \end{center}
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{textblock}{9}(0.2,1.6)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   590
  \hspace{10mm}\begin{tikzpicture}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   591
  \coordinate (m1) at (0.44,-0.5);
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   592
  \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
   593
  \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
   594
  
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   595
  \coordinate (s1) at (0.86,-0.5);
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   596
  \draw (1.5,0.3) node (s2) {\small\color{gray} string};
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   597
  \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
   598
  \end{tikzpicture}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   599
  \end{textblock}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   600
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   601
  \begin{textblock}{9}(2.8,11.8)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   602
  \bl{matches$_1$ r s $\;=\;$ match [r] s}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   603
  \end{textblock}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   604
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   605
  \end{frame}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   606
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   607
*}
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   608
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   609
text_raw {*
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   610
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   611
  \mode<presentation>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   612
  \begin{frame}<1->[c]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   613
  \frametitle{Testing}
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
  \small
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   616
  Every good programmer should do thourough tests: 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   617
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   618
  \begin{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   619
  \begin{tabular}{@ {\hspace{-20mm}}lcl}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   620
  \bl{matches (a$\cdot$b)$^*\;$ []}     & \bl{$\mapsto$} & \bl{true}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   621
  \bl{matches (a$\cdot$b)$^*\;$ ab}   & \bl{$\mapsto$} & \bl{true}\\ 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   622
  \bl{matches (a$\cdot$b)$^*\;$ aba}  & \bl{$\mapsto$} & \bl{false}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   623
  \bl{matches (a$\cdot$b)$^*\;$ abab} & \bl{$\mapsto$} & \bl{true}\\ 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   624
  \bl{matches (a$\cdot$b)$^*\;$ abaa} & \bl{$\mapsto$} & \bl{false}\medskip\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   625
  \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
   626
  \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
   627
  \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
   628
  \end{tabular}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   629
  \end{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   630
 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   631
  \onslide<3->
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   632
  {looks OK \ldots let's ship it to customers\hspace{5mm} 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   633
   \raisebox{-5mm}{\includegraphics[scale=0.05]{sun.png}}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   634
  
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   635
  \end{frame}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   636
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   637
*}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   638
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   639
text_raw {*
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   640
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   641
  \mode<presentation>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   642
  \begin{frame}<1->[c]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   643
  \frametitle{Version 1}
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
  \only<1->{Several hours later\ldots}\pause
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   646
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   647
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   648
  \begin{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   649
  \begin{tabular}{@ {\hspace{0mm}}lcl}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   650
  \bl{matches$_1$ []$^*$ s}     & \bl{$\mapsto$} & loops\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   651
  \onslide<4->{\bl{matches$_1$ ([] + \ldots)$^*$ s}   & \bl{$\mapsto$} & loops\\} 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   652
  \end{tabular}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   653
  \end{center}
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
  \small
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   656
  \onslide<3->{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   657
  \begin{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   658
  \begin{tabular}{@ {}l@ {\hspace{2mm}}c@ {\hspace{2mm}}l@ {}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   659
  \ldots\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   660
  \bl{match ([]::rs) s}           & \bl{$=$} & \bl{match rs s}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   661
  \ldots\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   662
  \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
   663
  \end{tabular}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   664
  \end{center}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   665
  
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   666
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   667
  \end{frame}}
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
*}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   670
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   671
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   672
text_raw {*
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   673
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   674
  \mode<presentation>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   675
  \begin{frame}<1->[t]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   676
  \frametitle{Testing}
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   677
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   678
  \begin{itemize}
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   679
  \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
   680
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   681
  \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
   682
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   683
  \begin{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   684
  \colorbox{cream}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   685
  {\gr{\begin{minipage}{10cm}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   686
  ``Testing can only show the presence of errors, never their
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   687
  absence'' (Edsger W.~Dijkstra)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   688
  \end{minipage}}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   689
  \end{center}\bigskip\pause
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   690
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   691
  \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
   692
  {\bf all} input and {\bf all} output.\pause 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   693
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   694
  \end{itemize}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   695
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   696
  \end{frame}}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   697
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   698
*}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   699
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   700
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   701
text_raw {*
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   702
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   703
  \mode<presentation>{
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   704
  \begin{frame}<1->[t]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   705
  \frametitle{Version 2}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   706
  \mbox{}\\[-14mm]\mbox{}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   707
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   708
  \small
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   709
  \begin{tabular}{@ {}l@ {\hspace{2mm}}c@ {\hspace{2mm}}ll@ {}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   710
  \bl{nullable ($\varnothing$)}   & \bl{$=$} & \bl{false} &\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   711
  \bl{nullable ([])}              & \bl{$=$} & \bl{true}  &\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   712
  \bl{nullable (c)}               & \bl{$=$} & \bl{false} &\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   713
  \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
   714
  \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
   715
  \bl{nullable (r$^*$)}           & \bl{$=$} & \bl{true} & \\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   716
  \end{tabular}\medskip
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   717
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   718
  \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
   719
  \bl{der c ($\varnothing$)}       & \bl{$=$} & \bl{$\varnothing$} & \\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   720
  \bl{der c ([])}                  & \bl{$=$} & \bl{$\varnothing$} & \\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   721
  \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
   722
  \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
   723
  \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
   724
       &          & \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
   725
  \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
   726
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   727
  \bl{derivative r []}     & \bl{$=$} & \bl{r} & \\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   728
  \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
   729
  \end{tabular}\medskip
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   730
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   731
  \bl{matches$_2$ r s $=$ nullable (derivative r s)}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   732
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   733
  \begin{textblock}{6}(9.5,0.9)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   734
  \begin{flushright}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   735
  \color{gray}``if r matches []'' 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   736
  \end{flushright}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   737
  \end{textblock}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   738
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   739
  \begin{textblock}{6}(9.5,6.18)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   740
  \begin{flushright}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   741
  \color{gray}``derivative for a char'' 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   742
  \end{flushright}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   743
  \end{textblock}
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
  \begin{textblock}{6}(9.5,12.1)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   746
  \begin{flushright}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   747
  \color{gray}``deriv.~for a string'' 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   748
  \end{flushright}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   749
  \end{textblock}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   750
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   751
  \begin{textblock}{6}(9.5,13.98)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   752
  \begin{flushright}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   753
  \color{gray}``main'' 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   754
  \end{flushright}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   755
  \end{textblock}
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   756
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   757
  \end{frame}}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   758
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   759
*}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   760
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   761
text_raw {*
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   762
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   763
  \mode<presentation>{
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   764
  \begin{frame}<1->[t]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   765
  \frametitle{Is the Matcher Error-Free?}
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   766
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   767
  We expect that
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   768
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   769
  \begin{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   770
  \begin{tabular}{lcl}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   771
  \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
   772
  \only<3->{\rd{$\Longleftrightarrow$}} & \bl{s $\in$ \LL(r)}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   773
  \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
   774
  \only<3->{\rd{$\Longleftrightarrow$}} & \bl{s $\notin$ \LL(r)}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   775
  \end{tabular}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   776
  \end{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   777
  \pause\pause\bigskip
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   778
  By \alert<4->{induction}, we can {\bf prove} these properties.\bigskip
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   779
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   780
  \begin{tabular}{lrcl}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   781
  Lemmas:  & \bl{nullable (r)}          & \bl{$\Longleftrightarrow$} & \bl{[] $\in$ \LL (r)}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   782
           & \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
   783
  \end{tabular}
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   784
  
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   785
  \only<4->{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   786
  \begin{textblock}{3}(0.9,4.5)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   787
  \rd{\huge$\forall$\large{}r s.}
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   788
  \end{textblock}}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   789
  \end{frame}}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   790
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   791
*}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   792
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   793
text_raw {*
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   794
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   795
  \mode<presentation>{
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   796
  \begin{frame}<1>[c]
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   797
  \frametitle{
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   798
  \begin{tabular}{c}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   799
  \mbox{}\\[23mm]
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   800
  \LARGE Demo
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   801
  \end{tabular}}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   802
  
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
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   808
text_raw {*
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   809
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   810
  \mode<presentation>{
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   811
  \begin{frame}<1->[t]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   812
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   813
  \mbox{}\\[-2mm]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   814
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   815
  \small
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   816
  \begin{tabular}{@ {}l@ {\hspace{2mm}}c@ {\hspace{2mm}}ll@ {}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   817
  \bl{nullable (NULL)}            & \bl{$=$} & \bl{false} &\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   818
  \bl{nullable (EMPTY)}           & \bl{$=$} & \bl{true}  &\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   819
  \bl{nullable (CHR c)}           & \bl{$=$} & \bl{false} &\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   820
  \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
   821
  \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
   822
  \bl{nullable (STAR r)}          & \bl{$=$} & \bl{true} & \\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   823
  \end{tabular}\medskip
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   824
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   825
  \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
   826
  \bl{der c (NULL)}            & \bl{$=$} & \bl{NULL} & \\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   827
  \bl{der c (EMPTY)}           & \bl{$=$} & \bl{NULL} & \\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   828
  \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
   829
  \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
   830
  \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
   831
       &          & \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
   832
  \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
   833
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   834
  \bl{derivative r []}     & \bl{$=$} & \bl{r} & \\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   835
  \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
   836
  \end{tabular}\medskip
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   837
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   838
  \bl{matches r s $=$ nullable (derivative r s)}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   839
  
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   840
  \only<2>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   841
  \begin{textblock}{8}(1.5,4)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   842
  \includegraphics[scale=0.3]{approved.png}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   843
  \end{textblock}}
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   844
  
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   845
  \end{frame}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   846
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
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
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   849
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   850
text_raw {*
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
  \mode<presentation>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   853
  \begin{frame}[c]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   854
  \frametitle{No Automata?}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   855
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   856
  You might be wondering why I did not use any automata:
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   857
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   858
  \begin{itemize}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   859
  \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
   860
  recognises it.\bigskip\pause
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   861
  \end{itemize}
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
  I can think of two reasons why this is a good definition:\medskip
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   865
  \begin{itemize}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   866
  \item pumping lemma
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   867
  \item closure properties of regular languages (closed under complement)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   868
  \end{itemize}
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
  \end{frame}}
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
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   873
*}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   874
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   875
text_raw {*
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
  \mode<presentation>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   878
  \begin{frame}[t]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   879
  \frametitle{Really Bad News!}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   880
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   881
  DFAs are bad news for formalisations in theorem provers. They might
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   882
  be represented as:
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   883
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   884
  \begin{itemize}
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   885
  \item graphs
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   886
  \item matrices
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   887
  \item partial functions
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   888
  \end{itemize}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   889
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   890
  All constructions are messy to reason about.\bigskip\bigskip 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   891
  \pause
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   892
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   893
  \small
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   894
  \only<2>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   895
  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
   896
  to formalise automata theory in Nuprl including Myhill-Nerode. There is 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   897
  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
   898
  in Coq, Isabelle and HOL.}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   899
  \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
   900
  automata with no inaccessible states \ldots''
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   901
  }
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   902
  
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   903
  \end{frame}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   904
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   905
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
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   908
text_raw {*
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   909
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   910
  \mode<presentation>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   911
  \begin{frame}[c]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   912
  \frametitle{\LARGE The Myhill-Nerode Theorem}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   913
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   914
  \begin{itemize}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   915
  \item provides necessary and suf\!ficient conditions for a language 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   916
  being regular (pumping lemma only necessary)\medskip
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   917
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   918
  \item will help with closure properties of regular languages\bigskip\pause
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
  \item key is the equivalence relation:\smallskip
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   921
  \begin{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   922
  \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
   923
  \end{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   924
  \end{itemize}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   925
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   926
  \end{frame}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   927
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   928
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   929
*}
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   930
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   931
text_raw {*
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   932
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   933
  \mode<presentation>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   934
  \begin{frame}[c]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   935
  \frametitle{\LARGE The Myhill-Nerode Theorem}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   936
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   937
  \mbox{}\\[5cm]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   938
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   939
  \begin{itemize}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   940
  \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
   941
  \end{itemize}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   942
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   943
  \end{frame}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   944
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
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
*}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   947
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   948
text_raw {*
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
  \mode<presentation>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   951
  \begin{frame}[c]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   952
  \frametitle{\LARGE Equivalence Classes}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   953
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   954
  \begin{itemize}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   955
  \item \smath{L = []}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   956
  \begin{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   957
  \smath{\Big\{\{[]\},\; U\!N\!IV - \{[]\}\Big\}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   958
  \end{center}\bigskip\bigskip
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
  \item \smath{L = [c]}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   961
  \begin{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   962
  \smath{\Big\{\{[]\},\; \{[c]\},\; U\!N\!IV - \{[], [c]\}\Big\}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   963
  \end{center}\bigskip\bigskip
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   964
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   965
  \item \smath{L = \varnothing}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   966
  \begin{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   967
  \smath{\Big\{U\!N\!IV\Big\}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   968
  \end{center}
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
  \end{itemize}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   971
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   972
  \end{frame}}
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
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
text_raw {*
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
  \mode<presentation>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   980
  \begin{frame}[c]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   981
  \frametitle{\LARGE Regular Languages}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   982
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   983
  \begin{itemize}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   984
  \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
   985
  such that \smath{\mathbb{L}(M) = L}\\[1.5cm]
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   986
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   987
  \item Myhill-Nerode:
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   988
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   989
  \begin{center}
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   990
  \begin{tabular}{l}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   991
  finite $\Rightarrow$ regular\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   992
  \;\;\;\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
   993
  regular $\Rightarrow$ finite\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   994
  \;\;\;\smath{\text{finite}\, (U\!N\!IV /\!/ \approx_{\mathbb{L}(r)})}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   995
  \end{tabular}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   996
  \end{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   997
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   998
  \end{itemize}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
   999
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1000
  \end{frame}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1001
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
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
*}
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
text_raw {*
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
  \mode<presentation>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1008
  \begin{frame}[c]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1009
  \frametitle{\LARGE Final States}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1010
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1011
  \mbox{}\\[3cm]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1012
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1013
  \begin{itemize}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1014
  \item \smath{\text{final}_L\,X \dn}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1015
  \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
  1016
  \smallskip
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1017
  \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
  1018
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1019
  \end{itemize}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1020
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1021
  \end{frame}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1022
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1023
*}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1024
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1025
text_raw {*
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1026
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1027
  \mode<presentation>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1028
  \begin{frame}[c]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1029
  \frametitle{\LARGE Transitions between\\[-3mm] Equivalence Classes}
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
  \smath{L = \{[c]\}}
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
  \begin{tabular}{@ {\hspace{-7mm}}cc}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1034
  \begin{tabular}{c}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1035
  \begin{tikzpicture}[shorten >=1pt,node distance=2cm,auto, ultra thick]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1036
  \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
  1037
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1038
  %\draw[help lines] (0,0) grid (3,2);
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1039
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1040
  \node[state,initial]   (q_0)                        {$R_1$};
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1041
  \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
  1042
  \node[state]           (q_2) [below right of=q_0]   {$R_3$};
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
  \path[->] (q_0) edge                node        {c} (q_1)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1045
                  edge                node [swap] {$\Sigma-{c}$} (q_2)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1046
            (q_2) edge [loop below]   node        {$\Sigma$} ()
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1047
            (q_1) edge                node        {$\Sigma$} (q_2);
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1048
  \end{tikzpicture}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1049
  \end{tabular}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1050
  &
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1051
  \begin{tabular}[t]{ll}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1052
  \\[-20mm]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1053
  \multicolumn{2}{l}{\smath{U\!N\!IV /\!/\approx_L} produces}\\[4mm]
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
  \smath{R_1}: & \smath{\{[]\}}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1056
  \smath{R_2}: & \smath{\{[c]\}}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1057
  \smath{R_3}: & \smath{U\!N\!IV - \{[], [c]\}}\\[6mm]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1058
  \multicolumn{2}{l}{\onslide<2->{\smath{X \stackrel{c}{\longrightarrow} Y \dn X ; [c] \subseteq Y}}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1059
  \end{tabular}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1060
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1061
  \end{tabular}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1062
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1063
  \end{frame}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1064
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1065
*}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1066
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1067
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1068
text_raw {*
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1069
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1070
  \mode<presentation>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1071
  \begin{frame}[c]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1072
  \frametitle{\LARGE Systems of Equations}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1073
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1074
  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
  1075
  characterising the equivalence classes:
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1076
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1077
  \begin{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1078
  \begin{tabular}{@ {\hspace{-20mm}}c}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1079
  \\[-13mm]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1080
  \begin{tikzpicture}[shorten >=1pt,node distance=2cm,auto, ultra thick]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1081
  \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
  1082
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1083
  %\draw[help lines] (0,0) grid (3,2);
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1084
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1085
  \node[state,initial]   (p_0)                  {$R_1$};
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1086
  \node[state,accepting] (p_1) [right of=q_0]   {$R_2$};
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1087
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1088
  \path[->] (p_0) edge [bend left]   node        {a} (p_1)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1089
                  edge [loop above]   node       {b} ()
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1090
            (p_1) edge [loop above]   node       {a} ()
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1091
                  edge [bend left]   node        {b} (p_0);
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1092
  \end{tikzpicture}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1093
  \\[-13mm]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1094
  \end{tabular}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1095
  \end{center}
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
  \begin{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1098
  \begin{tabular}{@ {\hspace{-6mm}}ll@ {\hspace{1mm}}c@ {\hspace{1mm}}l}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1099
  & \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
  1100
  & \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
  1101
  \onslide<3->{we can prove} 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1102
  & \onslide<3->{\smath{R_1}} & \onslide<3->{\smath{=}} 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1103
      & \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
  1104
  & \onslide<3->{\smath{R_2}} & \onslide<3->{\smath{=}}    
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1105
      & \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
  1106
  \end{tabular}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1107
  \end{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1108
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1109
  \end{frame}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1110
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1111
*}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1112
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
text_raw {*
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
  \mode<presentation>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1117
  \begin{frame}<1>[t]
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1118
  \small
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1119
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1120
  \begin{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1121
  \begin{tabular}{l@ {\hspace{1mm}}c@ {\hspace{1mm}}ll}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1122
  \onslide<1->{\smath{R_1}} & \onslide<1->{\smath{=}} 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1123
      & \onslide<1->{\smath{R_1; b + R_2; b + \lambda;[]}}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1124
  \onslide<1->{\smath{R_2}} & \onslide<1->{\smath{=}}    
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1125
      & \onslide<1->{\smath{R_1; a + R_2; a}}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1126
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1127
  & & & \onslide<2->{by Arden}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1128
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1129
  \onslide<2->{\smath{R_1}} & \onslide<2->{\smath{=}} 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1130
      & \onslide<2->{\smath{R_1; b + R_2; b + \lambda;[]}}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1131
  \onslide<2->{\smath{R_2}} & \onslide<2->{\smath{=}}    
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1132
      & \only<2>{\smath{R_1; a + R_2; a}}%
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1133
        \only<3->{\smath{R_1; a\cdot a^\star}}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1134
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1135
  & & & \onslide<4->{by Arden}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1136
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1137
  \onslide<4->{\smath{R_1}} & \onslide<4->{\smath{=}} 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1138
      & \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
  1139
  \onslide<4->{\smath{R_2}} & \onslide<4->{\smath{=}}    
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1140
      & \onslide<4->{\smath{R_1; a\cdot a^\star}}\\
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
  & & & \onslide<5->{by substitution}\\
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
  \onslide<5->{\smath{R_1}} & \onslide<5->{\smath{=}} 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1145
      & \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
  1146
  \onslide<5->{\smath{R_2}} & \onslide<5->{\smath{=}}    
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1147
      & \onslide<5->{\smath{R_1; a\cdot a^\star}}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1148
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1149
  & & & \onslide<6->{by Arden}\\
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
  \onslide<6->{\smath{R_1}} & \onslide<6->{\smath{=}} 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1152
      & \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
  1153
  \onslide<6->{\smath{R_2}} & \onslide<6->{\smath{=}}    
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1154
      & \onslide<6->{\smath{R_1; a\cdot a^\star}}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1155
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1156
  & & & \onslide<7->{by substitution}\\
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<7->{\smath{R_1}} & \onslide<7->{\smath{=}} 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1159
      & \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
  1160
  \onslide<7->{\smath{R_2}} & \onslide<7->{\smath{=}}    
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1161
      & \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
  1162
          \cdot a\cdot a^\star}}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1163
  \end{tabular}
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1164
  \end{center}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1165
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1166
  \end{frame}}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1167
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1168
*}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1169
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1170
text_raw {*
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1171
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1172
  \mode<presentation>{
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1173
  \begin{frame}[c]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1174
  \frametitle{\LARGE A Variant of Arden's Lemma}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1175
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1176
  {\bf Arden's Lemma:}\smallskip 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1177
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1178
  If \smath{[] \not\in A} then
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1179
  \begin{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1180
  \smath{X = X; A + \text{something}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1181
  \end{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1182
  has the (unique) solution
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1183
  \begin{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1184
  \smath{X = \text{something} ; A^\star}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1185
  \end{center}
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
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1188
  \end{frame}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1189
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1190
*}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1191
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1192
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1193
text_raw {*
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1194
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1195
  \mode<presentation>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1196
  \begin{frame}<1->[t]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1197
  \small
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1198
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1199
  \begin{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1200
  \begin{tabular}{l@ {\hspace{1mm}}c@ {\hspace{1mm}}ll}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1201
  \onslide<1->{\smath{R_1}} & \onslide<1->{\smath{=}} 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1202
      & \onslide<1->{\smath{R_1; b + R_2; b + \lambda;[]}}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1203
  \onslide<1->{\smath{R_2}} & \onslide<1->{\smath{=}}    
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1204
      & \onslide<1->{\smath{R_1; a + R_2; a}}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1205
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1206
  & & & \onslide<2->{by Arden}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1207
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1208
  \onslide<2->{\smath{R_1}} & \onslide<2->{\smath{=}} 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1209
      & \onslide<2->{\smath{R_1; b + R_2; b + \lambda;[]}}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1210
  \onslide<2->{\smath{R_2}} & \onslide<2->{\smath{=}}    
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1211
      & \only<2>{\smath{R_1; a + R_2; a}}%
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1212
        \only<3->{\smath{R_1; a\cdot a^\star}}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1213
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1214
  & & & \onslide<4->{by Arden}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1215
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1216
  \onslide<4->{\smath{R_1}} & \onslide<4->{\smath{=}} 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1217
      & \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
  1218
  \onslide<4->{\smath{R_2}} & \onslide<4->{\smath{=}}    
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1219
      & \onslide<4->{\smath{R_1; a\cdot a^\star}}\\
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
  & & & \onslide<5->{by substitution}\\
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
  \onslide<5->{\smath{R_1}} & \onslide<5->{\smath{=}} 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1224
      & \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
  1225
  \onslide<5->{\smath{R_2}} & \onslide<5->{\smath{=}}    
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1226
      & \onslide<5->{\smath{R_1; a\cdot a^\star}}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1227
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1228
  & & & \onslide<6->{by Arden}\\
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
  \onslide<6->{\smath{R_1}} & \onslide<6->{\smath{=}} 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1231
      & \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
  1232
  \onslide<6->{\smath{R_2}} & \onslide<6->{\smath{=}}    
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1233
      & \onslide<6->{\smath{R_1; a\cdot a^\star}}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1234
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1235
  & & & \onslide<7->{by substitution}\\
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<7->{\smath{R_1}} & \onslide<7->{\smath{=}} 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1238
      & \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
  1239
  \onslide<7->{\smath{R_2}} & \onslide<7->{\smath{=}}    
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1240
      & \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
  1241
          \cdot a\cdot a^\star}}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1242
  \end{tabular}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1243
  \end{center}
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
  \only<8->{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1246
  \begin{textblock}{6}(2.5,4)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1247
  \begin{block}{}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1248
  \begin{minipage}{8cm}\raggedright
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1249
  
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1250
  \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
  1251
  \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
  1252
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1253
  %\draw[help lines] (0,0) grid (3,2);
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1254
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1255
  \node[state,initial]   (p_0)                  {$R_1$};
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1256
  \node[state,accepting] (p_1) [right of=q_0]   {$R_2$};
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1257
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1258
  \path[->] (p_0) edge [bend left]   node        {a} (p_1)
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1259
                  edge [loop above]   node       {b} ()
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1260
            (p_1) edge [loop above]   node       {a} ()
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1261
                  edge [bend left]   node        {b} (p_0);
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1262
  \end{tikzpicture}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1263
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1264
  \end{minipage}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1265
  \end{block}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1266
  \end{textblock}}
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
  \end{frame}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1269
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1270
*}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1271
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1272
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1273
text_raw {*
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1274
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1275
  \mode<presentation>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1276
  \begin{frame}[c]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1277
  \frametitle{\LARGE The Equ's Solving Algorithm}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1278
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1279
  \begin{itemize}
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1280
  \item The algorithm must terminate: Arden makes one equation smaller; 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1281
  substitution deletes one variable from the right-hand sides.\bigskip
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1282
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1283
  \item We need to maintain the invariant that Arden is applicable
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1284
  (if \smath{[] \not\in A} then \ldots):\medskip
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
  \begin{center}\small
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1287
  \begin{tabular}{l@ {\hspace{1mm}}c@ {\hspace{1mm}}ll}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1288
  \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
  1289
  \smath{R_2} & \smath{=} & \smath{R_1; a + R_2; a}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1290
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1291
  & & & by Arden\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1292
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1293
  \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
  1294
  \smath{R_2} & \smath{=} & \smath{R_1; a\cdot a^\star}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1295
  \end{tabular}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1296
  \end{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1297
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1298
  \end{itemize}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1299
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
  \end{frame}}
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
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
text_raw {*
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1307
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1308
  \mode<presentation>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1309
  \begin{frame}[c]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1310
  \frametitle{\LARGE Other Direction}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1311
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1312
  One has to prove
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
  \begin{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1315
  \smath{\text{finite} (U\!N\!IV /\!/ \approx_{\mathbb{L}(r)})}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1316
  \end{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1317
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1318
  by induction on \smath{r}. Not trivial, but after a bit 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1319
  of thinking, one can prove that if
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1320
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1321
  \begin{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1322
  \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
  1323
  \smath{\text{finite} (U\!N\!IV /\!/ \approx_{\mathbb{L}(r_2)})}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1324
  \end{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1325
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1326
  then
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1327
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1328
  \begin{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1329
  \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
  1330
  \end{center}
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
  
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
  \end{frame}}
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
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
text_raw {*
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1340
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1341
  \mode<presentation>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1342
  \begin{frame}[c]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1343
  \frametitle{\LARGE What Have We Achieved?}
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{itemize}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1346
  \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
  1347
  \bigskip\pause
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1348
  \item regular languages are closed under complementation; this is easy
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1349
  \begin{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1350
  \smath{U\!N\!IV /\!/ \approx_L \;\;=\;\; U\!N\!IV /\!/ \approx_{-L}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1351
  \end{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1352
  \end{itemize}
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1353
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1354
  
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1355
  \end{frame}}
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
*}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1358
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1359
text_raw {*
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1360
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1361
  \mode<presentation>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1362
  \begin{frame}[c]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1363
  \frametitle{\LARGE Examples}
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
  \begin{itemize}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1366
  \item \smath{L \equiv \Sigma^\star 0 \Sigma} is regular
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1367
  \begin{quote}\small
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1368
  \begin{tabular}{lcl}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1369
  \smath{A_1} & \smath{=} & \smath{\Sigma^\star 00}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1370
  \smath{A_2} & \smath{=} & \smath{\Sigma^\star 01}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1371
  \smath{A_3} & \smath{=} & \smath{\Sigma^\star 10 \cup \{0\}}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1372
  \smath{A_4} & \smath{=} & \smath{\Sigma^\star 11 \cup \{1\} \cup \{[]\}}\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1373
  \end{tabular}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1374
  \end{quote}
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
  \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
  1377
  \begin{quote}\small
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1378
  \begin{tabular}{lcl}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1379
  \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
  1380
  \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
  1381
  \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
  1382
  \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
  1383
              & \smath{\vdots} &\\
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1384
  \end{tabular}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1385
  \end{quote}
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1386
  \end{itemize}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1387
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1388
  \end{frame}}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1389
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1390
*}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1391
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1392
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1393
text_raw {*
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1394
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1395
  \mode<presentation>{
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1396
  \begin{frame}[c]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1397
  \frametitle{\LARGE What We Have Not Achieved}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1398
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1399
  \begin{itemize}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1400
  \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
  1401
  one for a language (DFAs have this notion)\pause\bigskip
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1402
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1403
  \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
  1404
  
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1405
  \begin{quote}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1406
  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
  1407
  a pushdown automaton.\bigskip
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1408
  \end{quote}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1409
  \end{itemize}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1410
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1411
  \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
  1412
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1413
  \end{frame}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1414
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1415
*}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1416
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1417
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1418
text_raw {*
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1419
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1420
  \mode<presentation>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1421
  \begin{frame}[c]
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1422
  \frametitle{\LARGE Conclusion}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1423
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1424
  \begin{itemize}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1425
  \item We formalised the Myhill-Nerode theorem based on 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1426
  regular expressions (DFA are difficult to deal with in a theorem prover).\smallskip
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1427
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1428
  \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
  1429
  to better suit formal treatment.\smallskip
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1430
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1431
  \item The most interesting aspect is that we are able to
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1432
  implement the matcher directly inside the theorem prover
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1433
  (ongoing work).\smallskip
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1434
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1435
  \item Parsing is a vast field and seems to offer new results. 
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1436
  \end{itemize}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1437
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1438
  \end{frame}}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1439
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1440
*}
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
text_raw {*
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
  \mode<presentation>{
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1445
  \begin{frame}<1>[b]
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1446
  \frametitle{
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1447
  \begin{tabular}{c}
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1448
  \mbox{}\\[13mm]
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1449
  \alert{\LARGE Thank you very much!}\\
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1450
  \alert{\Large Questions?}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1451
  \end{tabular}}
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1452
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1453
  %\begin{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1454
  %\bf \underline{Short Bio:}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1455
  %\end{center}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1456
  %\mbox{}\\[-17mm]\mbox{}\small
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1457
  %\begin{itemize}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1458
  %\item PhD in Cambridge
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1459
  %\item Emmy-Noether Fellowship in Munich
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1460
  %\item main results in nominal reasoning and nominal unification
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1461
  %\end{itemize}
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1462
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1463
  \end{frame}}
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1464
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1465
*}
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1466
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1467
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1468
2764
03de62208942 shanghai slides
Christian Urban <urbanc@in.tum.de>
parents: 2762
diff changeset
  1469
2762
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1470
(*<*)
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1471
end
1a1a2b778ba2 Shanghai slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1472
(*>*)