Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Notiations inside Sections.

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Notiations inside Sections.


chronological Thread 
  • From: Hugo Herbelin <herbelin AT pauillac.inria.fr>
  • To: J.Stein AT cs.ru.nl (Jasper Stein)
  • Cc: roconnor AT theorem.ca, coq-club AT pauillac.inria.fr
  • Subject: Re: [Coq-Club] Notiations inside Sections.
  • Date: Wed, 23 Mar 2005 13:48:06 +0100 (MET)
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

  Hi,

> Op zaterdag 19 maart 2005 10:28, schreef 
> roconnor AT theorem.ca:
> > I am creating a file, but I don't want to export every definition and
> > lemma.  So I create a Section and use Let and Remark on the items I don't
> > want to export.  But I also want to define some Notations.  The Notations
> > don't seems to survive pas the end of my Section.
> >
> > Is there a simple solution to my problem?
> 
> The obvious (but not so elegant) solution is to re-declare your Notations 
> after ending the section.
> 
> Section concat.
> Definition concat:=...
> Notation "a ++ b" := concat a b.
> End concat.
> Notation "a ++ b" := concat a b.

  Ending a section generalises the objects of the section
relatively to the variables and local definitions of the section.

  In general, there is no canonical way to "generalise" a notation,
that's why they are thrown away at section closing time.

  Hugo Herbelin




Archive powered by MhonArc 2.6.16.

Top of Page