Skip to content

Instantly share code, notes, and snippets.

@joisino
Created April 7, 2014 01:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joisino/10013775 to your computer and use it in GitHub Desktop.
Save joisino/10013775 to your computer and use it in GitHub Desktop.
Theorem Modus_ponens : forall P Q : Prop, P -> (P -> Q) -> Q.
Proof.
intros.
apply H0.
apply H.
Qed.
Theorem Modus_tollens : forall P Q : Prop, ~Q /\ (P -> Q) -> ~P.
Proof.
intros.
destruct H.
intro.
apply H.
apply H0.
apply H1.
Qed.
Theorem Disjunctive_syllogism : forall P Q : Prop, (P \/ Q) -> ~P -> Q.
Proof.
intros.
destruct H.
destruct H0.
apply H.
apply H.
Qed.
Theorem DeMorgan1 : forall P Q : Prop, ~P \/ ~Q -> ~(P /\ Q).
Proof.
unfold not.
intros.
destruct H.
apply H.
apply H0.
apply H.
apply H0.
Qed.
Theorem DeMorgan2 : forall P Q : Prop, ~P /\ ~Q -> ~(P \/ Q).
Proof.
unfold not.
intros.
destruct H.
destruct H0.
apply H.
apply H0.
apply H1.
apply H0.
Qed.
Theorem DeMorgan3 : forall P Q : Prop, ~(P \/ Q) -> ~P /\ ~Q.
Proof.
unfold not.
intros.
split.
intros.
apply H.
left.
apply H0.
intros.
apply H.
right.
apply H0.
Qed.
Theorem NotNot_LEM : forall P : Prop, ~ ~(P \/ ~P).
Proof.
unfold not.
intros.
apply H.
right.
intro.
apply H.
left.
apply H0.
Qed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment