Coq:未打印符号

时间:2018-12-19 10:00:08

标签: coq coqide

我定义了归纳类型,下面是最小示例。我想使用〜或=等符号。语法可以识别,但不会显示在右上方面板的目标中。

示例:

Inductive num : Set :=
  | O : num
  | S : num -> num.

Theorem test (n : num) : ~ (S n) = O.

面板上显示:

1 subgoal
n : num
______________________________________(1/1)
not (@eq num (S n) O)

我希望:

1 subgoal
n : num
______________________________________(1/1)
~ (S n) = O

我试图像这样重新定义=,但没有成功:

Notation "x = y" := (@eq num x y) (at level 70).

或定义一个新符号,但都不成功:

Notation "x =n y" := (@eq num x y) (at level 50).
Theorem test (n : num) : ~ (S n) =n O.

是设置问题吗?我在Mac上使用的是CoqIde 8.7.2。

0 个答案:

没有答案