存在主义假设的策略
假设我们有一个命题P1 n
,并且它成立存在n
。此外,我们有一个命题P2
,其中P1 n
对于任何n
意味着P2
。我们如何证明P2
?
Parameter P1 : nat -> Prop.
Axiom some_p1 : exists n, P1 n.
Parameter P2 : Prop.
Axiom p1_implies_p2 : forall n, P1 n -> P2.
Theorem p2 : P2.
我尝试了
Proof.
eapply p1_implies_p2.
这给了我目标 P1 ?n
,但我不确定如何从那里继续。
Say we have a proposition P1 n
, and there exists n
for which it holds. Furthermore we have a proposition P2
, where P1 n
implies P2
for any n
. How do we prove P2
?
Parameter P1 : nat -> Prop.
Axiom some_p1 : exists n, P1 n.
Parameter P2 : Prop.
Axiom p1_implies_p2 : forall n, P1 n -> P2.
Theorem p2 : P2.
I tried
Proof.
eapply p1_implies_p2.
which gives me the goal P1 ?n
, but I'm not sure how to proceed from there.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以消除
some_p1
以获得证人n
和假设Hn
。You may eliminate
some_p1
to get a witnessn
and a hypothesisHn
.为了完整起见,如果您使用 SSReflect 证明语言,Pierre 的证明思路将如下所示:
请注意,为
p1_implies_p2
提供第二个参数p1n
就足够了,因为省略了第一个参数一,n
,可以由 Coq 推断。Just for completeness, if you use the SSReflect proof language, Pierre's proof idea would look like this:
Note that providing the second argument
p1n
top1_implies_p2
is enough, since the omitted first one,n
, can be inferred by Coq.