Created
May 11, 2014 14:11
-
-
Save satos---jp/f35d36658ce11281a7b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* 必要な公理を入れる *) | |
Require Import Coq.Logic.Classical. | |
Lemma ABC_iff_iff : | |
forall A B C : Prop, ((A <-> B) <-> C) <-> (A <-> (B <-> C)). | |
Proof. | |
intros. | |
tauto. | |
Qed. | |
(* 必要な公理を入れる *) | |
Goal | |
forall P Q R : Prop, | |
(IF P then Q else R) -> | |
exists b : bool, | |
(if b then Q else R). | |
Proof. | |
intros. | |
destruct H. | |
exists true. | |
destruct H. | |
apply H0. | |
exists false. | |
destruct H. | |
apply H0. | |
Qed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment