Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] yet another pb with Notation (from Init/Logic.v)

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] yet another pb with Notation (from Init/Logic.v)


chronological Thread 
  • From: Hugo Herbelin <Hugo.Herbelin AT inria.fr>
  • To: Jean-Francois Monin <jean-francois.monin AT imag.fr>
  • Cc: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] yet another pb with Notation (from Init/Logic.v)
  • Date: Fri, 14 May 2010 12:27:13 +0200

Hi Jean-François,

On Fri, May 14, 2010 at 08:31:54AM +0800, Jean-Francois Monin wrote:
> [Previously: Re: [Coq-Club] record field is "lost" if import is used]
> 
> I have another problem with Imp.v, which is also related to
> "Notation". The following inductive predicate should
> be entirely defined using programming language notation,
> but Coq is unable to parse "IF b1 THEN c1 ELSE c2" here.
> Printing is OK. The conflict is with IF... then... else
> from Init/Logic.v which seems to prevent a different use of IF.

In Imp.v, I only see a notation "IFB b1 THEN c1 ELSE c2". Did you try
using this one?

> Any clue? Is there a convenient solution with scopes?

If notations had been exactly the same (same keywords, same case),
scopes could have been used to modify the interpretations.

> BTW I'm unsure that "IF" in Init/Logic.v is as important as 
> usual connectives ("/\", etc.).

I agree but some existing developments may dependent on it. 

Hugo Herbelin



Archive powered by MhonArc 2.6.16.

Top of Page