coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: "John Wiegley" <johnw AT newartisans.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Annotation for Dependent Pattern Matching
- Date: Sat, 01 Nov 2014 20:26:57 -0500
- Organization: New Artisans LLC
>>>>> Craig McLaughlin
>>>>> <mr_mcl AT live.co.uk>
>>>>> writes:
> Thanks Jonathan! I was hesitant to use the proof mechanism to define
> functions for fear that the implementation would be much less efficient than
> PROGRAM. However, it seems much easier to define dependently typed
> functions this way; in the past I also have tried the [refine] tactic but
> found it to be awkward to use for the impossible cases.
> Is there much consensus within the Coq community on the most favourable
> approach?
I don't know about consensus, but I _often_ use the proof mechanism for
defining functions involving dependent types or contradictions. Only in a
very few cases has the extraction suffered enough to force me to rewrite the
proof term manually.
John
- [Coq-Club] Annotation for Dependent Pattern Matching, Craig McLaughlin, 11/01/2014
- Re: [Coq-Club] Annotation for Dependent Pattern Matching, Gabriel Scherer, 11/01/2014
- Re: [Coq-Club] Annotation for Dependent Pattern Matching, Craig McLaughlin, 11/01/2014
- Re: [Coq-Club] Annotation for Dependent Pattern Matching, Jonathan, 11/01/2014
- Re: [Coq-Club] Annotation for Dependent Pattern Matching, Craig McLaughlin, 11/01/2014
- Re: [Coq-Club] Annotation for Dependent Pattern Matching, Jonathan, 11/01/2014
- Re: [Coq-Club] Annotation for Dependent Pattern Matching, John Wiegley, 11/02/2014
- Re: [Coq-Club] Annotation for Dependent Pattern Matching, Arnaud Spiwack, 11/03/2014
- Re: [Coq-Club] Annotation for Dependent Pattern Matching, Craig McLaughlin, 11/01/2014
- Re: [Coq-Club] Annotation for Dependent Pattern Matching, Arnaud Spiwack, 11/01/2014
- Re: [Coq-Club] Annotation for Dependent Pattern Matching, Jonathan, 11/02/2014
- Re: [Coq-Club] Annotation for Dependent Pattern Matching, Arnaud Spiwack, 11/03/2014
- Re: [Coq-Club] Annotation for Dependent Pattern Matching, Jonathan, 11/02/2014
- Re: [Coq-Club] Annotation for Dependent Pattern Matching, Gabriel Scherer, 11/01/2014
Archive powered by MHonArc 2.6.18.