“结果包含获得的参数:b”是什么意思?在伊莎贝尔?

发布于 2025-01-17 10:29:44 字数 321 浏览 5 评论 0原文

考虑以下代码片段:

lemma ejercicio_10_MSV2:
  fixes P Q :: "'b ⇒ bool"
  assumes "P a ⟶ (∃x. Q x)"
    shows "∃x. P a ⟶ Q x"
proof -
  { assume "P a"
    with assms have "∃x. Q x" by (rule mp)
    then obtain b where "Q b" by (rule exE)}

命令 } 的调用给出以下错误:结果包含获得的参数:b

Consider the following code fragment:

lemma ejercicio_10_MSV2:
  fixes P Q :: "'b ⇒ bool"
  assumes "P a ⟶ (∃x. Q x)"
    shows "∃x. P a ⟶ Q x"
proof -
  { assume "P a"
    with assms have "∃x. Q x" by (rule mp)
    then obtain b where "Q b" by (rule exE)}

The invocation of the command } is giving the following error: Result contains obtained parameters: b.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

猫九 2025-01-24 10:29:44

您正在尝试将变量b从其自然范围中导出。您的方法看起来错误,我建议您尝试在“ p a”上进行案例分析。

You are trying to export the variable b out of its natural scope. Your approach looks wrong and I suggest that you try case analysis on “P a”.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文