我试图证明->
Coq 命题的传递性:
Theorem implies_trans : forall P Q R : Prop,
(P -> Q) -> (Q -> R) -> (P -> R).
Proof.
我想破坏所有的命题,简单地用自反性处理所有 8 种可能性。显然事情没那么简单。这是我尝试过的:
Theorem implies_trans : forall P Q R : Prop,
(P -> Q) -> (Q -> R) -> (P -> R).
Proof.
intros P Q R H1 H2.
destruct P. (** Hmmm ... this doesn't work *)
Admitted.
这就是我得到的:
1 subgoal
P, Q, R : Prop
H1 : P -> Q
H2 : Q -> R
______________________________________(1/1)
P -> R
其次是这个错误:
Error: Not an inductive product.
非常感谢任何帮助,谢谢!