【发布时间】:2023-02-10 22:00:04
【问题描述】:
在以下 Coq 证明中:
Ltac easy_ltac t := match goal with
| [Z: @eq nat t ?Y |- _ ] => pose ?Y as N
end.
Lemma easy: forall (n: nat), (n >= O)%nat.
Proof.
intros n. destruct n eqn: M. easy_ltac n.
我收到错误消息:“没有匹配的匹配子句。”,虽然我有假设
M : @eq nat n O
我不懂为什么。
【问题讨论】:
标签: coq-tactic