Skip to content

Instantly share code, notes, and snippets.

@satos---jp
Created May 11, 2014 14:11
Show Gist options
  • Save satos---jp/f35d36658ce11281a7b9 to your computer and use it in GitHub Desktop.
Save satos---jp/f35d36658ce11281a7b9 to your computer and use it in GitHub Desktop.
(* 必要な公理を入れる *)
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