如果有一种方法来定义一个“局部”Ltac表达式,我可以用它来证明一个引理,但在外面却看不见?
Lemma Foo ...
Proof.
Ltac ll := ...
destrict t.
- reflexivity.
- ll.
- ll.
Qed.
(* ll should not be visible here *)发布于 2018-08-22 14:25:11
您可以使用以下部分:
Section Foo.
Ltac solve := exact I.
Lemma Foo : True.
Proof.
solve.
Qed.
End Foo.https://stackoverflow.com/questions/51961226
复制相似问题