Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] typo in manual?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] typo in manual?


Chronological Thread 
  • From: Daniel Schepler <dschepler AT gmail.com>
  • To: t x <txrev319 AT gmail.com>
  • Cc: coq-club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] typo in manual?
  • Date: Wed, 9 Oct 2013 15:59:23 -0700

Nope, that just provides syntactic sugar for a match statement on an inductive type with a single constructor.  For example:

Definition my_projT1 {A:Type} {P:A->Type} (x : sigT P) : A :=
let '(existT a p) := x in a.

Definition my_projT2 {A:Type} {P:A->Type} (x : sigT P) :
  P (my_projT1 x) :=
let '(existT a p) as x' := x return (P (my_projT1 x')) in p.
--
Daniel Schepler



On Wed, Oct 9, 2013 at 2:25 PM, t x <txrev319 AT gmail.com> wrote:

term ::= ...
let ’ pattern [in term] := term [return_type] in term


What does the ' mean? Is it a typo?




Archive powered by MHonArc 2.6.18.

Top of Page