Slides/Slides3.thy
author Christian Urban <urbanc@in.tum.de>
Mon, 12 Jul 2010 21:48:39 +0100
changeset 2356 840a857354f2
parent 2355 b38f8d5e0b09
child 2357 7aec0986b229
permissions -rw-r--r--
more on 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
2355
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    12
text_raw {*
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    13
  \renewcommand{\slidecaption}{UNIF, Edinburgh, 14.~July 2010}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    14
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    15
  \newcommand{\abst}[2]{#1.#2}% atom-abstraction
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    16
  \newcommand{\pair}[2]{\langle #1,#2\rangle} % pairing
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    17
  \newcommand{\susp}{{\boldsymbol{\cdot}}}% for suspensions
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    18
  \newcommand{\unit}{\langle\rangle}% unit
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    19
  \newcommand{\app}[2]{#1\,#2}% application
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    20
  \newcommand{\eqprob}{\mathrel{{\approx}?}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    21
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    22
  \pgfdeclareradialshading{smallbluesphere}{\pgfpoint{0.5mm}{0.5mm}}%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    23
  {rgb(0mm)=(0,0,0.9);
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    24
  rgb(0.9mm)=(0,0,0.7);
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    25
  rgb(1.3mm)=(0,0,0.5);
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    26
  rgb(1.4mm)=(1,1,1)}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    27
2355
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    28
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    29
  \mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    30
  \begin{frame}<1>[c]
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    31
  \frametitle{Quiz}
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    32
  
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    33
  Assuming that \smath{a} and \smath{b} are distinct variables,\\
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    34
  is it possible to find $\lambda$-terms \smath{M_1} to \smath{M_7} 
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    35
  that make the following pairs \alert{$\alpha$-equivalent}?
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    36
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    37
  \begin{tabular}{@ {\hspace{14mm}}p{12cm}}
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    38
  \begin{itemize}
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    39
  \item \smath{\lambda a.\lambda b. (M_1\,b)\;} and 
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    40
        \smath{\lambda b.\lambda a. (a\,M_1)\;}
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    41
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    42
  \item \smath{\lambda a.\lambda b. (M_2\,b)\;} and 
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    43
        \smath{\lambda b.\lambda a. (a\,M_3)\;}
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    44
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    45
  \item \smath{\lambda a.\lambda b. (b\,M_4)\;} and 
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    46
        \smath{\lambda b.\lambda a. (a\,M_5)\;}
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    47
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    48
  \item \smath{\lambda a.\lambda b. (b\,M_6)\;} and 
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    49
        \smath{\lambda a.\lambda a. (a\,M_7)\;}
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    50
  \end{itemize}
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    51
  \end{tabular}
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    52
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    53
  If there is one solution for a pair, can you describe all its solutions?
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    54
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    55
  \end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    56
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    57
*}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    58
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    59
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    60
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    61
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    62
  \begin{frame}<1>[t]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    63
  \frametitle{%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    64
  \begin{tabular}{@ {\hspace{-3mm}}c@ {}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    65
  \\
2355
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    66
  \huge Nominal Unification\\[-2mm] 
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    67
  \Large Hitting a Sweet Spot\\[5mm]
2351
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
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    70
  Christian Urban
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    71
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    72
  \begin{center}
2355
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    73
  \small initial work with Andy Pitts and Jamie Gabbay\\[0mm] 
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    74
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    75
  \end{frame}}
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
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    78
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    79
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    80
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    81
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    82
  \begin{frame}<1-4>[c]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    83
  \frametitle{One Motivation}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    84
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    85
  \onslide<2->{Typing implemented in Prolog \textcolor{darkgray}{(from a textbook)}}\bigskip\\
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    86
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    87
  \onslide<3->{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    88
  \begin{tabular}{l}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    89
  type (Gamma, var(X), T) :- member (X,T) Gamma.\smallskip\medskip\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    90
  
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    91
  type (Gamma, app(M, N), T') :-\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    92
  \hspace{3cm}type (Gamma, M, arrow(T, T')),\\ 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    93
  \hspace{3cm}type (Gamma, N, T).\smallskip\medskip\\
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    94
  
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    95
  type (Gamma, lam(X, M), arrow(T, T')) :-\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    96
  \hspace{3cm}type ((X, T)::Gamma, M, T').\smallskip\medskip\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    97
  
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    98
  member X X::Tail.\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    99
  member X Y::Tail :- member X Tail.\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   100
  \end{tabular}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   101
 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   102
  \only<4>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   103
  \begin{textblock}{6}(2.5,2)
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   104
  \begin{tikzpicture}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   105
  \draw (0,0) node[inner sep=3mm,fill=cream, ultra thick, draw=red, rounded corners=2mm] 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   106
  {\color{darkgray}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   107
  \begin{minipage}{8cm}\raggedright
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   108
  The problem is that \smath{\lambda x.\lambda x. (x\;x)}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   109
  gets the types
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   110
  \begin{center}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   111
  \begin{tabular}{l}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   112
  \smath{T\rightarrow (T\rightarrow S) \rightarrow S} and\\ 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   113
  \smath{(T\rightarrow S)\rightarrow T \rightarrow S}\\
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   114
  \end{tabular}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   115
  \end{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   116
  \end{minipage}};
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   117
  \end{tikzpicture}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   118
  \end{textblock}}
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
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   121
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
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
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   124
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   125
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   126
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   127
  \begin{frame}<1>[c]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   128
  \frametitle{Higher-Order Unification}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   129
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   130
  \begin{itemize}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   131
  \item Lambda Prolog with full Higher-Order Unification\\ 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   132
  \textcolor{darkgray}{(no mgus, undecidable, modulo $\alpha\beta$)}\bigskip
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   133
  \item Higher-Order Pattern Unification\\ 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   134
  \textcolor{darkgray}{(has mgus, decidable, some restrictions, modulo $\alpha\beta_0$)}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   135
  \end{itemize}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   136
 
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   137
  \end{frame}}
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
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   141
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   142
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   143
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   144
  \begin{frame}<1-10>[t]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   145
  \frametitle{Underlying Ideas}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   146
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   147
  \begin{itemize}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   148
  \item<1-> Unification (\alert{only}) up to $\alpha$
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   149
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   150
  \item<2-> Swappings / Permutations
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   151
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   152
  \only<2-5>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   153
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   154
  \begin{tabular}{r@ {\hspace{1mm}}l@ {\hspace{12mm}}r@ {\hspace{1mm}}l}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   155
  \only<2>{\smath{\textcolor{white}{[b\!:=\!a]}}}%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   156
  \only<3>{\smath{[b\!:=\!a]}}%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   157
  \only<4-5>{\smath{\alert{\swap{a}{b}\,\act}}} & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   158
  \onslide<2-5>{\smath{\lambda a.b}} &
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   159
  
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   160
  \only<2>{\smath{\textcolor{white}{[b\!:=\!a]}}}%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   161
  \only<3>{\smath{[b\!:=\!a]}}%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   162
  \only<4-5>{\smath{\alert{\swap{a}{b}\,\act}}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   163
  \onslide<2-5>{\smath{\lambda c.b}}\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   164
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   165
  \onslide<3-5>{\smath{=}} & \only<3>{\smath{\lambda a.a}}\only<4-5>{\smath{\lambda b.a}} & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   166
  \onslide<3-5>{\smath{=}} & \only<3>{\smath{\lambda c.a}}\only<4-5>{\smath{\lambda c.a}}\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   167
  \end{tabular}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   168
  \end{center}\bigskip
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   169
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   170
  \onslide<4-5>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   171
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   172
  \begin{tikzpicture}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   173
  \draw (0,0) node[inner sep=0mm,fill=cream, ultra thick, draw=cream] 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   174
  {\begin{minipage}{8cm}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   175
  \begin{tabular}{r@ {\hspace{3mm}}l}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   176
  \smath{\swap{a}{b}\act t} $\;\dn$ & \alert{swap} {\bf all} occurences of\\ 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   177
                                  & \smath{b} and \smath{a} in \smath{t}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   178
  \end{tabular}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   179
  \end{minipage}};
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   180
  \end{tikzpicture}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   181
  \end{center}}\bigskip
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   182
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   183
  \onslide<5>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   184
  Unlike for \smath{[b\!:=\!a]\act(-)}, for \smath{\swap{a}{b}\act (-)} we do
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   185
  have if \smath{t =_\alpha t'} then \smath{\pi \act t =_\alpha \pi \act t'.}}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   186
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   187
  \item<6-> Variables (or holes)\bigskip
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   188
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   189
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   190
  \onslide<7->{\mbox{}\hspace{-25mm}\smath{\lambda x\hspace{-0.5mm}s .}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   191
  \onslide<8-9>{\raisebox{-1.7mm}{\huge\smath{(}}}\raisebox{-4mm}{\begin{tikzpicture}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   192
  \fill[blue] (0, 0) circle (5mm);
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   193
  \end{tikzpicture}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   194
  \onslide<8-9>{\smath{y\hspace{-0.5mm}s}{\raisebox{-1.7mm}{\huge\smath{)}}}}\bigskip
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   195
  \end{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   196
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   197
  \only<8-9>{\smath{y\hspace{-0.5mm}s} are the parameters the hole can depend on\onslide<9->{, but 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   198
  then you need $\beta_0$-reduction\medskip
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   199
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   200
  \smath{(\lambda x. t) y \longrightarrow_{\beta_0} t[x:=y]}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   201
  \end{center}}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   202
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   203
  \only<10>{we will record the information about which parameters a hole 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   204
  \alert{\bf cannot} depend on}
2351
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
  \end{itemize}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   207
  
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   208
  \end{frame}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   209
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   210
*}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   211
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   212
text_raw {*
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   213
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   214
  \mode<presentation>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   215
  \begin{frame}<1-4>[c]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   216
  \frametitle{Terms}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   217
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   218
  \begin{tabular}{lll @ {\hspace{10mm}}lll}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   219
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   220
  \onslide<1->{\pgfuseshading{smallbluesphere}} & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   221
  \onslide<1->{\colorbox{cream}{\smath{\unit}}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   222
  \onslide<1->{Units} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   223
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   224
  \onslide<2->{\pgfuseshading{smallbluesphere}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   225
  \onslide<2->{\colorbox{cream}{\smath{a}}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   226
  \onslide<2->{Atoms} \\[5mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   227
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   228
  \onslide<1->{\pgfuseshading{smallbluesphere}} & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   229
  \onslide<1->{\colorbox{cream}{\smath{\pair{t}{t'}}}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   230
  \onslide<1->{Pairs} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   231
  
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   232
  \onslide<3->{\pgfuseshading{smallbluesphere}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   233
  \onslide<3->{\colorbox{cream}{\smath{\abst{a}{t}}}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   234
  \onslide<3->{Abstractions}\\[5mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   235
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   236
  \onslide<1->{\pgfuseshading{smallbluesphere}} & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   237
  \onslide<1->{\colorbox{cream}{\smath{\app{F}{t}}}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   238
  \onslide<1->{Funct.} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   239
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   240
  \onslide<4->{\pgfuseshading{smallbluesphere}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   241
  \onslide<4->{\colorbox{cream}{\smath{\pi\susp X}}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   242
  \onslide<4->{Suspensions}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   243
  \end{tabular}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   244
 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   245
  \only<2>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   246
  \begin{textblock}{13}(1.5,12)
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   247
  \small Atoms are constants \textcolor{darkgray}{(infinitely many of them)}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   248
  \end{textblock}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   249
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   250
  \only<3>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   251
  \begin{textblock}{13}(1.5,12)
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   252
  \small \smath{\ulcorner \lambda\abst{a}{a}\urcorner \mapsto \text{fn\ }\abst{a}{a}}\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   253
  \small constructions like \smath{\text{fn\ }\abst{X}{X}} are not allowed
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   254
  \end{textblock}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   255
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   256
  \only<4>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   257
  \begin{textblock}{13}(1.5,12)
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   258
  \small \smath{X} is a variable standing for a term\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   259
  \small \smath{\pi} is an explicit permutation \smath{\swap{a_1}{b_1}\ldots\swap{a_n}{b_n}},
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   260
  waiting to be applied to the term that is substituted for \smath{X}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   261
  \end{textblock}}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   262
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   263
  \end{frame}}
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
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   266
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   267
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   268
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   269
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   270
  \begin{frame}<1-3>[c]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   271
  \frametitle{Permutations}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   272
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   273
  a permutation applied to a term
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   274
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   275
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   276
  \begin{tabular}{lrcl}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   277
  \pgfuseshading{smallbluesphere} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   278
  \smath{[]\act c} & \smath{\dn} & \smath{c} \\
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   279
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   280
  \pgfuseshading{smallbluesphere} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   281
  \smath{\swap{a}{b}\!::\!\pi\act c} & \smath{\dn} & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   282
  \smath{\begin{cases} 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   283
  a & \text{if}\;\pi\act c = b\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   284
  b & \text{if}\;\pi\act c = a\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   285
  \pi\act c & \text{otherwise}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   286
  \end{cases}}\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   287
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   288
  \onslide<2->{\pgfuseshading{smallbluesphere}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   289
  \onslide<2->{\smath{\pi\act\abst{a}{t}}} & \onslide<2->{\smath{\dn}} & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   290
  \onslide<2->{\smath{\abst{\pi\act a}{\pi\act t}}}\\ 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   291
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   292
  \onslide<3->{\pgfuseshading{smallbluesphere}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   293
  \onslide<3->{\smath{\pi\act\pi'\act X}} & \onslide<3->{\smath{\dn}} & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   294
  \onslide<3->{\smath{(\pi @ \pi')\act X}}\\
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   295
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   296
  \end{center}
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
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   299
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
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
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   302
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   303
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   304
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   305
  \begin{frame}<1-3>[c]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   306
  \frametitle{Freshness Constraints}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   307
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   308
  Recall \smath{\lambda a. \raisebox{-0.7mm}{\tikz \fill[blue] (0, 0) circle (2.5mm);}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   309
  \bigskip\pause
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   310
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   311
  We therefore will identify
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   312
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   313
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   314
  \smath{\mathtt{fn\ } a. X \;\approx\; \mathtt{fn\ } b. \alert<3->{\swap{a}{b}}\act X}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   315
  \end{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   316
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   317
  provided that `\smath{b} is fresh for \smath{X} --- (\smath{b\fresh X})',
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   318
  i.e., does not occur freely in any ground term that might be substituted for
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   319
  \smath{X}.\bigskip\pause 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   320
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   321
  If we know more about \smath{X}, e.g., if we knew that \smath{a\fresh X} and
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   322
  \smath{b\fresh X}, then we can replace\\ \smath{\swap{a}{b}\act X} by
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   323
  \smath{X}.
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   324
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   325
  \end{frame}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   326
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   327
*}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   328
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   329
text_raw {*
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   330
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   331
  \mode<presentation>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   332
  \begin{frame}<1-4>[c]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   333
  \frametitle{Equivalence Judgements}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   334
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   335
  \alt<1>{Our equality is {\bf not} just}{but judgements}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   336
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   337
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   338
  \begin{tabular}{rl}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   339
  \colorbox{cream}{\smath{\onslide<2->{\nabla \vdash} t \approx t'}} & \alert{$\alpha$-equivalence}\\[1mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   340
  \onslide<4->{\colorbox{cream}{\smath{\onslide<2->{\nabla \vdash} a \fresh t}}} & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   341
  \onslide<4->{\alert{freshness}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   342
  \end{tabular}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   343
  \end{center}
2351
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
  \onslide<2->{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   346
  where
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   347
  \begin{center}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   348
  \smath{\nabla = \{a_1\fresh X_1,\ldots, a_n\fresh X_n\}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   349
  \end{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   350
  is a finite set of \alert{freshness assumptions}.}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   351
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   352
  \onslide<3->{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   353
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   354
  \smath{\{a\fresh X,b\fresh X\} \vdash \text{fn\ } a. X \approx \text{fn\ } b. X}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   355
  \end{center}}
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
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   358
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   359
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   360
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   361
text_raw {*
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
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   364
  \begin{frame}<1>[c]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   365
  \frametitle{Rules for Equivalence}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   366
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   367
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   368
  \begin{tabular}{c}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   369
  Excerpt\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   370
  (i.e.~only the interesting rules)
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   371
  \end{tabular}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   372
  \end{center}  
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   373
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   374
  \end{frame}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   375
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   376
*}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   377
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   378
text_raw {*
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   379
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   380
  \mode<presentation>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   381
  \begin{frame}<1>[c]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   382
  \frametitle{Rules for Equivalence}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   383
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   384
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   385
  \begin{tabular}{c}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   386
  \colorbox{cream}{\smath{\infer{\nabla \vdash a \approx a}{}}}\\[8mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   387
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   388
  \colorbox{cream}{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   389
  \smath{\infer{\nabla \vdash \abst{a}{t} \approx \abst{a}{t'}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   390
               {\nabla \vdash t \approx t'}}}\\[8mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   391
 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   392
  \colorbox{cream}{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   393
  \smath{\infer{\nabla \vdash \abst{a}{t} \approx \abst{b}{t'}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   394
  {a\not=b\;\; & \nabla \vdash t \approx \swap{a}{b}\act t'\;\;& \nabla \vdash a\fresh t'}}}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   395
  \end{tabular}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   396
  \end{center}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   397
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   398
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   399
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   400
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   401
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   402
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   403
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   404
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   405
  \begin{frame}<1-3>[c]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   406
  \frametitle{Rules for Equivalence}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   407
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   408
  \begin{center}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   409
  \colorbox{cream}{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   410
  \smath{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   411
  \infer{\nabla \vdash \pi\act X \approx \pi'\act X}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   412
  {\begin{array}{c}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   413
  (a\fresh X)\in\nabla\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   414
  \text{for all}\; a \;\text{with}\;\pi\act a \not= \pi'\act a 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   415
  \end{array}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   416
  }}}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   417
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   418
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   419
  \onslide<2->{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   420
  for example\\[4mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   421
  
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   422
  \alt<2>{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   423
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   424
  \smath{\{a\fresh\!X, b\fresh\!X\} \vdash X \approx \swap{a}{b}\act X}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   425
  \end{center}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   426
  {%
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   427
  \begin{center}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   428
  \smath{\{a\fresh\!X, c\fresh\!X\} \vdash \swap{a}{c}\swap{a}{b}\act X \approx \swap{b}{c}\act X}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   429
  \end{center}}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   430
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   431
  \onslide<3->{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   432
  \begin{tabular}{@ {}lllll@ {}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   433
  because & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   434
  \smath{\swap{a}{c}\swap{a}{b}}: & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   435
  \smath{a\mapsto b} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   436
  \smath{\swap{b}{c}}: &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   437
  \smath{a\mapsto a}\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   438
  & & \smath{b\mapsto c} & & \smath{b\mapsto c}\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   439
  & & \smath{c\mapsto a} & & \smath{c\mapsto b}\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   440
  \end{tabular}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   441
  disagree at \smath{a} and \smath{c}.}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   442
  }
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   443
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   444
  \end{frame}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   445
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   446
*}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   447
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   448
text_raw {*
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   449
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   450
  \mode<presentation>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   451
  \begin{frame}<1>[c]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   452
  \frametitle{Rules for Freshness}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   453
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   454
  \begin{center}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   455
  \begin{tabular}{c}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   456
  Excerpt\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   457
  (i.e.~only the interesting rules)
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   458
  \end{tabular}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   459
  \end{center}  
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   460
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   461
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   462
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   463
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   464
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   465
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   466
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   467
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   468
  \begin{frame}<1>[c]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   469
  \frametitle{Rules for Freshness}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   470
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   471
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   472
  \begin{tabular}{c}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   473
  \colorbox{cream}{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   474
  \smath{\infer{\nabla \vdash a\fresh b}{a\not= b}}}\\[5mm]
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   475
  
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   476
  \colorbox{cream}{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   477
  \smath{\infer{\nabla \vdash a\fresh\abst{a}{t}}{}}}\hspace{7mm}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   478
  \colorbox{cream}{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   479
  \smath{\infer{\nabla \vdash a\fresh\abst{b}{t}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   480
  {a\not= b\;\; & \nabla \vdash a\fresh t}}}\\[5mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   481
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   482
  \colorbox{cream}{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   483
  \smath{\infer{\nabla \vdash a\fresh \pi\act X}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   484
  {(\pi^{-1}\act a\fresh X)\in\nabla}}}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   485
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   486
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   487
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   488
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   489
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   490
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   491
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   492
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   493
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   494
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   495
  \begin{frame}<1-4>[t]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   496
  \frametitle{$\approx$ is an Equivalence}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   497
  \mbox{}\\[5mm]
2351
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
  \begin{center}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   500
  \colorbox{cream}{\alert{Theorem:}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   501
  $\approx$ is an equivalence relation.}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   502
  \end{center}\bigskip
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   503
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   504
  \only<1>{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   505
  \begin{tabular}{ll}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   506
  (Reflexivity)  & $\smath{\nabla\vdash t\approx t}$\\[2mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   507
  (Symmetry)     & if $\smath{\nabla\vdash t_1\approx t_2}\;$ 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   508
                   then $\;\smath{\nabla\vdash t_2\approx t_1}$\\[2mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   509
  (Transitivity) & if $\smath{\nabla\vdash t_1\approx t_2}\;$ and 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   510
                   $\;\smath{\nabla\vdash t_2\approx t_3}$\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   511
                 & then $\smath{\nabla\vdash t_1\approx t_3}$\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   512
  \end{tabular}}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   513
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   514
  \only<2->{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   515
  \begin{itemize}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   516
  \item<2-> \smath{\nabla \vdash t\approx t'} then \smath{\nabla \vdash \pi\act t\approx \pi\act t'}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   517
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   518
  \item<2-> \smath{\nabla \vdash a\fresh t} then 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   519
  \smath{\nabla \vdash \pi\act a\fresh \pi\act t}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   520
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   521
  \item<3-> \smath{\nabla \vdash t\approx \pi\act t'} then 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   522
  \smath{\nabla \vdash (\pi^{-1})\act t\approx t'}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   523
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   524
  \item<3-> \smath{\nabla \vdash a\fresh \pi\act t} then 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   525
  \smath{\nabla \vdash (\pi^{-1})\act a\fresh t}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   526
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   527
  \item<4-> \smath{\nabla \vdash a\fresh t} and \smath{\nabla \vdash t\approx t'} then
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   528
      \smath{\nabla \vdash a\fresh t'}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   529
  \end{itemize}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   530
  }
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   531
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   532
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   533
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   534
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   535
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   536
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   537
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   538
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   539
  \begin{frame}<1-4>
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   540
  \frametitle{Comparison $=_\alpha$}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   541
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   542
  Traditionally \smath{=_\alpha} is defined as
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   543
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   544
  \begin{center}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   545
  \colorbox{cream}{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   546
  \begin{minipage}{9cm}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   547
  \raggedright least congruence which identifies \smath{\abst{a}{t}} 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   548
  with \smath{\abst{b}{[a:=b]t}} provided \smath{b} is not free  
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   549
  in \smath{t}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   550
  \end{minipage}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   551
  \end{center}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   552
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   553
  where \smath{[a:=b]t} replaces all free occurrences of\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   554
  \smath{a} by \smath{b} in \smath{t}.
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   555
  \bigskip 
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   556
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   557
  \only<2>{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   558
  \begin{textblock}{13}(1.2,10)
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   559
  For \alert{ground} terms:
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   560
  
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   561
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   562
  \colorbox{cream}{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   563
  \begin{minipage}{9.0cm}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   564
  \begin{tabular}{@ {}rl}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   565
  \underline{Theorem:}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   566
  & \smath{t=_\alpha t'\;\;}  if\hspace{-0.5mm}f~\smath{\;\;\emptyset \vdash t\approx t'}\\[2mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   567
  & \smath{a\not\in FA(t)\;\;} if\hspace{-0.5mm}f~\smath{\;\;\emptyset\vdash a\fresh t} 
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   568
  \end{tabular}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   569
  \end{minipage}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   570
  \end{center}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   571
  \end{textblock}}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   572
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   573
  \only<3>{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   574
  \begin{textblock}{13}(1.2,10)
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   575
  In general \smath{=_\alpha} and \smath{\approx} are distinct!
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   576
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   577
  \colorbox{cream}{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   578
  \begin{minipage}{6.0cm}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   579
  \smath{\abst{a}{X}=_\alpha \abst{b}{X}\;} but not\\[2mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   580
  \smath{\emptyset \vdash \abst{a}{X} \approx \abst{b}{X}\;} (\smath{a\not=b})
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   581
  \end{minipage}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   582
  \end{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   583
  \end{textblock}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   584
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   585
  \only<4>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   586
  \begin{textblock}{6}(1,2)
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   587
  \begin{tikzpicture}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   588
  \draw (0,0) node[inner sep=3mm,fill=cream, ultra thick, draw=red, rounded corners=2mm] 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   589
  {\color{darkgray}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   590
  \begin{minipage}{10cm}\raggedright
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   591
  That is a crucial point: if we had\\[-2mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   592
  \[\smath{\emptyset \vdash \abst{a}{X}\approx \abst{b}{X}}\mbox{,}\] 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   593
  then applying $\smath{[X:=a]}$, $\smath{[X:=b]}$, $\ldots$\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   594
  give two terms that are {\bf not} $\alpha$-equivalent.\\[3mm] 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   595
  The freshness constraints $\smath{a\fresh X}$ and $\smath{b\fresh X}$
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   596
  rule out the problematic substitutions. Therefore
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   597
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   598
  \[\smath{\{a\fresh X,b\fresh X\} \vdash \abst{a}{X}\approx \abst{b}{X}}\] 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   599
  
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   600
  does hold.
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   601
  \end{minipage}};
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   602
  \end{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   603
  \end{textblock}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   604
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   605
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   606
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   607
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   608
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   609
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   610
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   611
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   612
  \begin{frame}<1-9>
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   613
  \frametitle{Substitution}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   614
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   615
  \begin{tabular}{l@ {\hspace{8mm}}r@ {\hspace{1.5mm}}c@ {\hspace{1.5mm}}l@ {}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   616
  \pgfuseshading{smallbluesphere} & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   617
  \smath{\sigma(\abst{a}{t})} & \smath{\dn} & \smath{\abst{a}{\sigma(t)}}\\[2mm]
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   618
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   619
  \pgfuseshading{smallbluesphere} & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   620
  \smath{\sigma(\pi\act X)} & \smath{\dn} & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   621
  \smath{\begin{cases}% 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   622
  \pi\;\act\;\sigma(X) & \!\!\text{if\ } \sigma(X)\not=X\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   623
  \pi\act X & \!\!\text{otherwise}% 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   624
  \end{cases}}\\[6mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   625
  \end{tabular}\bigskip\bigskip
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   626
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   627
  \pause
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   628
  \only<2-5>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   629
  \only<2->{for example}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   630
  \def\arraystretch{1.3}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   631
  \begin{tabular}{@ {\hspace{14mm}}l@ {\hspace{3mm}}l}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   632
  \onslide<2->{\textcolor{white}{$\Rightarrow$}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   633
  \onslide<2->{\alt<3>{\smath{\underline{\abst{a}{\swap{a}{b}\act X}\;\,[X:=\pair{b}{Y}]}}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   634
                      {\smath{\abst{a}{\swap{a}{b}\act X}\;\,[X:=\pair{b}{Y}]}}}\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   635
  \onslide<3->{\smath{\Rightarrow}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   636
  \onslide<3->{\alt<3,4>{\smath{\abst{a}{\underline{\swap{a}{b}\act X[X:=\pair{b}{Y}]}}}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   637
                        {\smath{\abst{a}{\swap{a}{b}\act X}[X:=\pair{b}{Y}]}}}\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   638
  \onslide<4->{\smath{\Rightarrow}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   639
  \onslide<4->{\alt<4>{\smath{\abst{a}{\swap{a}{b}\act \underline{\pair{b}{Y}}}}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   640
                      {\smath{\abst{a}{\underline{\swap{a}{b}}\act \pair{b}{Y}}}}}\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   641
  \onslide<5->{\smath{\Rightarrow}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   642
  \onslide<5->{\smath{\abst{a}{\pair{a}{\swap{a}{b}\act Y}}}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   643
  \end{tabular}}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   644
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   645
  \only<6->
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   646
  {\begin{tabular}{l@ {\hspace{8mm}}l@ {}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   647
  \pgfuseshading{smallbluesphere} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   648
  if \smath{\nabla\vdash t\approx t'} and\hspace{-2mm}\mbox{}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   649
  \raisebox{-2.7mm}{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   650
  \alt<7>{\begin{tikzpicture}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   651
          \draw (0,0) node[inner sep=1mm,fill=cream, very thick, draw=red, rounded corners=3mm] 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   652
          {\smath{\;\nabla'\vdash\sigma(\nabla)\;}};
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   653
          \end{tikzpicture}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   654
         {\begin{tikzpicture}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   655
          \draw (0,0) node[inner sep=1mm,fill=white, very thick, draw=white, rounded corners=3mm] 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   656
          {\smath{\;\nabla'\vdash\sigma(\nabla)\;}};
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   657
          \end{tikzpicture}}}\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   658
  & then \smath{\nabla'\vdash\sigma(t)\approx\sigma(t')}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   659
  \end{tabular}}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   660
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   661
  \only<9>
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   662
  {\begin{tabular}{l@ {\hspace{8mm}}l@ {}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   663
  \\[-4mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   664
  \pgfuseshading{smallbluesphere} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   665
  \smath{\sigma(\pi\act t)=\pi\act\sigma(t)}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   666
  \end{tabular}}
2351
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
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   669
  \only<7>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   670
  \begin{textblock}{6}(10,10.5)
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   671
  \begin{tikzpicture}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   672
  \draw (0,0) node[inner sep=1mm,fill=cream, very thick, draw=red, rounded corners=2mm] 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   673
  {\color{darkgray}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   674
   \begin{minipage}{3.8cm}\raggedright
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   675
   this means\\[1mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   676
   \smath{\nabla'\vdash a\fresh\sigma(X)}\\[1mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   677
   holds for all\\[1mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   678
   \smath{(a\fresh X)\in\nabla}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   679
  \end{minipage}};
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   680
  \end{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   681
  \end{textblock}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   682
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   683
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   684
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   685
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   686
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   687
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   688
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   689
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   690
  \begin{frame}<1->
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   691
  \frametitle{Equational Problems}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   692
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   693
  An equational problem 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   694
  \[
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   695
    \colorbox{cream}{\smath{t \eqprob t'}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   696
  \]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   697
  is \alert{solved} by
2351
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
  \begin{center}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   700
  \begin{tabular}{ll}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   701
  \pgfuseshading{smallbluesphere} & a substitution \smath{\sigma} (terms for variables)\\[3mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   702
  \pgfuseshading{smallbluesphere} & {\bf and} a set of freshness assumptions \smath{\nabla}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   703
  \end{tabular}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   704
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   705
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   706
  so that \smath{\nabla\vdash \sigma(t)\approx \sigma(t')}.
2351
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
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   709
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   710
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   711
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   712
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   713
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   714
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   715
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   716
  \begin{frame}<1->
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   717
  \frametitle{Conclusion}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   718
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   719
  \begin{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   720
  \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
   721
  \only<1>{\begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   722
  Lam a (Var a) \alert{$=$} Lam b (Var b)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   723
  \end{center}\bigskip}
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
  \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
   726
  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
   727
  \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
   728
  (Barendregt's variable convention is unsound in general, 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   729
  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
   730
  \end{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   731
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   732
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   733
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   734
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
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
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   737
(*<*)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   738
end
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   739
(*>*)