annotate presentation/slide.html @ 115:d731f2d0947d

Add Makefile
author atton <atton@cr.ie.u-ryukyu.ac.jp>
date Mon, 13 Feb 2017 17:15:10 +0900
parents 5cca315b0230
children ed6719c301fc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 <!DOCTYPE html>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 <html>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 <head>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 <meta http-equiv="content-type" content="text/html;charset=utf-8">
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 <title>メタ計算を用いた Continuation based C の検証手法</title>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 <meta name="generator" content="Slide Show (S9) v2.5.0 on Ruby 2.3.3 (2016-11-21) [x86_64-darwin16]">
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 <meta name="author" content="Yasutaka Higa" >
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 <!-- style sheet links -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 <link rel="stylesheet" href="s6/themes/projection.css" media="screen,projection">
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 <link rel="stylesheet" href="s6/themes/screen.css" media="screen">
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 <link rel="stylesheet" href="s6/themes/print.css" media="print">
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 <link rel="stylesheet" href="s6/themes/blank.css" media="screen,projection">
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 <!-- JS -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 <script src="s6/js/jquery-1.11.3.min.js"></script>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 <script src="s6/js/jquery.slideshow.js"></script>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 <script src="s6/js/jquery.slideshow.counter.js"></script>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 <script src="s6/js/jquery.slideshow.controls.js"></script>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 <script src="s6/js/jquery.slideshow.footer.js"></script>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 <script src="s6/js/jquery.slideshow.autoplay.js"></script>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 <!-- prettify -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 <link rel="stylesheet" href="scripts/prettify.css">
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 <script src="scripts/prettify.js"></script>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 <script>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 $(document).ready( function() {
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 Slideshow.init();
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 $('code').each(function(_, el) {
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 if (!el.classList.contains('noprettyprint')) {
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 el.classList.add('prettyprint');
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 }
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
36 });
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
37 prettyPrint();
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
38 } );
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
39
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
40
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
41 </script>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
42
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
43 <!-- Better Browser Banner for Microsoft Internet Explorer (IE) -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
44 <!--[if IE]>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
45 <script src="s6/js/jquery.microsoft.js"></script>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
46 <![endif]-->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
47
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
48
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
49
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
50 </head>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
51 <body>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
52
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
53 <div class="layout">
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
54 <div id="header"></div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
55 <div id="footer">
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
56 <div align="right">
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
57 <img src="s6/images/logo.svg" width="200px">
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
58 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
59 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
60 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
61
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
62 <div class="presentation">
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
63
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
64 <div class='slide cover'>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
65 <table width="90%" height="90%" border="0" align="center">
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
66 <tr>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
67 <td>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
68 <div align="center">
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
69 <h1><font color="#808db5">メタ計算を用いた Continuation based C の検証手法</font></h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
70 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
71 </td>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
72 </tr>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
73 <tr>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
74 <td>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
75 <div align="left">
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
76 Yasutaka Higa
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
77
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
78 <hr style="color:#ffcc00;background-color:#ffcc00;text-align:left;border:none;width:100%;height:0.2em;">
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
79 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
80 </td>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
81 </tr>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
82 </table>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
83 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
84
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
85 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
86 <!-- === begin markdown block ===
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
87
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
88 generated by markdown/1.2.0 on Ruby 2.3.3 (2016-11-21) [x86_64-darwin16]
115
d731f2d0947d Add Makefile
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
89 on 2017-02-13 17:14:46 +0900 with Markdown engine kramdown (1.13.0)
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
90 using options {}
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
91 -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
92
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
93 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
94 <h1 id="section">プログラミング言語とソフトウェアの信頼性</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
95 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
96 <li>信頼性の高いソフトウェアを提供したい</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
97 <li>ソフトウェアの仕様を検証するには二つの手法がある
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
98 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
99 <li>プログラムの持つ状態を数え上げ、仕様から外れた状態が無いかを確認するモデル検査</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
100 <li>プログラムの性質を直接証明してしまう定理証明</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
101 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
102 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
103 <li>モデル検査も証明も行ないやすい言語として Continuation based C 言語を開発している</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
104 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
105
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
106
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
107 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
108 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
109 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
110 <h1 id="section-1">二つのアプローチを用いたソフトウェア検証</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
111 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
112 <li>モデル検査的アプローチ
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
113 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
114 <li>メタ計算ライブラリ akasha による網羅的な実行</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
115 <li>非破壊赤黒木の仕様定義と検証</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
116 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
117 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
118 <li>定理証明的なアプローチ
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
119 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
120 <li>依存型を持つ証明支援系言語 Agda による CbC の証明</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
121 <li>部分型を利用して Agda 上に型付きの CbC の項を記述する</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
122 <li>型システムを通して CbC の形式的な定義を得る</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
123 <li>SingleLinkedStack の性質の証明</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
124 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
125 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
126 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
127
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
128
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
129 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
130 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
131 <!-- _S9SLIDE_ -->
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
132 <h1 id="section-2">モデル検査的アプローチについての流れ</h1>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
133 <ul>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
134 <li>Continuation based C (CbC) 言語について</li>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
135 <li>CbC における CodeSegment と DataSegment を用いたプログラミングスタイル</li>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
136 <li>CbC とメタ計算について</li>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
137 <li>CbC で記述された GearsOS とそのデータ構造である赤黒木</li>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
138 <li>赤黒木の仕様の定義とその検証手法</li>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
139 </ul>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
140
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
141
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
142 </div>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
143 <div class='slide '>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
144 <!-- _S9SLIDE_ -->
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
145 <h1 id="continuation-based-c">Continuation based C</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
146 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
147 <li>当研究室で開発しているプログラミング言語</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
148 <li>アセンブラとC言語の中間のような言語であり、構文はほとんど C 言語</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
149 <li>OS や組み込みソフトウェアなどを対象にしている</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
150 <li>CodeSegment と DataSegment という単位を用いてプログラミングする</li>
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
151 <li>両検証手法をメタ計算として利用可能</li>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
152 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
153
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
154
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
155 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
156 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
157 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
158 <h1 id="codesegment">CodeSegment</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
159 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
160 <li>CodeSegment とは
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
161 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
162 <li>処理の単位</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
163 <li>結合や分割が容易</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
164 <li>入力と出力を持つ</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
165 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
166 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
167 <li>CodeSegment どうしを接続することによりプログラム全体を作る</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
168 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
169
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
170 <p><img src="./images/goto.svg" alt="goto" width="50%" /></p>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
171
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
172
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
173 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
174 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
175 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
176 <h1 id="datasegment">DataSegment</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
177 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
178 <li>DataSegment とは
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
179 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
180 <li>データの単位</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
181 <li>CodeSegment の入出力にあたる</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
182 <li>接続元の Output DataSegment は接続先の Input DataSegment</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
183 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
184 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
185 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
186
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
187 <p><img src="./images/csds.svg" alt="csds" width="50%" /></p>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
188
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
189
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
190 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
191 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
192 <!-- _S9SLIDE_ -->
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
193 <h1 id="section-3">メタ計算</h1>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
194 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
195 <li>とある計算を実現するための計算</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
196 <li>ネットワーク接続、例外処理、メモリ確保、並列処理など</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
197 <li>CbC は通常レベルの計算とメタ計算を分離して考える
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
198 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
199 <li>通常レベルではポインタは出てこない、など</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
200 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
201 </li>
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
202 <li>CodeSegment の接続部分に処理を追加することで実現</li>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
203 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
204
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
205 <p><img src="./images/meta.svg" alt="meta" width="50%" /></p>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
206
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
207
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
208 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
209 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
210 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
211 <h1 id="meta-codesegment">Meta CodeSegment</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
212 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
213 <li>メタ計算を行なう CodeSegment</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
214 <li>通常の CodeSegment どうしの接続の間に入る</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
215 <li>TODO: 図</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
216 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
217
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
218
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
219 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
220 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
221 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
222 <h1 id="meta-datasegment">Meta DataSegment</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
223 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
224 <li>メタ計算用の DataSegment</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
225 <li>通常の DataSegment を含むような DataSegment</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
226 <li>TODO: 図</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
227 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
228
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
229
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
230 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
231 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
232 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
233 <h1 id="gearsos">並列に信頼性高く動作する GearsOS</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
234 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
235 <li>CbC を用いたメタ計算の例として本研究室で開発している GearsOS がある</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
236 <li>並列実行やモデル検査をメタ計算として提供する</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
237 <li>現在はメモリ管理、Synchronized Queue、非破壊赤黒木などが実装済み</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
238 <li>今回はこの非破壊赤黒木の検証を行なう</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
239 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
240
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
241
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
242 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
243 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
244 <!-- _S9SLIDE_ -->
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
245 <h1 id="section-4">赤黒木</h1>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
246 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
247 <li>データの保存に用いる二分木</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
248 <li>特に赤黒木はノードが持つ赤か黒の色を使って木のバランスを取る
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
249 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
250 <li>ルートノードと葉ノードの色は黒</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
251 <li>赤ノードは2つの黒ノードを子として持つ(よって赤ノードが続くことは無い)</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
252 <li>ルートから最下位ノードへの経路に含まれる黒ノードの数はどの最下位ノードでも一定</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
253 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
254 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
255 <li>TODO: 図</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
256 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
257
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
258
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
259 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
260 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
261 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
262 <h1 id="gearsos-">GearsOS における赤黒木の利用例(ノードの挿入)</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
263 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
264 <li>挿入したい要素を DataSegment に格納して次の CodeSegment へ goto</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
265 <li>goto する前に Meta CodeSegment が実行されて木に挿入する</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
266 <li>GearsOS では木の実装のためにスタックを用いて経路情報を保持している</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
267 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
268
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
269 <p><img src="./images/put.svg" alt="put" width="50%" /></p>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
270
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
271
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
272 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
273 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
274 <!-- _S9SLIDE_ -->
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
275 <h1 id="section-5">仕様の記述とその確認</h1>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
276 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
277 <li>「バランスが取れている」とは何かを表現できる必要がある
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
278 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
279 <li>実行可能な CbC の式を使った assert になる</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
280 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
281 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
282 <li>そしてそれを保証したい
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
283 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
284 <li>プログラムの全ての状態においてこれは常に成り立つのか?</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
285 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
286 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
287 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
288
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
289
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
290 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
291 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
292 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
293 <h1 id="spin">既存のモデル検査器 spin</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
294 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
295 <li>spin
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
296 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
297 <li>promela と呼ばれる言語でプログラムを記述</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
298 <li>並列に動作するプログラムの仕様を検証可能</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
299 <li>検証した promela から実行可能な C ソースを生成可能</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
300 <li>仕様は bool になる式を用いた assert</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
301 <li>promela は C とは記述が異なる</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
302 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
303 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
304 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
305
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
306
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
307 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
308 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
309 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
310 <h1 id="cbmc">既存のモデル検査器 CBMC</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
311 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
312 <li>CBMC
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
313 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
314 <li>検証対象のCソースを変更しないでも良い</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
315 <li>C/C++ 言語の記号実行が可能
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
316 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
317 <li>条件分岐を網羅的に実行</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
318 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
319 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
320 <li>仕様は bool になる式を用いた assert</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
321 <li>有限ステップ検証する有界モデル検査器</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
322 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
323 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
324 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
325
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
326
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
327 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
328 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
329 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
330 <h1 id="akasha">メタ計算ライブラリ akasha</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
331 <ul>
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
332 <li>メタ計算としてプログラムの状態を数え上げる
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
333 <ul>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
334 <li>goto された時に挿入される要素の組み合わせを全て列挙して実行する</li>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
335 <li>その度に仕様の式は成り立つかをチェックする</li>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
336 </ul>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
337 </li>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
338 <li>ノーマルレベルのコードを検証用に変更せず検証可能</li>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
339 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
340
115
d731f2d0947d Add Makefile
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
341 <p><img src="./images/akashaPut.svg" alt="akashaPut" width="51%" /></p>
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
342
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
343
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
344 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
345 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
346 <!-- _S9SLIDE_ -->
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
347 <h1 id="section-6">チェックする仕様</h1>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
348 <ul>
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
349 <li>赤黒木のの高さに関する仕様に以下のものがある
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
350 <ul>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
351 <li>木をルートから辿った際に最も長い経路は最も短い経路の高々2倍に収まる</li>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
352 </ul>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
353 </li>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
354 <li>以下のように assert を用いて CbC で定義できる</li>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
355 <li>この仕様が満たされるかをチェックする</li>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
356 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
357
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
358 <pre><code>void verifySpecification(struct Context* context, struct Tree* tree) {
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
359 assert(!(maxHeight(tree-&gt;root, 1) &gt; 2*minHeight(tree-&gt;root, 1)));
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
360 goto meta(context, EnumerateInputs);
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
361 }
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
362 </code></pre>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
363
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
364
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
365 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
366 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
367 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
368 <h1 id="akasha--cbmc-">akasha と CBMC の比較</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
369 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
370 <li>akasha は有限の要素数の組み合わせをチェックする
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
371 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
372 <li>要素数が13個までならどの順で木に挿入しても良い</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
373 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
374 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
375 <li>比較対象として C Bounded Model Checker を使用した
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
376 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
377 <li>C/C++ の記号実行を行なう</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
378 <li>実行可能なステップ数411だけ展開しても仕様は満たされる</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
379 <li>が、恣意的にバグを入れ込んでも反例を返さない</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
380 <li>akasha は返した</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
381 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
382 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
383 <li>固定の要素数までの仕様検査で十分なのか?</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
384 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
385
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
386
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
387 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
388 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
389 <!-- _S9SLIDE_ -->
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
390 <h1 id="section-7">定理証明的なアプローチの流れ</h1>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
391 <ul>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
392 <li>プログラムを証明するにはどうするのか</li>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
393 <li>証明支援系 Agda における証明</li>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
394 <li>Agda による CbC の定義</li>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
395 <li>Agda を用いて CbC のコードを証明する</li>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
396 </ul>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
397
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
398
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
399 </div>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
400 <div class='slide '>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
401 <!-- _S9SLIDE_ -->
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
402 <h1 id="continuation-based-c-">定理証明を Continuation based C へ適用するには</h1>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
403 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
404 <li>任意の回数だけ木の操作を行なっても大丈夫なことを保証したい</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
405 <li>そのままプログラムの性質を保証してやる</li>
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
406 <li>Coq, Agda, ATS2 などのプログラミング言語で証明が可能
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
407 <ul>
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
408 <li>本当は CbC で CbC 自身を証明したい</li>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
409 <li>しかし CbC の形式的な定義が無いために今はできない</li>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
410 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
411 </li>
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
412 <li>Agda 上に CbC を定義することで形式的な定義を得る</li>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
413 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
414
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
415
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
416 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
417 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
418 <!-- _S9SLIDE_ -->
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
419 <h1 id="agda--datasegment">Agda と DataSegment</h1>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
420 <ul>
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
421 <li>CbC の DataSegment は Agda のレコード型</li>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
422 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
423
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
424 <pre><code>__code cs0(int a, int b){
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
425 goto cs1(a+b);
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
426 }
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
427 </code></pre>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
428 <pre><code>record ds0 : Set where
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
429 field
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
430 a : Int
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
431 b : Int
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
432 </code></pre>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
433
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
434
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
435 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
436 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
437 <!-- _S9SLIDE_ -->
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
438 <h1 id="agda--codesegment">Agda と CodeSegment</h1>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
439 <ul>
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
440 <li>CbC の CodeSegment は、Agda の関数型(Input を取って Output を返す)</li>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
441 </ul>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
442
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
443 <pre><code>__code cs0(int a, int b){
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
444 goto cs1(a+b);
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
445 }
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
446 </code></pre>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
447 <pre><code>cs0 : CodeSegment ds0 ds1
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
448 cs0 = cs (\d -&gt; goto cs1 (record {c = (ds0.a d) + (ds0.b d)}))
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
449 </code></pre>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
450
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
451
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
452 </div>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
453 <div class='slide '>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
454 <!-- _S9SLIDE_ -->
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
455 <h1 id="section-8">メタレベルの型付け</h1>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
456 <ul>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
457 <li>メタ計算とは通常のレベルとは区別された計算</li>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
458 <li>任意の通常のレベルの計算を扱えなくてはならない
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
459 <ul>
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
460 <li>ライブラリが呼び出されるプログラムは無数にあるようなイメージ</li>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
461 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
462 </li>
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
463 <li>メタレベルを使うための制約を満たしていれば良い、ということを表現できれば良い</li>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
464 <li>部分型を使う
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
465 <ul>
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
466 <li>Java におけるインターフェース、Haskell における型クラス</li>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
467 <li>「このデータにはこのフィールドさえあれば良い」</li>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
468 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
469 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
470 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
471
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
472
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
473 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
474 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
475 <!-- _S9SLIDE_ -->
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
476 <h1 id="agda-">Agda 上のメタ計算</h1>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
477 <ul>
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
478 <li>ノーマルレベルの型を保持したままメタレベルの計算を利用できる
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
479 <ul>
115
d731f2d0947d Add Makefile
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
480 <li>cs0 の定義はメタ計算用に変更しなくても良い</li>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
481 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
482 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
483 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
484
115
d731f2d0947d Add Makefile
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
485 <pre><code>main : ds1
d731f2d0947d Add Makefile
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
486 main = goto cs0 (record {a = 100 ; b = 50})
d731f2d0947d Add Makefile
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
487 </code></pre>
d731f2d0947d Add Makefile
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
488 <pre><code>main : Meta
d731f2d0947d Add Makefile
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
489 main = gotoMeta push cs0 (record {context = (record {a = 100 ; b = 50 ; c = 70}) ; c' = 0 ; next = (N.cs id)})
d731f2d0947d Add Makefile
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
490 </code></pre>
d731f2d0947d Add Makefile
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
491
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
492
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
493 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
494 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
495 <!-- _S9SLIDE_ -->
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
496 <h1 id="agda--cbc-">Agda 上に CbC を記述した成果</h1>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
497 <ul>
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
498 <li>部分型で CbC の型付けができた</li>
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
499 <li>メタ計算をきちんと階層化できた
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
500 <ul>
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
501 <li>メタ計算にもメタ計算が適用可能</li>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
502 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
503 </li>
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
504 <li>赤黒木で利用しているデータ構造スタックの性質を証明できた
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
505 <ul>
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
506 <li>任意の回数だけ値を積んで同じだけ取り出すとスタックは変化しない</li>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
507 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
508 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
509 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
510
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
511
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
512 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
513 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
514 <!-- _S9SLIDE_ -->
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
515 <h1 id="section-9">まとめ</h1>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
516 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
517 <li>Continuation based C 言語を対象にした二種類の検証アプローチ</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
518 <li>モデル検査的なアプローチ
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
519 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
520 <li>継続を上書きして可能な状態を数え上げるメタ計算ライブラリ akasha を実装</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
521 <li>有限の要素数まで保証できた</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
522 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
523 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
524 <li>証明的なアプローチ
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
525 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
526 <li>証明支援系 Agda 上で CbC のプログラムを定義して直接証明</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
527 <li>部分型を利用して CbC を型付け</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
528 <li>データ構造 SingleLinkedStack の証明ができた</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
529 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
530 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
531 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
532
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
533
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
534 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
535 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
536 <!-- _S9SLIDE_ -->
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
537 <h1 id="section-10">今後の課題</h1>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
538 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
539 <li>部分型を利用してCbCを型付け</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
540 <li>依存型をCbC に導入して自身を証明可能にする</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
541 <li>型情報から stub を自動生成すkる</li>
114
5cca315b0230 Writing slide...
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 103
diff changeset
542 <li>赤黒木の挿入に関する性質を証明する</li>
103
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
543 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
544
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
545 <!-- vim: set filetype=markdown.slide: -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
546
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
547 <!-- === end markdown block === -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
548 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
549
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
550
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
551 </div><!-- presentation -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
552 </body>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
553 </html>