重新排序 Coq 中假设的显示?
Reorder display of hypothesis in Coq?
是否有一种策略可以在 Coq 证明中重新排列假设的显示。经常在使用归纳法时(假设很长),我想在顶部打印所有定义和所有其他方程式。
Coq 没有附带任何东西,但 Pierre Courtieu 的 LibHyps 为此提供了一些工具。特别是:
Require Import LibHyps.LibHyps.
onAllHyps move_up_types.
应该执行您正在寻找的内容。
澄清一下,Coq 确实提供了重新排列假设的策略。
这些是 listed in the documentation
即你会感兴趣
move h before h'.
move h after h'.
move h at top.
move h at bottom.
文档附带有用的示例,但名称应为 self-explanatory。
是否有一种策略可以在 Coq 证明中重新排列假设的显示。经常在使用归纳法时(假设很长),我想在顶部打印所有定义和所有其他方程式。
Coq 没有附带任何东西,但 Pierre Courtieu 的 LibHyps 为此提供了一些工具。特别是:
Require Import LibHyps.LibHyps.
onAllHyps move_up_types.
应该执行您正在寻找的内容。
澄清一下,Coq 确实提供了重新排列假设的策略。 这些是 listed in the documentation
即你会感兴趣
move h before h'.
move h after h'.
move h at top.
move h at bottom.
文档附带有用的示例,但名称应为 self-explanatory。