Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Questions on notation

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Questions on notation


Chronological Thread 
  • From: "N. Raghavendra" <nyraghu27132 AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] Questions on notation
  • Date: Fri, 01 Dec 2017 10:33:45 +0530
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=nyraghu27132 AT gmail.com; spf=Pass smtp.mailfrom=nyraghu27132 AT gmail.com; spf=None smtp.helo=postmaster AT mail-pl0-f65.google.com
  • Ironport-phdr: 9a23:Vemt5BNBOfVvVsXsbKAl6mtUPXoX/o7sNwtQ0KIMzox0KP35rarrMEGX3/hxlliBBdydsK0UzbeO+4nbGkU+or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6a8TWO6msZHQy6Pg5oLMz0HJTThoK5zbOI9oXXcjlP0XCbJ/tIJRq2pBvcsMUMiMEqfqAg0BLGomYSJL0Nn0tnIFuSm1D34cLmr7B59CEF8dRnv/RJXqXzYak+QaZRRnxyNXEv7cLrqEOcFFDVznQZW2QS1BFPBl6Wv1nBQp7tv36i5aJG0y6AMJiuQA==

I am reading Section 12.1.3 (Complex notations) of the manual, which has
the example

Notation "{ x : A | P }" := (sig A (fun x => P)) (at level 0, x at level 99).

My understanding was that one attaches precedence levels to operations
(as in "* has a higher precedence level than +"). So, what does
attaching the precedence level 99 to x, which is not an operator, mean?
How does it ensure that "x : A" is not confused with a type cast, as
mentioned in the manual?

On a related note, Coq.Init.Notations declares

Reserved Notation "x -> y" (at level 99, right associativity, y at level 200).

Is there a reason, as in the above example, to choose 200 for y?

Thanks and regards,
Raghu.

--
N. Raghavendra
<raghu AT hri.res.in>,
http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/



Archive powered by MHonArc 2.6.18.

Top of Page