Slides/Slides3.thy
author Christian Urban <urbanc@in.tum.de>
Sat, 10 Jul 2010 11:27:04 +0100
changeset 2351 842969a598f2
child 2355 b38f8d5e0b09
permissions -rw-r--r--
added material for slides
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
(*<*)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
theory Slides3
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
imports "LaTeXsugar" "Nominal"
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
begin
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
notation (latex output)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
  set ("_") and
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
  Cons  ("_::/_" [66,65] 65) 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
(*>*)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
  \renewcommand{\slidecaption}{Cambridge, 8.~June 2010}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
  \begin{frame}<1>[t]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
  \frametitle{%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
  \begin{tabular}{@ {\hspace{-3mm}}c@ {}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
  \\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
  \huge Nominal 2\\[-2mm] 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
  \large Or, How to Reason Conveniently with\\[-5mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
  \large General Bindings in Isabelle/HOL\\[5mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
  \end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
  Christian Urban
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    27
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    28
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    29
  joint work with {\bf Cezary Kaliszyk}\\[0mm] 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    30
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    31
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    32
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    33
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    34
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    35
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    36
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    37
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    38
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    39
  \begin{frame}<1-2>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    40
  \frametitle{\begin{tabular}{c}Binding in Old Nominal\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    41
  \mbox{}\\[-6mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    42
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    43
  \begin{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    44
  \item old Nominal provided a reasoning infrastructure for single binders\medskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    45
  
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    46
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    47
  Lam [a].(Var a)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    48
  \end{center}\bigskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    49
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    50
  \item<2-> but representing 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    51
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    52
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    53
  $\forall\{a_1,\ldots,a_n\}.\; T$ 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    54
  \end{center}\medskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    55
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    56
  with single binders and reasoning about it is a \alert{\bf major} pain; 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    57
  take my word for it!
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    58
  \end{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    59
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    60
  \only<1>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    61
  \begin{textblock}{6}(1.5,11)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    62
  \small
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    63
  for example\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    64
  \begin{tabular}{l@ {\hspace{2mm}}l}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    65
   & a $\fresh$ Lam [a]. t\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    66
   & Lam [a]. (Var a) \alert{$=$} Lam [b]. (Var b)\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    67
   & Barendregt style reasoning about bound variables\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    68
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    69
  \end{textblock}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    70
  
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    71
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    72
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    73
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    74
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    75
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    76
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    77
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    78
  \begin{frame}<1-4>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    79
  \frametitle{\begin{tabular}{c}Binding Sets of Names\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    80
  \mbox{}\\[-3mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    81
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    82
  \begin{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    83
  \item binding sets of names has some interesting properties:\medskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    84
  
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    85
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    86
  \begin{tabular}{l}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    87
  $\forall\{x, y\}.\, x \rightarrow y \;\;\approx_\alpha\;\; \forall\{y, x\}.\, y \rightarrow x$
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    88
  \bigskip\smallskip\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    89
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    90
  \onslide<2->{%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    91
  $\forall\{x, y\}.\, x \rightarrow y \;\;\not\approx_\alpha\;\; \forall\{z\}.\, z \rightarrow z$
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    92
  }\bigskip\smallskip\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    93
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    94
  \onslide<3->{%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    95
  $\forall\{x\}.\, x \rightarrow y \;\;\approx_\alpha\;\; \forall\{x, \alert{z}\}.\, x \rightarrow y$
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    96
  }\medskip\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    97
  \onslide<3->{\hspace{4cm}\small provided $z$ is fresh for the type}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    98
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    99
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   100
  \end{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   101
  
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   102
  \begin{textblock}{8}(2,14.5)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   103
  \footnotesize $^*$ $x$, $y$, $z$ are assumed to be distinct
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   104
  \end{textblock}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   105
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   106
  \only<4>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   107
  \begin{textblock}{6}(2.5,4)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   108
  \begin{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   109
  \draw (0,0) node[inner sep=3mm,fill=cream, ultra thick, draw=red, rounded corners=2mm] 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   110
  {\normalsize\color{darkgray}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   111
  \begin{minipage}{8cm}\raggedright
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   112
  For type-schemes the order of bound names does not matter, and
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   113
  alpha-equivalence is preserved under \alert{vacuous} binders.
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   114
  \end{minipage}};
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   115
  \end{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   116
  \end{textblock}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   117
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   118
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   119
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   120
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   121
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   122
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   123
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   124
  \begin{frame}<1-3>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   125
  \frametitle{\begin{tabular}{c}Other Binding Modes\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   126
  \mbox{}\\[-3mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   127
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   128
  \begin{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   129
  \item alpha-equivalence being preserved under vacuous binders is \underline{not} always
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   130
  wanted:\bigskip\bigskip\normalsize
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   131
  
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   132
  \begin{tabular}{@ {\hspace{-8mm}}l}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   133
  $\text{let}\;x = 3\;\text{and}\;y = 2\;\text{in}\;x - y\;\text{end}$\medskip\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   134
  \onslide<2->{$\;\;\;\only<2>{\approx_\alpha}\only<3>{\alert{\not\approx_\alpha}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   135
   \text{let}\;y = 2\;\text{and}\;x = 3\only<3->{\alert{\;\text{and}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   136
    \;z = \text{loop}}}\;\text{in}\;x - y\;\text{end}$}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   137
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   138
  
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   139
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   140
  \end{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   141
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   142
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   143
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   144
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   145
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   146
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   147
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   148
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   149
  \begin{frame}<1>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   150
  \frametitle{\begin{tabular}{c}\LARGE{}Even Another Binding Mode\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   151
  \mbox{}\\[-3mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   152
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   153
  \begin{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   154
  \item sometimes one wants to abstract more than one name, but the order \underline{does} matter\bigskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   155
  
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   156
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   157
  \begin{tabular}{@ {\hspace{-8mm}}l}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   158
  $\text{let}\;(x, y) = (3, 2)\;\text{in}\;x - y\;\text{end}$\medskip\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   159
  $\;\;\;\not\approx_\alpha
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   160
   \text{let}\;(y, x) = (3, 2)\;\text{in}\;x - y\;\text{end}$
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   161
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   162
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   163
  
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   164
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   165
  \end{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   166
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   167
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   168
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   169
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   170
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   171
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   172
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   173
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   174
  \begin{frame}<1-2>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   175
  \frametitle{\begin{tabular}{c}\LARGE{}Three Binding Modes\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   176
  \mbox{}\\[-3mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   177
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   178
  \begin{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   179
  \item the order does not matter and alpha-equivelence is preserved under
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   180
  vacuous binders \textcolor{gray}{(restriction)}\medskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   181
  
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   182
  \item the order does not matter, but the cardinality of the binders 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   183
  must be the same \textcolor{gray}{(abstraction)}\medskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   184
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   185
  \item the order does matter
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   186
  \end{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   187
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   188
  \onslide<2->{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   189
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   190
  \isacommand{bind\_res}\hspace{6mm}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   191
  \isacommand{bind\_set}\hspace{6mm}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   192
  \isacommand{bind}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   193
  \end{center}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   194
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   195
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   196
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   197
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   198
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   199
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   200
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   201
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   202
  \begin{frame}<1-3>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   203
  \frametitle{\begin{tabular}{c}Specification of Binding\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   204
  \mbox{}\\[-6mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   205
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   206
  \mbox{}\hspace{10mm}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   207
  \begin{tabular}{ll}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   208
  \multicolumn{2}{l}{\isacommand{nominal\_datatype} trm $=$}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   209
  \hspace{5mm}\phantom{$|$} Var name\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   210
  \hspace{5mm}$|$ App trm trm\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   211
  \hspace{5mm}$|$ Lam \only<2->{x::}name \only<2->{t::}trm
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   212
  & \onslide<2->{\isacommand{bind} x \isacommand{in} t}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   213
  \hspace{5mm}$|$ Let \only<2->{as::}assn \only<2->{t::}trm
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   214
  & \onslide<2->{\isacommand{bind} bn(as) \isacommand{in} t}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   215
  \multicolumn{2}{l}{\isacommand{and} assn $=$}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   216
  \multicolumn{2}{l}{\hspace{5mm}\phantom{$|$} ANil}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   217
  \multicolumn{2}{l}{\hspace{5mm}$|$ ACons name trm assn}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   218
  \multicolumn{2}{l}{\onslide<3->{\isacommand{binder} bn \isacommand{where}}}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   219
  \multicolumn{2}{l}{\onslide<3->{\hspace{5mm}\phantom{$|$} bn(ANil) $=$ []}}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   220
  \multicolumn{2}{l}{\onslide<3->{\hspace{5mm}$|$ bn(ACons a t as) $=$ [a] @ bn(as)}}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   221
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   222
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   223
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   224
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   225
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   226
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   227
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   228
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   229
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   230
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   231
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   232
  \begin{frame}<1-5>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   233
  \frametitle{\begin{tabular}{c}Inspiration from Ott\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   234
  \mbox{}\\[-3mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   235
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   236
  \begin{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   237
  \item this way of specifying binding is inspired by 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   238
  Ott\onslide<2->{, \alert{\bf but} we made adjustments:}\medskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   239
  
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   240
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   241
  \only<2>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   242
  \begin{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   243
  \item Ott allows specifications like\smallskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   244
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   245
  $t ::= t\;t\; |\;\lambda x.t$
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   246
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   247
  \end{itemize}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   248
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   249
  \only<3-4>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   250
  \begin{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   251
  \item whether something is bound can depend in Ott on other bound things\smallskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   252
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   253
  \begin{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   254
  \node (A) at (-0.5,1) {Foo $(\lambda y. \lambda x. t)$};
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   255
  \node (B) at ( 1.1,1) {$s$};
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   256
  \onslide<4>{\node (C) at (0.5,0) {$\{y, x\}$};}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   257
  \onslide<4>{\draw[->,red,line width=1mm] (A) -- (C);}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   258
  \onslide<4>{\draw[->,red,line width=1mm] (C) -- (B);}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   259
  \end{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   260
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   261
  \onslide<4>{this might make sense for ``raw'' terms, but not at all 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   262
  for $\alpha$-equated terms}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   263
  \end{itemize}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   264
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   265
  \only<5>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   266
  \begin{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   267
  \item we allow multiple binders and bodies\smallskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   268
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   269
  \isacommand{bind} a b c \isacommand{in} x y z
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   270
  \end{center}\bigskip\medskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   271
  the reason is that in general
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   272
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   273
  \begin{tabular}{rcl}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   274
  \isacommand{bind\_res} as \isacommand{in} x y & $\not\Leftrightarrow$ &
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   275
  \begin{tabular}{@ {}l}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   276
  \isacommand{bind\_res} as \isacommand{in} x,\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   277
  \isacommand{bind\_res} as \isacommand{in} y
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   278
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   279
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   280
  \end{center}\smallskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   281
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   282
  same with \isacommand{bind\_set}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   283
  \end{itemize}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   284
  \end{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   285
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   286
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   287
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   288
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   289
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   290
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   291
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   292
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   293
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   294
  \begin{frame}<1>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   295
  \frametitle{\begin{tabular}{c}Alpha-Equivalence\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   296
  \mbox{}\\[-3mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   297
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   298
  \begin{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   299
  \item in old Nominal, we represented single binders as partial functions:\bigskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   300
  
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   301
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   302
  \begin{tabular}{l}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   303
  Lam [$a$].\,$t$ $\;{^\text{``}}\!\dn{}\!^{\text{''}}$\\[2mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   304
  \;\;\;\;$\lambda b.$\;$\text{if}\;a = b\;\text{then}\;t\;\text{else}$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   305
  \phantom{\;\;\;\;$\lambda b.$\;\;\;\;\;\;}$\text{if}\;b \fresh t\;
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   306
  \text{then}\;(a\;b)\act t\;\text{else}\;\text{error}$ 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   307
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   308
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   309
  \end{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   310
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   311
  \begin{textblock}{10}(2,14)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   312
  \footnotesize $^*$ alpha-equality coincides with equality on functions
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   313
  \end{textblock}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   314
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   315
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   316
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   317
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   318
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   319
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   320
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   321
  \begin{frame}<1->
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   322
  \frametitle{\begin{tabular}{c}New Design\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   323
  \mbox{}\\[4mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   324
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   325
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   326
  \begin{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   327
  \alt<2>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   328
  {\draw (0,0) node[inner sep=3mm, ultra thick, draw=red, rounded corners=2mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   329
  (A) {\textcolor{red}{\begin{minipage}{1.1cm}bind.\\spec.\end{minipage}}};}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   330
  {\draw (0,0) node[inner sep=3mm, ultra thick, draw=white, rounded corners=2mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   331
  (A) {\begin{minipage}{1.1cm}bind.\\spec.\end{minipage}};}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   332
  
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   333
  \alt<3>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   334
  {\draw (3,0) node[inner sep=3mm, ultra thick, draw=red, rounded corners=2mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   335
  (B) {\textcolor{red}{\begin{minipage}{1.1cm}raw\\terms\end{minipage}}};}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   336
  {\draw (3,0) node[inner sep=3mm, ultra thick, draw=white, rounded corners=2mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   337
  (B) {\begin{minipage}{1.1cm}raw\\terms\end{minipage}};}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   338
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   339
  \alt<4>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   340
  {\draw (6,0) node[inner sep=3mm, ultra thick, draw=red, rounded corners=2mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   341
  (C) {\textcolor{red}{\begin{minipage}{1.1cm}$\alpha$-\\equiv.\end{minipage}}};}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   342
  {\draw (6,0) node[inner sep=3mm, ultra thick, draw=white, rounded corners=2mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   343
  (C) {\begin{minipage}{1.1cm}$\alpha$-\\equiv.\end{minipage}};}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   344
  
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   345
  \alt<5>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   346
  {\draw (0,-3) node[inner sep=3mm, ultra thick, draw=red, rounded corners=2mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   347
  (D) {\textcolor{red}{\begin{minipage}{1.1cm}quot.\\type\end{minipage}}};}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   348
  {\draw (0,-3) node[inner sep=3mm, ultra thick, draw=white, rounded corners=2mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   349
  (D) {\begin{minipage}{1.1cm}quot.\\type\end{minipage}};}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   350
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   351
  \alt<6>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   352
  {\draw (3,-3) node[inner sep=3mm, ultra thick, draw=red, rounded corners=2mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   353
  (E) {\textcolor{red}{\begin{minipage}{1.1cm}lift\\thms\end{minipage}}};}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   354
  {\draw (3,-3) node[inner sep=3mm, ultra thick, draw=white, rounded corners=2mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   355
  (E) {\begin{minipage}{1.1cm}lift\\thms\end{minipage}};}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   356
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   357
  \alt<7>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   358
  {\draw (6,-3) node[inner sep=3mm, ultra thick, draw=red, rounded corners=2mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   359
  (F) {\textcolor{red}{\begin{minipage}{1.1cm}add.\\thms\end{minipage}}};}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   360
  {\draw (6,-3) node[inner sep=3mm, ultra thick, draw=white, rounded corners=2mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   361
  (F) {\begin{minipage}{1.1cm}add.\\thms\end{minipage}};}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   362
  
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   363
  \draw[->,white!50,line width=1mm] (A) -- (B);
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   364
  \draw[->,white!50,line width=1mm] (B) -- (C);
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   365
  \draw[->,white!50,line width=1mm, line join=round, rounded corners=2mm] 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   366
  (C) -- (8,0) -- (8,-1.5) -- (-2,-1.5) -- (-2,-3) -- (D);
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   367
  \draw[->,white!50,line width=1mm] (D) -- (E);
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   368
  \draw[->,white!50,line width=1mm] (E) -- (F);
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   369
  \end{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   370
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   371
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   372
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   373
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   374
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   375
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   376
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   377
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   378
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   379
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   380
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   381
  \begin{frame}<1-9>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   382
  \frametitle{\begin{tabular}{c}Alpha-Equivalence\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   383
  \mbox{}\\[-3mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   384
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   385
  \begin{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   386
  \item lets first look at pairs\bigskip\medskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   387
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   388
  \begin{tabular}{@ {\hspace{1cm}}l}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   389
  $(as, x) \onslide<2->{\approx\!}\makebox[0mm][l]{\only<2-7>{${}_{\text{set}}$}%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   390
           \only<8>{${}_{\text{\alert{list}}}$}%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   391
           \only<9>{${}_{\text{\alert{res}}}$}}%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   392
           \onslide<3->{^{R,\text{fv}}}\,\onslide<2->{(bs,y)}$
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   393
  \end{tabular}\bigskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   394
  \end{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   395
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   396
  \only<1>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   397
  \begin{textblock}{8}(3,8.5)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   398
  \begin{tabular}{l@ {\hspace{2mm}}p{8cm}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   399
   & $as$ is a set of atoms\ldots the binders\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   400
   & $x$ is the body\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   401
   & $\approx_{\text{set}}$ is where the cardinality 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   402
  of the binders has to be the same\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   403
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   404
  \end{textblock}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   405
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   406
  \only<4->{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   407
  \begin{textblock}{12}(5,8)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   408
  \begin{tabular}{ll@ {\hspace{1mm}}l}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   409
  $\dn$ & \onslide<5->{$\exists \pi.\,$} & $\text{fv}(x) - as = \text{fv}(y) - bs$\\[1mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   410
        & \onslide<5->{$\;\;\;\wedge$} & \onslide<5->{$\text{fv}(x) - as \fresh^* \pi$}\\[1mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   411
        & \onslide<6->{$\;\;\;\wedge$} & \onslide<6->{$(\pi \act x)\;R\;y$}\\[1mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   412
        & \onslide<7-8>{$\;\;\;\wedge$} & \onslide<7-8>{$\pi \act as = bs$}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   413
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   414
  \end{textblock}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   415
  
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   416
  \only<8>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   417
  \begin{textblock}{8}(3,13.8)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   418
  \footnotesize $^*$ $as$ and $bs$ are \alert{lists} of atoms 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   419
  \end{textblock}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   420
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   421
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   422
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   423
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   424
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   425
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   426
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   427
  \begin{frame}<1-2>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   428
  \frametitle{\begin{tabular}{c}Examples\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   429
  \mbox{}\\[-3mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   430
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   431
  \begin{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   432
  \item lets look at ``type-schemes'':\medskip\medskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   433
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   434
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   435
  $(as, x) \approx\!\makebox[0mm][l]{${}_{\text{set}}$}\only<1>{{}^{R,\text{fv}}}\only<2->{{}^{\alert{=},\alert{\text{fv}}}} (bs, y)$
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   436
  \end{center}\medskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   437
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   438
  \onslide<2->{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   439
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   440
  \begin{tabular}{l}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   441
  $\text{fv}(x) = \{x\}$\\[1mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   442
  $\text{fv}(T_1 \rightarrow T_2) = \text{fv}(T_1) \cup \text{fv}(T_2)$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   443
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   444
  \end{center}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   445
  \end{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   446
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   447
  
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   448
  \only<2->{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   449
  \begin{textblock}{4}(0.3,12)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   450
  \begin{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   451
  \draw (0,0) node[inner sep=1mm,fill=cream, ultra thick, draw=red, rounded corners=2mm] 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   452
  {\tiny\color{darkgray}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   453
  \begin{minipage}{3.4cm}\raggedright
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   454
  \begin{tabular}{r@ {\hspace{1mm}}l}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   455
  \multicolumn{2}{@ {}l}{res:}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   456
  $\exists\pi.$ & $\text{fv}(x) - as = \text{fv}(y) - bs$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   457
  $\wedge$ & $\text{fv}(x) - as \fresh^* \pi$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   458
  $\wedge$ & $\pi \cdot x = y$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   459
  \\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   460
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   461
  \end{minipage}};
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   462
  \end{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   463
  \end{textblock}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   464
  \only<2->{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   465
  \begin{textblock}{4}(5.2,12)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   466
  \begin{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   467
  \draw (0,0) node[inner sep=1mm,fill=cream, ultra thick, draw=red, rounded corners=2mm] 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   468
  {\tiny\color{darkgray}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   469
  \begin{minipage}{3.4cm}\raggedright
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   470
  \begin{tabular}{r@ {\hspace{1mm}}l}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   471
  \multicolumn{2}{@ {}l}{set:}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   472
  $\exists\pi.$ & $\text{fv}(x) - as = \text{fv}(y) - bs$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   473
  $\wedge$ & $\text{fv}(x) - as \fresh^* \pi$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   474
  $\wedge$ & $\pi \cdot x = y$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   475
  $\wedge$ & $\pi \cdot as = bs$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   476
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   477
  \end{minipage}};
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   478
  \end{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   479
  \end{textblock}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   480
  \only<2->{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   481
  \begin{textblock}{4}(10.2,12)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   482
  \begin{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   483
  \draw (0,0) node[inner sep=1mm,fill=cream, ultra thick, draw=red, rounded corners=2mm] 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   484
  {\tiny\color{darkgray}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   485
  \begin{minipage}{3.4cm}\raggedright
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   486
  \begin{tabular}{r@ {\hspace{1mm}}l}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   487
  \multicolumn{2}{@ {}l}{list:}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   488
  $\exists\pi.$ & $\text{fv}(x) - as = \text{fv}(y) - bs$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   489
  $\wedge$ & $\text{fv}(x) - as \fresh^* \pi$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   490
  $\wedge$ & $\pi \cdot x = y$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   491
  $\wedge$ & $\pi \cdot as = bs$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   492
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   493
  \end{minipage}};
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   494
  \end{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   495
  \end{textblock}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   496
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   497
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   498
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   499
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   500
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   501
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   502
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   503
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   504
  \begin{frame}<1-2>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   505
  \frametitle{\begin{tabular}{c}Examples\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   506
  \mbox{}\\[-3mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   507
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   508
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   509
  \only<1>{$(\{x, y\}, x \rightarrow y) \approx_? (\{x, y\}, y \rightarrow x)$}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   510
  \only<2>{$([x, y], x \rightarrow y) \approx_? ([x, y], y \rightarrow x)$}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   511
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   512
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   513
  \begin{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   514
  \item $\approx_{\text{res}}$, $\approx_{\text{set}}$% 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   515
  \only<2>{, \alert{$\not\approx_{\text{list}}$}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   516
  \end{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   517
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   518
  
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   519
  \only<1->{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   520
  \begin{textblock}{4}(0.3,12)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   521
  \begin{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   522
  \draw (0,0) node[inner sep=1mm,fill=cream, ultra thick, draw=red, rounded corners=2mm] 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   523
  {\tiny\color{darkgray}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   524
  \begin{minipage}{3.4cm}\raggedright
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   525
  \begin{tabular}{r@ {\hspace{1mm}}l}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   526
  \multicolumn{2}{@ {}l}{res:}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   527
  $\exists\pi.$ & $\text{fv}(x) - as = \text{fv}(y) - bs$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   528
  $\wedge$ & $\text{fv}(x) - as \fresh^* \pi$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   529
  $\wedge$ & $\pi \cdot x = y$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   530
  \\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   531
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   532
  \end{minipage}};
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   533
  \end{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   534
  \end{textblock}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   535
  \only<1->{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   536
  \begin{textblock}{4}(5.2,12)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   537
  \begin{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   538
  \draw (0,0) node[inner sep=1mm,fill=cream, ultra thick, draw=red, rounded corners=2mm] 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   539
  {\tiny\color{darkgray}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   540
  \begin{minipage}{3.4cm}\raggedright
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   541
  \begin{tabular}{r@ {\hspace{1mm}}l}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   542
  \multicolumn{2}{@ {}l}{set:}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   543
  $\exists\pi.$ & $\text{fv}(x) - as = \text{fv}(y) - bs$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   544
  $\wedge$ & $\text{fv}(x) - as \fresh^* \pi$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   545
  $\wedge$ & $\pi \cdot x = y$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   546
  $\wedge$ & $\pi \cdot as = bs$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   547
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   548
  \end{minipage}};
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   549
  \end{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   550
  \end{textblock}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   551
  \only<1->{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   552
  \begin{textblock}{4}(10.2,12)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   553
  \begin{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   554
  \draw (0,0) node[inner sep=1mm,fill=cream, ultra thick, draw=red, rounded corners=2mm] 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   555
  {\tiny\color{darkgray}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   556
  \begin{minipage}{3.4cm}\raggedright
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   557
  \begin{tabular}{r@ {\hspace{1mm}}l}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   558
  \multicolumn{2}{@ {}l}{list:}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   559
  $\exists\pi.$ & $\text{fv}(x) - as = \text{fv}(y) - bs$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   560
  $\wedge$ & $\text{fv}(x) - as \fresh^* \pi$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   561
  $\wedge$ & $\pi \cdot x = y$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   562
  $\wedge$ & $\pi \cdot as = bs$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   563
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   564
  \end{minipage}};
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   565
  \end{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   566
  \end{textblock}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   567
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   568
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   569
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   570
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   571
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   572
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   573
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   574
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   575
  \begin{frame}<1>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   576
  \frametitle{\begin{tabular}{c}Examples\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   577
  \mbox{}\\[-3mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   578
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   579
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   580
  \only<1>{$(\{x\}, x) \approx_? (\{x, y\}, x)$}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   581
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   582
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   583
  \begin{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   584
  \item $\approx_{\text{res}}$, $\not\approx_{\text{set}}$,
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   585
        $\not\approx_{\text{list}}$
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   586
  \end{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   587
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   588
  
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   589
  \only<1->{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   590
  \begin{textblock}{4}(0.3,12)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   591
  \begin{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   592
  \draw (0,0) node[inner sep=1mm,fill=cream, ultra thick, draw=red, rounded corners=2mm] 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   593
  {\tiny\color{darkgray}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   594
  \begin{minipage}{3.4cm}\raggedright
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   595
  \begin{tabular}{r@ {\hspace{1mm}}l}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   596
  \multicolumn{2}{@ {}l}{res:}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   597
  $\exists\pi.$ & $\text{fv}(x) - as = \text{fv}(y) - bs$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   598
  $\wedge$ & $\text{fv}(x) - as \fresh^* \pi$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   599
  $\wedge$ & $\pi \cdot x = y$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   600
  \\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   601
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   602
  \end{minipage}};
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   603
  \end{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   604
  \end{textblock}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   605
  \only<1->{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   606
  \begin{textblock}{4}(5.2,12)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   607
  \begin{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   608
  \draw (0,0) node[inner sep=1mm,fill=cream, ultra thick, draw=red, rounded corners=2mm] 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   609
  {\tiny\color{darkgray}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   610
  \begin{minipage}{3.4cm}\raggedright
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   611
  \begin{tabular}{r@ {\hspace{1mm}}l}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   612
  \multicolumn{2}{@ {}l}{set:}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   613
  $\exists\pi.$ & $\text{fv}(x) - as = \text{fv}(y) - bs$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   614
  $\wedge$ & $\text{fv}(x) - as \fresh^* \pi$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   615
  $\wedge$ & $\pi \cdot x = y$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   616
  $\wedge$ & $\pi \cdot as = bs$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   617
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   618
  \end{minipage}};
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   619
  \end{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   620
  \end{textblock}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   621
  \only<1->{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   622
  \begin{textblock}{4}(10.2,12)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   623
  \begin{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   624
  \draw (0,0) node[inner sep=1mm,fill=cream, ultra thick, draw=red, rounded corners=2mm] 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   625
  {\tiny\color{darkgray}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   626
  \begin{minipage}{3.4cm}\raggedright
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   627
  \begin{tabular}{r@ {\hspace{1mm}}l}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   628
  \multicolumn{2}{@ {}l}{list:}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   629
  $\exists\pi.$ & $\text{fv}(x) - as = \text{fv}(y) - bs$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   630
  $\wedge$ & $\text{fv}(x) - as \fresh^* \pi$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   631
  $\wedge$ & $\pi \cdot x = y$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   632
  $\wedge$ & $\pi \cdot as = bs$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   633
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   634
  \end{minipage}};
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   635
  \end{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   636
  \end{textblock}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   637
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   638
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   639
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   640
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   641
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   642
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   643
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   644
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   645
  \begin{frame}<1-3>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   646
  \frametitle{\begin{tabular}{c}General Abstractions\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   647
  \mbox{}\\[-7mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   648
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   649
  \begin{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   650
  \item we take $(as, x) \approx\!\makebox[0mm][l]{${}_{\star}$}^{=,\text{supp}} (bs, y)$\medskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   651
  \item they are equivalence relations\medskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   652
  \item we can therefore use the quotient package to introduce the 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   653
  types $\beta\;\text{abs}_\star$\bigskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   654
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   655
  \only<1>{$[as].\,x$}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   656
  \only<2>{$\text{supp}([as].x) = \text{supp}(x) - as$}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   657
  \only<3>{%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   658
  \begin{tabular}{r@ {\hspace{1mm}}l}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   659
  \multicolumn{2}{@ {\hspace{-7mm}}l}{$[as]. x \alert{=}  [bs].y\;\;\;\text{if\!f}$}\\[2mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   660
  $\exists \pi.$ & $\text{supp}(x) - as = \text{supp}(y) - bs$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   661
  $\wedge$       & $\text{supp}(x) - as \fresh^* \pi$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   662
  $\wedge$       & $\pi \act x = y $\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   663
  $(\wedge$       & $\pi \act as = bs)\;^\star$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   664
  \end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   665
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   666
  \end{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   667
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   668
  
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   669
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   670
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   671
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   672
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   673
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   674
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   675
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   676
  \begin{frame}<1>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   677
  \frametitle{\begin{tabular}{c}One Problem\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   678
  \mbox{}\\[-3mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   679
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   680
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   681
  $\text{let}\;x_1=t_1 \ldots x_n=t_n\;\text{in}\;s$
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   682
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   683
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   684
  \begin{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   685
  \item we cannot represent this as\medskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   686
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   687
  $\text{let}\;[x_1,\ldots,x_n]\alert{.}s\;\;[t_1,\ldots,t_n]$
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   688
  \end{center}\bigskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   689
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   690
  because\medskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   691
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   692
  $\text{let}\;[x].s\;\;[t_1,t_2]$
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   693
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   694
  \end{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   695
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   696
  
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   697
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   698
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   699
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   700
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   701
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   702
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   703
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   704
  \begin{frame}<1->
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   705
  \frametitle{\begin{tabular}{c}Our Specifications\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   706
  \mbox{}\\[-6mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   707
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   708
  \mbox{}\hspace{10mm}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   709
  \begin{tabular}{ll}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   710
  \multicolumn{2}{l}{\isacommand{nominal\_datatype} trm $=$}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   711
  \hspace{5mm}\phantom{$|$} Var name\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   712
  \hspace{5mm}$|$ App trm trm\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   713
  \hspace{5mm}$|$ Lam x::name t::trm
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   714
  & \isacommand{bind} x \isacommand{in} t\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   715
  \hspace{5mm}$|$ Let as::assn t::trm
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   716
  & \isacommand{bind} bn(as) \isacommand{in} t\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   717
  \multicolumn{2}{l}{\isacommand{and} assn $=$}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   718
  \multicolumn{2}{l}{\hspace{5mm}\phantom{$|$} ANil}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   719
  \multicolumn{2}{l}{\hspace{5mm}$|$ ACons name trm assn}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   720
  \multicolumn{2}{l}{\isacommand{binder} bn \isacommand{where}}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   721
  \multicolumn{2}{l}{\hspace{5mm}\phantom{$|$} bn(ANil) $=$ $[]$}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   722
  \multicolumn{2}{l}{\hspace{5mm}$|$ bn(ACons a t as) $=$ $[$a$]$ @ bn(as)}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   723
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   724
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   725
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   726
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   727
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   728
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   729
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   730
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   731
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   732
  \begin{frame}<1-2>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   733
  \frametitle{\begin{tabular}{c}``Raw'' Definitions\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   734
  \mbox{}\\[-6mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   735
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   736
  \mbox{}\hspace{10mm}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   737
  \begin{tabular}{ll}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   738
  \multicolumn{2}{l}{\isacommand{datatype} trm $=$}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   739
  \hspace{5mm}\phantom{$|$} Var name\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   740
  \hspace{5mm}$|$ App trm trm\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   741
  \hspace{5mm}$|$ Lam name trm\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   742
  \hspace{5mm}$|$ Let assn trm\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   743
  \multicolumn{2}{l}{\isacommand{and} assn $=$}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   744
  \multicolumn{2}{l}{\hspace{5mm}\phantom{$|$} ANil}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   745
  \multicolumn{2}{l}{\hspace{5mm}$|$ ACons name trm assn}\\[5mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   746
  \multicolumn{2}{l}{\isacommand{function} bn \isacommand{where}}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   747
  \multicolumn{2}{l}{\hspace{5mm}\phantom{$|$} bn(ANil) $=$ $[]$}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   748
  \multicolumn{2}{l}{\hspace{5mm}$|$ bn(ACons a t as) $=$ $[$a$]$ @ bn(as)}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   749
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   750
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   751
  \only<2>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   752
  \begin{textblock}{5}(10,5)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   753
  $+$ \begin{tabular}{l}automatically\\ 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   754
  generate fv's\end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   755
  \end{textblock}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   756
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   757
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   758
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   759
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   760
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   761
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   762
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   763
  \begin{frame}<1>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   764
  \frametitle{\begin{tabular}{c}\LARGE``Raw'' Alpha-Equivalence\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   765
  \mbox{}\\[6mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   766
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   767
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   768
  Lam x::name t::trm \hspace{10mm}\isacommand{bind} x \isacommand{in} t\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   769
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   770
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   771
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   772
  \[
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   773
  \infer[\text{Lam-}\!\approx_\alpha]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   774
  {\text{Lam}\;x\;t \approx_\alpha \text{Lam}\;x'\;t'}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   775
  {([x], t) \approx\!\makebox[0mm][l]{${}_{\text{list}}$}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   776
    ^{\approx_\alpha,\text{fv}} ([x'], t')}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   777
  \]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   778
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   779
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   780
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   781
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   782
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   783
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   784
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   785
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   786
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   787
  \begin{frame}<1>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   788
  \frametitle{\begin{tabular}{c}\LARGE``Raw'' Alpha-Equivalence\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   789
  \mbox{}\\[6mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   790
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   791
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   792
  Lam x::name y::name t::trm s::trm \hspace{5mm}\isacommand{bind} x y \isacommand{in} t s\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   793
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   794
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   795
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   796
  \[
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   797
  \infer[\text{Lam-}\!\approx_\alpha]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   798
  {\text{Lam}\;x\;y\;t\;s \approx_\alpha \text{Lam}\;x'\;y'\;t'\;s'}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   799
  {([x, y], (t, s)) \approx\!\makebox[0mm][l]{${}_{\text{list}}$}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   800
    ^{R, fv} ([x', y'], (t', s'))}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   801
  \]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   802
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   803
  \footnotesize
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   804
  where $R =\;\approx_\alpha\times\approx_\alpha$ and $fv = \text{fv}\cup\text{fv}$
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   805
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   806
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   807
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   808
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   809
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   810
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   811
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   812
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   813
  \begin{frame}<1-2>
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   814
  \frametitle{\begin{tabular}{c}\LARGE``Raw'' Alpha-Equivalence\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   815
  \mbox{}\\[6mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   816
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   817
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   818
  Let as::assn t::trm \hspace{10mm}\isacommand{bind} bn(as) \isacommand{in} t\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   819
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   820
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   821
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   822
  \[
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   823
  \infer[\text{Let-}\!\approx_\alpha]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   824
  {\text{Let}\;as\;t \approx_\alpha \text{Let}\;as'\;t'}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   825
  {(\text{bn}(as), t) \approx\!\makebox[0mm][l]{${}_{\text{list}}$}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   826
    ^{\approx_\alpha,\text{fv}} (\text{bn}(as'), t') &
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   827
   \onslide<2>{as \approx_\alpha^{\text{bn}} as'}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   828
  \]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   829
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   830
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   831
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   832
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   833
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   834
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   835
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   836
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   837
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   838
  \begin{frame}<1->
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   839
  \frametitle{\begin{tabular}{c}\LARGE{}$\alpha$ for Binding Functions\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   840
  \mbox{}\\[-6mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   841
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   842
  \mbox{}\hspace{10mm}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   843
  \begin{tabular}{l}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   844
  \ldots\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   845
  \isacommand{binder} bn \isacommand{where}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   846
  \phantom{$|$} bn(ANil) $=$ $[]$\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   847
  $|$ bn(ACons a t as) $=$ $[$a$]$ @ bn(as)\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   848
  \end{tabular}\bigskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   849
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   850
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   851
  \mbox{\infer{\text{ANil} \approx_\alpha^{\text{bn}} \text{ANil}}{}}\bigskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   852
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   853
  \mbox{\infer{\text{ACons}\;a\;t\;as \approx_\alpha^{\text{bn}} \text{ACons}\;a'\;t'\;as'}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   854
  {t \approx_\alpha t' & as \approx_\alpha^{bn} as'}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   855
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   856
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   857
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   858
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   859
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   860
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   861
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   862
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   863
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   864
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   865
  \begin{frame}<1->
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   866
  \frametitle{\begin{tabular}{c}Automatic Proofs\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   867
  \mbox{}\\[-6mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   868
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   869
  \begin{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   870
  \item we can show that $\alpha$'s are equivalence relations\medskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   871
  \item as a result we can use the quotient package to introduce the type(s)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   872
  of $\alpha$-equated terms
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   873
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   874
  \[
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   875
  \infer
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   876
  {\text{Lam}\;x\;t \alert{=} \text{Lam}\;x'\;t'}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   877
  {\only<1>{([x], t) \approx\!\makebox[0mm][l]{${}_{\text{list}}$}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   878
    ^{=,\text{supp}} ([x'], t')}%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   879
   \only<2>{[x].t = [x'].t'}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   880
  \]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   881
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   882
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   883
  \item the properties for support are implied by the properties of $[\_].\_$
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   884
  \item we can derive strong induction principles (almost automatic---just a matter of
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   885
  another week or two)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   886
  \end{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   887
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   888
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   889
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   890
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   891
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   892
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   893
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   894
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   895
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   896
  \begin{frame}<1>[t]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   897
  \frametitle{\begin{tabular}{c}Runtime is Acceptable\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   898
  \mbox{}\\[-7mm]\mbox{}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   899
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   900
  \footnotesize
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   901
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   902
  \begin{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   903
  \draw (0,0) node[inner sep=2mm, ultra thick, draw=white, rounded corners=2mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   904
  (A) {\begin{minipage}{0.8cm}bind.\\spec.\end{minipage}};
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   905
  
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   906
  \draw (2,0) node[inner sep=2mm, ultra thick, draw=white, rounded corners=2mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   907
  (B) {\begin{minipage}{0.8cm}raw\\terms\end{minipage}};
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   908
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   909
  \draw (4,0) node[inner sep=2mm, ultra thick, draw=white, rounded corners=2mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   910
  (C) {\begin{minipage}{0.8cm}$\alpha$-\\equiv.\end{minipage}};
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   911
  
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   912
  \draw (0,-2) node[inner sep=2mm, ultra thick, draw=white, rounded corners=2mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   913
  (D) {\begin{minipage}{0.8cm}quot.\\type\end{minipage}};
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   914
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   915
  \draw (2,-2) node[inner sep=2mm, ultra thick, draw=white, rounded corners=2mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   916
  (E) {\begin{minipage}{0.8cm}lift\\thms\end{minipage}};
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   917
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   918
  \draw (4,-2) node[inner sep=2mm, ultra thick, draw=white, rounded corners=2mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   919
  (F) {\begin{minipage}{0.8cm}add.\\thms\end{minipage}};
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   920
  
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   921
  \draw[->,white!50,line width=1mm] (A) -- (B);
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   922
  \draw[->,white!50,line width=1mm] (B) -- (C);
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   923
  \draw[->,white!50,line width=1mm, line join=round, rounded corners=2mm] 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   924
  (C) -- (5,0) -- (5,-1) -- (-1,-1) -- (-1,-2) -- (D);
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   925
  \draw[->,white!50,line width=1mm] (D) -- (E);
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   926
  \draw[->,white!50,line width=1mm] (E) -- (F);
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   927
  \end{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   928
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   929
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   930
  \begin{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   931
  \item Core Haskell: 11 types, 49 term-constructors, 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   932
  \end{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   933
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   934
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   935
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   936
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   937
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   938
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   939
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   940
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   941
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   942
  \begin{frame}<1->
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   943
  \frametitle{\begin{tabular}{c}Interesting Phenomenon\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   944
  \mbox{}\\[-6mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   945
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   946
  \small
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   947
  \mbox{}\hspace{10mm}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   948
  \begin{tabular}{ll}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   949
  \multicolumn{2}{l}{\isacommand{nominal\_datatype} trm $=$}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   950
  \hspace{5mm}\phantom{$|$} Var name\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   951
  \hspace{5mm}$|$ App trm trm\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   952
  \hspace{5mm}$|$ Lam x::name t::trm
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   953
  & \isacommand{bind} x \isacommand{in} t\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   954
  \hspace{5mm}$|$ Let as::assn t::trm
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   955
  & \isacommand{bind} bn(as) \isacommand{in} t\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   956
  \multicolumn{2}{l}{\isacommand{and} assn $=$}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   957
  \multicolumn{2}{l}{\hspace{5mm}\phantom{$|$} ANil}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   958
  \multicolumn{2}{l}{\hspace{5mm}$|$ ACons name trm assn}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   959
  \multicolumn{2}{l}{\isacommand{binder} bn \isacommand{where}}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   960
  \multicolumn{2}{l}{\hspace{5mm}\phantom{$|$} bn(ANil) $=$ $[]$}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   961
  \multicolumn{2}{l}{\hspace{5mm}$|$ bn(ACons a t as) $=$ $[$a$]$ @ bn(as)}\\
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   962
  \end{tabular}\bigskip\medskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   963
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   964
  we cannot quotient assn: ACons a \ldots $\not\approx_\alpha$ ACons b \ldots
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   965
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   966
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   967
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   968
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   969
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   970
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   971
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   972
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   973
  \begin{frame}<1->
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   974
  \frametitle{\begin{tabular}{c}Conclusion\end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   975
  \mbox{}\\[-6mm]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   976
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   977
  \begin{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   978
  \item the user does not see anything of the raw level\medskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   979
  \only<1>{\begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   980
  Lam a (Var a) \alert{$=$} Lam b (Var b)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   981
  \end{center}\bigskip}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   982
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   983
  \item<2-> we have not yet done function definitions (will come soon and
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   984
  we hope to make improvements over the old way there too)\medskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   985
  \item<3-> it took quite some time to get here, but it seems worthwhile 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   986
  (Barendregt's variable convention is unsound in general, 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   987
  found bugs in two paper proofs, quotient package, POPL 2011 tutorial)\medskip
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   988
  \end{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   989
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   990
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   991
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   992
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   993
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   994
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   995
(*<*)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   996
end
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   997
(*>*)