coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- 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.
- [Coq-Club] implicit arguments to parameters, Vladimir Voevodsky, 06/01/2014
- Re: [Coq-Club] implicit arguments to parameters, sdk, 06/01/2014
- Re: [Coq-Club] implicit arguments to parameters, Robbert Krebbers, 06/01/2014
- Re: [Coq-Club] implicit arguments to parameters, Jason Gross, 06/02/2014
- Re: [Coq-Club] implicit arguments to parameters, Arnaud Spiwack, 06/03/2014
Archive powered by MHonArc 2.6.18.