【发布时间】:2020-05-14 10:27:39
【问题描述】:
CPDT 的 Ltac 章节,显示了一种“错误”的策略:
Theorem t1' : forall x : nat, x = x.
match goal with
| [ |- forall x, ?P ] => trivial
end.
这本书接着解释
The problem is that unification variables may not contain locally bound variables.
In this case, [?P] would need to be bound to [x = x], which contains the local quantified
variable [x]. By using a wildcard in the earlier version, we avoided this restriction.
但是,上面的策略实际上在 Coq 8.11 中有效!
统一变量现在可以包含本地绑定变量吗?如果是的话,和上面有什么区别
Theorem t1' : forall x : nat, x = x.
match goal with
| [ |- forall x, _ ] => trivial
end.
(我们将?P 替换为_)?
【问题讨论】:
标签: coq coq-tactic