Slides/SlidesB.thy
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Sun, 13 Oct 2013 23:09:21 +0200
changeset 3224 cf451e182bf0
child 3225 b7b80d5640bb
permissions -rw-r--r--
added slides
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3224
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     1
(*<*)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     2
theory SlidesB
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     3
imports "~~/src/HOL/Library/LaTeXsugar" "../Nominal/Nominal2"
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     4
begin
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     5
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     6
notation (latex output)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     7
  set ("_") and
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     8
  Cons  ("_::/_" [66,65] 65) 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     9
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    10
(*>*)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    11
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    12
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    13
text_raw {*
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    14
  %% was \begin{colormixin}{20!averagebackgroundcolor}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    15
  %% 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    16
  %% is \begin{colormixin}{50!averagebackgroundcolor}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    17
  \renewcommand{\slidecaption}{Dagstuhl, 14 October 2013}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    18
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    19
  \mode<presentation>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    20
  \begin{frame}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    21
  \frametitle{%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    22
  \begin{tabular}{@ {}c@ {}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    23
  \Huge Nominal Isabelle\\[0mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    24
  \Large or, How Not to be Intimidated by\\[-3mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    25
  \Large the Variable Convention\\[-5mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    26
  \end{tabular}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    27
  
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    28
  \begin{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    29
  Christian Urban\\[1mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    30
  King's College London\\[-6mm]\mbox{}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    31
  \end{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    32
 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    33
  \begin{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    34
  \begin{block}{}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    35
  \color{gray}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    36
  \small
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    37
  {\bf\mbox{}\hspace{-1.5mm}Variable Convention:}\\[1mm] 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    38
  If $M_1,\ldots,M_n$ occur in a certain mathematical context
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    39
  (e.g. definition, proof), then in these terms all bound variables 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    40
  are chosen to be different from the free variables.\\[2mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    41
  
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    42
  \footnotesize\hfill Henk Barendregt in ``The Lambda-Calculus: Its Syntax and Semantics''
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    43
  \end{block}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    44
  \end{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    45
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    46
  \end{frame}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    47
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    48
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    49
*}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    50
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    51
text_raw {*
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    52
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    53
  \mode<presentation>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    54
  \begin{frame}<1->[c]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    55
  \frametitle{}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    56
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    57
  \begin{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    58
  \item \normalsize Aim: develop Nominal Isabelle for reasoning about programming languages\\[-10mm]\mbox{}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    59
  \end{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    60
  
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    61
  \begin{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    62
  \begin{block}{}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    63
  \color{gray}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    64
  \footnotesize
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    65
  {\bf\mbox{}\hspace{-1.5mm}Variable Convention:}\\[0mm] 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    66
  If $M_1,\ldots,M_n$ occur in a certain mathematical context
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    67
  (e.g. definition, proof), then in these terms all bound variables 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    68
  are chosen to be different from the free variables.\hfill ---Henk Barendregt
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    69
  \end{block}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    70
  \end{center}\pause
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    71
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    72
  \mbox{}\\[-19mm]\mbox{}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    73
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    74
  \begin{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    75
  \item found an error in an ACM journal paper by Bob Harper and Frank Pfenning 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    76
  about LF (and fixed it in three ways)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    77
  \item found also fixable errors in my Ph.D.-thesis about cut-elimination
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    78
  (examined by Henk Barendregt and Andy Pitts)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    79
  \item found the variable convention can in principle be used for proving false
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    80
  \end{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    81
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    82
  \end{frame}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    83
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    84
*}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    85
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    86
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    87
text_raw {*
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    88
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    89
  \mode<presentation>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    90
  \begin{frame}<1->[c]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    91
  \frametitle{Nominal Techniques}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    92
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    93
  \begin{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    94
  \item Andy Pitts showed me that permutations\\ preserve $\alpha$-equivalence:
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    95
  \begin{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    96
  \smath{t_1 \approx_{\alpha} t_2 \quad \Rightarrow\quad \pi \act t_1 \approx_{\alpha} \pi \act t_2} 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    97
  \end{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    98
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    99
  \item also permutations and substitutions commute, if you suspend permutations
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   100
  in front of variables
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   101
  \begin{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   102
  \smath{\pi\act\sigma(t) = \sigma(\pi\act t)}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   103
  \end{center}\medskip\medskip
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   104
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   105
  \item this allowed us to define as simple Nominal Unification algorithm\medskip
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   106
  \begin{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   107
  \smath{\nabla \vdash t \approx^?_{\alpha} t'}\hspace{2cm}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   108
  \smath{\nabla \vdash a \fresh^? t}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   109
  \end{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   110
  \end{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   111
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   112
  %\begin{textblock}{3}(13.1,1.3)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   113
  %\includegraphics[scale=0.26]{andrewpitts.jpg}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   114
  %\end{textblock}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   115
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   116
  \end{frame}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   117
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   118
*}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   119
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   120
text_raw {*
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   121
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   122
  \mode<presentation>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   123
  \begin{frame}[c]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   124
  \frametitle{Nominal Isabelle}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   125
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   126
  \begin{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   127
  \item a general theory about atoms and permutations\medskip
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   128
  \begin{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   129
  \item sorted atoms and
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   130
  \item sort-respecting permutations
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   131
  \end{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   132
  
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   133
  \item support and freshness
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   134
  \begin{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   135
  \begin{tabular}{l}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   136
  \smath{\textit{supp}(x) \dn \{ a \mid \textit{infinite}\,\{ b \mid \swap{a}{b}\act x \not= x\}\}}\\
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   137
  \smath{a \fresh x \dn a \notin \textit{supp}(x)}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   138
  \end{tabular}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   139
  \end{center}\bigskip\pause
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   140
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   141
  \item allow users to reason about alpha-equivalence classes like about 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   142
  syntax trees
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   143
  %
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   144
  %\item $\alpha$-equivalence
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   145
  %\begin{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   146
  %\begin{tabular}{l}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   147
  %\smath{as.x \approx_\alpha bs.y \dn}\\[2mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   148
  %\hspace{2cm}\smath{\exists \pi.\;\text{supp}(x) - as = \text{supp}(y) - bs}\\ 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   149
  %\hspace{2cm}\smath{\;\wedge\; \text{supp}(x) - as \fresh \pi}\\
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   150
  %\hspace{2cm}\smath{\;\wedge\; \pi \act x = y}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   151
  %\end{tabular}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   152
  %\end{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   153
  \end{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   154
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   155
  \end{frame}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   156
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   157
*}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   158
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   159
text_raw {*
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   160
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   161
  \mode<presentation>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   162
  \begin{frame}<1-7>
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   163
  \frametitle{New Types in HOL}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   164
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   165
   \begin{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   166
  \begin{tikzpicture}[scale=1.5]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   167
  %%%\draw[step=2mm] (-4,-1) grid (4,1);
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   168
  
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   169
  \onslide<2-4,6->{\draw[very thick] (0.7,0.4) circle (4.25mm);}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   170
  \onslide<1-4,6->{\draw[rounded corners=1mm, very thick] ( 0.0,-0.8) rectangle ( 1.8, 0.9);}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   171
  \onslide<3-5,6->{\draw[rounded corners=1mm, very thick] (-1.95,0.85) rectangle (-2.85,-0.05);}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   172
  
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   173
  \onslide<3-4,6->{\draw (-2.0, 0.845) --  (0.7,0.845);}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   174
  \onslide<3-4,6->{\draw (-2.0,-0.045)  -- (0.7,-0.045);}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   175
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   176
  \onslide<4-4,6->{\alert{\draw ( 0.7, 0.4) node {\footnotesize\begin{tabular}{@ {}c@ {}}$\alpha$-\\[-1mm]classes\end{tabular}};}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   177
  \onslide<4-5,6->{\alert{\draw (-2.4, 0.4) node {\footnotesize\begin{tabular}{@ {}c@ {}}$\alpha$-eq.\\[-1mm]terms\end{tabular}};}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   178
  \onslide<1-4,6->{\draw (1.8, 0.48) node[right=-0.1mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   179
    {\footnotesize\begin{tabular}{@ {}l@ {}}existing\\[-1mm] type\\ \onslide<4-4,6->{\alert{(sets of raw terms)}}\end{tabular}};}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   180
  \onslide<2-4,6->{\draw (0.9, -0.35) node {\footnotesize\begin{tabular}{@ {}l@ {}}non-empty\\[-1mm]subset\end{tabular}};}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   181
  \onslide<3-5,6->{\draw (-3.25, 0.55) node {\footnotesize\begin{tabular}{@ {}l@ {}}new\\[-1mm]type\end{tabular}};}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   182
  
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   183
  \onslide<3-4,6->{\draw[<->, very thick] (-1.8, 0.3) -- (-0.1,0.3);}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   184
  \onslide<3-4,6->{\draw (-0.95, 0.3) node[above=0mm] {\footnotesize{}isomorphism};}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   185
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   186
  \onslide<6->{\draw[->, line width=2mm, red] (-1.0,-0.4) -- (0.35,0.16);}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   187
  \end{tikzpicture}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   188
  \end{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   189
  
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   190
  \begin{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   191
  \textcolor{red}{\large\bf\onslide<6->{define \boldmath$\alpha$-equivalence}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   192
  \end{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   193
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   194
  \begin{textblock}{9}(2.8,12.5)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   195
  \only<7>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   196
  \begin{tikzpicture}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   197
  \draw (0,0) node[fill=cream, text width=8cm, thick, draw=red, rounded corners=1mm] (nn)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   198
  {The ``new types'' are the reason why there is no Nominal Coq.};
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   199
  \end{tikzpicture}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   200
  \end{textblock}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   201
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   202
  \end{frame}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   203
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   204
*}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   205
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   206
text_raw {*
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   207
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   208
  \mode<presentation>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   209
  \begin{frame}<1-3>[c]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   210
  \frametitle{HOL vs.~Nominal}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   211
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   212
  \begin{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   213
  \item Nominal logic by Pitts are incompatible 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   214
  with choice principles\medskip
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   215
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   216
  \item HOL includes Hilbert's epsilon\pause\bigskip
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   217
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   218
  \item The solution: Do not require that everything has finite support\medskip
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   219
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   220
  \begin{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   221
  \smath{\onslide<1-2>{\textit{finite}(\textit{supp}(x))  \quad\Rightarrow\quad} a \fresh a.x}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   222
  \end{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   223
  \end{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   224
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   225
  \end{frame}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   226
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   227
*}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   228
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   229
text_raw {*
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   230
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   231
  \mode<presentation>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   232
  \begin{frame}<1-5>
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   233
  \frametitle{\begin{tabular}{c}Our Work\end{tabular}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   234
  \mbox{}\\[-6mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   235
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   236
    \begin{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   237
  \begin{tikzpicture}[scale=1.5]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   238
  %%%\draw[step=2mm] (-4,-1) grid (4,1);
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   239
  
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   240
  \onslide<1>{\draw[very thick] (0.7,0.4) circle (4.25mm);}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   241
  \onslide<1>{\draw[rounded corners=1mm, very thick] ( 0.0,-0.8) rectangle ( 1.8, 0.9);}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   242
  \onslide<1->{\draw[rounded corners=1mm, very thick] (-1.95,0.85) rectangle (-2.85,-0.05);}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   243
  
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   244
  \onslide<1>{\draw (-2.0, 0.845) --  (0.7,0.845);}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   245
  \onslide<1>{\draw (-2.0,-0.045)  -- (0.7,-0.045);}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   246
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   247
  \onslide<1>{\alert{\draw ( 0.7, 0.4) node {\footnotesize\begin{tabular}{@ {}c@ {}}$\alpha$-\\[-1mm]classes\end{tabular}};}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   248
  \onslide<1->{\alert{\draw (-2.4, 0.4) node {\footnotesize\begin{tabular}{@ {}c@ {}}$\alpha$-eq.\\[-1mm]terms\end{tabular}};}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   249
  \onslide<1>{\draw (1.8, 0.48) node[right=-0.1mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   250
    {\footnotesize\begin{tabular}{@ {}l@ {}}existing\\[-1mm] type\\ \onslide<1>{\alert{(sets of raw terms)}}\end{tabular}};}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   251
  \onslide<1>{\draw (0.9, -0.35) node {\footnotesize\begin{tabular}{@ {}l@ {}}non-empty\\[-1mm]subset\end{tabular}};}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   252
  \onslide<1->{\draw (-3.25, 0.55) node {\footnotesize\begin{tabular}{@ {}l@ {}}new\\[-1mm]type\end{tabular}};}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   253
  
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   254
  \onslide<1>{\draw[<->, very thick] (-1.8, 0.3) -- (-0.1,0.3);}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   255
  \onslide<1>{\draw (-0.95, 0.3) node[above=0mm] {\footnotesize{}isomorphism};}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   256
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   257
  \onslide<1>{\draw[->, line width=2mm, red] (-1.0,-0.4) -- (0.35,0.16);}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   258
  \end{tikzpicture}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   259
  \end{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   260
  
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   261
  \begin{textblock}{9.5}(6,3.5)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   262
  \begin{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   263
  \item<1-> defined fv and $\alpha$
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   264
  \item<2-> built quotient / new type
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   265
  \item<3-> derived a reasoning infrastructure ($\fresh$, distinctness, injectivity, cases,\ldots) 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   266
  \item<4-> derive a {\bf stronger} cases lemma
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   267
  \item<5-> from this, a {\bf stronger} induction principle (Barendregt variable convention built in)\\
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   268
  \begin{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   269
  \textcolor{blue}{Foo ($\lambda x. \lambda y. t$) ($\lambda u. \lambda v. s$)} 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   270
  \end{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   271
  \end{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   272
  \end{textblock}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   273
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   274
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   275
  \end{frame}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   276
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   277
*}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   278
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   279
text_raw {*
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   280
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   281
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   282
  \mode<presentation>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   283
  \begin{frame}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   284
  \frametitle{Nominal Isabelle} 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   285
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   286
  \begin{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   287
  \item Users can define lambda-terms as:
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   288
  \end{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   289
*}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   290
      
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   291
 atom_decl name   text_raw {*\medskip\isanewline *}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   292
	nominal_datatype lam =
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   293
	    Var "name"
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   294
	  | App "lam" "lam" 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   295
	  | Lam x::"name" t::"lam" binds x in t ("Lam _. _")
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   296
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   297
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   298
text_raw {*
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   299
  \mbox{}\bigskip
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   300
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   301
  \begin{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   302
  \item These are \underline{\bf named} alpha-equivalence classes, for example
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   303
  \end{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   304
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   305
  \begin{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   306
  \gb{@{text "Lam a.(Var a)"}} \alert{$\,=\,$} \gb{@{text "Lam b.(Var b)"}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   307
  \end{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   308
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   309
  \end{frame}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   310
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   311
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   312
*}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   313
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   314
text_raw {*
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   315
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   316
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   317
  \mode<presentation>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   318
  \begin{frame}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   319
  \frametitle{\Large (Weak) Induction Principles} 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   320
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   321
  \begin{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   322
  \item The usual induction principle for lambda-terms is as follows:
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   323
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   324
  \begin{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   325
  \mbox{}\hspace{-1mm}\begin{beamercolorbox}[sep=1mm, wd=9cm]{boxcolor}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   326
  \centering\smath{%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   327
  \infer{P\,t}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   328
  {\begin{array}{l}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   329
  \forall x.\;P\,x\\[2mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   330
  \forall t_1\,t_2.\;P\,t_1\wedge P\,t_2\Rightarrow P\,(t_1\;t_2)\\[2mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   331
  \forall x\,t.\;P\,t\Rightarrow P\,(\lambda x.t)\\
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   332
  \end{array}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   333
  }}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   334
  \end{beamercolorbox}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   335
  \end{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   336
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   337
  \item It requires us in the lambda-case to show the property \smath{P} for
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   338
  all binders \smath{x}.\smallskip\\ 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   339
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   340
  (This nearly always requires renamings and they can be 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   341
  tricky to automate.)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   342
  \end{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   343
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   344
  \end{frame}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   345
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   346
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   347
*}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   348
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   349
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   350
text_raw {*
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   351
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   352
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   353
  \mode<presentation>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   354
  \begin{frame}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   355
  \frametitle{\Large Strong Induction Principles} 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   356
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   357
  \begin{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   358
  \item Therefore we introduced the following strong induction principle:
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   359
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   360
  \begin{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   361
  \mbox{}\hspace{-2mm}\begin{beamercolorbox}[sep=1mm, wd=11.5cm]{boxcolor}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   362
  \centering\smath{%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   363
  \infer{\tikz[remember picture] \node[inner sep=1mm] (n1a) {\alert<4>{$P$}};%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   364
         \tikz[remember picture] \node[inner sep=1mm] (n2a) {\alert<3>{$c$}};%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   365
         \tikz[remember picture] \node[inner sep=1mm] (n3a) {\alert<2>{$t$}};}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   366
  {\begin{array}{l}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   367
  \forall x\,c.\;P\,c\;x\\[2mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   368
  \forall t_1\,t_2\,c.\;(\forall d.\,P d\,t_1)\wedge (\forall d. P\,d\,t_2)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   369
  \Rightarrow P\,c\;(t_1\,t_2)\\[2mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   370
  \forall x\,t\,c.\;\alert<1>{x\fresh \alert<3>{c}} 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   371
  \wedge (\forall d. P\,d\,t)\Rightarrow P\,c\;(\lambda x.t)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   372
  \end{array}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   373
  }}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   374
  \end{beamercolorbox}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   375
  \end{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   376
  \end{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   377
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   378
  \begin{textblock}{11}(0.9,10.9)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   379
  \only<2>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   380
  \begin{tikzpicture}[remember picture]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   381
  \draw (0,0) node[fill=cream, text width=10.5cm, thick, draw=red, rounded corners=1mm] (n3b)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   382
  { The variable over which the induction proceeds:\\[2mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   383
    \hspace{3mm}``\ldots By induction over the structure of \smath{M}\ldots''};
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   384
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   385
  \path[overlay, ->, ultra thick, red] (n3b) edge[out=90, in=-110] (n3a);
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   386
  \end{tikzpicture}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   387
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   388
  \only<3>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   389
  \begin{tikzpicture}[remember picture]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   390
  \draw (0,0) node[fill=cream, text width=11cm, thick, draw=red, rounded corners=1mm] (n2b)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   391
  {The {\bf context} of the induction; i.e.~what the binder should be fresh for
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   392
   $\quad\Rightarrow$ \smath{(x,y,N,L)}:\\[2mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   393
   ``\ldots By the variable convention we can assume \mbox{\smath{z\not\equiv x,y}} 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   394
     and \smath{z} not free in \smath{N}$\!$,\,\smath{L}\ldots''};
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   395
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   396
  \path[overlay, ->, ultra thick, red] (n2b) edge[out=90, in=-100] (n2a);
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   397
  \end{tikzpicture}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   398
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   399
  \only<4>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   400
  \begin{tikzpicture}[remember picture]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   401
  \draw (0,0) node[fill=cream, text width=11cm, thick, draw=red, rounded corners=1mm] (n1b)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   402
  {The property to be proved by induction:\\[-3mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   403
  \begin{center}\small
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   404
  \begin{tabular}{l}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   405
  \smath{\!\!\lambda
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   406
  (x,\!y,\!N\!,\!L).\,\lambda M.\;\,x\not=y\,\wedge\,x\fresh L\,\Rightarrow}\\[1mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   407
  \hspace{8mm}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   408
  \smath{M[x\!:=\!N][y\!:=\!L] = M[y\!:=\!L][x\!:=\!N[y\!:=\!L]]}  
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   409
  \end{tabular}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   410
  \end{center}};
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   411
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   412
  \path[overlay, ->, ultra thick, red] (n1b) edge[out=90, in=-70] (n1a);
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   413
  \end{tikzpicture}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   414
  \end{textblock}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   415
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   416
  \end{frame}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   417
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   418
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   419
*}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   420
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   421
text_raw {*
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   422
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   423
  \mode<presentation>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   424
  \begin{frame}<1-4>
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   425
  \frametitle{\begin{tabular}{c}Binding Sets of Names\end{tabular}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   426
  \mbox{}\\[-3mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   427
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   428
  \begin{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   429
  \item binding sets of names has some interesting properties:\medskip
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   430
  
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   431
  \begin{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   432
  \begin{tabular}{l}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   433
  \textcolor{blue}{$\forall\{x, y\}.\, x \rightarrow y \;\;\approx_\alpha\;\; \forall\{y, x\}.\, y \rightarrow x$}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   434
  \bigskip\smallskip\\
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   435
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   436
  \onslide<2->{%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   437
  \textcolor{blue}{$\forall\{x, y\}.\, x \rightarrow y \;\;\not\approx_\alpha\;\; \forall\{z\}.\, z \rightarrow z$}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   438
  }\bigskip\smallskip\\
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   439
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   440
  \onslide<3->{%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   441
  \textcolor{blue}{$\forall\{x\}.\, x \rightarrow y \;\;\approx_\alpha\;\; \forall\{x, \alert{z}\}.\, x \rightarrow y$}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   442
  }\medskip\\
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   443
  \onslide<3->{\hspace{4cm}\small provided $z$ is fresh for the type}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   444
  \end{tabular}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   445
  \end{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   446
  \end{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   447
  
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   448
  \begin{textblock}{8}(2,14.5)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   449
  \footnotesize $^*$ $x$, $y$, $z$ are assumed to be distinct
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   450
  \end{textblock}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   451
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   452
  \only<4>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   453
  \begin{textblock}{6}(2.5,4)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   454
  \begin{tikzpicture}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   455
  \draw (0,0) node[inner sep=3mm,fill=cream, ultra thick, draw=red, rounded corners=2mm] 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   456
  {\normalsize\color{darkgray}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   457
  \begin{minipage}{8cm}\raggedright
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   458
  For type-schemes the order of bound names does not matter, and
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   459
  $\alpha$-equivalence is preserved under \alert{vacuous} binders.
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   460
  \end{minipage}};
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   461
  \end{tikzpicture}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   462
  \end{textblock}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   463
  \end{frame}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   464
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   465
*}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   466
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   467
text_raw {*
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   468
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   469
  \mode<presentation>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   470
  \begin{frame}<1-3>
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   471
  \frametitle{\begin{tabular}{c}Other Binding Modes\end{tabular}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   472
  \mbox{}\\[-3mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   473
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   474
  \begin{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   475
  \item alpha-equivalence being preserved under vacuous binders is \underline{not} always
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   476
  wanted:\bigskip\bigskip\normalsize
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   477
  
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   478
  \textcolor{blue}{\begin{tabular}{@ {\hspace{-8mm}}l}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   479
  $\text{let}\;x = 3\;\text{and}\;y = 2\;\text{in}\;x - y\;\text{end}$\medskip\\
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   480
  \onslide<2->{$\;\;\;\only<2>{\approx_\alpha}\only<3>{\alert{\not\approx_\alpha}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   481
   \text{let}\;y = 2\;\text{and}\;x = 3\only<3->{\alert{\;\text{and}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   482
    \;z = \text{loop}}}\;\text{in}\;x - y\;\text{end}$}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   483
  \end{tabular}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   484
  
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   485
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   486
  \end{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   487
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   488
  \end{frame}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   489
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   490
*}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   491
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   492
text_raw {*
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   493
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   494
  \mode<presentation>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   495
  \begin{frame}<1>
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   496
  \frametitle{\begin{tabular}{c}\Large{}Even Another Binding Mode\end{tabular}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   497
  \mbox{}\\[-3mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   498
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   499
  \begin{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   500
  \item sometimes one wants to abstract more than one name, but the order \underline{does} matter\bigskip
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   501
  
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   502
  \begin{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   503
  \textcolor{blue}{\begin{tabular}{@ {\hspace{-8mm}}l}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   504
  $\text{let}\;(x, y) = (3, 2)\;\text{in}\;x - y\;\text{end}$\medskip\\
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   505
  $\;\;\;\not\approx_\alpha
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   506
   \text{let}\;(y, x) = (3, 2)\;\text{in}\;x - y\;\text{end}$
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   507
  \end{tabular}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   508
  \end{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   509
  
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   510
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   511
  \end{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   512
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   513
  \end{frame}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   514
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   515
*}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   516
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   517
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   518
text_raw {*
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   519
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   520
  \mode<presentation>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   521
  \begin{frame}<2-3>
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   522
  \frametitle{\begin{tabular}{c}Specification of Binding\end{tabular}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   523
  \mbox{}\\[-6mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   524
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   525
  \mbox{}\hspace{10mm}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   526
  \begin{tabular}{ll}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   527
  \multicolumn{2}{l}{\isacommand{nominal\_datatype} trm $=$}\\
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   528
  \hspace{5mm}\phantom{$|$} Var name\\
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   529
  \hspace{5mm}$|$ App trm trm\\
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   530
  \hspace{5mm}$|$ Lam \only<2->{x::}name \only<2->{t::}trm
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   531
  & \onslide<2->{\isacommand{bind} x \isacommand{in} t}\\
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   532
  \hspace{5mm}$|$ Let \only<2->{as::}assns \only<2->{t::}trm
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   533
  & \onslide<2->{\isacommand{bind} bn(as) \isacommand{in} t}\\
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   534
  \multicolumn{2}{l}{\isacommand{and} assns $=$}\\
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   535
  \multicolumn{2}{l}{\hspace{5mm}\phantom{$|$} ANil}\\
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   536
  \multicolumn{2}{l}{\hspace{5mm}$|$ ACons name trm assns}\\
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   537
  \multicolumn{2}{l}{\onslide<3->{\isacommand{binder} bn \isacommand{where}}}\\
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   538
  \multicolumn{2}{l}{\onslide<3->{\hspace{5mm}\phantom{$|$} bn(ANil) $=$ $[]$}}\\
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   539
  \multicolumn{2}{l}{\onslide<3->{\hspace{5mm}$|$ bn(ACons a t as) $=$ $[$a$]$ @ bn(as)}}\\
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   540
  \end{tabular}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   541
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   542
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   543
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   544
  \end{frame}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   545
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   546
*}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   547
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   548
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   549
text_raw {*
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   550
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   551
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   552
  \mode<presentation>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   553
  \begin{frame}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   554
  \frametitle{So Far So Good}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   555
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   556
  \begin{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   557
  \item A Faulty Lemma with the Variable Convention?\\[-8mm]\mbox{}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   558
  \end{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   559
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   560
  \begin{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   561
  \begin{block}{}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   562
  \color{gray}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   563
  \small%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   564
  {\bf\mbox{}\hspace{-1.5mm}Variable Convention:}\\[1mm] 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   565
  If $M_1,\ldots,M_n$ occur in a certain mathematical context
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   566
  (e.g. definition, proof), then in these terms all bound variables 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   567
  are chosen to be different from the free variables.\\[2mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   568
  
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   569
  \footnotesize\hfill Barendregt in ``The Lambda-Calculus: Its Syntax and Semantics''
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   570
  \end{block}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   571
  \end{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   572
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   573
  \mbox{}\\[-18mm]\mbox{}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   574
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   575
  \begin{columns}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   576
  \begin{column}[t]{4.7cm}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   577
  Inductive Definitions:\\
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   578
  \begin{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   579
  \smath{\infer{\text{concl}}{\text{prem}_1 \ldots \text{prem}_n\;\text{scs}}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   580
  \end{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   581
  \end{column}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   582
  \begin{column}[t]{7cm}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   583
  Rule Inductions:\\[2mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   584
  \begin{tabular}{l@ {\hspace{2mm}}p{5.5cm}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   585
  1.) & Assume the property for\\ & the premises. Assume \\ & the side-conditions.\\[1mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   586
  2.) & Show the property for\\ & the conclusion.\\
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   587
  \end{tabular}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   588
  \end{column}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   589
  \end{columns}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   590
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   591
  \end{frame}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   592
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   593
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   594
*}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   595
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   596
text_raw {*
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   597
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   598
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   599
  \mode<presentation>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   600
  \setbeamerfont{itemize/enumerate subbody}{size=\normalsize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   601
  \begin{frame}[sqeeze]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   602
  \frametitle{Faulty Reasoning} 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   603
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   604
  %\mbox{}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   605
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   606
  \begin{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   607
  \item Consider the two-place relation \smath{\text{foo}}:\medskip
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   608
  \begin{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   609
  \begin{tabular}{ccc}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   610
  \raisebox{2.5mm}{\colorbox{cream}{%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   611
  \smath{\;\infer{x\mapsto x}{}}}}\hspace{2mm}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   612
  &
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   613
  \raisebox{2mm}{\colorbox{cream}{%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   614
  \smath{\infer{t_1\;t_2\mapsto t_1\;t_2}{}}}}\hspace{2mm}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   615
  &
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   616
  \colorbox{cream}{%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   617
  \smath{\infer{\lambda x.t\mapsto t'}{t\mapsto t'}}}\\[5mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   618
  \end{tabular}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   619
  \end{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   620
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   621
  \pause
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   622
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   623
  \item The lemma we going to prove:\smallskip
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   624
  \begin{center}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   625
  Let \smath{t\mapsto t'}. If \smath{y\fresh t} then \smath{y\fresh t'}.
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   626
  \end{center}\bigskip
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   627
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   628
  \only<3>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   629
  \item Cases 1 and 2 are trivial:\medskip
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   630
  \begin{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   631
  \item If \smath{y\fresh x} then \smath{y\fresh x}.
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   632
  \item If \smath{y\fresh t_1\,t_2} then \smath{y\fresh t_1\,t_2}.
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   633
  \end{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   634
  }
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   635
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   636
  \only<4->{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   637
  \item Case 3:
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   638
  \begin{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   639
  \item We know \tikz[remember picture,baseline=(ta.base)] \node (ta) {\smath{y\fresh \lambda x.t}.}; 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   640
  We have to show \smath{y\fresh t'}.$\!\!\!\!$ 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   641
  \item The IH says: if \smath{y\fresh t} then \smath{y\fresh t'}.
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   642
  \item<7,8> So we have \smath{y\fresh t}. Hence \smath{y\fresh t'} by IH. Done!
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   643
  \end{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   644
  }
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   645
  \end{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   646
  
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   647
  \begin{textblock}{11.3}(0.7,0.6)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   648
  \only<5-7>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   649
  \begin{tikzpicture}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   650
  \draw (0,0) node[fill=cream, text width=11.2cm, thick, draw=red, rounded corners=1mm] (nn)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   651
  {{\bf Variable Convention:}\\[2mm] 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   652
  \small
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   653
   If $M_1,\ldots,M_n$ occur in a certain mathematical context
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   654
   (e.g. definition, proof), then in these terms all bound variables 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   655
   are chosen to be different from the free variables.\smallskip
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   656
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   657
  \normalsize
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   658
   {\bf In our case:}\\[2mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   659
   The free variables are \smath{y} and \smath{t'}; the bound one is 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   660
   \smath{x}.\medskip
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   661
          
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   662
   By the variable convention we conclude that \smath{x\not= y}.
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   663
  };
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   664
  \end{tikzpicture}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   665
  \end{textblock}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   666
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   667
  \begin{textblock}{9.2}(3.6,9)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   668
  \only<6,7>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   669
  \begin{tikzpicture}[remember picture]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   670
  \draw (0,0) node[fill=cream, text width=9cm, thick, draw=red, rounded corners=1mm] (tb)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   671
  {\small\smath{y\!\not\in\! \text{fv}(\lambda x.t) \Longleftrightarrow
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   672
          y\!\not\in\! \text{fv}(t)\!-\!\{x\}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   673
          \stackrel{x\not=y}{\Longleftrightarrow}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   674
          y\!\not\in\! \text{fv}(t)}};
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   675
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   676
  \path[overlay, ->, ultra thick, red] (tb) edge[out=-120, in=75] (ta);
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   677
  \end{tikzpicture}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   678
  \end{textblock}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   679
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   680
  \end{frame}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   681
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   682
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   683
*}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   684
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   685
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   686
text_raw {*
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   687
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   688
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   689
  \mode<presentation>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   690
  \begin{frame}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   691
  \frametitle{Conclusions} 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   692
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   693
  \begin{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   694
  \item The user does not see anything of the ``raw'' level.
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   695
  \item The Nominal Isabelle automatically derives the strong structural
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   696
  induction principle for \underline{\bf all} nominal datatypes (not just the 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   697
  lambda-calculus)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   698
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   699
  \item They are easy to use: you just have to think carefully what the variable
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   700
  convention should be.
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   701
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   702
  \item We can explore the \colorbox{black}{\textcolor{white}{dark}} corners 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   703
  of the variable convention: when and where it can be used safely.
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   704
  
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   705
  \item<2> \alert{\bf Main Point:} Actually these proofs using the
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   706
  variable convention are all trivial / obvious / routine\ldots {\bf provided} 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   707
  you use Nominal Isabelle. ;o)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   708
 
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   709
  \end{itemize}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   710
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   711
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   712
  \end{frame}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   713
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   714
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   715
*}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   716
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   717
text_raw {*
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   718
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   719
  \mode<presentation>{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   720
  \begin{frame}<1>[b]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   721
  \frametitle{
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   722
  \begin{tabular}{c}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   723
  \mbox{}\\[13mm]
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   724
  \alert{\LARGE Thank you very much!}\\
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   725
  \alert{\Large Questions?}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   726
  \end{tabular}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   727
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   728
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   729
  \end{frame}}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   730
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   731
*}
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   732
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   733
(*<*)
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   734
end
cf451e182bf0 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   735
(*>*)