coq 我应该对所有 A 使用什么策略:Prop, A -> ~~A
coq What tactics should I use forall A : Prop, A -> ~~A
我不知道我要用什么策略来证明这个公式。
我尝试了两种方法,但我被困在这两种方法中。
Lemma Exo17 : forall A : Prop, ~~(A \/ ~A).
Proof.
Methode 1
intro.
unfold not.
intro.
Methode 2
intro.
intro.
case H.
针对这种情况的最佳策略称为 "pen and paper"。事实上,您应该首先尝试手动构建证明 [intuitionistic sequent calculus LJ 应该可以很好地用于此目的]。
一旦您对证明的工作原理有了清晰的了解,在 Coq 中对其进行编码将变得微不足道。
尝试使用 intuition
解决问题,然后 Print Exo17
找出解决方案。
我不知道我要用什么策略来证明这个公式。 我尝试了两种方法,但我被困在这两种方法中。
Lemma Exo17 : forall A : Prop, ~~(A \/ ~A).
Proof.
Methode 1
intro.
unfold not.
intro.
Methode 2
intro.
intro.
case H.
针对这种情况的最佳策略称为 "pen and paper"。事实上,您应该首先尝试手动构建证明 [intuitionistic sequent calculus LJ 应该可以很好地用于此目的]。
一旦您对证明的工作原理有了清晰的了解,在 Coq 中对其进行编码将变得微不足道。
尝试使用 intuition
解决问题,然后 Print Exo17
找出解决方案。