Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Notations and implicit arguments

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Notations and implicit arguments


chronological Thread 
  • From: Paolo Herms <paolo.herms AT cea.fr>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] Notations and implicit arguments
  • Date: Mon, 15 Mar 2010 11:05:44 +0100

Hello,

Imagine one wanted to define a notation for application.

Notation "e1 @@ e2" := (e1 e2)  (at level 10).

This doesn't work as expected as it confuses the treatment of implicit 
arguments. More precisely, implicit arguments that are not declared to be 
maximally inserted don't seem to be considered.

Implicit Arguments Some [[A]].
Check (Some @@ 4).
        (* Some 4  : option nat *)
Implicit Arguments Some [A].
Check (Some @@ 4).

The term "4" has type "nat" while it is expected to have type "Type".

Does anyone see a way to work this around?

Many thanks in advance,
-- 
Paolo Herms
PhD Student - CEA-LIST Software Safety Lab. / INRIA ProVal Project
Paris, France



Archive powered by MhonArc 2.6.16.

Top of Page