Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Pierce Software Foundations. Runs fine in Coq 8.4, but error in 8.5.

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Pierce Software Foundations. Runs fine in Coq 8.4, but error in 8.5.


Chronological Thread 
  • From: Sriram Srinivasan <sriram AT malhar.net>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] Pierce Software Foundations. Runs fine in Coq 8.4, but error in 8.5.
  • Date: Tue, 24 Feb 2015 06:20:28 +0000 (UTC)

Can someone explain why the following doesn't work in 8.5beta1?

Thanks much.


Inductive list (X:Type) : Type :=
| nil : list X
| cons : X -> list X -> list X.


Fixpoint length (X:Type) (l:list X) : nat :=
match l with
|nil => 0
|cons h t => S (length X t)
end.

Error: The constructor nil (in type list) expects 1 argument.




Archive powered by MHonArc 2.6.18.

Top of Page