Coq:“饱和”是什么意思?证明的上下文?

发布于 2025-01-16 10:18:40 字数 460 浏览 2 评论 0原文

正如 MPI-SWS 的 std++:

(** The class [TCUnless] can be used to check that search for [P]
fails. This is useful as a guard for certain instances together with
classes like [TCFastDone] (see [tactics.v]) to prevent infinite loops
(e.g. when saturating the context). *)
Notation TCUnless P := (TCIf P TCFalse TCTrue).

As found in MPI-SWS' std++:

(** The class [TCUnless] can be used to check that search for [P]
fails. This is useful as a guard for certain instances together with
classes like [TCFastDone] (see [tactics.v]) to prevent infinite loops
(e.g. when saturating the context). *)
Notation TCUnless P := (TCIf P TCFalse TCTrue).

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

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

发布评论

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

评论(1

飘逸的'云 2025-01-23 10:18:40

给定一组起始假设以及将它们组合成新假设的方法,“饱和上下文”意味着从起始组创建尽可能多的假设。这用于证明自动化以暴力破解解决方案。

让我们举一个愚蠢的例子:假设我们试图证明 3 <= 7,从以下假设开始:

H1: 100 <= 100
H2: forall m n, S m < n -> m < n
H3: forall m n, S m < S n -> m < n

然后为了使上下文饱和,我们将重复组合这三个假设,获得数千个证明诸如 99 <= 10099 <= 9998 <= 100 等命题,等等。这些命题之一是 3 <= 7,因此您可以通过调用策略假设来得出结论。

Given a set of starting hypotheses and a way to combine them into new hypotheses, "saturating the context" means to create as many hypotheses as possible from the starting set. This is used in proof automation to brute-force a solution.

Let's give a silly example: assume we're trying to prove that 3 <= 7, starting from the following hypotheses:

H1: 100 <= 100
H2: forall m n, S m < n -> m < n
H3: forall m n, S m < S n -> m < n

Then to saturate the context we would combine these three hypotheses repeatedly, obtaining proofs for thousands of propositions such as 99 <= 100, 99 <= 99, 98 <= 100, etc. One of these propositions would be 3 <= 7, so you could just conclude by calling the tactic assumption.

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