Created
March 11, 2013 06:39
-
-
Save xyx-is/5132249 to your computer and use it in GitHub Desktop.
tmpの定義には成功しているのに、なぜか普通のパターンマッチtmp2でエラーが出る
( Coq 8.4 (August 2012) )
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
Inductive vect (a:Set) :forall b:Type, a -> b -> Type:= | |
| vnilt (x:a) b (y:b) : vect a b x y. | |
Definition tmp:=vnilt nat 1 bool true. | |
Check tmp. (* vect nat bool 1 true *) | |
Definition tmp2:nat :=match tmp with z => 1 end. (* error *) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment