Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Why I'm not getting any equalities as hypothesis in while filling underscores in proof mode

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Why I'm not getting any equalities as hypothesis in while filling underscores in proof mode


Chronological Thread 
  • From: Adam Chlipala <adamc AT csail.mit.edu>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Why I'm not getting any equalities as hypothesis in while filling underscores in proof mode
  • Date: Mon, 07 Apr 2014 07:37:51 -0400

IMO, this is a great illustration of why Coq should never infer dependent-match annotations, except in copying down the type of the current function verbatim.

On 04/07/2014 06:28 AM, Ömer Sinan Ağacan wrote:
This is weird. Coq was saying that the problem is with cons branch,
not nil branch. But when I changed nil branch it worked. So this also
works:

Fixpoint pt_aux h len (v : Vector.t nat len) : Vector.t nat len :=
match v with
| Vector.nil => Vector.nil nat
| Vector.cons h' _ t' =>
Vector.cons nat (h + h') _ (pt_aux h' _ t')
end.

Thanks again.




Archive powered by MHonArc 2.6.18.

Top of Page