就像other question的操作一样,我正在Coq.Init.Prelude
下重新开发-nois
以进行实践。
我想使用战术,但他们没有工作。
我尝试了Declare ML Module "ltac_plugin".
,但它没有帮助。
Welcome to Coq v8.8 (eccf1d50b020e87b4d19d0bda43361e1e82d01b1)
Coq < Declare ML Module "ltac_plugin".
[Loading ML file ltac_plugin.cmxs ... done]
Coq < Goal forall A:Prop, forall proof:A, A.
1 subgoal
============================
forall (A : Prop) (_ : A), A
Unnamed_thm < intro.
Toplevel input, characters 0-5:
> intro.
> ^^^^^
Error: Syntax error: illegal begin of vernac.
答案 0 :(得分:2)
您还需要Set Default Proof Mode "Classic"
才能访问标准策略。此选项目前为undocumented。
$ rlwrap coqtop -nois
Welcome to Coq 8.8.0 (May 2018)
Coq < Declare ML Module "ltac_plugin".
[Loading ML file ltac_plugin.cmxs ... done]
Coq < Set Default Proof Mode "Classic".
Coq < Goal forall A:Prop, forall proof:A, A.
1 subgoal
============================
forall (A : Prop) (_ : A), A
Unnamed_thm < intros.
1 subgoal
A : Prop
proof : A
============================
A
Unnamed_thm < assumption.
No more subgoals.
Unnamed_thm < Qed.
Unnamed_thm is defined