Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Inline declaration of minimally inserted implicit arguments

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Inline declaration of minimally inserted implicit arguments


Chronological Thread 
  • From: Ralf Jung <jung AT mpi-sws.org>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] Inline declaration of minimally inserted implicit arguments
  • Date: Tue, 13 Dec 2016 10:57:58 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=jung AT mpi-sws.org; spf=Pass smtp.mailfrom=jung AT mpi-sws.org; spf=None smtp.helo=postmaster AT hera.mpi-klsb.mpg.de
  • Ironport-phdr: 9a23:3siBxxxJysmPipnXCy+O+j09IxM/srCxBDY+r6Qd0uwSIJqq85mqBkHD//Il1AaPBtSArawYwLKN++C4ACpbvsbH6ChDOLV3FDY7yuwu1zQ6B8CEDUCpZNXLVAcdWPp4aVl+4nugOlJUEsutL3fbo3m18CJAUk6nbVk9dazJHdvZiN3y3OSv8bXSZR9JjXyze+BcNhKz+D/Yssdeo5ZkJe5lyAbPrVNNY+UT3nxzY1WJkECvtY+L4Jd//nEI6Loa/MlaXPCicg==

Hi all,

is there a syntax to make an argument of a Definition *minimally*
inserted? I know the following syntax:

Definition foo_id {A : Type} (a : A) := a.

However, this makes A *maximally* inserted. Of course I can then use
Arguments to make it minimally inserted, but (a) this has the potential
of de-syncing with the definition and (b) the place where I need this is
a section variable where I would have to re-declare Arguments for each
definition inside the section. That's not a scalable option.

What I am looking for is either an option ("Set ...") to configure
whether the curly braces make arguments minimally or maximally implicit,
or another syntax (an alternative to the curly braces) that makes them
minimally implicit. Does something like that exist?

I found "Unset Maximal Implicit Insertion.", but that affects only the
arguments that are automatically made implicit, not those that are
declared implicit by using curly braces.

Kind regards,
Ralf



Archive powered by MHonArc 2.6.18.

Top of Page