是否有一种方法可以定义“本地”Ltac 表达式,我可以用它来证明引理但在外部不可见?
Lemma Foo ...
Proof.
Ltac ll := ...
destrict t.
- reflexivity.
- ll.
- ll.
Qed.
(* ll should not be visible here *)
Run Code Online (Sandbox Code Playgroud)
您可以使用一个部分:
Section Foo.
Ltac solve := exact I.
Lemma Foo : True.
Proof.
solve.
Qed.
End Foo.
Run Code Online (Sandbox Code Playgroud)