Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Debugging Notations

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Debugging Notations


Chronological Thread 
  • From: t x <txrev319 AT gmail.com>
  • To: coq-club <coq-club AT inria.fr>
  • Subject: [Coq-Club] Debugging Notations
  • Date: Wed, 28 Aug 2013 18:41:47 +0000

Consider the following minimal failure example:

Notation "'bFoo' A 'eFoo'" := (A + 2).

Eval simpl in (bFoo 2 eFoo).

Eval simpl in (bFoo false eFoo).


Right now, all I get is: a complaint of "got bool while expectig Z"

This is not particularly useful on larger examples.


The process appears to be:

[1] (bFoo false eFoo)
[2] (false + 2)
[3] type-check
[4] report type check error

Is there a way to put in a [2.5] --> print out what _expression_ is, before it is type checked?

Seeing "(false + 2)" would make debugging much easier than just a "got bool; expected Z"

Thanks!




Archive powered by MHonArc 2.6.18.

Top of Page