my first coq
来源:互联网 发布:和人工智能有关的股票 编辑:程序博客网 时间:2024/05/23 18:29
形式化方法作业
写下第一题
一个好的开始
(** **** Exercise: 1 star (nandb) *)
(** Complete the definition of the following function, then make
sure that the [Example] assertions below each can be verified by
Coq. *)
(** This function should return [true] if either or both of
its inputs are [false]. *)
Definition nandb (b1:bool) (b2:bool) : bool :=
(* FILL IN HERE *)
match b1 with
| true => (negb b2)
| false => true
end.
(** Remove "[Admitted.]" and fill in each proof with
"[Proof. simpl. reflexivity. Qed.]" *)
Example test_nandb1: (nandb true false) = true.
Proof. simpl. reflexivity. Qed.
Example test_nandb2: (nandb false false) = true.
Proof. simpl. reflexivity. Qed.
Example test_nandb3: (nandb false true) = true.
Proof. simpl. reflexivity. Qed.
Example test_nandb4: (nandb true true) = false.
Proof. simpl. reflexivity. Qed.
- my first coq
- coq
- My first
- MY FIRST
- my first
- my First
- My First !
- MY FIRST
- My First
- MY First
- My First
- my first
- my first
- My First
- my first。。
- my first
- My First
- My-first
- Java操作JSON工具整理
- android-禁止EditText自动弹出键盘
- android-如何获得当前正在运行的activity的相关信息
- Android 中内存泄露之我的不解(1)
- 在action中执行javascript代码
- my first coq
- ASP.NET Prepared for Interview (1)
- android常用数据库字段描述
- Linux中xargs的用法
- 通货膨胀时是否提前还本付息--郎咸平
- JSON in Java
- OpenCL的多GPU和多核CPU异构计算--1
- 30分钟3300%性能提升——python+memcached网页优化小记
- net.sf.json.util 包