annotate presentation/slide.html @ 103:76769fd0995e

Generate slide
author atton <atton@cr.ie.u-ryukyu.ac.jp>
date Sun, 12 Feb 2017 18:10:33 +0900
parents
children 5cca315b0230
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]
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
89 on 2017-02-12 18:10:22 +0900 with Markdown engine kramdown (1.13.0)
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_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
132 <h1 id="continuation-based-c">Continuation based C</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
133 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
134 <li>当研究室で開発しているプログラミング言語</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
135 <li>アセンブラとC言語の中間のような言語であり、構文はほとんど C 言語</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
136 <li>OS や組み込みソフトウェアなどを対象にしている</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
137 <li>CodeSegment と DataSegment という単位を用いてプログラミングする</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
138 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
139
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
140
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
141 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
142 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
143 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
144 <h1 id="codesegment">CodeSegment</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
145 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
146 <li>CodeSegment とは
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
147 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
148 <li>処理の単位</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
149 <li>結合や分割が容易</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
150 <li>入力と出力を持つ</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
151 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
152 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
153 <li>CodeSegment どうしを接続することによりプログラム全体を作る</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
154 <li>TODO: 図</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
155 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
156
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
157
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
158 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
159 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
160 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
161 <h1 id="datasegment">DataSegment</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
162 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
163 <li>DataSegment とは
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
164 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
165 <li>データの単位</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
166 <li>CodeSegment の入出力にあたる</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
167 <li>接続元の Output DataSegment は接続先の Input DataSegment</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 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
170 <li>TODO: 図</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
171 </ul>
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
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
174 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
175 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
176 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
177 <h1 id="section-2">メタ計算</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
178 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
179 <li>とある計算を実現するための計算</li>
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>時に本来行ないたい処理よりも複雑になる</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
182 <li>CbC は通常レベルの計算とメタ計算を分離して考える
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>通常レベルではポインタは出てこない、など</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 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
187 <li>TODO: 図</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
188 </ul>
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
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
191 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
192 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
193 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
194 <h1 id="meta-codesegment">Meta CodeSegment</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
195 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
196 <li>メタ計算を行なう CodeSegment</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
197 <li>通常の CodeSegment どうしの接続の間に入る</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
198 <li>TODO: 図</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
199 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
200
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
201
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
202 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
203 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
204 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
205 <h1 id="meta-datasegment">Meta DataSegment</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
206 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
207 <li>メタ計算用の DataSegment</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
208 <li>通常の DataSegment を含むような DataSegment</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
209 <li>TODO: 図</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
210 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
211
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
212
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
213 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
214 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
215 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
216 <h1 id="c">C言語との対応</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
217 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
218 <li>CodeSegment は C 言語における返り値の無い関数</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
219 <li>DataSegment は C 言語における構造体</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
220 <li>Meta CodeSegment は CodeSegment の前後にある CodeSegment</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
221 <li>Meta DataSegment は全ての DataSegment の共用体を持つ構造体</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
222 <li>CodeSegment の接続は goto における軽量継続
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>末尾のみで行なうスタックを保持しない関数呼び出し</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
225 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
226 </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_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
245 <h1 id="section-3">赤黒木</h1>
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 <li>TODO: 図</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
268 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
269
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
270
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
271 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
272 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
273 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
274 <h1 id="section-4">仕様の記述とその確認</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
275 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
276 <li>「バランスが取れている」とは何かを表現できる必要がある
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
277 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
278 <li>実行可能な CbC の式を使った assert になる</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
279 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
280 </li>
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 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
283 <li>プログラムの全ての状態においてこれは常に成り立つのか?</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
284 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
285 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
286 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
287
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 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
290 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
291 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
292 <h1 id="spin">既存のモデル検査器 spin</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
293 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
294 <li>spin
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
295 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
296 <li>promela と呼ばれる言語でプログラムを記述</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
297 <li>並列に動作するプログラムの仕様を検証可能</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
298 <li>検証した promela から実行可能な C ソースを生成可能</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
299 <li>仕様は bool になる式を用いた assert</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
300 <li>promela は C とは記述が異なる</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
301 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
302 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
303 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
304
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 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
307 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
308 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
309 <h1 id="cbmc">既存のモデル検査器 CBMC</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
310 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
311 <li>CBMC
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
312 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
313 <li>検証対象のCソースを変更しないでも良い</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
314 <li>C/C++ 言語の記号実行が可能
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
315 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
316 <li>条件分岐を網羅的に実行</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
317 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
318 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
319 <li>仕様は bool になる式を用いた assert</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
320 <li>有限ステップ検証する有界モデル検査器</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
321 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
322 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
323 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
324
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 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
327 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
328 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
329 <h1 id="akasha">メタ計算ライブラリ akasha</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
330 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
331 <li>メタ計算としてプログラムの状態を数え上げる</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
332 <li>goto された時に挿入される要素の組み合わせを全て列挙して実行する</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
333 <li>その度に仕様の式は成り立つかをチェックする</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
334 <li>TODO: 図</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
335 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
336
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
337
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
338 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
339 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
340 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
341 <h1 id="section-5">チェックする仕様</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
342 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
343 <li>TODO: たかさについて</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
344 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
345
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
346
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
347 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
348 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
349 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
350 <h1 id="akasha--cbmc-">akasha と CBMC の比較</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
351 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
352 <li>akasha は有限の要素数の組み合わせをチェックする
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
353 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
354 <li>要素数が13個までならどの順で木に挿入しても良い</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
355 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
356 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
357 <li>比較対象として C Bounded Model Checker を使用した
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
358 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
359 <li>C/C++ の記号実行を行なう</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
360 <li>実行可能なステップ数411だけ展開しても仕様は満たされる</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
361 <li>が、恣意的にバグを入れ込んでも反例を返さない</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
362 <li>akasha は返した</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
363 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
364 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
365 <li>固定の要素数までの仕様検査で十分なのか?</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
366 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
367
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
368
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
369 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
370 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
371 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
372 <h1 id="section-6">定理証明</h1>
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>任意の回数だけ木の操作を行なっても大丈夫なことを保証したい</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
375 <li>そのままプログラムの性質を保証してやる</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
376 <li>プログラムと証明は Curry-Howard Isomorphism により、自然演繹と型付ラムダ計算が対応
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
377 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
378 <li>プログラムにおける命題は型であり、証明はその導出が存在するかどうか</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
379 <li>例えば三段論法が書ける
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
380 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
381 <li>(A -&gt; B) -&gt; (B -&gt; C) -&gt; (A -&gt; C)</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
382 <li>(int -&gt; bool) -&gt; (bool -&gt; float) -&gt; (int -&gt; float)</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
383 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
384 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
385 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
386 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
387 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
388
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
389
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
390 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
391 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
392 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
393 <h1 id="agda">証明支援系 Agda</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
394 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
395 <li>依存型を持つ言語
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
396 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
397 <li>型が第一級(型が値である)</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
398 <li>「型を取って型を返す型」などが定義可能</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
399 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
400 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
401 <li>定理証明が記述可能
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
402 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
403 <li>この言語の上に CbC の項を表現する</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
404 <li>Agda 経由で CbC の形式的な定義を得る</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
405 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
406 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
407 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
408
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
409
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
410 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
411 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
412 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
413 <h1 id="agda--cbc-">Agda 上に CbC を記述するには?</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
414 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
415 <li>CbC と CbC の対応で書ける?
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
416 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
417 <li>DataSegment -&gt; 構造体(複数の値と名前によって成り立つ)</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
418 <li>CodeSegment -&gt; 関数型(型を取って型を返す)</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
419 <li>Meta DataSegment -&gt; 構造体の共用体</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
420 <li>Meta CodeSegment -&gt; 関数型?</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
421 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
422 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
423 <li>Meta CodeSegment の階層構造をどう定義するか
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
424 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
425 <li>構造体に相当するレコード型はAgdaにある</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
426 <li>共用体に相当する直和型も定義可能</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
427 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
428 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
429 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
430
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
431
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
432 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
433 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
434 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
435 <h1 id="section-7">メタレベルの型付け</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
436 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
437 <li>Meta CodeSegment が持っているべき性質
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
438 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
439 <li>メタレベルは階層構造を持つ
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
440 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
441 <li>メタ計算は組み合わせられる</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
442 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
443 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
444 <li>ノーマルレベルの DataSegment を一様に扱える</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
445 <li>ノーマルレベルの CodeSegment へと goto できる
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
446 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
447 <li>どんなプログラムからもライブラリとして使える</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
448 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
449 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
450 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
451 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
452 <li>構造体では融通が効かない
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
453 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
454 <li>完全にマッチしなくてはいけない</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
455 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
456 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
457 <li>TODO: ソース</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
458 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
459
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
460
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
461 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
462 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
463 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
464 <h1 id="section-8">部分型</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
465 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
466 <li>DataSegment が持つべき制約を表現できる型</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
467 <li>型 T が期待される文脈で S を用いても良い、というようなことができる
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>「S &lt;: T」で「S は T の部分型である」と読む</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
470 <li>全てのDataSegment に対して「MDS &lt;: DS」となるような MDS を用意する</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
471 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
472 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
473 <li>DataSegment X が期待される CodeSegment に Meta DataSegment を渡してやる</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
474 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
475
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
476
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
477 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
478 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
479 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
480 <h1 id="section-9">入力の部分型</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
481 <p># 出力の部分型</p>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
482
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
483
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
484 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
485 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
486 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
487 <h1 id="section-10">部分型で何ができたか?</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
488 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
489 <li>Meta CodeSegment を部分型とすることで
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
490 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
491 <li>ノーマルレベルの CodeSegment の前後に処理を入れても型は整合する</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
492 <li>Meta CodeSegment を CodeSegment とすることで階層構造を作れる</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
493 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
494 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
495 <li>Meta DataSegment を部分型とすることで
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
496 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
497 <li>ノーマルレベルからはアクセスできないデータを保持してもOK</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
498 <li>ノーマルレベルに Meta DataSegment を渡しても良い</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
499 <li>こちらも階層構造を取ることができる</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
500 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
501 </li>
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
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
504
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
505 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
506 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
507 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
508 <h1 id="singlelinkedstack-">SingleLinkedStack の証明</h1>
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 <li>証明支援系 Agda に GearsOS のデータ構造 SingleLinkedStack を定義
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
511 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
512 <li>スタックは赤黒木に用いられている</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
513 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
514 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
515 <li>その性質を証明する
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>性質もいくつか考えられる</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
518 <li>「push して pop するとスタックは元に戻る」</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>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
521 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
522
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
523
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
524 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
525 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
526 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
527 <h1 id="agda-">Agda を用いた証明手法</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
528 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
529 <li>基本的にはデータの構造に関する帰納法
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
530 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
531 <li>スタックは内部に SingleLinkedList を持つ</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
532 <li>SingleLinkedList は NULL か値と次のノードを持つ</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
533 <li>値がある場合と無い場合との場合分け</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
534 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
535 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
536 <li>挿入する要素を指定せずに push を呼ぶとどうなるのか?
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
537 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
538 <li>実装依存のコード</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
539 <li>証明には表れる
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
540 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
541 <li>TODO: かく…</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
542 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
543 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
544 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
545 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
546 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
547
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
548
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
549 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
550 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
551 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
552 <h1 id="section-11">まとめ</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
553 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
554 <li>Continuation based C 言語を対象にした二種類の検証アプローチ</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
555 <li>モデル検査的なアプローチ
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
556 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
557 <li>継続を上書きして可能な状態を数え上げるメタ計算ライブラリ akasha を実装</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
558 <li>有限の要素数まで保証できた</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
559 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
560 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
561 <li>証明的なアプローチ
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
562 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
563 <li>証明支援系 Agda 上で CbC のプログラムを定義して直接証明</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
564 <li>部分型を利用して CbC を型付け</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
565 <li>データ構造 SingleLinkedStack の証明ができた</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
566 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
567 </li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
568 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
569
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
570
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
571 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
572 <div class='slide '>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
573 <!-- _S9SLIDE_ -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
574 <h1 id="section-12">今後の課題</h1>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
575 <ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
576 <li>部分型を利用してCbCを型付け</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
577 <li>依存型をCbC に導入して自身を証明可能にする</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
578 <li>型情報から stub を自動生成すkる</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
579 <li>赤黒木の挿入を証明する</li>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
580 </ul>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
581
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
582 <!-- vim: set filetype=markdown.slide: -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
583
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
584 <!-- === end markdown block === -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
585 </div>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
586
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
587
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
588 </div><!-- presentation -->
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
589 </body>
76769fd0995e Generate slide
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
590 </html>