Created
November 26, 2013 21:06
-
-
Save ghulette/7666263 to your computer and use it in GitHub Desktop.
This crashes Coq 8.4pl2...
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 Le. | |
(* We shouldn't really need the return clause here, but Coq 8.4pl2 | |
will crash without it... *) | |
Definition test (i : nat) (x : {n : nat | n <= i}) : nat := | |
match x with | |
| exist O _ => 0 | |
| exist (S x') p => | |
match i (* return (S x' <= i) -> nat *) with | |
| O => fun p => except (le_Sn_0 x' p) | |
| S i' => fun _ => 0 | |
end p | |
end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment