author | Christian Urban <urbanc@in.tum.de> |
Thu, 10 Jan 2019 13:00:04 +0000 | |
changeset 295 | fa6f654cbc13 |
parent 285 | 447b433b67fa |
permissions | -rw-r--r-- |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
1 |
(*<*) |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
2 |
theory Slides2 |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
3 |
imports "../thys/UTM" "../thys/Abacus_Defs" |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
4 |
begin |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
5 |
declare [[show_question_marks = false]] |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
6 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
7 |
hide_const (open) s |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
8 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
9 |
abbreviation |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
10 |
"update2 p a \<equiv> update a p" |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
11 |
|
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
12 |
notation (Rule output) |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
13 |
"==>" ("\<^raw:\mbox{}\inferrule{\mbox{>_\<^raw:}}>\<^raw:{\mbox{>_\<^raw:}}>") |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
14 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
15 |
syntax (Rule output) |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
16 |
"_bigimpl" :: "asms \<Rightarrow> prop \<Rightarrow> prop" |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
17 |
("\<^raw:\mbox{}\inferrule{>_\<^raw:}>\<^raw:{\mbox{>_\<^raw:}}>") |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
18 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
19 |
"_asms" :: "prop \<Rightarrow> asms \<Rightarrow> asms" |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
20 |
("\<^raw:\mbox{>_\<^raw:}\\>/ _") |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
21 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
22 |
"_asm" :: "prop \<Rightarrow> asms" ("\<^raw:\mbox{>_\<^raw:}>") |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
23 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
24 |
notation (Axiom output) |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
25 |
"Trueprop" ("\<^raw:\mbox{}\inferrule{\mbox{}}{\mbox{>_\<^raw:}}>") |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
26 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
27 |
notation (IfThen output) |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
28 |
"==>" ("\<^raw:{\normalsize{}>If\<^raw:\,}> _/ \<^raw:{\normalsize \,>then\<^raw:\,}>/ _.") |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
29 |
syntax (IfThen output) |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
30 |
"_bigimpl" :: "asms \<Rightarrow> prop \<Rightarrow> prop" |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
31 |
("\<^raw:{\normalsize{}>If\<^raw:\,}> _ /\<^raw:{\normalsize \,>then\<^raw:\,}>/ _.") |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
32 |
"_asms" :: "prop \<Rightarrow> asms \<Rightarrow> asms" ("\<^raw:\mbox{>_\<^raw:}> /\<^raw:{\normalsize \,>and\<^raw:\,}>/ _") |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
33 |
"_asm" :: "prop \<Rightarrow> asms" ("\<^raw:\mbox{>_\<^raw:}>") |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
34 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
35 |
notation (IfThenNoBox output) |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
36 |
"==>" ("\<^raw:{\normalsize{}>If\<^raw:\,}> _/ \<^raw:{\normalsize \,>then\<^raw:\,}>/ _.") |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
37 |
syntax (IfThenNoBox output) |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
38 |
"_bigimpl" :: "asms \<Rightarrow> prop \<Rightarrow> prop" |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
39 |
("\<^raw:{\normalsize{}>If\<^raw:\,}> _ /\<^raw:{\normalsize \,>then\<^raw:\,}>/ _.") |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
40 |
"_asms" :: "prop \<Rightarrow> asms \<Rightarrow> asms" ("_ /\<^raw:{\normalsize \,>and\<^raw:\,}>/ _") |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
41 |
"_asm" :: "prop \<Rightarrow> asms" ("_") |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
42 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
43 |
context uncomputable |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
44 |
begin |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
45 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
46 |
notation (latex output) |
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
47 |
Cons ("_::_" [48,47] 68) and |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
48 |
append ("_@_" [65, 64] 65) and |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
49 |
Oc ("1") and |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
50 |
Bk ("0") and |
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
51 |
exponent ("_\<^bsup>_\<^esup>" [107] 109) and |
285
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
52 |
inv_begin0 ("I\<^sub>0") and |
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
53 |
inv_begin1 ("I\<^sub>1") and |
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
54 |
inv_begin2 ("I\<^sub>2") and |
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
55 |
inv_begin3 ("I\<^sub>3") and |
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
56 |
inv_begin4 ("I\<^sub>4") and |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
57 |
inv_begin ("I\<^bsub>cbegin\<^esub>") and |
285
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
58 |
inv_loop1 ("J\<^sub>1") and |
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
59 |
inv_loop0 ("J\<^sub>0") and |
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
60 |
inv_end1 ("K\<^sub>1") and |
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
61 |
inv_end0 ("K\<^sub>0") and |
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
62 |
recf.id ("Id\<^raw:\makebox[0mm]{\,\,\,\,>\<^sup>_\<^raw:}>\<^sub>_") and |
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
63 |
Pr ("Pr\<^sup>_") and |
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
64 |
Cn ("Cn\<^sup>_") and |
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
65 |
Mn ("Mn\<^sup>_") and |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
66 |
tcopy ("copy") and |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
67 |
tcontra ("contra") and |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
68 |
tape_of ("\<langle>_\<rangle>") and |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
69 |
code_tcontra ("code contra") and |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
70 |
tm_comp ("_ ; _") |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
71 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
72 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
73 |
lemma inv_begin_print: |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
74 |
shows "s = 0 \<Longrightarrow> inv_begin n (s, tp) = inv_begin0 n tp" and |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
75 |
"s = 1 \<Longrightarrow> inv_begin n (s, tp) = inv_begin1 n tp" and |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
76 |
"s = 2 \<Longrightarrow> inv_begin n (s, tp) = inv_begin2 n tp" and |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
77 |
"s = 3 \<Longrightarrow> inv_begin n (s, tp) = inv_begin3 n tp" and |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
78 |
"s = 4 \<Longrightarrow> inv_begin n (s, tp) = inv_begin4 n tp" and |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
79 |
"s \<notin> {0,1,2,3,4} \<Longrightarrow> inv_begin n (s, l, r) = False" |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
80 |
apply(case_tac [!] tp) |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
81 |
by (auto) |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
82 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
83 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
84 |
lemma inv1: |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
85 |
shows "0 < (n::nat) \<Longrightarrow> Turing_Hoare.assert_imp (inv_begin0 n) (inv_loop1 n)" |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
86 |
unfolding Turing_Hoare.assert_imp_def |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
87 |
unfolding inv_loop1.simps inv_begin0.simps |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
88 |
apply(auto) |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
89 |
apply(rule_tac x="1" in exI) |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
90 |
apply(auto simp add: replicate.simps) |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
91 |
done |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
92 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
93 |
lemma inv2: |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
94 |
shows "0 < n \<Longrightarrow> inv_loop0 n = inv_end1 n" |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
95 |
apply(rule ext) |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
96 |
apply(case_tac x) |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
97 |
apply(simp add: inv_end1.simps) |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
98 |
done |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
99 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
100 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
101 |
lemma measure_begin_print: |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
102 |
shows "s = 2 \<Longrightarrow> measure_begin_step (s, l, r) = length r" and |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
103 |
"s = 3 \<Longrightarrow> measure_begin_step (s, l, r) = (if r = [] \<or> r = [Bk] then 1 else 0)" and |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
104 |
"s = 4 \<Longrightarrow> measure_begin_step (s, l, r) = length l" and |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
105 |
"s \<notin> {2,3,4} \<Longrightarrow> measure_begin_step (s, l, r) = 0" |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
106 |
by (simp_all) |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
107 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
108 |
lemma inv_begin01: |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
109 |
assumes "n > 1" |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
110 |
shows "inv_begin0 n (l, r) = (n > 1 \<and> (l, r) = (Oc \<up> (n - 2), [Oc, Oc, Bk, Oc]))" |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
111 |
using assms by auto |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
112 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
113 |
lemma inv_begin02: |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
114 |
assumes "n = 1" |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
115 |
shows "inv_begin0 n (l, r) = (n = 1 \<and> (l, r) = ([], [Bk, Oc, Bk, Oc]))" |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
116 |
using assms by auto |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
117 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
118 |
(*>*) |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
119 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
120 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
121 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
122 |
text_raw {* |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
123 |
\renewcommand{\slidecaption}{ITP, 24 July 2013} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
124 |
\newcommand{\bl}[1]{#1} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
125 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
126 |
\mode<presentation>{ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
127 |
\begin{frame} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
128 |
\frametitle{% |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
129 |
\begin{tabular}{@ {}c@ {}} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
130 |
\\[-3mm] |
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
131 |
{\fontsize{20}{20}\selectfont{}Mechanising Turing Machines and}\\[-2mm] |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
132 |
{\fontsize{20}{20}\selectfont{}Computability Theory in Isabelle}\\[-3mm] |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
133 |
\end{tabular}} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
134 |
|
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
135 |
\bigskip\medskip\medskip |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
136 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
137 |
\begin{center} |
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
138 |
\begin{tabular}{c@ {\hspace{1cm}}c} |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
139 |
\includegraphics[scale=0.29]{jian.jpg} & |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
140 |
\includegraphics[scale=0.034]{xingyuan.jpg} \\ |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
141 |
Jian Xu & Xingyuan Zhang\\[-3mm] |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
142 |
\end{tabular}\\[3mm] |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
143 |
\small PLA University of Science and Technology |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
144 |
\end{center} |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
145 |
|
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
146 |
\begin{center} |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
147 |
Christian Urban\\[0mm] |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
148 |
\small King's College London |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
149 |
\end{center} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
150 |
\end{frame}} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
151 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
152 |
*} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
153 |
|
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
154 |
|
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
155 |
text_raw {* |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
156 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
157 |
\mode<presentation>{ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
158 |
\begin{frame}[c] |
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
159 |
\frametitle{Why Turing Machines?}% |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
160 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
161 |
\begin{itemize} |
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
162 |
\item At the beginning, it was just a student project |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
163 |
about computability.\smallskip |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
164 |
|
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
165 |
\begin{center} |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
166 |
\begin{tabular}{c} |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
167 |
\includegraphics[scale=0.3]{boolos.jpg}\\[-2mm] |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
168 |
\footnotesize Computability and Logic (5th.~ed)\\[-2mm] |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
169 |
\footnotesize Boolos, Burgess and Jeffrey\\[2mm] |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
170 |
\end{tabular} |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
171 |
\end{center} |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
172 |
|
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
173 |
\item found an inconsistency in the definition of halting computations |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
174 |
(Chap.~3 vs Chap.~8) |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
175 |
\end{itemize} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
176 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
177 |
\end{frame}} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
178 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
179 |
*} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
180 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
181 |
text_raw {* |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
182 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
183 |
\mode<presentation>{ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
184 |
\begin{frame}[c] |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
185 |
\frametitle{Some Previous Works}% |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
186 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
187 |
\begin{itemize} |
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
188 |
\item Norrish formalised computability theory in HOL starting |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
189 |
from the lambda-calculus\smallskip |
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
190 |
\begin{itemize} |
279
98b3b769ec9a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
191 |
\item \textcolor{gray}{for technical reasons we could not follow his work} |
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
192 |
\item \textcolor{gray}{some proofs use TMs (Wang tilings)} |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
193 |
\end{itemize} |
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
194 |
\bigskip |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
195 |
|
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
196 |
\item Asperti and Ricciotti formalised TMs in Matita\smallskip |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
197 |
\begin{itemize} |
276
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
198 |
\item \textcolor{gray}{no undecidability result $\Rightarrow$ interest in complexity} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
199 |
\item \textcolor{gray}{their UTM operates on a different alphabet than the TMs it simulates} |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
200 |
\begin{quote} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
201 |
\textcolor{gray}{"In particular, the fact that the universal machine operates with a different |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
202 |
alphabet with respect to the machines it simulates is annoying." [Asperti and Ricciotti]} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
203 |
\end{quote} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
204 |
\end{itemize} |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
205 |
\end{itemize} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
206 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
207 |
\end{frame}} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
208 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
209 |
*} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
210 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
211 |
text_raw {* |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
212 |
\tikzstyle{every node}=[node distance=25mm,text height=1.5ex, text depth=.25ex] |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
213 |
\tikzstyle{node1}=[rectangle, minimum size=12mm, rounded corners=3mm, very thick, |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
214 |
draw=black!50, top color=white, bottom color=black!20] |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
215 |
\tikzstyle{node2}=[rectangle, minimum size=12mm, rounded corners=3mm, very thick, |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
216 |
draw=red!70, top color=white, bottom color=red!50!black!20] |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
217 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
218 |
\mode<presentation>{ |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
219 |
\begin{frame}[c] |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
220 |
\frametitle{The Big Picture}% |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
221 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
222 |
\begin{center} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
223 |
\begin{tikzpicture} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
224 |
\matrix[ampersand replacement=\&,column sep=13mm, row sep=5mm] |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
225 |
{ \node (def1) [node1] {\large\hspace{1mm}TMs\hspace{1mm}\mbox{}}; \& |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
226 |
\node (proof1) [node1] {\begin{tabular}{c}Register\\Machines\end{tabular}}; \& |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
227 |
\node (alg1) [node1] {\begin{tabular}{c}Recursive\\ Functions\end{tabular}}; \\ |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
228 |
}; |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
229 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
230 |
\draw[->,black!50,line width=2mm] (proof1) -- (def1); |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
231 |
\draw[<-,black!50,line width=2mm] (proof1) -- (alg1); |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
232 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
233 |
\end{tikzpicture} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
234 |
\end{center} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
235 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
236 |
\only<2->{ |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
237 |
\begin{textblock}{3}(8.3,4.0) |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
238 |
\begin{tikzpicture} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
239 |
\node at (0,0) [single arrow, shape border rotate=270, fill=black!50,text=white]{}; |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
240 |
\draw (0,1) node {\begin{tabular}{l}verified\\[-1mm] translator\end{tabular}}; |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
241 |
\end{tikzpicture} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
242 |
\end{textblock} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
243 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
244 |
\begin{textblock}{3}(3.1,4.0) |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
245 |
\begin{tikzpicture} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
246 |
\node at (0,0) [single arrow, shape border rotate=270, fill=black!50,text=white]{}; |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
247 |
\draw (0,1) node {\begin{tabular}{l}verified\\[-1mm] translator\end{tabular}}; |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
248 |
\end{tikzpicture} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
249 |
\end{textblock}} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
250 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
251 |
\only<3->{ |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
252 |
\begin{textblock}{4}(10.9,9.4) |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
253 |
\begin{tikzpicture} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
254 |
\draw (0,0) node {\begin{tabular}{l}UF\end{tabular}}; |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
255 |
\end{tikzpicture} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
256 |
\end{textblock} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
257 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
258 |
\begin{textblock}{3}(1,10.0) |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
259 |
\begin{tikzpicture} |
277
c6aa1be1033a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
276
diff
changeset
|
260 |
\draw (0,0) node {\small\begin{tabular}{l}undecidability\\of the halting\\ problem\end{tabular}}; |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
261 |
\end{tikzpicture} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
262 |
\end{textblock}} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
263 |
|
274
6bf48979a72e
new version
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
273
diff
changeset
|
264 |
\only<4->{ |
6bf48979a72e
new version
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
273
diff
changeset
|
265 |
\begin{textblock}{4}(4.2,12.4) |
6bf48979a72e
new version
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
273
diff
changeset
|
266 |
\begin{tikzpicture} |
279
98b3b769ec9a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
267 |
\draw (0,0) node {\begin{tabular}{l}a correct UTM by translation\end{tabular}}; |
274
6bf48979a72e
new version
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
273
diff
changeset
|
268 |
\end{tikzpicture} |
6bf48979a72e
new version
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
273
diff
changeset
|
269 |
\end{textblock}} |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
270 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
271 |
\end{frame}} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
272 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
273 |
*} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
274 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
275 |
text_raw {* |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
276 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
277 |
\mode<presentation>{ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
278 |
\begin{frame}[c] |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
279 |
\frametitle{Turing Machines}% |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
280 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
281 |
\begin{itemize} |
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
282 |
\item tapes are lists and contain @{text 0}s or @{text 1}s only |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
283 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
284 |
\begin{center} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
285 |
\begin{tikzpicture}[scale=1] |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
286 |
\draw[very thick] (-3.0,0) -- ( 3.0,0); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
287 |
\draw[very thick] (-3.0,0.5) -- ( 3.0,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
288 |
\draw[very thick] (-0.25,0) -- (-0.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
289 |
\draw[very thick] ( 0.25,0) -- ( 0.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
290 |
\draw[very thick] (-0.75,0) -- (-0.75,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
291 |
\draw[very thick] ( 0.75,0) -- ( 0.75,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
292 |
\draw[very thick] (-1.25,0) -- (-1.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
293 |
\draw[very thick] ( 1.25,0) -- ( 1.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
294 |
\draw[very thick] (-1.75,0) -- (-1.75,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
295 |
\draw[very thick] ( 1.75,0) -- ( 1.75,0.5); |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
296 |
\draw[very thick] ( 3.0,0) -- ( 3.0,0.5); |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
297 |
\draw[very thick] (-3.0,0) -- (-3.0,0.5); |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
298 |
\draw[rounded corners=1mm] (-0.35,-0.1) rectangle (0.35,0.6); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
299 |
\draw[fill] (1.35,0.1) rectangle (1.65,0.4); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
300 |
\draw[fill] (0.85,0.1) rectangle (1.15,0.4); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
301 |
\draw[fill] (-0.35,0.1) rectangle (-0.65,0.4); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
302 |
\draw[fill] (-1.65,0.1) rectangle (-1.35,0.4); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
303 |
\draw (-0.25,0.8) -- (-0.25,-0.8); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
304 |
\draw[<->] (-1.25,-0.7) -- (0.75,-0.7); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
305 |
\node [anchor=base] at (-0.85,-0.5) {\small left list\;\;\;\;\mbox{}}; |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
306 |
\node [anchor=base] at (0.40,-0.5) {\small \mbox{}\;\;\;\;right list}; |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
307 |
\node [anchor=base] at (0.1,0.7) {\small \;\;head}; |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
308 |
\node [anchor=base] at (-2.2,0.2) {\ldots}; |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
309 |
\node [anchor=base] at ( 2.3,0.2) {\ldots}; |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
310 |
\end{tikzpicture} |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
311 |
\end{center}\pause |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
312 |
|
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
313 |
\item @{text steps} function: |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
314 |
|
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
315 |
\begin{quote}\rm |
277
c6aa1be1033a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
276
diff
changeset
|
316 |
What does the TM calculate after it has executed @{text n} steps? |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
317 |
\end{quote}\pause |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
318 |
|
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
319 |
\item designate the @{text 0}-state as "halting state" and remain there |
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
320 |
forever, i.e.~have a @{text Nop}-action |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
321 |
\end{itemize} |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
322 |
|
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
323 |
\end{frame}} |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
324 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
325 |
*} |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
326 |
|
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
327 |
text_raw {* |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
328 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
329 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
330 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
331 |
\mode<presentation>{ |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
332 |
\begin{frame}[c] |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
333 |
\frametitle{Register Machines}% |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
334 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
335 |
\begin{itemize} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
336 |
\item programs are lists of instructions |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
337 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
338 |
\begin{center} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
339 |
\begin{tabular}{@ {}rcl@ {\hspace{8mm}}l} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
340 |
@{text "I"} & $::=$ & @{term "Goto L\<iota>"} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
341 |
& \textcolor{black!60}{jump to instruction @{text L}}\\[1mm] |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
342 |
& $\mid$ & @{term "Inc R\<iota>"} & \textcolor{black!60}{increment register @{text "R"} by one}\\[1mm] |
279
98b3b769ec9a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
343 |
& $\mid$ & @{term "Dec R\<iota> L\<iota>"} & \textcolor{black!60}{if the content of @{text R} is non-zero,}\\ |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
344 |
& & & \textcolor{black!60}{then decrement it by one}\\ |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
345 |
& & & \textcolor{black!60}{otherwise jump to instruction @{text L}} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
346 |
\end{tabular} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
347 |
\end{center} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
348 |
\end{itemize} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
349 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
350 |
\only<2->{ |
278
acc752cef1e7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
277
diff
changeset
|
351 |
\begin{textblock}{4}(0.3,11.8) |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
352 |
\begin{tikzpicture} |
278
acc752cef1e7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
277
diff
changeset
|
353 |
\node[ellipse callout, fill=red, callout absolute pointer={(-0.2,1)}] |
acc752cef1e7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
277
diff
changeset
|
354 |
at (0, 0){\large\fontspec{Chalkduster}\textcolor{yellow}{Spaghetti Code!}}; |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
355 |
\end{tikzpicture} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
356 |
\end{textblock}} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
357 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
358 |
\end{frame}} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
359 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
360 |
*} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
361 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
362 |
text_raw {* |
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
363 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
364 |
\mode<presentation>{ |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
365 |
\begin{frame}[c] |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
366 |
\frametitle{Recursive Functions}% |
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
367 |
|
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
368 |
\begin{itemize} |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
369 |
\item[] |
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
370 |
\begin{center} |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
371 |
\begin{tabular}{@ {}rcl@ {\hspace{8mm}}l} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
372 |
@{text "rec"} & $::=$ & @{term "Z"} & \textcolor{black!60}{zero-function}\\[1mm] |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
373 |
& $\mid$ & @{term "S"} & \textcolor{black!60}{successor-function}\\[1mm] |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
374 |
& $\mid$ & @{term "id n m"} & \textcolor{black!60}{projection}\\[1mm] |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
375 |
& $\mid$ & @{term "Cn n f gs"} & \textcolor{black!60}{composition}\\[1mm] |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
376 |
& $\mid$ & @{term "Pr n f g"} & \textcolor{black!60}{primitive recursion}\\[1mm] |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
377 |
& $\mid$ & @{term "Mn n f"} & \textcolor{black!60}{minimisation} |
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
378 |
\end{tabular} |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
379 |
\end{center}\bigskip |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
380 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
381 |
\item @{text "eval :: rec \<Rightarrow> nat list \<Rightarrow> nat"}\\ |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
382 |
can be defined by simple recursion\\ (HOL has @{term "Least"}) |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
383 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
384 |
\item \small you define |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
385 |
\begin{itemize} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
386 |
\item addition, multiplication, logical operations, quantifiers\ldots |
279
98b3b769ec9a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
387 |
\item coding of numbers (Cantor encoding), UF |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
388 |
\end{itemize} |
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
389 |
|
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
390 |
\end{itemize} |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
391 |
|
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
392 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
393 |
\end{frame}} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
394 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
395 |
*} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
396 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
397 |
text_raw {* |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
398 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
399 |
\mode<presentation>{ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
400 |
\begin{frame}[c] |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
401 |
\frametitle{Copy Turing Machine}% |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
402 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
403 |
\begin{itemize} |
279
98b3b769ec9a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
404 |
\item TM that copies a number on the input tape |
98b3b769ec9a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
405 |
\begin{center} |
98b3b769ec9a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
406 |
@{text "copy \<equiv> cbegin ; cloop ; cend"} |
98b3b769ec9a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
407 |
\end{center}\smallskip |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
408 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
409 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
410 |
\begin{center} |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
411 |
\begin{tikzpicture}[scale=0.7] |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
412 |
\node [anchor=base] at (2.2,0.1) {\small$\Rightarrow$}; |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
413 |
\node [anchor=base] at (5.6,0.1) {\small$\Rightarrow$}; |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
414 |
\node [anchor=base] at (10.5,0.1) {\small$\Rightarrow$}; |
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
415 |
\node [anchor=base] at (2.2,-0.8) {\small$\overbrace{@{text cbegin}}^{}$}; |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
416 |
\node [anchor=base] at (5.6,-0.8) {\small$\overbrace{@{text cloop}}^{}$}; |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
417 |
\node [anchor=base] at (10.5,-0.8) {\small$\overbrace{@{text cend}}^{}$}; |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
418 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
419 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
420 |
\begin{scope}[shift={(0.5,0)}] |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
421 |
\draw[very thick] (-0.25,0) -- ( 1.25,0); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
422 |
\draw[very thick] (-0.25,0.5) -- ( 1.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
423 |
\draw[very thick] (-0.25,0) -- (-0.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
424 |
\draw[very thick] ( 0.25,0) -- ( 0.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
425 |
\draw[very thick] ( 0.75,0) -- ( 0.75,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
426 |
\draw[very thick] ( 1.25,0) -- ( 1.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
427 |
\draw[rounded corners=1mm] (-0.35,-0.1) rectangle (0.35,0.6); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
428 |
\draw[fill] (-0.15,0.1) rectangle (0.15,0.4); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
429 |
\draw[fill] ( 0.35,0.1) rectangle (0.65,0.4); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
430 |
\draw[fill] ( 0.85,0.1) rectangle (1.15,0.4); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
431 |
\end{scope} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
432 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
433 |
\begin{scope}[shift={(2.9,0)}] |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
434 |
\draw[very thick] (-0.25,0) -- ( 2.25,0); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
435 |
\draw[very thick] (-0.25,0.5) -- ( 2.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
436 |
\draw[very thick] (-0.25,0) -- (-0.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
437 |
\draw[very thick] ( 0.25,0) -- ( 0.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
438 |
\draw[very thick] ( 0.75,0) -- ( 0.75,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
439 |
\draw[very thick] ( 1.25,0) -- ( 1.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
440 |
\draw[very thick] ( 1.75,0) -- ( 1.75,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
441 |
\draw[very thick] ( 2.25,0) -- ( 2.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
442 |
\draw[rounded corners=1mm] (0.15,-0.1) rectangle (0.85,0.6); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
443 |
\draw[fill] (-0.15,0.1) rectangle (0.15,0.4); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
444 |
\draw[fill] ( 0.35,0.1) rectangle (0.65,0.4); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
445 |
\draw[fill] ( 0.85,0.1) rectangle (1.15,0.4); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
446 |
\draw[fill] ( 1.85,0.1) rectangle (2.15,0.4); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
447 |
\end{scope} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
448 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
449 |
\begin{scope}[shift={(6.8,0)}] |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
450 |
\draw[very thick] (-0.75,0) -- ( 3.25,0); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
451 |
\draw[very thick] (-0.75,0.5) -- ( 3.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
452 |
\draw[very thick] (-0.75,0) -- (-0.75,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
453 |
\draw[very thick] (-0.25,0) -- (-0.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
454 |
\draw[very thick] ( 0.25,0) -- ( 0.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
455 |
\draw[very thick] ( 0.75,0) -- ( 0.75,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
456 |
\draw[very thick] ( 1.25,0) -- ( 1.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
457 |
\draw[very thick] ( 1.75,0) -- ( 1.75,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
458 |
\draw[very thick] ( 2.25,0) -- ( 2.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
459 |
\draw[very thick] ( 2.75,0) -- ( 2.75,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
460 |
\draw[very thick] ( 3.25,0) -- ( 3.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
461 |
\draw[rounded corners=1mm] (-0.35,-0.1) rectangle (0.35,0.6); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
462 |
\draw[fill] (-0.15,0.1) rectangle (0.15,0.4); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
463 |
\draw[fill] ( 2.35,0.1) rectangle (2.65,0.4); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
464 |
\draw[fill] ( 2.85,0.1) rectangle (3.15,0.4); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
465 |
\draw[fill] ( 1.85,0.1) rectangle (2.15,0.4); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
466 |
\end{scope} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
467 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
468 |
\begin{scope}[shift={(11.7,0)}] |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
469 |
\draw[very thick] (-0.75,0) -- ( 3.25,0); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
470 |
\draw[very thick] (-0.75,0.5) -- ( 3.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
471 |
\draw[very thick] (-0.75,0) -- (-0.75,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
472 |
\draw[very thick] (-0.25,0) -- (-0.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
473 |
\draw[very thick] ( 0.25,0) -- ( 0.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
474 |
\draw[very thick] ( 0.75,0) -- ( 0.75,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
475 |
\draw[very thick] ( 1.25,0) -- ( 1.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
476 |
\draw[very thick] ( 1.75,0) -- ( 1.75,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
477 |
\draw[very thick] ( 2.25,0) -- ( 2.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
478 |
\draw[very thick] ( 2.75,0) -- ( 2.75,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
479 |
\draw[very thick] ( 3.25,0) -- ( 3.25,0.5); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
480 |
\draw[rounded corners=1mm] (-0.35,-0.1) rectangle (0.35,0.6); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
481 |
\draw[fill] (-0.15,0.1) rectangle (0.15,0.4); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
482 |
\draw[fill] ( 2.35,0.1) rectangle (2.65,0.4); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
483 |
\draw[fill] ( 2.85,0.1) rectangle (3.15,0.4); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
484 |
\draw[fill] ( 1.85,0.1) rectangle (2.15,0.4); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
485 |
\draw[fill] ( 0.35,0.1) rectangle (0.65,0.4); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
486 |
\draw[fill] ( 0.85,0.1) rectangle (1.15,0.4); |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
487 |
\end{scope} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
488 |
\end{tikzpicture} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
489 |
\end{center}\bigskip |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
490 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
491 |
\footnotesize |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
492 |
\begin{center} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
493 |
\begin{tabular}{@ {\hspace{-8mm}}c@ {\hspace{2mm}}c@ {\hspace{2mm}}c} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
494 |
\begin{tabular}[t]{@ {}l@ {}} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
495 |
@{text cbegin} @{text "\<equiv>"}\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
496 |
\hspace{2mm}@{text "["}@{text "(W\<^bsub>0\<^esub>, 0), (R, 2), (R, 3),"}\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
497 |
\hspace{2mm}\phantom{@{text "["}}@{text "(R, 2), (W\<^bsub>1\<^esub>, 3), (L, 4),"}\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
498 |
\hspace{2mm}\phantom{@{text "["}}@{text "(L, 4), (L, 0)"}@{text "]"} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
499 |
\end{tabular} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
500 |
& |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
501 |
\begin{tabular}[t]{@ {}l@ {}} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
502 |
@{text cloop} @{text "\<equiv>"}\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
503 |
\hspace{2mm}@{text "["}@{text "(R, 0), (R, 2), (R, 3),"}\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
504 |
\hspace{2mm}\phantom{@{text "["}}@{text "(W\<^bsub>0\<^esub>, 2), (R, 3), (R, 4),"}\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
505 |
\hspace{2mm}\phantom{@{text "["}}@{text "(W\<^bsub>1\<^esub>, 5), (R, 4), (L, 6),"}\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
506 |
\hspace{2mm}\phantom{@{text "["}}@{text "(L, 5), (L, 6), (L, 1)"}@{text "]"} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
507 |
\end{tabular} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
508 |
& |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
509 |
\begin{tabular}[t]{@ {}l@ {}} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
510 |
@{text cend} @{text "\<equiv>"}\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
511 |
\hspace{2mm}@{text "["}@{text "(L, 0), (R, 2), (W\<^bsub>1\<^esub>, 3),"}\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
512 |
\hspace{2mm}\phantom{@{text "["}}@{text "(L, 4), (R, 2), (R, 2),"}\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
513 |
\hspace{2mm}\phantom{@{text "["}}@{text "(L, 5), (W\<^bsub>0\<^esub>, 4), (R, 0),"}\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
514 |
\hspace{2mm}\phantom{@{text "["}}@{text "(L, 5)"}@{text "]"} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
515 |
\end{tabular} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
516 |
\end{tabular} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
517 |
\end{center} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
518 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
519 |
\end{itemize} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
520 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
521 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
522 |
\end{frame}} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
523 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
524 |
*} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
525 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
526 |
text_raw {* |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
527 |
\definecolor{mygrey}{rgb}{.80,.80,.80} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
528 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
529 |
\mode<presentation>{ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
530 |
\begin{frame}[c] |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
531 |
\frametitle{Hoare Logic for TMs}% |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
532 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
533 |
\begin{itemize} |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
534 |
\item Hoare-triples\onslide<2>{ and Hoare-pairs:} |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
535 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
536 |
\small |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
537 |
\begin{center} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
538 |
\begin{tabular}{@ {\hspace{-6mm}}c@ {\hspace{-3mm}}c@ {}} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
539 |
\begin{tabular}[t]{@ {}l@ {}} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
540 |
\colorbox{mygrey}{@{thm (lhs) Hoare_halt_def}} @{text "\<equiv>"}\\[1mm] |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
541 |
\hspace{5mm}@{text "\<forall>"}@{term "tp"}.\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
542 |
\hspace{7mm}if @{term "P tp"} holds then\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
543 |
\hspace{7mm}@{text "\<exists>"}@{term n}. such that\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
544 |
\hspace{7mm}@{text "is_final (steps (1, tp) p n)"} \hspace{1mm}@{text "\<and>"}\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
545 |
\hspace{7mm}@{text "Q holds_for (steps (1, tp) p n)"} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
546 |
\end{tabular} & |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
547 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
548 |
\onslide<2>{ |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
549 |
\begin{tabular}[t]{@ {}l@ {}} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
550 |
\colorbox{mygrey}{@{thm (lhs) Hoare_unhalt_def}} @{text "\<equiv>"}\\[1mm] |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
551 |
\hspace{5mm}@{text "\<forall>"}@{term "tp"}.\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
552 |
\hspace{7mm}if @{term "P tp"} holds then\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
553 |
\hspace{7mm}@{text "\<forall>"}@{term n}. @{text "\<not> is_final (steps (1, tp) p n)"} |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
554 |
\end{tabular}} |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
555 |
\end{tabular} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
556 |
\end{center} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
557 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
558 |
\end{itemize} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
559 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
560 |
\end{frame}} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
561 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
562 |
*} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
563 |
|
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
564 |
(*<*) |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
565 |
lemmas HR1 = |
285
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
566 |
Hoare_plus_halt[where ?S.0="R\<iota>" and ?A="p\<^sub>1" and B="p\<^sub>2"] |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
567 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
568 |
lemmas HR2 = |
285
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
569 |
Hoare_plus_unhalt[where ?A="p\<^sub>1" and B="p\<^sub>2"] |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
570 |
(*>*) |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
571 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
572 |
text_raw {* |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
573 |
\definecolor{mygrey}{rgb}{.80,.80,.80} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
574 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
575 |
\mode<presentation>{ |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
576 |
\begin{frame}[c] |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
577 |
\frametitle{Some Derived Rules}% |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
578 |
\large |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
579 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
580 |
\begin{center} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
581 |
@{thm[mode=Rule] Hoare_consequence}\bigskip\bigskip\\ |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
582 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
583 |
\begin{tabular}{@ {\hspace{-5mm}}c@ {\hspace{4mm}}c@ {}} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
584 |
$\inferrule* |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
585 |
{@{thm (prem 1) HR1} \\ @{thm (prem 2) HR1}} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
586 |
{@{thm (concl) HR1}} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
587 |
$ & |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
588 |
$ |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
589 |
\inferrule* |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
590 |
{@{thm (prem 1) HR2} \\ @{thm (prem 2) HR2}} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
591 |
{@{thm (concl) HR2}} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
592 |
$ |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
593 |
\end{tabular} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
594 |
\end{center} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
595 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
596 |
\end{frame}} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
597 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
598 |
*} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
599 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
600 |
text_raw {* |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
601 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
602 |
\mode<presentation>{ |
275
55dc9ff45b73
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
274
diff
changeset
|
603 |
\begin{frame}[b] |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
604 |
\frametitle{Undecidability}% |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
605 |
|
275
55dc9ff45b73
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
274
diff
changeset
|
606 |
\begin{textblock}{7}(4,2.4) |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
607 |
@{thm tcontra_def} |
275
55dc9ff45b73
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
274
diff
changeset
|
608 |
\end{textblock} |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
609 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
610 |
\only<2>{ |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
611 |
\begin{itemize} |
280
19a4ac992823
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
279
diff
changeset
|
612 |
\item Suppose @{text H} decides @{text contra} called with the code |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
613 |
of @{text contra} halts, then\smallskip |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
614 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
615 |
\begin{center}\small |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
616 |
\begin{tabular}{@ {}l@ {}} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
617 |
\begin{tabular}[t]{@ {\hspace{-5mm}}l@ {}} |
285
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
618 |
@{term "P\<^sub>1 \<equiv> \<lambda>tp. tp = ([]::cell list, <code_tcontra>)"}\\ |
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
619 |
@{term "P\<^sub>2 \<equiv> \<lambda>tp. tp = ([Bk], <(code_tcontra, code_tcontra)>)"}\\ |
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
620 |
@{term "P\<^sub>3 \<equiv> \<lambda>tp. \<exists>k. tp = (Bk \<up> k, <0::nat>)"} |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
621 |
\end{tabular}\bigskip\bigskip |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
622 |
\\ |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
623 |
\begin{tabular}[b]{@ {\hspace{20mm}}l@ {}} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
624 |
$\inferrule*{ |
285
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
625 |
\inferrule*{@{term "{P\<^sub>1} tcopy {P\<^sub>2}"} \\ @{term "{P\<^sub>2} H {P\<^sub>3}"}} |
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
626 |
{@{term "{P\<^sub>1} (tcopy |+| H) {P\<^sub>3}"}} |
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
627 |
\\ @{term "{P\<^sub>3} dither \<up>"} |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
628 |
} |
285
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
629 |
{@{term "{P\<^sub>1} tcontra \<up>"}} |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
630 |
$ |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
631 |
\end{tabular} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
632 |
\end{tabular} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
633 |
\end{center} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
634 |
\end{itemize}} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
635 |
\only<3>{ |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
636 |
\begin{itemize} |
280
19a4ac992823
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
279
diff
changeset
|
637 |
\item Suppose @{text H} decides @{text contra} called with the code |
276
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
638 |
of @{text contra} does \emph{not} halt, then\\[-8mm]\mbox{} |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
639 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
640 |
\begin{center}\small |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
641 |
\begin{tabular}{@ {}l@ {}} |
276
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
642 |
\begin{tabular}[t]{@ {\hspace{-1mm}}l@ {}} |
285
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
643 |
@{term "Q\<^sub>1 \<equiv> \<lambda>tp. tp = ([]::cell list, <code_tcontra>)"}\\ |
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
644 |
@{term "Q\<^sub>2 \<equiv> \<lambda>tp. tp = ([Bk], <(code_tcontra, code_tcontra)>)"}\\ |
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
645 |
@{term "Q\<^sub>3 \<equiv> \<lambda>tp. \<exists>k. tp = (Bk \<up> k, <1::nat>)"} |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
646 |
\end{tabular}\bigskip\bigskip |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
647 |
\\ |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
648 |
\begin{tabular}[b]{@ {\hspace{20mm}}l@ {}} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
649 |
$\inferrule*{ |
285
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
650 |
\inferrule*{@{term "{Q\<^sub>1} tcopy {Q\<^sub>2}"} \\ @{term "{Q\<^sub>2} H {Q\<^sub>3}"}} |
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
651 |
{@{term "{Q\<^sub>1} (tcopy |+| H) {Q\<^sub>3}"}} |
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
652 |
\\ @{term "{Q\<^sub>3} dither {Q\<^sub>3}"} |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
653 |
} |
285
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
654 |
{@{term "{Q\<^sub>1} tcontra {Q\<^sub>3}"}} |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
655 |
$ |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
656 |
\end{tabular} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
657 |
\end{tabular} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
658 |
\end{center} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
659 |
\end{itemize}} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
660 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
661 |
\end{frame}} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
662 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
663 |
*} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
664 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
665 |
|
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
666 |
text_raw {* |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
667 |
\definecolor{mygrey}{rgb}{.80,.80,.80} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
668 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
669 |
\mode<presentation>{ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
670 |
\begin{frame}[c] |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
671 |
\frametitle{Hoare Reasoning}% |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
672 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
673 |
\begin{itemize} |
279
98b3b769ec9a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
674 |
\item reasoning is quite demanding, e.g.~the invariants |
98b3b769ec9a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
675 |
of the copy-machine:\\[-5mm]\mbox{} |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
676 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
677 |
\footnotesize |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
678 |
\begin{center} |
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
679 |
\begin{tabular}{@ {\hspace{-5mm}}c@ {}} |
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
680 |
\begin{tabular}{@ {}l@ {\hspace{1mm}}c@ {\hspace{1mm}}l@ {\hspace{-0.9cm}}l@ {}} |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
681 |
\hline |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
682 |
@{thm (lhs) inv_begin1.simps} & @{text "\<equiv>"} & @{thm (rhs) inv_begin1.simps} & (starting state)\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
683 |
@{thm (lhs) inv_begin2.simps} & @{text "\<equiv>"} & @{thm (rhs) inv_begin2.simps}\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
684 |
@{thm (lhs) inv_begin3.simps} & @{text "\<equiv>"} & @{thm (rhs) inv_begin3.simps}\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
685 |
@{thm (lhs) inv_begin4.simps} & @{text "\<equiv>"} & @{thm (rhs) inv_begin4.simps}\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
686 |
@{thm (lhs) inv_begin0.simps} & @{text "\<equiv>"} & @{thm (rhs) inv_begin01} @{text "\<or>"}& (halting state)\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
687 |
& & @{thm (rhs) inv_begin02}\smallskip \\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
688 |
\hline |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
689 |
@{thm (lhs) inv_loop1.simps} & @{text "\<equiv>"} & @{thm (rhs) inv_loop1_loop.simps} @{text "\<or>"}\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
690 |
& & @{thm (rhs) inv_loop1_exit.simps} & (starting state)\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
691 |
@{thm (lhs) inv_loop0.simps} & @{text "\<equiv>"} & @{thm (rhs) inv_loop0.simps}& (halting state)\smallskip\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
692 |
\hline |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
693 |
@{thm (lhs) inv_end1.simps} & @{text "\<equiv>"} & @{thm (rhs) inv_end1.simps} & (starting state)\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
694 |
@{thm (lhs) inv_end0.simps} & @{text "\<equiv>"} & @{thm (rhs) inv_end0.simps} & (halting state)\smallskip\\ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
695 |
\hline |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
696 |
\end{tabular} |
272
42f2c28d1ce6
new verison of the slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
271
diff
changeset
|
697 |
\end{tabular} |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
698 |
\end{center} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
699 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
700 |
\end{itemize} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
701 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
702 |
\end{frame}} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
703 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
704 |
*} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
705 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
706 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
707 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
708 |
text_raw {* |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
709 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
710 |
\mode<presentation>{ |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
711 |
\begin{frame}[c] |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
712 |
\frametitle{Midway Conclusion}% |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
713 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
714 |
\begin{itemize} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
715 |
\item feels awfully like reasoning about machine code |
279
98b3b769ec9a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
716 |
\item compositional constructions / reasoning is not at all frictionless |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
717 |
\item sizes |
274
6bf48979a72e
new version
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
273
diff
changeset
|
718 |
|
6bf48979a72e
new version
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
273
diff
changeset
|
719 |
\begin{center} |
6bf48979a72e
new version
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
273
diff
changeset
|
720 |
\begin{tabular}{ll} |
6bf48979a72e
new version
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
273
diff
changeset
|
721 |
& sizes:\smallskip\\ |
280
19a4ac992823
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
279
diff
changeset
|
722 |
UF & @{text 140843} constructors\\ |
276
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
723 |
URM & @{text 2} Mio instructions\\ |
274
6bf48979a72e
new version
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
273
diff
changeset
|
724 |
UTM & @{text 38} Mio states\\ |
6bf48979a72e
new version
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
273
diff
changeset
|
725 |
\end{tabular} |
276
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
726 |
\end{center}\smallskip\pause |
274
6bf48979a72e
new version
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
273
diff
changeset
|
727 |
|
6bf48979a72e
new version
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
273
diff
changeset
|
728 |
\item an observation: our treatment of recursive functions is a mini-version |
6bf48979a72e
new version
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
273
diff
changeset
|
729 |
of the work by\\ Myreen \& Owens about deeply embedding HOL |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
730 |
\end{itemize} |
274
6bf48979a72e
new version
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
273
diff
changeset
|
731 |
|
6bf48979a72e
new version
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
273
diff
changeset
|
732 |
\only<1>{ |
6bf48979a72e
new version
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
273
diff
changeset
|
733 |
\begin{textblock}{4}(2,13.9) |
6bf48979a72e
new version
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
273
diff
changeset
|
734 |
\begin{tikzpicture} |
6bf48979a72e
new version
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
273
diff
changeset
|
735 |
\draw (0,0) node {\small\begin{tabular}{l}$^\star$old version: |
276
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
736 |
URM (@{text 12} Mio) UTM (@{text 112} Mio)\end{tabular}}; |
274
6bf48979a72e
new version
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
273
diff
changeset
|
737 |
\end{tikzpicture} |
6bf48979a72e
new version
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
273
diff
changeset
|
738 |
\end{textblock}} |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
739 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
740 |
\end{frame}} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
741 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
742 |
*} |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
743 |
|
276
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
744 |
text_raw {* |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
745 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
746 |
\mode<presentation>{ |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
747 |
\begin{frame}[c] |
278
acc752cef1e7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
277
diff
changeset
|
748 |
\frametitle{\begin{tabular}{@ {}c@ {}}\Large Inspiration from other Works\end{tabular}}% |
276
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
749 |
|
278
acc752cef1e7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
277
diff
changeset
|
750 |
\onslide<3->{ |
276
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
751 |
\begin{itemize} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
752 |
\item Jensen, Benton, Kennedy ({\bf 2013}), |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
753 |
{\it High-Level Separation Logic for Low-Level Code}\medskip\\ |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
754 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
755 |
\item Myreen ({\bf 2008}), {\it Formal Verification of Machine-Code Programs}, |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
756 |
PhD thesis\medskip |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
757 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
758 |
\item Klein, Kolanski, Boyton ({\bf 2012}), {\it Mechanised Separation Algebra} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
759 |
|
278
acc752cef1e7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
277
diff
changeset
|
760 |
\end{itemize}} |
acc752cef1e7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
277
diff
changeset
|
761 |
|
acc752cef1e7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
277
diff
changeset
|
762 |
\only<2->{ |
acc752cef1e7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
277
diff
changeset
|
763 |
\begin{textblock}{4}(1.4,0.9) |
acc752cef1e7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
277
diff
changeset
|
764 |
\begin{tikzpicture} |
acc752cef1e7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
277
diff
changeset
|
765 |
\draw (0,0) node {\fontspec{Chalkduster}\textcolor{red!80}{\LARGE Stealing}}; |
acc752cef1e7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
277
diff
changeset
|
766 |
\end{tikzpicture} |
acc752cef1e7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
277
diff
changeset
|
767 |
\end{textblock}} |
276
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
768 |
\end{frame}} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
769 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
770 |
*} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
771 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
772 |
text_raw {* |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
773 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
774 |
\mode<presentation>{ |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
775 |
\begin{frame}[c] |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
776 |
\frametitle{Better Composability}% |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
777 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
778 |
\begin{itemize} |
279
98b3b769ec9a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
779 |
\item an idea from Jensen, Benton \& Kennedy who looked at X86 |
276
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
780 |
assembly programs and macros\bigskip |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
781 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
782 |
\item assembly for TMs:\medskip |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
783 |
\begin{center} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
784 |
\begin{tabular}{l} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
785 |
@{text "move_one_left"} @{text "\<equiv>"}\\ |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
786 |
\hspace{13mm} @{text "\<Lambda> exit."}\\ |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
787 |
\hspace{16mm} @{text "Inst (L, exit) (L, exit)"} @{text ";"}\\ |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
788 |
\hspace{16mm} @{text "Label exit"}\\ |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
789 |
\end{tabular} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
790 |
\end{center}\bigskip\bigskip |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
791 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
792 |
\begin{tabular}{l} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
793 |
$\Rightarrow$ represent "state" labels as functions\\ |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
794 |
\phantom{$\Rightarrow$} (with bound variables $\Rightarrow$ locality) |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
795 |
\end{tabular} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
796 |
\end{itemize} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
797 |
\end{frame}} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
798 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
799 |
*} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
800 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
801 |
text_raw {* |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
802 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
803 |
\mode<presentation>{ |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
804 |
\begin{frame}[c] |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
805 |
\frametitle{Better Composability}% |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
806 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
807 |
\begin{center} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
808 |
\begin{tabular}{@ {\hspace{-10mm}}l} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
809 |
@{text "move_left_until_zero"} @{text "\<equiv>"} \\ |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
810 |
\hspace{31mm} @{text "\<Lambda> start exit."}\\ |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
811 |
\hspace{36mm} @{text "Label start"} @{text ";"}\\ |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
812 |
\hspace{36mm} @{text "if_zero exit"} @{text ";"}\\ |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
813 |
\hspace{36mm} @{text "move_left"} @{text ";"}\\ |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
814 |
\hspace{36mm} @{text "jmp start"} @{text ";"}\\ |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
815 |
\hspace{36mm} @{text "Label exit"}\\ |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
816 |
\end{tabular} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
817 |
\end{center} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
818 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
819 |
\small |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
820 |
\begin{tabular}{l} |
285
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
821 |
@{text "if_zero e \<equiv> \<Lambda> exit. Inst (W\<^sub>0, e), (W\<^sub>1, exit); Label exit"}\\ |
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
822 |
\hspace{5mm}@{text "jmp e \<equiv> Inst (W\<^sub>0, e), (W\<^sub>1, e)"} |
276
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
823 |
\end{tabular} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
824 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
825 |
\end{frame}} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
826 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
827 |
*} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
828 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
829 |
text_raw {* |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
830 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
831 |
\mode<presentation>{ |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
832 |
\begin{frame}[c] |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
833 |
\frametitle{{\large The Trouble With Hoare-Triples}}% |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
834 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
835 |
\begin{itemize} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
836 |
\item Whenever we wanted to prove |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
837 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
838 |
\begin{center} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
839 |
\large @{text "{P} p {Q}"} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
840 |
\end{center}\bigskip\medskip |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
841 |
|
279
98b3b769ec9a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
842 |
\item[@{text "(1)"}] we had to find invariants for each state\\ \textcolor{gray}{(not easy)} |
98b3b769ec9a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
843 |
|
276
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
844 |
|
279
98b3b769ec9a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
845 |
|
98b3b769ec9a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
846 |
\item[@{text "(2)"}] we had to find a termination order proving that @{text p} terminates |
98b3b769ec9a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
847 |
\textcolor{gray}{(not easy either)} |
276
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
848 |
\end{itemize}\pause |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
849 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
850 |
\begin{center} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
851 |
\alert{very little opportunity for automation} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
852 |
\end{center} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
853 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
854 |
\end{frame}} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
855 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
856 |
*} |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
857 |
|
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
858 |
text_raw {* |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
859 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
860 |
\mode<presentation>{ |
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
861 |
\begin{frame}[c] |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
862 |
\frametitle{Separation Algebra}% |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
863 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
864 |
\begin{itemize} |
276
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
865 |
\item use some infrastructure introduced by Klein et al in Isabelle/HOL |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
866 |
\item and an idea by Myreen\bigskip\bigskip |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
867 |
|
276
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
868 |
\begin{center} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
869 |
\large @{text "\<lbrace>p\<rbrace> c \<lbrace>q\<rbrace>"}\bigskip\bigskip |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
870 |
\end{center} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
871 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
872 |
\item[] @{text "p, c, q"} will be assertions in a separation logic\pause |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
873 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
874 |
\begin{center} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
875 |
e.g.~~@{text "\<lbrace>st i \<star> hd n \<star> ones u v \<star> zero (v + 1)\<rbrace>"} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
876 |
\end{center} |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
877 |
\end{itemize} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
878 |
\end{frame}} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
879 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
880 |
*} |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
881 |
|
276
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
882 |
text_raw {* |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
883 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
884 |
\mode<presentation>{ |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
885 |
\begin{frame}[c] |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
886 |
\frametitle{Separation Triples}% |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
887 |
|
276
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
888 |
\Large |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
889 |
\begin{center} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
890 |
\begin{tabular}{l@ {\hspace{-10mm}}l} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
891 |
@{text "\<lbrace>p\<rbrace> c \<lbrace>q\<rbrace>"} @{text "\<equiv>"}\smallskip\\ |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
892 |
& @{text "\<forall> cf r."}\\ |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
893 |
& \hspace{3mm} @{text "(p \<star> c \<star> r) cf"} implies\\ |
280
19a4ac992823
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
279
diff
changeset
|
894 |
& \hspace{3mm} @{text "\<exists> k. "} @{text "(q \<star> c \<star> r) (steps k cf)"} |
276
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
895 |
\end{tabular} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
896 |
\end{center}\bigskip\bigskip |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
897 |
|
276
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
898 |
\normalsize |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
899 |
@{text "c"} can be\;\;\; @{text "i:[move_left_until_zero]:j"} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
900 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
901 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
902 |
\end{frame}} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
903 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
904 |
*} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
905 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
906 |
text_raw {* |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
907 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
908 |
\mode<presentation>{ |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
909 |
\begin{frame}[c] |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
910 |
\frametitle{Automation}% |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
911 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
912 |
\begin{itemize} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
913 |
\item we introduced some tactics for handling sequential programs\bigskip |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
914 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
915 |
\begin{center} |
285
447b433b67fa
added things --- in messy state
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
280
diff
changeset
|
916 |
@{text "\<lbrace>p\<rbrace> i:[c\<^sub>1 ; ... ; c\<^sub>n]:j \<lbrace>q\<rbrace>"} |
276
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
917 |
\end{center}\bigskip\bigskip |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
918 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
919 |
\item for loops we often only have to do inductions on the length |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
920 |
of the input (e.g.~how many @{text "1"}s are on the tape)\pause |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
921 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
922 |
\item these macros allow us to completely get rid of register machines |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
923 |
\end{itemize} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
924 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
925 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
926 |
\end{frame}} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
927 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
928 |
*} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
929 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
930 |
text_raw {* |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
931 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
932 |
\mode<presentation>{ |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
933 |
\begin{frame}[c] |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
934 |
\frametitle{Conclusion}% |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
935 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
936 |
\begin{itemize} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
937 |
\item What started out as a student project, turned out to be much more |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
938 |
fun than first thought.\bigskip |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
939 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
940 |
\item Where can you claim that you proved the correctness of |
279
98b3b769ec9a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
941 |
a @{text "38"} Mio instruction program? |
276
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
942 |
(ca.~@{text 7000} is the soa \raisebox{-1mm}{\includegraphics[scale=0.077]{smiley.jpg}}) |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
943 |
\bigskip |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
944 |
|
277
c6aa1be1033a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
276
diff
changeset
|
945 |
\item We learned a lot about current verification technology for low-level code |
279
98b3b769ec9a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
946 |
(we had no infrastructure: CPU model).\bigskip |
98b3b769ec9a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
947 |
|
98b3b769ec9a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
948 |
\item The existing literature on TMs \& RMs leave out quite a bit of the story |
98b3b769ec9a
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
278
diff
changeset
|
949 |
(not to mention contains bugs). |
276
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
950 |
\end{itemize} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
951 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
952 |
|
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
953 |
\end{frame}} |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
954 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
6f71b016cbe7
slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
275
diff
changeset
|
955 |
*} |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
956 |
|
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
957 |
(*<*) |
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
958 |
end |
273
fa021a0c6984
new slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
272
diff
changeset
|
959 |
end |
271
4457185b22ef
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
960 |
(*>*) |