Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] I am completely befuddled by this error message.

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] I am completely befuddled by this error message.


chronological Thread 
  • From: Brian Aydemir <baydemir AT cis.upenn.edu>
  • To: "M. Scott Doerrie" <mdoerri AT cs.jhu.edu>
  • Cc: coq-club AT pauillac.inria.fr
  • Subject: Re: [Coq-Club] I am completely befuddled by this error message.
  • Date: Wed, 24 Jun 2009 16:14:44 -0400
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

On Jun 24, 2009, at 4:09 PM, M. Scott Doerrie wrote:

How the heck can I get this error message?  It is most confusing.

f : R.t -> AG.t -> AG.t
f' : R.t -> AG.t -> AG.t
refs : RefSet.t
refs' : RefSet.t
acc : AG.t
acc' : AG.t
H : RefSet.Equal refs refs'
H0 : AG.Equal acc acc'
H1 : forall (r r' : R.t) (ag ag' : AG.t),
   AG.Equal ag ag' -> R.eq r r' -> AG.Equal (f r ag) (f' r' ag')
H4 : refs' = refs
The term "H4" has type "refs' = refs" while it is expected to have type
"refs' = refs"

The first thing I would do here is

        Set Printing All.

which prints out the raw terms---implicit arguments are explicit, no notations, etc. In a situation like this, I often find that something normally hidden from display is causing things not to unify or match. (Maybe there are multiple, convertible ways of writing RefSet.t?)

I hope that helps,
Brian





Archive powered by MhonArc 2.6.16.

Top of Page