Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Agda-like notation for dependent function types

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Agda-like notation for dependent function types


Chronological Thread 
  • From: Pierre-Marie Pédrot <pierre-marie.pedrot AT inria.fr>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Agda-like notation for dependent function types
  • Date: Mon, 22 Dec 2014 11:18:05 +0100

The following works for me™ (in Coq trunk):

Notation "( x : A ) -> B" := (forall (x : A), B) (at level 99, right
associativity, x at level 0, B at level
200) : type_scope.

Definition foo : ( x : nat ) -> x = x := fun x => eq_refl.

PMP

Attachment: signature.asc
Description: OpenPGP digital signature




Archive powered by MHonArc 2.6.18.

Top of Page