Theorem law_of_contradiction : forall (P Q : Prop),
P /\ ~P -> Q.
Proof.
intros P Q P_and_not_P.
destruct P_and_not_P as [P_holds not_P].
我正在尝试重新理解intros关键字。假设我们要证明P /\ ~P -> Q。好的,以某种方式intros P Q介绍Pand Q。但是这是什么意思?它是否从要证明的事物中识别P和?Q怎么样P_and_not_P?它是什么?为什么 P 和 Q 使用相同的名称,而P_and_not_Pis 是定义名称?
更新:
看起来它是逐词匹配的:
Theorem modus_tollens: forall (P Q : Prop),
(P -> Q) -> ~Q -> ~P.
Proof.
intro P.
intro Q.
intro P_implies_Q.
intro not_q.
intro not_p.
给
P Q ℙ
P_implies_Q P → Q
not_q ~ Q
not_p P
但为什么不not_p等于~P?