coq - 为什么 "only printing"符号会修改解析器

标签 coq notation

manual说的是

If a given notation string occurs only in only printing rules, the parser is not modified at all.

所以我希望当我添加“仅打印”符号时,这些术语会被解析为没有符号。 但是,当我这样做时

Inductive Bit := One | Zero.
Notation "1" := One (only printing).

术语1现在被解析为Bit

Check 1. (* 1 : Bit *)

为什么会发生这种情况以及如何添加 1 作为仅打印符号?

最佳答案

正如 Théo Winterhalter 提到的,这似乎是 Coq 8.13 中的一个错误。 根据this Github issue ,它似乎已在 Coq 8.14 8.15 中修复。

关于coq - 为什么 "only printing"符号会修改解析器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69658533/

相关文章:

types - Coq 中的多态性子类型

math - 代数表示代码

python - 使用unicode在python tkinter列表框中显示下标/上标

ipad - 数学符号字体

coq - 这两个证明等价吗?

coq 归纳法,传入相等

csv - 如何告诉 Proof General ".csv"!= ".v"

logic - 如何证明排中律在 Coq 中是无可辩驳的?

Java 局部变量表示法 : 'textEntered' or 'enteredText' ?

coq - 我可以使用 Inductive 类型的符号来在 Coq 中定义该类型吗?