coq - 在 Coq 中打印现有的 setoid 和态射

标签 coq rewriting

我正在使用generalized rewriting features of Coq .

我想打印当前可用于setoid_rewrite的setoid和态射,以更好地理解重写失败时缺少哪个关系或函数。有什么办法可以做到吗?

最佳答案

也许打印实例...可以提供帮助。

Require Import Setoid.
Print Instances Equivalence.
Print Instances Morphisms.Proper.

来自您提供的手册页链接。

27.2.3 Printing relations and morphisms

The Print Instances command can be used to show the list of currently registered Reflexive (using Print Instances Reflexive), Symmetric or Transitive relations, Equivalences, PreOrders, PERs, and Morphisms (implemented as Proper instances). When the rewriting tactics refuse to replace a term in a context because the latter is not a composition of morphisms, the Print Instances commands can be useful to understand what additional morphisms should be registered.

关于coq - 在 Coq 中打印现有的 setoid 和态射,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38281702/

相关文章:

coq - 如何在 Coq 中有 "0"的多个符号

c++ - "Updating"文件中的一行被覆盖

python - PIL图像转换不使用文件系统

functional-programming - 基于术语重写的评估如何工作?

coq - 证明进程忙于 combine_split

coq - 类型类的访问器?

relation - 如何在 Coq 中使用 Rmult 在一个术语中重写 Rle?

coq - 非归纳类型的类型相等

coq - 依赖类型 : Vector of vectors