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