coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- 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 ScheplerDefinition 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.
--
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?
- [Coq-Club] typo in manual?, t x, 10/09/2013
- Re: [Coq-Club] typo in manual?, Daniel Schepler, 10/10/2013
Archive powered by MHonArc 2.6.18.