Skip to content

Instantly share code, notes, and snippets.

@wilcoxjay
Forked from nkaretnikov/R.v
Created April 22, 2015 02:13
Show Gist options
  • Save wilcoxjay/350ae3a18a8d3bd77766 to your computer and use it in GitHub Desktop.
Save wilcoxjay/350ae3a18a8d3bd77766 to your computer and use it in GitHub Desktop.
Inductive R : nat -> nat -> nat -> Prop :=
| c1 : R 0 0 0
| c2 : forall m n o, R m n o -> R (S m) n (S o)
| c3 : forall m n o, R m n o -> R m (S n) (S o)
| c4 : forall m n o, R (S m) (S n) (S (S o)) -> R m n o
| c5 : forall m n o, R m n o -> R n m o.
Require Import Omega.
Theorem R_is_plus :
forall m n o,
R m n o -> m + n = o.
Proof.
induction 1; omega.
Qed.
Theorem foo : ~ R 2 2 6.
Proof.
intro.
apply R_is_plus in H.
omega.
Qed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment