Skip to Content.
Sympa Menu

coq-club - [Coq-Club] implicit arguments to parameters

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] implicit arguments to parameters


Chronological Thread 
  • From: Vladimir Voevodsky <vladimir AT ias.edu>
  • To: Coq Club <coq-club AT inria.fr>
  • Cc: "Prof. Vladimir Voevodsky" <vladimir AT ias.edu>
  • Subject: [Coq-Club] implicit arguments to parameters
  • Date: Sun, 1 Jun 2014 15:12:24 +0200

Hi,

I have a type of the form (I am using a simplified example):

Definition D1 : Type := forall ( T : Type ) ( x : T ) , Type .

I now have other definitions which use D1 as a type of a parameter:

Definition DD1 ( A : D1 ) := ....

Definition DD2 ( A : D1 ) := ....

etc.

I am going to use A : D1, mostly, fully applied i.e. in the form A T x . I
do not want to write T in A T x all the time since it can be easily inferred
from x . Is there a way to write something like:

Definition D1 : Type := forall { T : Type } ( x : T ) , Type .

and then to write A x ?

Vladimir.





Archive powered by MHonArc 2.6.18.

Top of Page