小编sdp*_*oll的帖子

如何在 Coq 中暂时禁用符号

当您熟悉一个项目时,符号很方便,但当您刚开始使用代码库时可能会感到困惑。我知道你可以用白话关闭所有符号Set Printing All。但是,我想保留一些打印功能,例如隐式参数。全部打印如下:

Require Import Utf8_core. 
Set Printing All.
Theorem contradiction_implies_anything : forall P Q : Prop,
  (P /\ ~P) -> Q.
Proof.
Run Code Online (Sandbox Code Playgroud)

给出以下证明状态:

1 subgoal (ID 120)

  ============================
  forall (P Q : Prop) (_ : and P (not P)), Q
Run Code Online (Sandbox Code Playgroud)

这几乎是没有,但我想的_要被删除,forall?和刚刚展开我的符号。

Set Printing Notations按照Coq 参考手册中的说明进行了尝试,但没有做任何事情,也没有启用

Set Printing Implicit.
Set Printing Coercions.
Set Printing Synth.
Set Printing Projections.
Run Code Online (Sandbox Code Playgroud)

coq

5
推荐指数
1
解决办法
388
查看次数

标签 统计

coq ×1