view Paper/tex/abst.tex @ 15:f0d512637e52

Add ref
author soto <soto@cr.ie.u-ryukyu.ac.jp>
date Wed, 01 Feb 2023 22:16:45 +0900
parents f52e5fd41f58
children 40a9af45b375
line wrap: on
line source

\chapter*{要旨}
開発手法の一つとして,形式手法というものがある.
形式手法とはプログラムの仕様を形式化,つまり数学的な記述を行い,
書いたプログラムがそれを満たしているか検証を行う手法である.
代表的な形式の検証手法として,定理証明やモデル検査が挙げられる.

形式手法で開発したプログラムは数学的に正しいことが証明されている,
そのため高い安全性が必要とされる鉄道や電力などのインフラ分野に使用されている.
しかし,一見完璧な手法であるように思えるが欠点として,膨大なコストを要する.
シンプルな実装であれば仕様の形式化が容易に行えるが,そうであれば形式手法を使用せずとも良いとなる.

そのため,他のプログラミング言語と比べて検証に適しているGears Agdaを使用する.
Gears Agdaとは当研究室で開発している Continuation based C (CbC) の概念を
取り入れた記法で記述された Agdaのことである.

定理証明によるプログラムの検証は一般的に難易度が高いが,
Gears Agda では検証をプログラム単位に分割することができ,比較的容易に検証を行えるようになっている.

先行研究では implies を用いて Hoare Logic での定理証明を行っていた.
しかしそれでは記述が長く,かつ複雑になってしまっていた.
そこで今回は Invariant というプログラムの不変条件を新たに取り入れた.これを検証しながら実行を行うことで,Hoare Logic を用いた定理証明を比較的簡単に行えるようになった.

また,定理証明では並行処理の検証は困難である.
そのため,もう一つの代表的な検証手法であるモデル検査を Gears Agda にて行えるようにした.

これらのことから,本論文では Gears Agda の定理証明とモデル検査での検証手法について述べる

\chapter*{Abstract}
One of the development methods is called formal methods.
Formal methods formalize the specification of a program, i.e., describe it mathematically, and verify that the written program satisfies the specification.
The typical formal verification methods include theorem proving and model checking.
Theorem proving and model checking are typical formal verification methods.

Programs developed by formal methods are proven to be mathematically correct.
For this reason, they are used in infrastructure fields such as railroads and electric power, where high safety is required.
However, the drawback of this seemingly perfect method is that it is extremely costly.
Formalization of specifications is easy for simple implementations, but then it is not necessary to use formal methods.

For this reason, we use Gears Agda, which is more suitable for verification than other programming languages.
Gears Agda is a programming language written in a notation that incorporates the concept of Continuation based C (CbC), which is being developed in our laboratory.
Gears Agda is an Agda written in a notation that incorporates the concept of Continuation based C (CbC), which is being developed in our laboratory.

Verification of programs by theorem proving is generally difficult.
Gears Agda can be divided into program units, making verification relatively easy.

In previous research, implies were used for theorem proving in Hoare Logic.
However, this made the description long and complicated.
Therefore, in this study, we introduced a new program invariant called Invariant. By verifying the invariant condition while executing the program, theorem proving using Hoare Logic became relatively easy.

In addition, verification of concurrency is difficult in theorem proving.
Therefore, we made it possible to perform model checking, another typical verification method, in Gears Agda.

Based on the above, this paper describes the theorem proving and model checking verification methods of Gears Agda.