Slides/Slides3.thy
author Christian Urban <urbanc@in.tum.de>
Tue, 07 Aug 2012 16:55:17 +0100
changeset 3195 deef21dc972f
parent 2748 6f38e357b337
child 3224 cf451e182bf0
permissions -rw-r--r--
added eqvt-lemma for function composition
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
2748
6f38e357b337 rearranged directories and updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 2358
diff changeset
     3
imports "~~/src/HOL/Library/LaTeXsugar" "Nominal"
2351
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
2748
6f38e357b337 rearranged directories and updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 2358
diff changeset
     6
declare [[show_question_marks = false]]
6f38e357b337 rearranged directories and updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 2358
diff changeset
     7
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
notation (latex output)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
  set ("_") and
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
  Cons  ("_::/_" [66,65] 65) 
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
(*>*)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
2355
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    14
text_raw {*
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    15
  \renewcommand{\slidecaption}{UNIF, Edinburgh, 14.~July 2010}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    16
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    17
  \newcommand{\abst}[2]{#1.#2}% atom-abstraction
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    18
  \newcommand{\pair}[2]{\langle #1,#2\rangle} % pairing
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    19
  \newcommand{\susp}{{\boldsymbol{\cdot}}}% for suspensions
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    20
  \newcommand{\unit}{\langle\rangle}% unit
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    21
  \newcommand{\app}[2]{#1\,#2}% application
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    22
  \newcommand{\eqprob}{\mathrel{{\approx}?}}
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
    23
  \newcommand{\freshprob}{\mathrel{\#?}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
    24
  \newcommand{\redu}[1]{\stackrel{#1}{\Longrightarrow}}% reduction
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
    25
  \newcommand{\id}{\varepsilon}% identity substitution
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    26
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    27
  \pgfdeclareradialshading{smallbluesphere}{\pgfpoint{0.5mm}{0.5mm}}%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    28
  {rgb(0mm)=(0,0,0.9);
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    29
  rgb(0.9mm)=(0,0,0.7);
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    30
  rgb(1.3mm)=(0,0,0.5);
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    31
  rgb(1.4mm)=(1,1,1)}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    32
2355
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    33
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    34
  \mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    35
  \begin{frame}<1>[c]
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    36
  \frametitle{Quiz}
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    37
  
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    38
  Assuming that \smath{a} and \smath{b} are distinct variables,\\
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    39
  is it possible to find $\lambda$-terms \smath{M_1} to \smath{M_7} 
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    40
  that make the following pairs \alert{$\alpha$-equivalent}?
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    41
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    42
  \begin{tabular}{@ {\hspace{14mm}}p{12cm}}
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    43
  \begin{itemize}
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    44
  \item \smath{\lambda a.\lambda b. (M_1\,b)\;} and 
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    45
        \smath{\lambda b.\lambda a. (a\,M_1)\;}
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    46
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    47
  \item \smath{\lambda a.\lambda b. (M_2\,b)\;} and 
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    48
        \smath{\lambda b.\lambda a. (a\,M_3)\;}
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    49
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    50
  \item \smath{\lambda a.\lambda b. (b\,M_4)\;} and 
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    51
        \smath{\lambda b.\lambda a. (a\,M_5)\;}
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    52
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    53
  \item \smath{\lambda a.\lambda b. (b\,M_6)\;} and 
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    54
        \smath{\lambda a.\lambda a. (a\,M_7)\;}
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    55
  \end{itemize}
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    56
  \end{tabular}
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    57
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    58
  If there is one solution for a pair, can you describe all its solutions?
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    59
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    60
  \end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    61
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    62
*}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    63
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    64
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    65
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    66
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    67
  \begin{frame}<1>[t]
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    68
  \frametitle{%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    69
  \begin{tabular}{@ {\hspace{-3mm}}c@ {}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    70
  \\
2355
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    71
  \huge Nominal Unification\\[-2mm] 
Christian Urban <urbanc@in.tum.de>
parents: 2351
diff changeset
    72
  \Large Hitting a Sweet Spot\\[5mm]
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    73
  \end{tabular}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    74
  \begin{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    75
  Christian Urban
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    76
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    77
  \begin{center}
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
    78
  \small initial spark from Roy Dyckhoff in November 2001\\[0mm] 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
    79
  \small joint work with Andy Pitts and Jamie Gabbay\\[0mm] 
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    80
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    81
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    82
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    83
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    84
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    85
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    86
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    87
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    88
  \begin{frame}<1-4>[c]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    89
  \frametitle{One Motivation}
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
  \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
    92
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
    93
  \onslide<3->{\color{darkgray}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    94
  \begin{tabular}{l}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    95
  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
    96
  
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    97
  type (Gamma, app(M, N), T') :-\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    98
  \hspace{3cm}type (Gamma, M, arrow(T, T')),\\ 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
    99
  \hspace{3cm}type (Gamma, N, T).\smallskip\medskip\\
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   100
  
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   101
  type (Gamma, lam(X, M), arrow(T, T')) :-\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   102
  \hspace{3cm}type ((X, T)::Gamma, M, T').\smallskip\medskip\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   103
  
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   104
  member X X::Tail.\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   105
  member X Y::Tail :- member X Tail.\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   106
  \end{tabular}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   107
 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   108
  \only<4>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   109
  \begin{textblock}{6}(2.5,2)
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   110
  \begin{tikzpicture}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   111
  \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
   112
  {\color{darkgray}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   113
  \begin{minipage}{8cm}\raggedright
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   114
  The problem is that \smath{\lambda x.\lambda x. (x\;x)}
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   115
  will have the types
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   116
  \begin{center}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   117
  \begin{tabular}{l}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   118
  \smath{T\rightarrow (T\rightarrow S) \rightarrow S} and\\ 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   119
  \smath{(T\rightarrow S)\rightarrow T \rightarrow S}\\
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   120
  \end{tabular}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   121
  \end{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   122
  \end{minipage}};
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   123
  \end{tikzpicture}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   124
  \end{textblock}}
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
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   127
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   128
*}
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
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   131
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   132
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   133
  \begin{frame}<1>[c]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   134
  \frametitle{Higher-Order Unification}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   135
2358
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
   136
  State of the art at the time:
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   137
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   138
  \begin{itemize}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   139
  \item Lambda Prolog with full Higher-Order Unification\\ 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   140
  \textcolor{darkgray}{(no mgus, undecidable, modulo $\alpha\beta$)}\bigskip
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   141
  \item Higher-Order Pattern Unification\\ 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   142
  \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
   143
  \end{itemize}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   144
 
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   145
  \end{frame}}
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
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   148
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   149
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   150
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   151
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   152
  \begin{frame}<1-10>[t]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   153
  \frametitle{Underlying Ideas}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   154
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   155
  \begin{itemize}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   156
  \item<1-> Unification (\alert{only}) up to $\alpha$
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   157
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   158
  \item<2-> Swappings / Permutations
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   159
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   160
  \only<2-5>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   161
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   162
  \begin{tabular}{r@ {\hspace{1mm}}l@ {\hspace{12mm}}r@ {\hspace{1mm}}l}
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   163
  \\
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   164
  \only<2>{\smath{\textcolor{white}{[b\!:=\!a]}}}%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   165
  \only<3>{\smath{[b\!:=\!a]}}%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   166
  \only<4-5>{\smath{\alert{\swap{a}{b}\,\act}}} & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   167
  \onslide<2-5>{\smath{\lambda a.b}} &
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   168
  
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   169
  \only<2>{\smath{\textcolor{white}{[b\!:=\!a]}}}%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   170
  \only<3>{\smath{[b\!:=\!a]}}%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   171
  \only<4-5>{\smath{\alert{\swap{a}{b}\,\act}}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   172
  \onslide<2-5>{\smath{\lambda c.b}}\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   173
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   174
  \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
   175
  \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
   176
  \end{tabular}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   177
  \end{center}\bigskip
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   178
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   179
  \onslide<4-5>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   180
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   181
  \begin{tikzpicture}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   182
  \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
   183
  {\begin{minipage}{8cm}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   184
  \begin{tabular}{r@ {\hspace{3mm}}l}
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   185
  \smath{\swap{a}{b}\act t} $\;\dn$ & \alert{swap} {\bf all} occurrences of\\ 
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   186
                                  & \smath{b} and \smath{a} in \smath{t}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   187
  \end{tabular}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   188
  \end{minipage}};
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   189
  \end{tikzpicture}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   190
  \end{center}}\bigskip
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   191
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   192
  \onslide<5>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   193
  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
   194
  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
   195
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   196
  \item<6-> Variables (or holes)\bigskip
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   197
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   198
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   199
  \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
   200
  \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
   201
  \fill[blue] (0, 0) circle (5mm);
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   202
  \end{tikzpicture}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   203
  \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
   204
  \end{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   205
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   206
  \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
   207
  then you need $\beta_0$-reduction\medskip
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   208
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   209
  \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
   210
  \end{center}}}
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
  \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
   213
  \alert{\bf cannot} depend on}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   214
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   215
  \end{itemize}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   216
  
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   217
  \end{frame}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   218
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
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
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   221
text_raw {*
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   222
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   223
  \mode<presentation>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   224
  \begin{frame}<1-4>[c]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   225
  \frametitle{Terms}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   226
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   227
  \begin{tabular}{lll @ {\hspace{10mm}}lll}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   228
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   229
  \onslide<1->{\pgfuseshading{smallbluesphere}} & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   230
  \onslide<1->{\colorbox{cream}{\smath{\unit}}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   231
  \onslide<1->{Units} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   232
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   233
  \onslide<2->{\pgfuseshading{smallbluesphere}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   234
  \onslide<2->{\colorbox{cream}{\smath{a}}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   235
  \onslide<2->{Atoms} \\[5mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   236
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   237
  \onslide<1->{\pgfuseshading{smallbluesphere}} & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   238
  \onslide<1->{\colorbox{cream}{\smath{\pair{t}{t'}}}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   239
  \onslide<1->{Pairs} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   240
  
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   241
  \onslide<3->{\pgfuseshading{smallbluesphere}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   242
  \onslide<3->{\colorbox{cream}{\smath{\abst{a}{t}}}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   243
  \onslide<3->{Abstractions}\\[5mm]
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
  \onslide<1->{\pgfuseshading{smallbluesphere}} & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   246
  \onslide<1->{\colorbox{cream}{\smath{\app{F}{t}}}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   247
  \onslide<1->{Funct.} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   248
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   249
  \onslide<4->{\pgfuseshading{smallbluesphere}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   250
  \onslide<4->{\colorbox{cream}{\smath{\pi\susp X}}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   251
  \onslide<4->{Suspensions}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   252
  \end{tabular}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   253
 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   254
  \only<2>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   255
  \begin{textblock}{13}(1.5,12)
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   256
  \small Atoms are constants \textcolor{darkgray}{(infinitely many of them)}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   257
  \end{textblock}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   258
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   259
  \only<3>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   260
  \begin{textblock}{13}(1.5,12)
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   261
  \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
   262
  \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
   263
  \end{textblock}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   264
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   265
  \only<4>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   266
  \begin{textblock}{13}(1.5,12)
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   267
  \small \smath{X} is a variable standing for a term\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   268
  \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
   269
  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
   270
  \end{textblock}}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   271
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   272
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   273
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   274
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   275
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   276
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   277
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   278
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   279
  \begin{frame}<1-3>[c]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   280
  \frametitle{Permutations}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   281
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   282
  a permutation applied to a term
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   283
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   284
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   285
  \begin{tabular}{lrcl}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   286
  \pgfuseshading{smallbluesphere} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   287
  \smath{[]\act c} & \smath{\dn} & \smath{c} \\
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   288
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   289
  \pgfuseshading{smallbluesphere} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   290
  \smath{\swap{a}{b}\!::\!\pi\act c} & \smath{\dn} & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   291
  \smath{\begin{cases} 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   292
  a & \text{if}\;\pi\act c = b\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   293
  b & \text{if}\;\pi\act c = a\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   294
  \pi\act c & \text{otherwise}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   295
  \end{cases}}\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   296
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   297
  \onslide<2->{\pgfuseshading{smallbluesphere}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   298
  \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
   299
  \onslide<2->{\smath{\abst{\pi\act a}{\pi\act t}}}\\ 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   300
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   301
  \onslide<3->{\pgfuseshading{smallbluesphere}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   302
  \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
   303
  \onslide<3->{\smath{(\pi @ \pi')\act X}}\\
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   304
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   305
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   306
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   307
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   308
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   309
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   310
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   311
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   312
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   313
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   314
  \begin{frame}<1-3>[c]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   315
  \frametitle{Freshness Constraints}
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
  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
   318
  \bigskip\pause
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   319
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   320
  We therefore will identify
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   321
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   322
  \begin{center}
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   323
  \smath{\text{fn\ } a. X \;\approx\; \text{fn\ } b. \alert<3->{\swap{a}{b}}\act X}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   324
  \end{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   325
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   326
  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
   327
  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
   328
  \smath{X}.\bigskip\pause 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   329
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   330
  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
   331
  \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
   332
  \smath{X}.
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   333
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   334
  \end{frame}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   335
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
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
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   338
text_raw {*
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   339
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   340
  \mode<presentation>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   341
  \begin{frame}<1-4>[c]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   342
  \frametitle{Equivalence Judgements}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   343
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   344
  \alt<1>{Our equality is {\bf not} just}{but judgements}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   345
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   346
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   347
  \begin{tabular}{rl}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   348
  \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
   349
  \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
   350
  \onslide<4->{\alert{freshness}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   351
  \end{tabular}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   352
  \end{center}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   353
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   354
  \onslide<2->{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   355
  where
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   356
  \begin{center}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   357
  \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
   358
  \end{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   359
  is a finite set of \alert{freshness assumptions}.}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   360
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   361
  \onslide<3->{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   362
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   363
  \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
   364
  \end{center}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   365
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   366
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   367
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   368
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   369
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   370
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   371
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   372
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   373
  \begin{frame}<1>[c]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   374
  \frametitle{Rules for Equivalence}
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
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   377
  \begin{tabular}{c}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   378
  Excerpt\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   379
  (i.e.~only the interesting rules)
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   380
  \end{tabular}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   381
  \end{center}  
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   382
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   383
  \end{frame}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   384
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   385
*}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   386
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   387
text_raw {*
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   388
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   389
  \mode<presentation>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   390
  \begin{frame}<1>[c]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   391
  \frametitle{Rules for Equivalence}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   392
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   393
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   394
  \begin{tabular}{c}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   395
  \colorbox{cream}{\smath{\infer{\nabla \vdash a \approx a}{}}}\\[8mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   396
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   397
  \colorbox{cream}{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   398
  \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
   399
               {\nabla \vdash t \approx t'}}}\\[8mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   400
 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   401
  \colorbox{cream}{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   402
  \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
   403
  {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
   404
  \end{tabular}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   405
  \end{center}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   406
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   407
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   408
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   409
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   410
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   411
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   412
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   413
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   414
  \begin{frame}<1-3>[c]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   415
  \frametitle{Rules for Equivalence}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   416
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   417
  \begin{center}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   418
  \colorbox{cream}{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   419
  \smath{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   420
  \infer{\nabla \vdash \pi\act X \approx \pi'\act X}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   421
  {\begin{array}{c}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   422
  (a\fresh X)\in\nabla\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   423
  \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
   424
  \end{array}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   425
  }}}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   426
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   427
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   428
  \onslide<2->{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   429
  for example\\[4mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   430
  
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   431
  \alt<2>{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   432
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   433
  \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
   434
  \end{center}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   435
  {%
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   436
  \begin{center}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   437
  \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
   438
  \end{center}}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   439
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   440
  \onslide<3->{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   441
  \begin{tabular}{@ {}lllll@ {}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   442
  because & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   443
  \smath{\swap{a}{c}\swap{a}{b}}: & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   444
  \smath{a\mapsto b} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   445
  \smath{\swap{b}{c}}: &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   446
  \smath{a\mapsto a}\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   447
  & & \smath{b\mapsto c} & & \smath{b\mapsto c}\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   448
  & & \smath{c\mapsto a} & & \smath{c\mapsto b}\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   449
  \end{tabular}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   450
  disagree at \smath{a} and \smath{c}.}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   451
  }
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   452
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   453
  \end{frame}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   454
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   455
*}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   456
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   457
text_raw {*
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   458
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   459
  \mode<presentation>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   460
  \begin{frame}<1>[c]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   461
  \frametitle{Rules for Freshness}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   462
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   463
  \begin{center}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   464
  \begin{tabular}{c}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   465
  Excerpt\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   466
  (i.e.~only the interesting rules)
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   467
  \end{tabular}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   468
  \end{center}  
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   469
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   470
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   471
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   472
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   473
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   474
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   475
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   476
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   477
  \begin{frame}<1>[c]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   478
  \frametitle{Rules for Freshness}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   479
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   480
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   481
  \begin{tabular}{c}
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 b}{a\not= b}}}\\[5mm]
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   484
  
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   485
  \colorbox{cream}{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   486
  \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
   487
  \colorbox{cream}{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   488
  \smath{\infer{\nabla \vdash a\fresh\abst{b}{t}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   489
  {a\not= b\;\; & \nabla \vdash a\fresh t}}}\\[5mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   490
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   491
  \colorbox{cream}{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   492
  \smath{\infer{\nabla \vdash a\fresh \pi\act X}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   493
  {(\pi^{-1}\act a\fresh X)\in\nabla}}}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   494
  \end{tabular}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   495
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   496
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   497
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   498
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   499
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   500
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   501
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   502
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   503
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   504
  \begin{frame}<1-4>[t]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   505
  \frametitle{$\approx$ is an Equivalence}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   506
  \mbox{}\\[5mm]
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   507
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   508
  \begin{center}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   509
  \colorbox{cream}{\alert{Theorem:}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   510
  $\approx$ is an equivalence relation.}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   511
  \end{center}\bigskip
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   512
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   513
  \only<1>{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   514
  \begin{tabular}{ll}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   515
  (Reflexivity)  & $\smath{\nabla\vdash t\approx t}$\\[2mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   516
  (Symmetry)     & if $\smath{\nabla\vdash t_1\approx t_2}\;$ 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   517
                   then $\;\smath{\nabla\vdash t_2\approx t_1}$\\[2mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   518
  (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
   519
                   $\;\smath{\nabla\vdash t_2\approx t_3}$\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   520
                 & then $\smath{\nabla\vdash t_1\approx t_3}$\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   521
  \end{tabular}}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   522
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   523
  \only<2->{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   524
  \begin{itemize}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   525
  \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
   526
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   527
  \item<2-> \smath{\nabla \vdash a\fresh t} then 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   528
  \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
   529
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   530
  \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
   531
  \smath{\nabla \vdash (\pi^{-1})\act t\approx t'}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   532
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   533
  \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
   534
  \smath{\nabla \vdash (\pi^{-1})\act a\fresh t}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   535
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   536
  \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
   537
      \smath{\nabla \vdash a\fresh t'}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   538
  \end{itemize}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   539
  }
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   540
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   541
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   542
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
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
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   545
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   546
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   547
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   548
  \begin{frame}<1-4>
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   549
  \frametitle{Comparison $=_\alpha$}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   550
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   551
  Traditionally \smath{=_\alpha} is defined as
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   552
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   553
  \begin{center}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   554
  \colorbox{cream}{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   555
  \begin{minipage}{9cm}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   556
  \raggedright least congruence which identifies \smath{\abst{a}{t}} 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   557
  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
   558
  in \smath{t}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   559
  \end{minipage}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   560
  \end{center}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   561
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   562
  where \smath{[a:=b]t} replaces all free occurrences of\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   563
  \smath{a} by \smath{b} in \smath{t}.
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   564
  \bigskip 
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   565
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   566
  \only<2>{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   567
  \begin{textblock}{13}(1.2,10)
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   568
  For \alert{ground} terms:
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   569
  
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   570
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   571
  \colorbox{cream}{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   572
  \begin{minipage}{9.0cm}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   573
  \begin{tabular}{@ {}rl}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   574
  \underline{Theorem:}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   575
  & \smath{t=_\alpha t'\;\;}  if\hspace{-0.5mm}f~\smath{\;\;\emptyset \vdash t\approx t'}\\[2mm]
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   576
  & \smath{a\not\in F\hspace{-0.9mm}A(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
   577
  \end{tabular}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   578
  \end{minipage}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   579
  \end{center}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   580
  \end{textblock}}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   581
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   582
  \only<3>{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   583
  \begin{textblock}{13}(1.2,10)
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   584
  In general \smath{=_\alpha} and \smath{\approx} are distinct!
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   585
  \begin{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   586
  \colorbox{cream}{%
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   587
  \begin{minipage}{6.0cm}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   588
  \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
   589
  \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
   590
  \end{minipage}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   591
  \end{center}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   592
  \end{textblock}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   593
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   594
  \only<4>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   595
  \begin{textblock}{6}(1,2)
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   596
  \begin{tikzpicture}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   597
  \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
   598
  {\color{darkgray}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   599
  \begin{minipage}{10cm}\raggedright
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   600
  That is a crucial point: if we had\\[-2mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   601
  \[\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
   602
  then applying $\smath{[X:=a]}$, $\smath{[X:=b]}$, $\ldots$\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   603
  give two terms that are {\bf not} $\alpha$-equivalent.\\[3mm] 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   604
  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
   605
  rule out the problematic substitutions. Therefore
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   606
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   607
  \[\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
   608
  
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   609
  does hold.
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   610
  \end{minipage}};
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   611
  \end{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   612
  \end{textblock}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   613
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   614
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   615
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   616
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   617
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   618
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   619
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   620
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   621
  \begin{frame}<1-9>
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   622
  \frametitle{Substitution}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   623
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   624
  \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
   625
  \pgfuseshading{smallbluesphere} & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   626
  \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
   627
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   628
  \pgfuseshading{smallbluesphere} & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   629
  \smath{\sigma(\pi\act X)} & \smath{\dn} & 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   630
  \smath{\begin{cases}% 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   631
  \pi\;\act\;\sigma(X) & \!\!\text{if\ } \sigma(X)\not=X\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   632
  \pi\act X & \!\!\text{otherwise}% 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   633
  \end{cases}}\\[6mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   634
  \end{tabular}\bigskip\bigskip
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   635
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   636
  \pause
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   637
  \only<2-5>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   638
  \only<2->{for example}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   639
  \def\arraystretch{1.3}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   640
  \begin{tabular}{@ {\hspace{14mm}}l@ {\hspace{3mm}}l}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   641
  \onslide<2->{\textcolor{white}{$\Rightarrow$}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   642
  \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
   643
                      {\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
   644
  \onslide<3->{\smath{\Rightarrow}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   645
  \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
   646
                        {\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
   647
  \onslide<4->{\smath{\Rightarrow}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   648
  \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
   649
                      {\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
   650
  \onslide<5->{\smath{\Rightarrow}} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   651
  \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
   652
  \end{tabular}}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   653
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   654
  \only<6->
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   655
  {\begin{tabular}{l@ {\hspace{8mm}}l@ {}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   656
  \pgfuseshading{smallbluesphere} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   657
  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
   658
  \raisebox{-2.7mm}{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   659
  \alt<7>{\begin{tikzpicture}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   660
          \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
   661
          {\smath{\;\nabla'\vdash\sigma(\nabla)\;}};
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   662
          \end{tikzpicture}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   663
         {\begin{tikzpicture}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   664
          \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
   665
          {\smath{\;\nabla'\vdash\sigma(\nabla)\;}};
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   666
          \end{tikzpicture}}}\\
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   667
  & then \smath{\nabla'\vdash\sigma(t)\approx\sigma(t')}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   668
  \end{tabular}}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   669
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   670
  \only<9>
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   671
  {\begin{tabular}{l@ {\hspace{8mm}}l@ {}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   672
  \\[-4mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   673
  \pgfuseshading{smallbluesphere} &
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   674
  \smath{\sigma(\pi\act t)=\pi\act\sigma(t)}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   675
  \end{tabular}}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   676
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   677
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   678
  \only<7>{
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   679
  \begin{textblock}{6}(10,10.5)
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   680
  \begin{tikzpicture}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   681
  \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
   682
  {\color{darkgray}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   683
   \begin{minipage}{3.8cm}\raggedright
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   684
   this means\\[1mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   685
   \smath{\nabla'\vdash a\fresh\sigma(X)}\\[1mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   686
   holds for all\\[1mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   687
   \smath{(a\fresh X)\in\nabla}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   688
  \end{minipage}};
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   689
  \end{tikzpicture}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   690
  \end{textblock}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   691
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   692
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   693
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   694
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   695
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   696
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   697
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   698
  \mode<presentation>{
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   699
  \begin{frame}<1->
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   700
  \frametitle{Equational Problems}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   701
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   702
  An equational problem 
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   703
  \[
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   704
    \colorbox{cream}{\smath{t \eqprob t'}}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   705
  \]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   706
  is \alert{solved} by
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
  \begin{center}
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   709
  \begin{tabular}{ll}
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   710
  \pgfuseshading{smallbluesphere} & a substitution \smath{\sigma} (terms for variables)\\[3mm]
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   711
  \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
   712
  \end{tabular}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   713
  \end{center}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   714
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
   715
  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
   716
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   717
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   718
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   719
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   720
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   721
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   722
text_raw {*
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   723
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   724
  \mode<presentation>{
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   725
  \begin{frame}<1->
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   726
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   727
  Unifying equations may entail solving
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   728
  \alert{freshness problems}.
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   729
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   730
  \bigskip
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   731
  
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   732
  E.g.~assuming that \smath{a\not=a'}, then
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   733
  \[
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   734
  \smath{\abst{a}{t}\eqprob \abst{a'}{t'}} 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   735
  \]
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   736
  can only be solved if 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   737
  \[
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   738
  \smath{t\eqprob \swap{a}{a'}\act t'} \quad\text{\emph{and}}\quad
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   739
  \smath{a\freshprob t'}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   740
  \]
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   741
  can be solved.
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   742
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   743
  \end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   744
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   745
*}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   746
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   747
text_raw {*
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   748
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   749
  \mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   750
  \begin{frame}<1->
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   751
  \frametitle{Freshness Problems}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   752
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   753
  A freshness problem
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   754
  \[
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   755
  \colorbox{cream}{\smath{a \freshprob t}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   756
  \]
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   757
  is \alert{solved} by
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   758
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   759
  \begin{center}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   760
  \begin{tabular}{ll}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   761
  \pgfuseshading{smallbluesphere} & a substitution \smath{\sigma}\\[3mm]
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   762
  \pgfuseshading{smallbluesphere} & and a set of freshness assumptions \smath{\nabla}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   763
  \end{tabular}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   764
  \end{center}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   765
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   766
  so that \smath{\nabla\vdash a \fresh \sigma(t)}.
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   767
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   768
  \end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   769
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   770
*}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   771
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   772
text_raw {*
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   773
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   774
  \mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   775
  \begin{frame}<1-3>
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   776
  \frametitle{Existence of MGUs}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   777
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   778
  \underline{Theorem}: There is an algorithm which, given a nominal
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   779
  unification problem \smath{P}, decides whether\\ 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   780
  or not it has a solution \smath{(\sigma,\nabla)}, and returns a \\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   781
  \alert{most general} one if it does.\bigskip\bigskip
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   782
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   783
  \only<3>{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   784
  Proof: one can reduce all the equations to `solved form'
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   785
  first (creating a substitution), and then solve the freshness
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   786
  problems (easy).}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   787
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   788
  \only<2>{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   789
  \begin{textblock}{6}(2.5,9.5)
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   790
  \begin{tikzpicture}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   791
  \draw (0,0) node[inner sep=3mm,fill=cream, ultra thick, draw=red, rounded corners=2mm] 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   792
  {\color{darkgray}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   793
  \begin{minipage}{8cm}\raggedright
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   794
  \alert{most general:}\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   795
  straightforward definition\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   796
  ``if\hspace{-0.5mm}f there exists a \smath{\tau} such that \ldots''
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   797
  \end{minipage}};
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   798
  \end{tikzpicture}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   799
  \end{textblock}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   800
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   801
  \end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   802
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   803
*}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   804
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   805
text_raw {*
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   806
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   807
  \mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   808
  \begin{frame}<1>
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   809
  \frametitle{Remember the Quiz?}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   810
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   811
  \textcolor{gray}{Assuming that $a$ and $b$ are distinct variables,\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   812
  is it possible to find $\lambda$-terms $M_1$ to $M_7$ 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   813
  that make the following pairs $\alpha$-equivalent?}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   814
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   815
  \begin{tabular}{@ {\hspace{14mm}}p{12cm}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   816
  \begin{itemize}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   817
  \item \smath{\lambda a.\lambda b. (M_1\,b)\;} and 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   818
        \smath{\lambda b.\lambda a. (a\,M_1)\;}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   819
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   820
  \item \textcolor{gray}{$\lambda a.\lambda b. (M_2\,b)\;$ and 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   821
        $\lambda b.\lambda a. (a\,M_3)\;$}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   822
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   823
  \item \textcolor{gray}{$\lambda a.\lambda b. (b\,M_4)\;$ and 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   824
        $\lambda b.\lambda a. (a\,M_5)\;$}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   825
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   826
  \item \smath{\lambda a.\lambda b. (b\,M_6)\;} and 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   827
        \smath{\lambda a.\lambda a. (a\,M_7)\;}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   828
  \end{itemize}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   829
  \end{tabular}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   830
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   831
  \textcolor{gray}{If there is one solution for a pair, can you 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   832
  describe all its solutions?}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   833
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   834
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   835
  \end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   836
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   837
*}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   838
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   839
text_raw {*
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   840
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   841
  \mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   842
  \begin{frame}<1->
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   843
  \frametitle{Answers to the Quiz}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   844
  \small
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   845
  \def\arraystretch{1.6}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   846
  \begin{tabular}{c@ {\hspace{2mm}}l}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   847
  & \only<1>{\smath{\lambda a.\lambda b. (M_1\,b)\;} and \smath{\;\lambda b.\lambda a. (a\,M_1)}}%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   848
    \only<2->{\smath{\abst{a}{\abst{b}{\pair{M_1}{b}}} \;\eqprob\; \abst{b}{\abst{a}{\pair{a}{M_1}}}}}\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   849
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   850
  \onslide<3->{\smath{\redu{\id}}} &
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   851
  \only<3>{\smath{\abst{b}{\pair{M_1}{b}} \eqprob
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   852
       \alert{\swap{a}{b}} \act \abst{a}{\pair{a}{M_1}}\;,\;a\freshprob \abst{a}{\pair{a}{M_1}}}}%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   853
  \only<4->{\smath{\abst{b}{\pair{M_1}{b}} \eqprob \abst{b}{\pair{b}{\swap{a}{b}\act M_1}}\;,\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   854
       a\freshprob \abst{a}{\pair{a}{M_1}}}}\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   855
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   856
  \onslide<5->{\smath{\redu{\id}}} &
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   857
  \only<5->{\smath{\pair{M_1}{b} \eqprob \pair{b}{\swap{a}{b}\act M_1}\;,\;%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   858
       a\freshprob \abst{a}{\pair{a}{M_1}}}}\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   859
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   860
  \onslide<6->{\smath{\redu{\id}}} &
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   861
  \only<6->{\smath{M_1 \eqprob b \;,\; b \eqprob \swap{a}{b}\act M_1\;,\;%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   862
       a\freshprob \abst{a}{\pair{a}{M_1}}}}\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   863
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   864
  \onslide<7->{\smath{\redu{[M_1:=b]}}} &
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   865
  \only<7>{\smath{b \eqprob \swap{a}{b}\act \alert{b}\;,\;%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   866
       a\freshprob \abst{a}{\pair{a}{\alert{b}}}}}%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   867
  \only<8->{\smath{b \eqprob a\;,\; a\freshprob \abst{a}{\pair{a}{b}}}}\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   868
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   869
  \onslide<9->{\smath{\redu{}}} &
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   870
  \only<9->{\smath{F\hspace{-0.5mm}AIL}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   871
  \end{tabular}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   872
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   873
  \only<10>{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   874
  \begin{textblock}{6}(2,11)
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   875
  \begin{tikzpicture}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   876
  \draw (0,0) node[inner sep=3mm,fill=cream, ultra thick, draw=red, rounded corners=2mm] 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   877
  {\color{darkgray}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   878
  \begin{minipage}{9cm}\raggedright
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   879
  \smath{\lambda a.\lambda b. (M_1\,b)} \smath{=_\alpha} 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   880
  \smath{\lambda b.\lambda a. (a\,M_1)} has no solution
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   881
  \end{minipage}};
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   882
  \end{tikzpicture}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   883
  \end{textblock}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   884
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   885
  \end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   886
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   887
*}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   888
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   889
text_raw {*
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   890
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   891
  \mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   892
  \begin{frame}<1->
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   893
  \frametitle{Answers to the Quiz}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   894
  \small
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   895
  \def\arraystretch{1.6}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   896
  \begin{tabular}{c@ {\hspace{2mm}}l}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   897
  & \only<1>{\smath{\lambda a.\lambda b. (b\,M_6)\;} and \smath{\;\lambda a.\lambda a. (a\,M_7)}}%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   898
    \only<2->{\smath{\abst{a}{\abst{b}{\pair{b}{M_6}}} \;\eqprob\; \abst{a}{\abst{a}{\pair{a}{M_7}}}}}\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   899
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   900
  \onslide<3->{\smath{\redu{\id}}} &
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   901
  \only<3->{\smath{\abst{b}{\pair{b}{M_6}} \eqprob \abst{a}{\pair{a}{M_7}}}}\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   902
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   903
  \onslide<4->{\smath{\redu{\id}}} &
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   904
  \only<4->{\smath{\pair{b}{M_6} \eqprob \pair{b}{\swap{b}{a}\act M_7}\;,\;b\freshprob\pair{a}{M_7}}}\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   905
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   906
  \onslide<5->{\smath{\redu{\id}}} &
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   907
  \only<5->{\smath{b\eqprob b\;,\; M_6 \eqprob \swap{b}{a}\act M_7\;,\;%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   908
       b\freshprob \pair{a}{M_7}}}\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   909
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   910
  \onslide<6->{\smath{\redu{\id}}} &
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   911
  \only<6->{\smath{M_6 \eqprob \swap{b}{a}\act M_7\;,\;%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   912
       b\freshprob \pair{a}{M_7}}}\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   913
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   914
  \onslide<7->{\makebox[0mm]{\smath{\redu{[M_6:=\swap{b}{a}\act M_7]}}}} &
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   915
  \only<7->{\smath{\qquad b\freshprob \pair{a}{M_7}}}\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   916
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   917
  \onslide<8->{\smath{\redu{\varnothing}}} &
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   918
  \only<8->{\smath{b\freshprob a\;,\;b\freshprob M_7}}\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   919
  
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   920
  \onslide<9->{\smath{\redu{\varnothing}}} &
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   921
  \only<9->{\smath{b\freshprob M_7}}\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   922
 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   923
  \onslide<10->{\makebox[0mm]{\smath{\redu{\{b\fresh M_7\}}}}} &
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   924
  \only<10->{\smath{\;\;\varnothing}}\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   925
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   926
  \end{tabular}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   927
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   928
  \only<10>{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   929
  \begin{textblock}{6}(6,9)
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   930
  \begin{tikzpicture}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   931
  \draw (0,0) node[inner sep=3mm,fill=cream, ultra thick, draw=red, rounded corners=2mm] 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   932
  {\color{darkgray}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   933
  \begin{minipage}{7cm}\raggedright
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   934
  \smath{\lambda a.\lambda b. (b\,M_6)\;} \smath{=_\alpha} 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   935
  \smath{\;\lambda a.\lambda a. (a\,M_7)}\\[2mm]
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   936
  we can take \smath{M_7} to be any $\lambda$-term that does not
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   937
  contain free occurrences of \smath{b}, so long as we take \smath{M_6} to
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   938
  be the result of swapping all occurrences of \smath{b} and \smath{a}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   939
  throughout \smath{M_7}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   940
  \end{minipage}};
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   941
  \end{tikzpicture}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   942
  \end{textblock}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   943
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   944
  \end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   945
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   946
*}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   947
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   948
text_raw {*
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   949
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   950
  \mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   951
  \begin{frame}<1->
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   952
  \frametitle{Properties}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   953
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   954
  \begin{itemize}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   955
  \item An interesting feature of nominal unification is that it
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   956
  does not need to create new atoms.\bigskip
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   957
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   958
  \begin{center}\small
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   959
  \colorbox{cream}{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   960
  \smath{\{a.t \eqprob b.t'\}\cup P \redu{\id} \{t \eqprob \swap{a}{b}\act t', a \freshprob t'\} \cup P}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   961
  \end{center}\bigskip\bigskip
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   962
  \pause
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   963
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   964
  \item The alternative rule
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   965
2358
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
   966
  \begin{center}\small
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
   967
  \colorbox{cream}{
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
   968
  \begin{tabular}{@ {}l@ {}}
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
   969
  \smath{\{a.t \eqprob b.t'\}\cup P \redu{\id}}\\ 
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
   970
  \mbox{}\hspace{2cm}\smath{\{\swap{a}{c}\act t \eqprob 
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
   971
  \swap{b}{c}\act t', c \freshprob t, c \freshprob t'\} \cup P}
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
   972
  \end{tabular}}
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
   973
  \end{center}
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   974
 
2358
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
   975
  leads to a more complicated notion of mgu.\medskip\pause
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
   976
  
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
   977
  \footnotesize
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
   978
  \smath{\{a.X \eqprob b.Y\} \redu{} (\{a\fresh Y, c\fresh Y\}, [X:=\swap{a}{c}\swap{b}{c}\act Y])}
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   979
  \end{itemize}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   980
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   981
  \end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   982
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   983
*}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   984
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   985
text_raw {*
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   986
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   987
  \mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   988
  \begin{frame}<1-3>
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   989
  \frametitle{Is it Useful?}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   990
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   991
  Yes. $\alpha$Prolog by James Cheney (main developer)\bigskip\bigskip
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   992
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   993
  \color{darkgray}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   994
  \begin{tabular}{@ {}l}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   995
  type (Gamma, var(X), T) :- member (X,T) Gamma.\smallskip\medskip\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   996
  
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   997
  type (Gamma, app(M, N), T') :-\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   998
  \hspace{3cm}type (Gamma, M, arrow(T, T')),\\ 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
   999
  \hspace{3cm}type (Gamma, N, T).\smallskip\medskip\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1000
  
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1001
  type (Gamma, lam(\alert{x.M}), arrow(T, T')) / \alert{x \# Gamma} :-\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1002
  \hspace{3cm}type ((x, T)::Gamma, M, T').\smallskip\medskip\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1003
  
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1004
  member X X::Tail.\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1005
  member X Y::Tail :- member X Tail.\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1006
  \end{tabular}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1007
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1008
  \only<2->{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1009
  \begin{textblock}{6}(1.5,0.5)
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1010
  \begin{tikzpicture}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1011
  \draw (0,0) node[inner sep=3mm,fill=cream, ultra thick, draw=red, rounded corners=2mm] 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1012
  {\color{darkgray}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1013
  \begin{minipage}{9cm}\raggedright
2358
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1014
  {\bf One problem:} If we ask whether
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1015
  
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1016
  \begin{center}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1017
  ?- type ([(x, T')], lam(x.Var(x)), T) 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1018
  \end{center}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1019
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1020
  is typable, we expect an answer for T.\bigskip
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1021
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1022
  \onslide<3>{Solution: Before back-chaining freshen all variables and atoms
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1023
  in a program (clause).}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1024
  \end{minipage}};
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1025
  \end{tikzpicture}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1026
  \end{textblock}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1027
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1028
  \end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1029
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1030
*}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1031
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1032
text_raw {*
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1033
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1034
  \mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1035
  \begin{frame}<1->
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1036
  \frametitle{Equivariant Unification}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1037
2358
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1038
  James Cheney proposed
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1039
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1040
  \begin{center}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1041
  \colorbox{cream}{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1042
  \smath{t \eqprob t'  \redu{\nabla, \sigma, \pi}   
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1043
    \nabla \vdash \sigma(t) \approx \pi \act \sigma(t')}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1044
  \end{center}\bigskip\bigskip
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1045
  \pause
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1046
2358
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1047
  But he also showed this problem is undecidable\\ in general. :(
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1048
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1049
  \end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1050
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1051
*}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1052
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1053
text_raw {*
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1054
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1055
  \mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1056
  \begin{frame}<1->
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1057
  \frametitle{Taking Atoms as Variables}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1058
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1059
  Instead of \smath{a.X}, have \smath{A.X}.\bigskip
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1060
  \pause
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1061
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1062
  Unfortunately this breaks the mgu-property:
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1063
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1064
  \begin{center}
2358
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1065
  \smath{a.Z \eqprob X.Y.v(a)}
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1066
  \end{center}
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1067
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1068
  can be solved by
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1069
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1070
  \begin{center}
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1071
  \smath{[X:=a, Z:=Y.v(a)]} and
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1072
  \smath{[Y:=a, Z:=Y.v(Y)]}
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1073
  \end{center}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1074
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1075
  \end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1076
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1077
*}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1078
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1079
text_raw {*
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1080
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1081
  \mode<presentation>{
2358
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1082
  \begin{frame}<1>[c]
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1083
  \frametitle{HOPU vs. NOMU}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1084
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1085
  \begin{itemize}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1086
  \item James Cheney showed\bigskip
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1087
  \begin{center}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1088
  \colorbox{cream}{\smath{HOPU \Rightarrow NOMU}} 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1089
  \end{center}\bigskip
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1090
2358
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1091
  \item Jordi Levy and Mateu Villaret established\bigskip
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1092
  \begin{center}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1093
  \colorbox{cream}{\smath{HOPU \Leftarrow NOMU}} 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1094
  \end{center}\bigskip
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1095
  \end{itemize}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1096
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1097
  The translations `explode' the problems quadratically.
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1098
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1099
  \end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1100
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1101
*}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1102
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1103
text_raw {*
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1104
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1105
  \mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1106
  \begin{frame}<1>
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1107
  \small\tt
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1108
  
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1109
  \begin{minipage}{13cm}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1110
  \begin{tabular}{@ {\hspace{-2mm}}p{11.5cm}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1111
  \\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1112
  From: Zhenyu Qian <zhqian@microsoft.com>\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1113
  To: Christian Urban <urbanc@in.tum.de>\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1114
  Subject: RE: Linear Higher-Order Pattern Unification\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1115
  Date: Mon, 14 Apr 2008 09:56:47 +0800\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1116
  \\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1117
  Hi Christian,\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1118
  \\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1119
  Thanks for your interests and asking. I know that that paper is complex. As
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1120
  I told Tobias when we met last time, I have raised the question to myself 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1121
  many times whether the proof could have some flaws, and so making it through 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1122
  a theorem prover would definitely bring piece to my mind (no matter what 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1123
  the result would be). The only problem for me is the time.\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1124
  \ldots\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1125
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1126
  Thanks/Zhenyu
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1127
  \end{tabular}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1128
  \end{minipage}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1129
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1130
  \end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1131
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1132
*}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1133
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1134
text_raw {*
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1135
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1136
  \mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1137
  \begin{frame}<1>
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1138
  \frametitle{Complexity}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1139
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1140
  \begin{itemize}
2358
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1141
  \item Christiopher Calves and Maribel Fernandez showed first that
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1142
  it is polynomial and then also quadratic
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1143
2358
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1144
  \item Jordi Levy and Mateu Villaret showed that it is quadratic
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1145
  by a translation into a subset of NOMU and using ideas from
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1146
  Martelli/Montenari.
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1147
  
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1148
  \end{itemize}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1149
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1150
  \end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1151
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1152
*}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1153
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1154
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1155
text_raw {*
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1156
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1157
  \mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1158
  \begin{frame}<1->[c]
2356
840a857354f2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2355
diff changeset
  1159
  \frametitle{Conclusion}
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1160
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1161
  \begin{itemize}
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1162
  \item Nominal Unification is a completely first-order 
2358
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1163
  language, but implements unification modulo $\alpha$.
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1164
  \textcolor{gray}{(verification\ldots Ramana Kumar and Michael Norrish)}
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1165
  \medskip\pause
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1166
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1167
  \item NOMU has been applied in term-rewriting and
2358
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1168
  logic programming. \textcolor{gray}{(Maribel Fernandez et 
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1169
  al has a KB-completion procedure.)} 
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1170
  I hope it will also be used in typing
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1171
  systems.\medskip\pause
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1172
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1173
  \item NOMU and HOPU are `equivalent' (it took a long time
2358
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1174
  and considerable research to find this out).\medskip\pause
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1175
  
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1176
  \item The question about complexity is still an ongoing 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1177
  story.\medskip 
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1178
  \end{itemize}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1179
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1180
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1181
  \end{frame}}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1182
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1183
*}
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1184
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1185
text_raw {*
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1186
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1187
  \mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1188
  \begin{frame}<1>[c]
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1189
  \frametitle{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1190
  \begin{tabular}{c}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1191
  \mbox{}\\[23mm]
2358
8f142ae324e2 more on slides
Christian Urban <urbanc@in.tum.de>
parents: 2357
diff changeset
  1192
  \alert{\LARGE Thank you very much!}\\
2357
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1193
  \alert{\Large Questions?}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1194
  \end{tabular}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1195
  
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1196
  \end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1197
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1198
*}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1199
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1200
text_raw {*
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1201
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1202
  \mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1203
  \begin{frame}<1-3>
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1204
  \frametitle{Most General Unifiers}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1205
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1206
  \underline{Definition}: For a unification problem
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1207
  \smath{P}, a solution \smath{(\sigma_1,\nabla_1)} is
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1208
  \alert{more general} than another solution
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1209
  \smath{(\sigma_2,\nabla_2)}, iff~there exists a substitution
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1210
  \smath{\tau} with
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1211
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1212
  \begin{center}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1213
  \begin{tabular}{ll}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1214
  \pgfuseshading{smallbluesphere} & 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1215
     \alt<2>{\smath{\alert{\nabla_2\vdash\tau(\nabla_1)}}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1216
            {\smath{\nabla_2\vdash\tau(\nabla_1)}}\\
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1217
  \pgfuseshading{smallbluesphere} & 
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1218
     \alt<3>{\smath{\alert{\nabla_2\vdash\sigma_2\approx \tau\circ\sigma_1}}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1219
            {\smath{\nabla_2\vdash\sigma_2\approx \tau\circ\sigma_1}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1220
  \end{tabular}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1221
  \end{center}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1222
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1223
  \only<2>{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1224
  \begin{textblock}{13}(1.5,10.5)
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1225
  \smath{\nabla_2\vdash a\fresh \sigma(X)} holds for all
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1226
  \smath{(a\fresh X)\in\nabla_1}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1227
  \end{textblock}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1228
  
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1229
  \only<3>{
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1230
  \begin{textblock}{11}(1.5,10.5)
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1231
  \smath{\nabla_2\vdash \sigma_2(X)\approx
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1232
  \sigma(\sigma_1(X))}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1233
  holds for all
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1234
  \smath{X\in\text{dom}(\sigma_2)\cup\text{dom}(\sigma\circ\sigma_1)}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1235
  \end{textblock}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1236
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1237
  \end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1238
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1239
*}
Christian Urban <urbanc@in.tum.de>
parents: 2356
diff changeset
  1240
2351
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1241
(*<*)
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1242
end
842969a598f2 added material for slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1243
(*>*)