This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* Coqでアドホック多相 *) | |
(* Coqで多引数の型クラスを用いた多相関数のサンプル *) | |
(* 型クラスに性質(定理)が書けるのもCoqらしさではあるが、その辺は他所でも紹介されているので割愛 *) | |
(* そういった機能については例えば: http://yosh.hateblo.jp/entry/20090904/p1 *) | |
(* 角括弧でのリスト記法が使いたかっただけなので、コンストラクタ直書きならImport不要 *) | |
Require Import List. | |
Import List.ListNotations. | |
(* 型クラス定義 ここでは関数を一つ持っているだけなので単に多相関数定義と思ってもいい *) |
1. 「依存型に触ったことある」もしくは「TaPLを部分的にでも読んだ」あたりが基準になるだろうか。
Table of Contents
目についたCoqのライブラリ/プラグイン/開発環境などの覚え書き
実用面は気にせず、研究用や無メンテも載せる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* for 8.6 *) | |
(* based on https://gist.github.com/keigoi/c3817d2aad09e9179465d4261cf5ef9b *) | |
(* "using"縛り *) | |
Require Import PeanoNat. | |
Fixpoint sum (n:nat) : nat := | |
match n with | |
| O => O | |
| S n => S n + sum n |
このgistは今年読んだ一番好きな論文2017 Advent Calendarの1日目の記事です。
去年、覚え書きのような記事で参戦したら、歓迎の言葉に加えて参加賞まで貰ってしまった者です。あれで終わらせるのは申し訳ない以前に悔しいので、今回はよそゆきの文章でガッツリ書いてリベンジすることで感謝の言葉に替えたいと思います。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
研究室で link:https://github.com/proofpeer/proofpeer-proofscript[ProofScript] について紹介したが、せっかく面白い言語なので共有。 | |
ps1.pdf が大元のプロジェクトである ProofPeer の紹介と ProofScript のプログラミング言語部分の紹介。 ps2.pdf が ProofScript の残りの紹介。 | |
正確性とかについては保証できないので自分で確かめていただきたく。 |
この投稿は今年読んだ一番好きな論文_アドベントカレンダー2016の 1 日目の記事です。
昨晩、もう 12 月も始まるからと Adventar 漁って RSS 登録していたら、このカレンダーを見つけてしまった。せっかく素晴らしい企画なのに初日から無人なんてもったいない(そしてあわよくば賞品欲しい)、ということで駆け込み一番槍をいただいた。