这里描述了可能足够的一些技巧:
如何禁用我的Coq中的自定义符号?我想添加指针以添加该答案,因为这个问题首先出现在Google上。
all
表示法,请使用Disable Notation "+" (all).
The following notations have been disabled:
Notation "{ A } + { B }" := (sumbool A B) : type_scope
Notation "A + { B }" := (sumor A B) : type_scope
Notation "x + y" := (sum x y) : type_scope
Notation "x + y" := (Nat.add x y) : nat_scope
Notation "n + m" := (plus n m)
Enable Notation "_ + _" (all) : type_scope.
The following notations have been enabled:
Notation "x + y" := (sum x y) : type_scope
Disable Notation "x + y" := (sum x y).
The following notations have been disabled:
Notation "x + y" := (sum x y) : type_scope
从Https://rocq-prover.org/doc/v8.18.0/refman/refman/user-extensions/syntax-extensions.html#enabling-and-disabling-notations-