このアイテムのアクセス数: 639

このアイテムのファイル:
ファイル 記述 サイズフォーマット 
ELCAS_J_2_66.PDF2.11 MBAdobe PDF見る/開く
タイトル: <論文・報告>証明支援系Coqの基礎を学ぶ
その他のタイトル: Learning the Basics of the Proof Management System Coq
著者: 大町, 誠也  KAKEN_name
著者名の別形: Ohmachi, Masaya
キーワード: Coq
命題
証明
rewrite
destruct
bool
induction
assert
Coq
Propositions
Proof
Rewrite
Destruct
Bool
Induction
Assert
発行日: Mar-2017
出版者: 京都大学学際融合教育研究推進センター高大接続科学教育ユニット
誌名: ELCAS Journal
巻: 2
開始ページ: 66
終了ページ: 70
抄録: 専修コースにおいてPierce他著であるテキストSoftwareFoundationsを用いて,基礎的なCoqの使用方法を学んだ.証明支援システムとは,命題及び証明の記述,証明に欠陥がないかの確認が行えるソフトウェアのことである.利用者はタクティクスと呼ばれるコマンドを用いてソフトウェアと対話方式で証明の記述を進めていく.本論文では,3 つの証明例を用いてCoq の基礎的証明手法を説明する.命題は,(a+b+c+d)2 の展開,ド・モルガンの法則の一例,0 からn までの2 乗の総和に関する公式の3 つである.(a+b+c+d)2 の展開に関しては,タクティクスとしてintros,rewrite,reflexivity が用いられている.ド・モルガンの法則の一例は,bool に関する命題でdestruct という場合分けのためのタクティクスが3 回用いられている.そして0 からn までの2 乗の総和に関する公式は,数学的帰納法を用いるためのタクティクスinduction を使った後,rewrite とassertを用いて書き換えることで証明されている.確かにCoq は厳密性に富むが,証明を理解するのは非常に難しいため,コメントを入れるべきである. I learnt how to use the formal proof management system, Coq, by using the textbook entitled “Software Foundations” by Pierce et al. A proof management system is a piece of computer software that allows users to write down mathematical propositions and proofs, and is able to mechanically check if proofs are correct. Users develop a proof by using commands called “tactics.” In this report, I explain the basic use of Coq with three example proofs. The three statements include the development of (a+b+c+d)2, an instance of De Morgan’s laws, and the formula of the summation of squares of natural numbers from 0 to n. In the development of (a+b+c+d)2, tactics called “rewrite, ” “intros, ” and “reflexivity” are used. In the instance of De Morgan’s laws, which concern Boolean algebra, a tactic called “destruct, ” by which users perform case analysis in Coq, is used three times. The formula of the summation of squares is proven by making use of “rewrite” and “assert” after using the tactic of induction for mathematical induction. Although Coq is very rigorous, users should insert comments into their proofs because it is very difficult for other people to understand proofs written in Coq.
URI: http://hdl.handle.net/2433/224846
出現コレクション:Vol. 2

アイテムの詳細レコードを表示する

Export to RefWorks


出力フォーマット 


このリポジトリに保管されているアイテムはすべて著作権により保護されています。