小编Car*_*men的帖子

有趣的关键字在Coq中做了什么?

我正在努力理解Coq中关键词'fun'的含义.

有所有类型和功能forallb:

Inductive all (X : Type) (P : X -> Prop) : list X -> Prop :=
  | all_nil : all X P []
  | all_cons : forall (x:X) (l: list X) , P x -> all X P l -> all X P (x::l).

Fixpoint forallb {X : Type} (test : X -> bool) (l : list X) : bool :=
 match l with
| [] => true
| x :: l' => andb (test x) (forallb test …
Run Code Online (Sandbox Code Playgroud)

lambda functional-programming coq dependent-type

5
推荐指数
1
解决办法
1192
查看次数