Skip to content

Instantly share code, notes, and snippets.

@umedaikiti
Created December 13, 2015 05:07
Show Gist options
  • Save umedaikiti/df91879c3e9d80e1e325 to your computer and use it in GitHub Desktop.
Save umedaikiti/df91879c3e9d80e1e325 to your computer and use it in GitHub Desktop.
ブログ記事用の例
Section s1.
Axiom a : nat.
Variable b : nat.
Definition c : nat := 1.
Let d : nat := 1.
Print All.
Definition e : nat := a+b+c+d.
Print e.
End s1.
Print All.
Print e.
Definition K : forall (P Q : Prop), P -> Q -> P.
Proof.
Show Proof.
intros.
Show Proof.
assumption.
Show Proof.
Qed.
Print K.
Definition K' : forall (P Q : Prop), P -> Q -> P :=
fun (P Q : Prop) (H : P) (_ : Q) => H.
Check K'.
Goal forall (P Q : Prop), P -> Q -> P /\ Q.
Proof.
intros.
split.
Show Proof.
Abort.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment