小编Mus*_*oli的帖子

参数和类成员之间的区别

我是 Coq 的新手,想知道以下内容之间有什么区别:

Class test (f g: nat -> nat) := {
  init:   f 0 = 0 /\ g 0 = 0;
  output: ...another proposition about f and g...;
}.
Run Code Online (Sandbox Code Playgroud)

Class test := {
  f: nat -> nat;
  g: nat -> nat;
  init:   f 0 = 0 /\ g 0 = 0;
  output: ...another proposition about f and g...;
}.
Run Code Online (Sandbox Code Playgroud)

有人能提供解释吗?

record typeclass coq dependent-type

4
推荐指数
2
解决办法
100
查看次数

标签 统计

coq ×1

dependent-type ×1

record ×1

typeclass ×1