是否有一种方法可以定义“局部” Ltac表达式,我可以用来证明引理但在外部看不见?
Lemma Foo ...
Proof.
Ltac ll := ...
destrict t.
- reflexivity.
- ll.
- ll.
Qed.
(* ll should not be visible here *)
答案 0 :(得分:4)
您可以使用以下部分:
Section Foo.
Ltac solve := exact I.
Lemma Foo : True.
Proof.
solve.
Qed.
End Foo.