Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Annotation for Dependent Pattern Matching

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Annotation for Dependent Pattern Matching


Chronological Thread 
  • 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



Archive powered by MHonArc 2.6.18.

Top of Page