Can I define a tactic under “coqtop - nois”?

南笙酒味 提交于 2019-12-10 10:02:17

问题


$ coqtop -nois
Welcome to Coq 8.7.0 (October 2017)

Coq < Ltac i := idtac.
Toplevel input, characters 0-4:
> Ltac i := idtac.
> ^^^^
Error: Syntax error: illegal begin of vernac.

I am redeveloping "Coq.Init.Prelude" and "HoTT.Basics.Overture" under "coqtop -nois" for pratice. I find it hard to write expressions directly. That's why I want to use tactics. I wonder why I can not use "Ltac".


回答1:


Ltac is now provided as a plugin, which you’ll need to load to use:

Declare ML Module "ltac_plugin".


来源:https://stackoverflow.com/questions/48837345/can-i-define-a-tactic-under-coqtop-nois

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!