slides/slides06.tex
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Tue, 12 Nov 2013 08:03:16 +0000
changeset 128 4e108563716c
parent 126 b091e0abb894
child 129 10526c967679
permissions -rw-r--r--
added
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
\documentclass[dvipsnames,14pt,t]{beamer}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
\usepackage{proof}
126
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
     3
\usepackage{beamerthemeplaincu}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
     4
%\usepackage[T1]{fontenc}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
     5
%\usepackage[latin1]{inputenc}
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
\usepackage{mathpartir}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
\usepackage{isabelle}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
\usepackage{isabellesym}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
\usepackage[absolute,overlay]{textpos}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
\usepackage{ifthen}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
\usepackage{tikz}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
\usepackage{courier}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
\usepackage{listings}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
\usetikzlibrary{arrows}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
\usetikzlibrary{positioning}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
\usetikzlibrary{calc}
126
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
    17
\usetikzlibrary{shapes}
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
\usepackage{graphicx} 
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
\isabellestyle{rm}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
\renewcommand{\isastyle}{\rm}%
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
\renewcommand{\isastyleminor}{\rm}%
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
\renewcommand{\isastylescript}{\footnotesize\rm\slshape}%
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
\renewcommand{\isatagproof}{}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
\renewcommand{\endisatagproof}{}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
\renewcommand{\isamarkupcmt}[1]{#1}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    27
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    28
% Isabelle characters
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    29
\renewcommand{\isacharunderscore}{\_}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    30
\renewcommand{\isacharbar}{\isamath{\mid}}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    31
\renewcommand{\isasymiota}{}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    32
\renewcommand{\isacharbraceleft}{\{}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    33
\renewcommand{\isacharbraceright}{\}}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    34
\renewcommand{\isacharless}{$\langle$}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    35
\renewcommand{\isachargreater}{$\rangle$}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    36
\renewcommand{\isasymsharp}{\isamath{\#}}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    37
\renewcommand{\isasymdots}{\isamath{...}}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    38
\renewcommand{\isasymbullet}{\act}
126
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
    39
\newcommand{\isaliteral}[1]{}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
    40
\newcommand{\isactrlisub}[1]{\emph{\isascriptstyle${}\sb{#1}$}}
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    41
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    42
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    43
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    44
\definecolor{javared}{rgb}{0.6,0,0} % for strings
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    45
\definecolor{javagreen}{rgb}{0.25,0.5,0.35} % comments
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    46
\definecolor{javapurple}{rgb}{0.5,0,0.35} % keywords
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    47
\definecolor{javadocblue}{rgb}{0.25,0.35,0.75} % javadoc
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    48
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    49
\lstset{language=Java,
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    50
	basicstyle=\ttfamily,
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    51
	keywordstyle=\color{javapurple}\bfseries,
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    52
	stringstyle=\color{javagreen},
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    53
	commentstyle=\color{javagreen},
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    54
	morecomment=[s][\color{javadocblue}]{/**}{*/},
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    55
	numbers=left,
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    56
	numberstyle=\tiny\color{black},
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    57
	stepnumber=1,
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    58
	numbersep=10pt,
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    59
	tabsize=2,
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    60
	showspaces=false,
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    61
	showstringspaces=false}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    62
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    63
\lstdefinelanguage{scala}{
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    64
  morekeywords={abstract,case,catch,class,def,%
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    65
    do,else,extends,false,final,finally,%
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    66
    for,if,implicit,import,match,mixin,%
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    67
    new,null,object,override,package,%
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    68
    private,protected,requires,return,sealed,%
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    69
    super,this,throw,trait,true,try,%
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    70
    type,val,var,while,with,yield},
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    71
  otherkeywords={=>,<-,<\%,<:,>:,\#,@},
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    72
  sensitive=true,
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    73
  morecomment=[l]{//},
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    74
  morecomment=[n]{/*}{*/},
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    75
  morestring=[b]",
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    76
  morestring=[b]',
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    77
  morestring=[b]"""
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    78
}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    79
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    80
\lstset{language=Scala,
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    81
	basicstyle=\ttfamily,
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    82
	keywordstyle=\color{javapurple}\bfseries,
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    83
	stringstyle=\color{javagreen},
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    84
	commentstyle=\color{javagreen},
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    85
	morecomment=[s][\color{javadocblue}]{/**}{*/},
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    86
	numbers=left,
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    87
	numberstyle=\tiny\color{black},
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    88
	stepnumber=1,
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    89
	numbersep=10pt,
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    90
	tabsize=2,
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    91
	showspaces=false,
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    92
	showstringspaces=false}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    93
126
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
    94
%sudoku
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
    95
\newcounter{row}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
    96
\newcounter{col}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
    97
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
    98
\newcommand\setrow[9]{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
    99
        \setcounter{col}{1}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   100
        \foreach \n in {#1, #2, #3, #4, #5, #6, #7, #8, #9} {
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   101
            \edef\x{\value{col} - 0.5}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   102
            \edef\y{9.5 - \value{row}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   103
            \node[anchor=center] at (\x, \y) {\n};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   104
            \stepcounter{col}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   105
        }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   106
        \stepcounter{row}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   107
}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   108
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   109
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   110
% beamer stuff 
126
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   111
\renewcommand{\slidecaption}{APP 06, King's College London, 12 November 2013}
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   112
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   113
\newcommand{\bl}[1]{\textcolor{blue}{#1}}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   114
\begin{document}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   115
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   116
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   117
\mode<presentation>{
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   118
\begin{frame}<1>[t]
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   119
\frametitle{%
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   120
  \begin{tabular}{@ {}c@ {}}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   121
  \\
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   122
  \LARGE Access Control and \\[-3mm] 
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   123
  \LARGE Privacy Policies (6)\\[-6mm] 
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   124
  \end{tabular}}\bigskip\bigskip\bigskip
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   125
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   126
  %\begin{center}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   127
  %\includegraphics[scale=1.3]{pics/barrier.jpg}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   128
  %\end{center}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   129
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   130
\normalsize
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   131
  \begin{center}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   132
  \begin{tabular}{ll}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   133
  Email:  & christian.urban at kcl.ac.uk\\
126
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   134
  Office: & S1.27 (1st floor Strand Building)\\
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   135
  Slides: & KEATS (also homework is there)\\
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   136
  \end{tabular}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   137
  \end{center}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   138
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   139
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   140
\end{frame}}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   141
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   142
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   143
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   144
  \mode<presentation>{
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   145
  \begin{frame}[t]
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   146
  \frametitle{\Large\begin{tabular}{@ {}c@ {}}Access Control Logic\end{tabular}}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   147
  
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   148
  Formulas
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   149
  
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   150
  \begin{itemize}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   151
  \item[]
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   152
  
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   153
  \begin{center}\color{blue}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   154
  \begin{tabular}[t]{rcl@ {\hspace{10mm}}l}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   155
  \isa{F} & \isa{{\isaliteral{3A}{\isacharcolon}}{\isaliteral{3A}{\isacharcolon}}{\isaliteral{3D}{\isacharequal}}} & \isa{true} \\
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   156
            & \isa{{\isaliteral{7C}{\isacharbar}}} & \isa{false} \\
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   157
            & \isa{{\isaliteral{7C}{\isacharbar}}}   & \isa{F\ {\isaliteral{5C3C616E643E}{\isasymand}}\ F} \\
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   158
            & \isa{{\isaliteral{7C}{\isacharbar}}}   & \isa{F\ {\isaliteral{5C3C6F723E}{\isasymor}}\ F} \\
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   159
            & \isa{{\isaliteral{7C}{\isacharbar}}}   & \isa{F\ {\isaliteral{5C3C52696768746172726F773E}{\isasymRightarrow}}\ F}\\
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   160
            & \isa{{\isaliteral{7C}{\isacharbar}}}   & \isa{p\ {\isaliteral{28}{\isacharparenleft}}t\isaliteral{5C3C5E697375623E}{}\isactrlisub {\isadigit{1}}{\isaliteral{2C}{\isacharcomma}}{\isaliteral{5C3C646F74733E}{\isasymdots}}{\isaliteral{2C}{\isacharcomma}}t\isaliteral{5C3C5E697375623E}{}\isactrlisub n{\isaliteral{29}{\isacharparenright}}} \\  
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   161
            & \isa{{\isaliteral{7C}{\isacharbar}}}   & \alert{\isa{P\ says\ F}} & \textcolor{black}{``saying predicate''}\\ 
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   162
  \end{tabular}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   163
  \end{center}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   164
  
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   165
  \end{itemize}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   166
  
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   167
Judgements
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   168
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   169
\begin{itemize}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   170
\item[] \mbox{\hspace{9mm}}\bl{$\Gamma \vdash \text{F}$}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   171
\end{itemize}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   172
  
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   173
  \end{frame}}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   174
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   175
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   176
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   177
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   178
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   179
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   180
\frametitle{Judgements}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   181
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   182
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   183
\begin{tikzpicture}[scale=1]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   184
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   185
  \draw (0.0,0.0) node {\LARGE \bl{$\Gamma \vdash F$}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   186
  \onslide<2->{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   187
  \draw (-1,-0.3) node (X) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   188
  \draw (-2.0,-2.0) node (Y) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   189
  \draw (0.7,-3) node {\begin{tabular}{l}Gamma\\stands for a collection of formulas\\(``assumptions'')\end{tabular}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   190
  \draw[red, ->, line width = 2mm] (Y) -- (X);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   191
 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   192
  \draw (1.2,-0.1) node (X1) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   193
  \draw (2.8,-0.1) node (Y1) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   194
  \draw (4.5,-0.1) node {\begin{tabular}{l}a single formula\end{tabular}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   195
  \draw[red, ->, line width = 2mm] (Y1) -- (X1);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   196
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   197
  \draw (-0.1,0.1) node (X2) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   198
  \draw (0.5,1.5) node (Y2) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   199
  \draw (1,1.8) node {\begin{tabular}{l}entails sign\end{tabular}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   200
  \draw[red, ->, line width = 2mm] (Y2) -- (X2);}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   201
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   202
  \end{tikzpicture}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   203
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   204
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   205
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   206
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   207
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   208
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   209
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   210
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   211
\frametitle{Inference Rules}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   212
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   213
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   214
\begin{tikzpicture}[scale=1]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   215
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   216
  \draw (0.0,0.0) node 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   217
  {\Large\bl{\infer{\Gamma \vdash F_1 \wedge F_2}{\Gamma \vdash F_1 & \Gamma \vdash F_2}}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   218
 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   219
  \draw (-0.1,-0.7) node (X) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   220
  \draw (-0.1,-1.9) node (Y) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   221
  \draw (-0.2,-2) node {\begin{tabular}{l}conclusion\end{tabular}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   222
  \draw[red, ->, line width = 2mm] (Y) -- (X);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   223
 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   224
  \draw (-1,0.6) node (X2) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   225
  \draw (0.0,1.6) node (Y2) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   226
  \draw (0,1.8) node {\begin{tabular}{l}premisses\end{tabular}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   227
  \draw[red, ->, line width = 2mm] (Y2) -- (X2);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   228
   \draw (1,0.6) node (X3) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   229
  \draw (0.0,1.6) node (Y3) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   230
  \draw[red, ->, line width = 2mm] (Y3) -- (X3);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   231
  \end{tikzpicture}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   232
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   233
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   234
\only<2>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   235
\begin{textblock}{11}(1,13)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   236
\small
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   237
\bl{$P \,\text{says}\, F \vdash Q\,\text{says}\, F\wedge P \,\text{says}\, G $}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   238
\end{textblock}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   239
\only<3>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   240
\begin{textblock}{11}(1,13)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   241
\small
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   242
\bl{$\underbrace{P \,\text{says}\, F}_{\Gamma} \vdash \underbrace{Q\,\text{says}\, F}_{F_1} \,\wedge
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   243
        \underbrace{P \,\text{says}\, G}_{F_2} $}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   244
\end{textblock}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   245
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   246
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   247
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   248
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   249
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   250
  \mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   251
  \begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   252
  \frametitle{Sending Messages}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   253
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   254
  \begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   255
  \item Alice sends a message \bl{$m$}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   256
  \begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   257
  \bl{Alice says $m$}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   258
  \end{center}\medskip\pause
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   259
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   260
  \item Alice sends an encrypted message \bl{$m$}\\ (with key \bl{$K$})
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   261
  \begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   262
  \bl{Alice says $\{m\}_K$}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   263
  \end{center}\medskip\pause
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   264
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   265
  \item Decryption of Alice's message\smallskip
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   266
  \begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   267
  \bl{\mbox{\infer{\Gamma \vdash \text{Alice}\;\text{says}\;m}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   268
              {\Gamma \vdash \text{Alice}\;\text{says}\;\{m\}_K & \Gamma \vdash \text{Alice}\,\text{says}\,K}}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   269
  \end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   270
  \end{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   271
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   272
  \end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   273
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   274
62
Christian Urban <urbanc@in.tum.de>
parents: 61
diff changeset
   275
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   276
\mode<presentation>{
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   277
\begin{frame}[c]
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   278
\frametitle{Inference Rules}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   279
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   280
\begin{center}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   281
\bl{\infer{\Gamma, F\vdash F}{}}\bigskip\\
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   282
62
Christian Urban <urbanc@in.tum.de>
parents: 61
diff changeset
   283
\bl{\infer{\Gamma \vdash F_2}{\Gamma \vdash F_1 \Rightarrow F_2 \quad \Gamma \vdash F_1}}
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   284
\qquad
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   285
\bl{\infer{\Gamma \vdash F_1 \Rightarrow F_2}{F_1, \Gamma \vdash F_2}}\bigskip\\
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   286
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   287
\bl{\infer{\Gamma \vdash P\,\text{says}\, F}{\Gamma \vdash F}}\medskip\\
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   288
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   289
\bl{\infer{\Gamma \vdash P \,\text{says}\, F_2}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   290
              {\Gamma \vdash P \,\text{says}\, (F_1\Rightarrow F_2) \quad 
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   291
               \Gamma \vdash P \,\text{says}\, F_1}}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   292
\end{center}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   293
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   294
\end{frame}}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   295
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   296
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   297
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   298
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   299
\mode<presentation>{
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   300
\begin{frame}[c]
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   301
\frametitle{Proofs}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   302
60
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   303
\begin{center}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   304
\bl{
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   305
\infer{\Gamma \vdash F}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   306
         {\infer{\hspace{1cm}:\hspace{1cm}}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   307
             {\infer{\hspace{1cm}:\hspace{1cm}}{:}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   308
               &
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   309
              \infer{\hspace{1cm}:\hspace{1cm}}{:\quad :}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   310
           }}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   311
}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   312
\end{center}
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   313
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   314
\end{frame}}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   315
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   316
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   317
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   318
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   319
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   320
\mode<presentation>{
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   321
\begin{frame}[c]
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   322
\frametitle{The Access Control Problem}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   323
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   324
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   325
\begin{center}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   326
  \begin{tikzpicture}[scale=1]
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   327
  
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   328
  \draw[line width=1mm] (-.3, -0.5) rectangle (1.5,2);
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   329
  \draw (-2.7,1) node {\begin{tabular}{l}access\\request\\ (\bl{$F$})\end{tabular}};
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   330
  \draw (4.2,1) node {\begin{tabular}{l}provable/\\not provable\end{tabular}};
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   331
  \draw (0.6,0.8) node {\footnotesize \begin{tabular}{l}AC-\\ Checker:\\ applies\\ inference\\ rules\end{tabular}};
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   332
 
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   333
  \draw[red, ->, line width = 2mm] (1.7,1) -- (2.7,1); 
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   334
  \draw[red,<-, line width = 2mm] (-0.6,1) -- (-1.6,1);
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   335
  \draw[red, <-, line width = 3mm] (0.6,2.2) -- (0.6,3.2); 
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   336
  
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   337
  \draw (0.6,4) node {\begin{tabular}{l}\large Access Policy (\bl{$\Gamma$})\end{tabular}};
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   338
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   339
  \end{tikzpicture}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   340
\end{center}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   341
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   342
\end{frame}}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   343
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   344
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   345
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   346
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   347
\mode<presentation>{
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   348
\begin{frame}[c]
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   349
\frametitle{Proofs}
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   350
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   351
\begin{center}
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   352
\includegraphics[scale=0.4]{pics/river-stones.jpg}
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   353
\end{center}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   354
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   355
\begin{textblock}{5}(11.7,5)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   356
goal
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   357
\end{textblock}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   358
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   359
\begin{textblock}{5}(11.7,14)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   360
start
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   361
\end{textblock}
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   362
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   363
\begin{textblock}{5}(0,7)
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   364
\begin{center}
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   365
\bl{\infer[\small\textcolor{black}{\text{axiom}}]{\quad\vdash\quad}{}}\\[8mm]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   366
\bl{\infer{\vdash}{\quad\vdash\quad}}\\[8mm]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   367
\bl{\infer{\vdash}{\quad\vdash\qquad\vdash\quad}}
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   368
\end{center}
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   369
\end{textblock}
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   370
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   371
\end{frame}}
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   372
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   373
60
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   374
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   375
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   376
\mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   377
\begin{frame}[c]
126
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   378
\frametitle{Sudoku}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   379
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   380
\begin{tikzpicture}[scale=.5]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   381
  \begin{scope}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   382
    \draw (0, 0) grid (9, 9);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   383
    \draw[very thick, scale=3] (0, 0) grid (3, 3);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   384
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   385
    \setcounter{row}{1}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   386
    \setrow { }{2}{ }  {5}{ }{1}  { }{9}{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   387
    \setrow {8}{ }{ }  {2}{ }{3}  { }{ }{6}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   388
    \setrow { }{3}{ }  { }{6}{ }  { }{7}{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   389
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   390
    \setrow { }{ }{1}  { }{ }{ }  {6}{ }{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   391
    \setrow {5}{4}{ }  { }{ }{ }  { }{1}{9}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   392
    \setrow { }{ }{2}  { }{ }{ }  {7}{ }{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   393
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   394
    \setrow { }{9}{ }  { }{3}{ }  { }{8}{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   395
    \setrow {2}{ }{ }  {8}{ }{4}  { }{ }{7}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   396
    \setrow { }{1}{ }  {9}{ }{7}  { }{6}{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   397
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   398
    \fill[red, fill opacity=0.4] (4,0) rectangle (5,9);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   399
    \fill[red, fill opacity=0.4] (0,5) rectangle (9,6);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   400
    \fill[red!50, fill opacity=0.4] (3,3) rectangle (4,5);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   401
    \fill[red!50, fill opacity=0.4] (5,3) rectangle (6,5);  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   402
    \node[gray, anchor=center] at (4.5, -0.5) {columns};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   403
    \node[gray, rotate=90, anchor=center] at (-0.6, 4.5, -0.5) {rows};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   404
    \node[gray, anchor=center] at (4.5, 4.5) {box};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   405
  \end{scope}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   406
  \end{tikzpicture}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   407
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   408
\small
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   409
\begin{textblock}{7}(9,3)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   410
\begin{enumerate}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   411
\item {\bf Row-Column:} each cell, must contain exactly one number
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   412
\item {\bf Row-Number:} each row must contain each number exactly once
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   413
\item {\bf Column-Number:} each column must contain each number exactly once
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   414
\item {\bf Box-Number:} each box must contain each number exactly once
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   415
\end{enumerate}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   416
\end{textblock}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   417
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   418
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   419
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   420
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   421
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   422
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   423
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   424
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   425
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   426
\frametitle{Solving Sudokus}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   427
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   428
\begin{tikzpicture}[scale=.5]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   429
  \begin{scope}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   430
    \draw (0, 0) grid (9, 9);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   431
    \draw[very thick, scale=3] (0, 0) grid (3, 3);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   432
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   433
    \setcounter{row}{1}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   434
    \setrow { }{ }{ }  {7}{ }{ }  { }{5}{8}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   435
    \setrow {}{5}{6}  {2}{1}{8}  {7}{9}{3}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   436
    \setrow { }{ }{ }  { }{ }{ }  {1}{ }{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   437
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   438
    \setrow { }{ }{ }  { }{ }{ }  { }{8}{1}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   439
    \setrow { }{ }{ }  {3}{7}{6}  { }{ }{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   440
    \setrow {9}{6}{ }  { }{ }{ }  { }{ }{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   441
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   442
    \setrow { }{ }{5}  { }{3}{ }  { }{ }{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   443
    \setrow { }{ }{4}  { }{2}{1}  {8}{3}{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   444
    \setrow {8}{7}{ }  { }{ }{3}  { }{ }{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   445
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   446
    \fill[red, fill opacity=0.4] (0,7) rectangle (1,8);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   447
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   448
  \end{scope}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   449
  \end{tikzpicture}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   450
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   451
\small
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   452
\begin{textblock}{6}(9,6)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   453
{\bf single position rules}\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   454
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   455
\bl{\infer{4\;\text{in empty position}}{\{1..9\} - \{4\}\;\text{in one row}}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   456
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   457
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   458
\onslide<2->{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   459
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   460
\bl{\infer{x\;\text{in empty position}}{\{1..9\} - \{x\}\;\text{in one column}}}\medskip\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   461
\bl{\infer{x\;\text{in empty position}}{\{1..9\} - \{x\}\;\text{in one box}}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   462
\end{center}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   463
\end{textblock}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   464
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   465
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   466
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   467
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   468
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   469
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   470
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   471
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   472
\frametitle{Solving Sudokus}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   473
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   474
\begin{tikzpicture}[scale=.5]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   475
  \begin{scope}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   476
    \draw (0, 0) grid (9, 9);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   477
    \draw[very thick, scale=3] (0, 0) grid (3, 3);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   478
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   479
    \setcounter{row}{1}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   480
    \setrow { }{ }{ }  {7}{ }{ }  {\alert{\footnotesize 2}}{5}{8}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   481
    \setrow {}{5}{6}  {2}{1}{8}  {7}{9}{3}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   482
    \setrow { }{ }{ }  { }{ }{ }  {1}{\alert{\footnotesize 2}}{\alert{\footnotesize 2}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   483
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   484
    \setrow { }{ }{ }  { }{ }{ }  { }{8}{1}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   485
    \setrow { }{ }{ }  {3}{7}{6}  { }{ }{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   486
    \setrow {9}{6}{ }  { }{ }{ }  { }{ }{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   487
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   488
    \setrow { }{ }{5}  { }{3}{ }  { }{ }{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   489
    \setrow { }{ }{4}  { }{2}{1}  {8}{3}{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   490
    \setrow {8}{7}{ }  { }{ }{3}  { }{ }{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   491
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   492
  \end{scope}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   493
  \end{tikzpicture}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   494
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   495
\small
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   496
\begin{textblock}{6}(7.5,6)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   497
{\bf candidate rules}\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   498
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   499
\bl{\infer{x\;\text{candidate in empty positions}}{X - \{x\}\;\text{in one box} & X \subseteq \{1..9\}}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   500
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   501
\end{textblock}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   502
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   503
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   504
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   505
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   506
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   507
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   508
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   509
\frametitle{Solving Sudokus}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   510
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   511
\begin{tikzpicture}[scale=.5]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   512
  \begin{scope}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   513
    \draw (0, 0) grid (9, 9);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   514
    \draw[very thick, scale=3] (0, 0) grid (3, 3);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   515
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   516
    \setcounter{row}{1}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   517
    \setrow { }{ }{ }  {7}{ }{ }  {\alert{\footnotesize 2}}{5}{8}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   518
    \setrow {\alert{4}}{5}{6}  {2}{1}{8}  {7}{9}{3}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   519
    \setrow { }{ }{ }  { }{ }{ }  {1}{\alert{\footnotesize 2}}{\alert{\footnotesize 2}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   520
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   521
    \setrow { }{ }{ }  { }{ }{ }  { }{8}{1}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   522
    \setrow { }{ }{ }  {3}{7}{6}  { }{ }{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   523
    \setrow {9}{6}{ }  { }{ }{ }  { }{ }{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   524
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   525
    \setrow { }{ }{5}  { }{3}{ }  { }{ }{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   526
    \setrow { }{ }{4}  { }{2}{1}  {8}{3}{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   527
    \setrow {8}{7}{ }  { }{ }{3}  { }{ }{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   528
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   529
  \end{scope}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   530
  \end{tikzpicture}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   531
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   532
\small
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   533
\begin{textblock}{6}(7.5,6)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   534
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   535
\bl{\infer{4\;\text{in empty position}}{\{1..9\} - \{4\}\;\text{in one row}}}\bigskip\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   536
\bl{\infer{2\;\text{candidate in empty positions}}{X - \{2\}\;\text{in one box} & X \subseteq \{1..9\}}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   537
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   538
\end{textblock}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   539
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   540
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   541
\begin{textblock}{3}(13.5,6.8)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   542
  \begin{tikzpicture}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   543
  \onslide<1>{\node at (0,0) [single arrow, shape border rotate=270, fill=red,text=white]{\mbox{\alert{a}}};}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   544
  \onslide<2>{\node at (0,0) [single arrow, shape border rotate=90, fill=red,text=white]{\mbox{\alert{a}}};}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   545
  \end{tikzpicture}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   546
\end{textblock}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   547
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   548
\begin{textblock}{3}(14.5,9.3)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   549
  \begin{tikzpicture}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   550
  \onslide<1>{\node at (0,0) [single arrow, shape border rotate=270, fill=red,text=white]{\mbox{\alert{a}}};}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   551
  \onslide<2>{\node at (0,0) [single arrow, shape border rotate=90, fill=red,text=white]{\mbox{\alert{a}}};}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   552
  \end{tikzpicture}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   553
\end{textblock}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   554
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   555
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   556
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   557
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   558
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   559
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   560
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   561
\frametitle{Solving Sudokus}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   562
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   563
\begin{tikzpicture}[scale=.5]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   564
  \begin{scope}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   565
    \draw (0, 0) grid (9, 9);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   566
    \draw[very thick, scale=3] (0, 0) grid (3, 3);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   567
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   568
    \setcounter{row}{1}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   569
    \setrow { }{ }{ }  {7}{ }{ }  { }{5}{8}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   570
    \setrow { }{5}{6}  {2}{1}{8}  {7}{9}{3}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   571
    \setrow { }{ }{ }  { }{ }{ }  {1}{ }{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   572
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   573
    \setrow { }{ }{ }  { }{ }{ }  { }{8}{1}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   574
    \setrow { }{ }{ }  {3}{7}{6}  { }{ }{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   575
    \setrow {9}{6}{ }  { }{ }{ }  { }{ }{ \alert{2}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   576
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   577
    \setrow { }{ }{5}  { }{3}{ }  { }{ }{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   578
    \setrow { }{ }{4}  { }{2}{1}  {8}{3}{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   579
    \setrow {8}{7}{ }  { }{ }{3}  { }{ }{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   580
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   581
  \end{scope}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   582
  \end{tikzpicture}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   583
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   584
\small
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   585
\begin{textblock}{6}(7.5,6)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   586
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   587
\bl{\infer{2\;\text{candidate}}{X - \{2\}\;\text{in one box} & X \subseteq \{1..9\}}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   588
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   589
\end{textblock}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   590
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   591
\begin{textblock}{3}(14.5,8.3)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   592
  \begin{tikzpicture}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   593
  \onslide<1>{\node at (0,0) [single arrow, shape border rotate=90, fill=red,text=white]{\mbox{\alert{a}}};}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   594
  \end{tikzpicture}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   595
\end{textblock}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   596
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   597
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   598
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   599
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   600
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   601
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   602
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   603
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   604
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   605
\frametitle{Sudoku}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   606
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   607
Are there sudokus that cannot be solved?\pause
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   608
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   609
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   610
\begin{tikzpicture}[scale=.5]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   611
  \begin{scope}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   612
    \draw (0, 0) grid (9, 9);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   613
    \draw[very thick, scale=3] (0, 0) grid (3, 3);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   614
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   615
    \setcounter{row}{1}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   616
    \setrow {1}{2}{3}  {4}{5}{6}  {7}{8}{ }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   617
    \setrow { }{ }{ }  { }{ }{ }  { }{ }{2}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   618
    \setrow { }{ }{ }  { }{ }{ }  { }{ }{3}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   619
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   620
    \setrow { }{ }{ }  { }{ }{ }  { }{ }{4}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   621
    \setrow { }{ }{ }  { }{ }{ }  { }{ }{5}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   622
    \setrow { }{ }{ }  { }{ }{ }  { }{ }{6}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   623
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   624
    \setrow { }{ }{ }  { }{ }{ }  { }{ }{7}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   625
    \setrow { }{ }{ }  { }{ }{ }  { }{ }{8}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   626
    \setrow { }{ }{ }  { }{ }{ }  { }{ }{9}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   627
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   628
  \end{scope}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   629
  \end{tikzpicture}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   630
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   631
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   632
Sometimes no rules apply at all....unsolvable sudoku.
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   633
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   634
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   635
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   636
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   637
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   638
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   639
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   640
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   641
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   642
\frametitle{Example Proof}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   643
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   644
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   645
\bl{\infer{P\;\text{says}\;F_1 \wedge Q\;\text{says}\;F_2 \vdash Q\;\text{says}\;F_2 \wedge P\;\text{says}\;F_1}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   646
         {\raisebox{2mm}{\text{\LARGE $?$}}}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   647
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   648
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   649
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   650
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   651
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   652
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   653
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   654
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   655
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   656
\frametitle{Example Proof}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   657
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   658
\begin{tabular}{@{\hspace{-6mm}}l}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   659
\begin{minipage}{1.1\textwidth}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   660
We have (by axiom)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   661
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   662
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   663
\begin{tabular}{@{}ll@{}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   664
(1) & \bl{$P\;\text{says}\;F_1 \wedge Q\;\text{says}\;F_2 \vdash P\;\text{says}\;F_1 \wedge Q\;\text{says}\;F_2$}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   665
\end{tabular}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   666
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   667
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   668
From (1) we get
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   669
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   670
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   671
\begin{tabular}{@{}ll@{}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   672
(2) & \bl{$P\;\text{says}\;F_1 \wedge Q\;\text{says}\;F_2 \vdash P\;\text{says}\;F_1$}\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   673
(3) & \bl{$P\;\text{says}\;F_1 \wedge Q\;\text{says}\;F_2 \vdash Q\;\text{says}\;F_2$}\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   674
\end{tabular}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   675
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   676
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   677
From (3) and (2) we get
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   678
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   679
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   680
\begin{tabular}{@{}ll@{}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   681
\bl{$P\;\text{says}\;F_1 \wedge Q\;\text{says}\;F_2 \vdash Q\;\text{says}\;F_2 \wedge P\;\text{says}\;F_1$}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   682
\end{tabular}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   683
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   684
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   685
Done.
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   686
\end{minipage}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   687
\end{tabular}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   688
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   689
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   690
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   691
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   692
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   693
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   694
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   695
\frametitle{Other Direction}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   696
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   697
\begin{tabular}{@{\hspace{-6mm}}l}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   698
\begin{minipage}{1.1\textwidth}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   699
We want to prove
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   700
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   701
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   702
\begin{tabular}{@{}ll@{}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   703
\bl{$P\;\text{says}\;F_1 \wedge Q\;\text{says}\;F_2 \vdash Q\;\text{says}\;F_2 \wedge P\;\text{says}\;F_1$}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   704
\end{tabular}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   705
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   706
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   707
We are better be able to prove:
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   708
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   709
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   710
\begin{tabular}{@{}ll@{}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   711
(1) & \bl{$P\;\text{says}\;F_1 \wedge Q\;\text{says}\;F_2 \vdash P\;\text{says}\;F_1$}\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   712
(2) & \bl{$P\;\text{says}\;F_1 \wedge Q\;\text{says}\;F_2 \vdash Q\;\text{says}\;F_2$}\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   713
\end{tabular}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   714
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   715
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   716
For (1): If we can prove
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   717
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   718
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   719
\begin{tabular}{@{}ll@{}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   720
\bl{$P\;\text{says}\;F_1 \wedge Q\;\text{says}\;F_2 \vdash Q\;\text{says}\;F_2 \wedge P\;\text{says}\;F_1$}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   721
\end{tabular}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   722
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   723
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   724
then (1) is fine. Similarly for (2).
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   725
\end{minipage}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   726
\end{tabular}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   727
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   728
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   729
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%      
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   730
     
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   731
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   732
  \mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   733
  \begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   734
  \frametitle{}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   735
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   736
  Recall the following scenario:
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   737
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   738
  \begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   739
  \item If \textcolor{blue}{Admin} says that \textcolor{blue}{\isa{file\isaliteral{5C3C5E697375623E}{} {}}} 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   740
  should be deleted, then this file must be deleted.
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   741
  \item \textcolor{blue}{Admin} trusts \textcolor{blue}{Bob} to decide whether 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   742
  \textcolor{blue}{\isa{file\isaliteral{5C3C5E697375623E}{}}} should be deleted.
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   743
  \item \textcolor{blue}{Bob} wants to delete \textcolor{blue}{\isa{file\isaliteral{5C3C5E697375623E}{}}}.
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   744
  \end{itemize}\bigskip
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   745
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   746
  \small
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   747
  \textcolor{blue}{\isa{{\isaliteral{5C3C47616D6D613E}{\isasymGamma}}\ {\isaliteral{3D}{\isacharequal}}}\small\begin{tabular}{l}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   748
  \isa{{\isaliteral{28}{\isacharparenleft}}Admin\ says\ del{\isaliteral{5F}{\isacharunderscore}}file\isaliteral{5C3C5E697375623E}{}{\isaliteral{29}{\isacharparenright}}\ {\isaliteral{5C3C52696768746172726F773E}{\isasymRightarrow}}\ del{\isaliteral{5F}{\isacharunderscore}}file\isaliteral{5C3C5E697375623E}{}},\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   749
  \isa{{\isaliteral{28}{\isacharparenleft}}Admin\ says\ {\isaliteral{28}{\isacharparenleft}}{\isaliteral{28}{\isacharparenleft}}Bob\ says\ del{\isaliteral{5F}{\isacharunderscore}}file\isaliteral{5C3C5E697375623E}{}{\isaliteral{29}{\isacharparenright}}\ {\isaliteral{5C3C52696768746172726F773E}{\isasymRightarrow}}\ del{\isaliteral{5F}{\isacharunderscore}}file\isaliteral{5C3C5E697375623E}{}{\isaliteral{29}{\isacharparenright}}{\isaliteral{29}{\isacharparenright}}},\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   750
  \isa{Bob\ says\ del{\isaliteral{5F}{\isacharunderscore}}file\isaliteral{5C3C5E697375623E}{}}\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   751
  \end{tabular}}\medskip
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   752
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   753
  \textcolor{blue}{\isa{{\isaliteral{5C3C47616D6D613E}{\isasymGamma}}\ {\isaliteral{5C3C7475726E7374696C653E}{\isasymturnstile}}\ del{\isaliteral{5F}{\isacharunderscore}}file\isaliteral{5C3C5E697375623E}{}}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   754
  \end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   755
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   756
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   757
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   758
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   759
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   760
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   761
How to prove \bl{$\Gamma \vdash F$}?\bigskip\bigskip
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   762
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   763
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   764
\Large \bl{\infer{\Gamma, F\vdash F}{}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   765
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   766
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   767
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   768
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   769
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   770
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   771
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   772
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   773
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   774
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   775
\Large 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   776
\bl{\infer{\Gamma \vdash F_1 \Rightarrow F_2}{F_1, \Gamma \vdash F_2}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   777
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   778
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   779
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   780
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   781
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   782
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   783
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   784
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   785
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   786
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   787
\Large 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   788
\bl{\infer{\Gamma \vdash P \,\text{says}\, F}{\Gamma \vdash F}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   789
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   790
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   791
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   792
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   793
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   794
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   795
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   796
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   797
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   798
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   799
\Large 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   800
\bl{\infer{\Gamma \vdash F_1 \vee F_2}{\Gamma \vdash F_1}}\qquad
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   801
\bl{\infer{\Gamma \vdash F_1 \vee F_2}{\Gamma \vdash F_2}}\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   802
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   803
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   804
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   805
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   806
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   807
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   808
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   809
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   810
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   811
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   812
\Large 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   813
\bl{\infer{\Gamma \vdash F_1 \wedge F_2}{\Gamma \vdash F_1 \quad \Gamma \vdash F_2}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   814
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   815
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   816
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   817
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   818
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   819
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   820
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   821
\begin{frame}[t]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   822
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   823
I want to prove \bl{$\Gamma \vdash \text{Pred}$}\bigskip\bigskip\pause
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   824
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   825
\begin{enumerate}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   826
\item I found that \bl{$\Gamma$} contains the assumption \bl{$F_1 \Rightarrow F_2$}\bigskip\pause
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   827
\item If I can prove \bl{$\Gamma \vdash F_1$},\pause{} then I can prove
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   828
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   829
\bl{$\Gamma \vdash F_2$}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   830
\end{center}\bigskip\pause
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   831
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   832
\item So better I try to prove \bl{$\Gamma \vdash \text{Pred}$} with the additional assumption
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   833
\bl{$F_2$}.\bigskip
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   834
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   835
\bl{$F_2, \Gamma \vdash \text{Pred}$}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   836
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   837
\end{enumerate}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   838
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   839
\only<4>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   840
\begin{textblock}{11}(1,10.5)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   841
\bl{\infer{\Gamma\vdash F_2}{\Gamma\vdash F_1\Rightarrow F_2 & \Gamma\vdash F_1}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   842
\end{textblock}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   843
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   844
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   845
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   846
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   847
\newcommand{\dn}{\stackrel{\mbox{\scriptsize def}}{=}}% for definitions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   848
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   849
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   850
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   851
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   852
\begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   853
\item \bl{$P$} is entitled to do \bl{$F$}\smallskip\\ 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   854
\bl{$P \,\text{controls}\, F \,\dn\, (P\,\text{says}\, F) \Rightarrow F$}\medskip
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   855
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   856
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   857
\bl{\infer{\Gamma \vdash F}{\Gamma \vdash P\,\text{controls}\, F & \Gamma \vdash P\,\text{says}\,F}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   858
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   859
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   860
\item \bl{$P$} speaks for \bl{$Q$}\smallskip\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   861
\bl{$P \mapsto Q \,\dn\, \forall F. (P\,\text{says}\, F) \Rightarrow (Q \,\text{says}\,F)$}\medskip
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   862
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   863
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   864
\bl{\infer{\Gamma \vdash Q\,\text{says}\,F}{\Gamma \vdash P\mapsto Q & \Gamma \vdash P\,\text{says}\,F}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   865
\medskip\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   866
\bl{\infer{\Gamma \vdash P\,\text{controls}\,F}{\Gamma \vdash P\mapsto Q & \Gamma \vdash Q\,\text{controls}\,F}}\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   867
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   868
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   869
\end{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   870
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   871
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   872
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   873
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   874
126
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   875
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   876
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   877
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   878
\begin{frame}[c]
60
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   879
\frametitle{Protocol Specifications}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   880
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   881
The Needham-Schroeder Protocol:
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   882
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   883
\begin{center}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   884
\begin{tabular}{@ {\hspace{-7mm}}l@{\hspace{2mm}}r@ {\hspace{1mm}}l}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   885
Message 1 & \bl{$A \rightarrow S :$} & \bl{$A, B, N_A$}\\
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   886
Message 2 & \bl{$S \rightarrow A :$} & \bl{$\{N_A, B, K_{AB},\{K_{AB}, A\}_{K_{BS}} \}_{K_{AS}}$}\\
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   887
Message 3 & \bl{$A \rightarrow B :$} & \bl{$\{K_{AB}, A\}_{K_{BS}} $}\\
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   888
Message 4 & \bl{$B \rightarrow A :$} & \bl{$\{N_B\}_{K_{AB}}$}\\
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   889
Message 5 & \bl{$A \rightarrow B :$} & \bl{$\{N_B-1\}_{K_{AB}}$}\\
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   890
\end{tabular}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   891
\end{center}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   892
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   893
\end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   894
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   895
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   896
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   897
\mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   898
\begin{frame}[c]
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   899
\frametitle{Trusted Third Party}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   900
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   901
Simple protocol for establishing a secure connection via a mutually
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   902
trusted 3rd party (server):
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   903
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   904
\begin{center}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   905
\begin{tabular}{@ {\hspace{-7mm}}l@{\hspace{2mm}}r@ {\hspace{1mm}}l}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   906
Message 1 & \bl{$A \rightarrow S :$} & \bl{$A, B$}\\
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   907
Message 2 & \bl{$S \rightarrow A :$} & \bl{$\{K_{AB}\}_{K_{AS}}$} and \bl{$\{\{K_{AB}\}_{K_{BS}} \}_{K_{AS}}$}\\
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   908
Message 3 & \bl{$A \rightarrow B :$} & \bl{$\{K_{AB}\}_{K_{BS}} $}\\
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   909
Message 4 & \bl{$A \rightarrow B :$} & \bl{$\{m\}_{K_{AB}}$}\\
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   910
\end{tabular}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   911
\end{center}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   912
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   913
\end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   914
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   915
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   916
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   917
  \mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   918
  \begin{frame}[c]
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   919
  \frametitle{Sending Messages}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   920
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   921
  \begin{itemize}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   922
  \item Alice sends a message \bl{$m$}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   923
  \begin{center}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   924
  \bl{Alice says $m$}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   925
  \end{center}\medskip\pause
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   926
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   927
  \item Alice sends an encrypted message \bl{$m$}\\ (with key \bl{$K$})
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   928
  \begin{center}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   929
  \bl{Alice says $\{m\}_K$}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   930
  \end{center}\medskip\pause
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   931
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   932
  \item Decryption of Alice's message\smallskip
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   933
  \begin{center}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   934
  \bl{\mbox{\infer{\Gamma \vdash \text{Alice}\;\text{says}\;m}
62
Christian Urban <urbanc@in.tum.de>
parents: 61
diff changeset
   935
              {\Gamma \vdash \text{Alice}\;\text{says}\;\{m\}_K & \Gamma \vdash \text{Alice}\,\text{says}\,K}}}
60
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   936
  \end{center}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   937
  \end{itemize}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   938
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   939
  \end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   940
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   941
  
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   942
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   943
  \mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   944
  \begin{frame}[c]
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   945
  \frametitle{Encryption}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   946
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   947
  \begin{itemize}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   948
  \item Encryption of a message\smallskip
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   949
  \begin{center}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   950
  \bl{\mbox{\infer{\Gamma \vdash \text{Alice}\;\text{says}\;\{m\}_K}
62
Christian Urban <urbanc@in.tum.de>
parents: 61
diff changeset
   951
              {\Gamma \vdash \text{Alice}\;\text{says}\;m & \Gamma \vdash \text{Alice}\,\text{says}\,K}}}
60
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   952
  \end{center}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   953
  \end{itemize}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   954
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   955
  \end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   956
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   957
  
61
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   958
   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   959
  \mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   960
  \begin{frame}[c]
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   961
  \frametitle{Public/Private Keys}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   962
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   963
  \begin{itemize}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   964
  \item Bob has a private and public key: \bl{$K_{Bob}^{pub}$}, \bl{$K_{Bob}^{priv}$}\bigskip
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   965
  \begin{center}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   966
  \bl{\mbox{\infer{\Gamma \vdash \text{Alice}\;\text{says}\;m}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   967
              {\Gamma \vdash \text{Alice}\;\text{says}\;\{m\}_{K_{Bob}^{pub}} & 
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   968
               \Gamma \vdash K_{Bob}^{priv}}}}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   969
  \end{center}\bigskip\pause
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   970
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   971
  \item this is {\bf not} a derived rule! 
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   972
  \end{itemize}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   973
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   974
  \end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   975
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%      
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   976
  
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   977
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   978
  \mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   979
  \begin{frame}[c]
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   980
  \frametitle{Trusted Third Party}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   981
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   982
  \begin{itemize}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   983
  \item Alice calls Sam for a key to communicate with Bob
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   984
  \item Sam responds with a key that Alice can read and a key Bob can read (pre-shared)
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   985
  \item Alice sends the message encrypted with the key and the second key it recieved
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   986
  \end{itemize}\bigskip
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   987
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   988
  \begin{center}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   989
  \bl{\begin{tabular}{lcl}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   990
  $A$ sends $S$ &:& $\textit{Connect}(A,B)$\\
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   991
  $S$ sends $A$ &:& $\{K_{AB}\}_{K_{AS}}$ \textcolor{black}{and} $\{\{K_{AB}\}_{K_{BS}}\}_{K_{AS}}$\\
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   992
  $A$ sends $B$ &:& $\{K_{AB}\}_{K_{BS}}$\\
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   993
  $A$ sends $B$ &:& $\{m\}_{K_{AB}}$
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   994
  \end{tabular}}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   995
  \end{center}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   996
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   997
  \end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   998
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%      
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   999
  
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1000
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1001
  \mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1002
  \begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1003
  \frametitle{Controls}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1004
  \small
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1005
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1006
  \begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1007
  \item \bl{\isa{P\ controls\ F\ {\isaliteral{5C3C65717569763E}{\isasymequiv}}\ {\isaliteral{28}{\isacharparenleft}}P\ says\ F{\isaliteral{29}{\isacharparenright}}\ {\isaliteral{5C3C52696768746172726F773E}{\isasymRightarrow}}\ F}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1008
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1009
  \item its meaning ``\bl{P} is entitled to do \bl{F}''
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1010
  \item if \bl{P controls F} and \bl{P says F} then \bl{F}\pause
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1011
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1012
  \begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1013
  \bl{\mbox{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1014
  \infer{\mbox{\isa{{\isaliteral{5C3C47616D6D613E}{\isasymGamma}}\ {\isaliteral{5C3C7475726E7374696C653E}{\isasymturnstile}}\ F}}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1015
        {\mbox{\isa{{\isaliteral{5C3C47616D6D613E}{\isasymGamma}}\ {\isaliteral{5C3C7475726E7374696C653E}{\isasymturnstile}}\ P\ controls\ F}} & \mbox{\isa{{\isaliteral{5C3C47616D6D613E}{\isasymGamma}}\ {\isaliteral{5C3C7475726E7374696C653E}{\isasymturnstile}}\ P\ says\ F}}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1016
  }}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1017
  \end{center}\pause
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1018
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1019
  \begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1020
  \bl{\mbox{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1021
  \infer{\mbox{\isa{{\isaliteral{5C3C47616D6D613E}{\isasymGamma}}\ {\isaliteral{5C3C7475726E7374696C653E}{\isasymturnstile}}\ F}}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1022
        {\mbox{\isa{{\isaliteral{5C3C47616D6D613E}{\isasymGamma}}\ {\isaliteral{5C3C7475726E7374696C653E}{\isasymturnstile}}\ {\isaliteral{28}{\isacharparenleft}}P\ says\ F{\isaliteral{29}{\isacharparenright}}\ {\isaliteral{5C3C52696768746172726F773E}{\isasymRightarrow}}\ F}} & \mbox{\isa{{\isaliteral{5C3C47616D6D613E}{\isasymGamma}}\ {\isaliteral{5C3C7475726E7374696C653E}{\isasymturnstile}}\ P\ says\ F}}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1023
  }}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1024
  \end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1025
  \end{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1026
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1027
  \end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1028
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1029
%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1030
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1031
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1032
  \mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1033
  \begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1034
  \frametitle{Security Levels}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1035
  \small
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1036
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1037
  \begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1038
  \item Top secret (\bl{$T\!S$})
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1039
  \item Secret (\bl{$S$})
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1040
  \item Public (\bl{$P$})
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1041
  \end{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1042
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1043
  \begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1044
  \bl{$slev(P) < slev(S) < slev(T\!S)$}\pause
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1045
  \end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1046
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1047
  \begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1048
  \item Bob has a clearance for ``secret''
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1049
  \item Bob can read documents that are public or sectret, but not top secret
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1050
  \end{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1051
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1052
  \end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1053
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1054
%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1055
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1056
  \mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1057
  \begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1058
  \frametitle{Reading a File}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1059
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1060
  \bl{\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1061
  \begin{tabular}{c}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1062
  \begin{tabular}{@ {}l@ {}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1063
  \only<2->{\textcolor{red}{$slev($File$)$ $<$ $slev($Bob$)$ $\Rightarrow$}}\\ 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1064
  \only<2->{\hspace{3cm}}Bob controls Permitted $($File, read$)$\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1065
  Bob says Permitted $($File, read$)$\only<2->{\\}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1066
  \only<2>{\textcolor{red}{$slev($File$)$ $<$ $slev($Bob$)$}}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1067
  \only<3>{\textcolor{red}{$slev($File$)$ $=$ $P$}\\}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1068
  \only<3>{\textcolor{red}{$slev($Bob$)$ $=$ $S$}\\}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1069
  \only<3>{\textcolor{red}{$slev(P)$ $<$ $slev(S)$}\\}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1070
  \end{tabular}\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1071
  \hline
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1072
  Permitted $($File, read$)$
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1073
  \end{tabular}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1074
  \end{center}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1075
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1076
  \end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1077
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1078
%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1079
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1080
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1081
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1082
  \mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1083
  \begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1084
  \frametitle{Substitution Rule}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1085
  \small
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1086
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1087
  \bl{\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1088
  \begin{tabular}{c}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1089
  $\Gamma \vdash slev(P) = l_1$ \hspace{4mm} $\Gamma \vdash slev(Q) = l_2$
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1090
  \hspace{4mm} $\Gamma \vdash l_1 < l_2$\\\hline
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1091
  $\Gamma \vdash slev(P) < slev(Q)$
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1092
  \end{tabular}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1093
  \end{center}}\bigskip\pause
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1094
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1095
  \begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1096
  \item \bl{$slev($Bob$)$ $=$ $S$}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1097
  \item \bl{$slev($File$)$ $=$ $P$}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1098
  \item \bl{$slev(P) < slev(S)$}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1099
  \end{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1100
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1101
  \end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1102
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1103
%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1104
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1105
  \mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1106
  \begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1107
  \frametitle{Reading a File}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1108
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1109
  \bl{\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1110
  \begin{tabular}{c}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1111
  \begin{tabular}{@ {}l@ {}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1112
  $slev($File$)$ $<$ $slev($Bob$)$ $\Rightarrow$\\ 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1113
  \hspace{3cm}Bob controls Permitted $($File, read$)$\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1114
  Bob says Permitted $($File, read$)$\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1115
  $slev($File$)$ $=$ $P$\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1116
  $slev($Bob$)$ $=$ $T\!S$\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1117
  \only<1>{\textcolor{red}{$?$}}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1118
  \only<2>{\textcolor{red}{$slev(P) < slev(S)$}\\}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1119
  \only<2>{\textcolor{red}{$slev(S) < slev(T\!S)$}}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1120
  \end{tabular}\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1121
  \hline
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1122
  Permitted $($File, read$)$
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1123
  \end{tabular}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1124
  \end{center}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1125
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1126
  \end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1127
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1128
%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1129
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1130
  \mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1131
  \begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1132
  \frametitle{Transitivity Rule}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1133
  \small
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1134
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1135
  \bl{\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1136
  \begin{tabular}{c}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1137
  $\Gamma \vdash l_1 < l_2$ 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1138
  \hspace{4mm} $\Gamma \vdash l_2 < l_3$\\\hline
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1139
  $\Gamma \vdash l_1 < l_3$
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1140
  \end{tabular}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1141
  \end{center}}\bigskip
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1142
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1143
  \begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1144
  \item \bl{$slev(P) < slev (S)$}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1145
  \item \bl{$slev(S) < slev (T\!S)$}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1146
  \item[] \bl{$slev(P) < slev (T\!S)$}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1147
  \end{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1148
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1149
  \end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1150
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1151
%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1152
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1153
  \mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1154
  \begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1155
  \frametitle{Reading Files}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1156
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1157
  \begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1158
  \item Access policy for reading
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1159
  \end{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1160
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1161
  \bl{\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1162
  \begin{tabular}{c}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1163
  \begin{tabular}{@ {}l@ {}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1164
  $\forall f.\;slev(f)$ \only<1>{$<$}\only<2>{\textcolor{red}{$\le$}} $slev($Bob$)$ $\Rightarrow$\\ 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1165
  \hspace{3cm}Bob controls Permitted $(f$, read$)$\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1166
  Bob says Permitted $($File, read$)$\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1167
  $slev($File$)$ $=$ \only<1>{$P$}\only<2>{\textcolor{red}{$T\!S$}}\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1168
  $slev($Bob$)$ $=$ $T\!S$\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1169
  $slev(P) < slev(S)$\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1170
  $slev(S) < slev(T\!S)$
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1171
  \end{tabular}\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1172
  \hline
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1173
  Permitted $($File, read$)$
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1174
  \end{tabular}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1175
  \end{center}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1176
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1177
  \end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1178
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1179
%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1180
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1181
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1182
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1183
  \mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1184
  \begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1185
  \frametitle{Writing Files}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1186
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1187
  \begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1188
  \item Access policy for \underline{writing}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1189
  \end{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1190
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1191
  \bl{\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1192
  \begin{tabular}{c}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1193
  \begin{tabular}{@ {}l@ {}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1194
  $\forall f.\;slev($Bob$)$ $\le$ $slev(f)$ $\Rightarrow$\\ 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1195
  \hspace{3cm}Bob controls Permitted $(f$, write$)$\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1196
  Bob says Permitted $($File, write$)$\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1197
  $slev($File$)$ $=$ $T\!S$\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1198
  $slev($Bob$)$ $=$ $S$\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1199
  $slev(P) < slev(S)$\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1200
  $slev(S) < slev(T\!S)$
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1201
  \end{tabular}\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1202
  \hline
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1203
  Permitted $($File, write$)$
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1204
  \end{tabular}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1205
  \end{center}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1206
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1207
  \end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1208
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1209
%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1210
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
  1211
  
61
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1212
   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1213
  \mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1214
  \begin{frame}[c]
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1215
  \frametitle{Sending Rule}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1216
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1217
  \bl{\begin{center}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1218
  \mbox{\infer{\Gamma \vdash Q \;\textit{says}\; F}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1219
              {\Gamma \vdash P \;\textit{says}\; F & \Gamma \vdash P \;\textit{sends}\; Q : F}}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1220
  \end{center}}\bigskip\pause
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1221
  
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1222
  \bl{$P \,\text{sends}\, Q : F \dn$}\\
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1223
  \hspace{6mm}\bl{$(P \,\text{says}\, F) \Rightarrow (Q \,\text{says}\, F)$}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1224
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1225
  \end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1226
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1227
  
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1228
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1229
  \mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1230
  \begin{frame}[c]
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1231
  \frametitle{Trusted Third Party}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1232
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1233
  \begin{center}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1234
  \bl{\begin{tabular}{l}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1235
  $A$ sends $S$ : $\textit{Connect}(A,B)$\\  
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1236
  \bl{$S \,\text{says}\, (\textit{Connect}(A,B) \Rightarrow$}\\ 
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1237
  \hspace{2.5cm}\bl{$\{K_{AB}\}_{K_{AS}} \wedge 
62
Christian Urban <urbanc@in.tum.de>
parents: 61
diff changeset
  1238
  \{\{K_{AB}\}_{K_{BS}}\}_{K_{AS}})$}\\
61
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1239
 $S$ sends $A$ : $\{K_{AB}\}_{K_{AS}}$ \bl{$\wedge$} $\{\{K_{AB}\}_{K_{BS}}\}_{K_{AS}}$\\
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1240
  $A$ sends $B$ : $\{K_{AB}\}_{K_{BS}}$\\
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1241
  $A$ sends $B$ : $\{m\}_{K_{AB}}$
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1242
  \end{tabular}}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1243
  \end{center}\bigskip\pause
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1244
  
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1245
  
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1246
  \bl{$\Gamma \vdash B \,\text{says} \, m$}?
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1247
  \end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
  1248
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%      
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1249
\end{document}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1250
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1251
%%% Local Variables:  
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1252
%%% mode: latex
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1253
%%% TeX-master: t
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1254
%%% End: 
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
  1255