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