Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Equations from match-case unifiers under refine tactic

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Equations from match-case unifiers under refine tactic


chronological Thread 
  • From: Petter Urkedal <paurkedal AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Equations from match-case unifiers under refine tactic
  • Date: Fri, 3 Dec 2010 21:40:34 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=x/miviKJ6hKhKIIOvIFlkjHMJ+o59wp7W/VujtWgcTku9JQC+czIw4DALbMH1VtHlD 6RA362YnAtJyp6GAlO0bRKSaoh1Fq/HOxdkSg58wkerE4Mm5pynKKD4MLmkq4/yRcssC 5NVNxyXApmaiYHfXuUCmTHik8B5fXlonHDL8s=

On Fri, Dec 3, 2010 at 9:13 PM, Adam Chlipala 
<adam AT chlipala.net>
 wrote:
> This is easy to solve using what I call the convoy pattern in CPDT
> (http://adam.chlipala.net/cpdt/):
>
> Definition test : ordnatpair -> nat.
>  refine (fun p => match p with
>                 | ordnatpair_intro n m H =>
>                       match n return n <= m -> nat with
>                         | O => fun H => _
>                         | S n' => fun H => _
>                       end H
>                   end).

That worked like a charm also on my real case :-).

> If you're getting into the Coq dependent types business, it's probably worth
> reading more of the book.

I certainly will.

Thanks!




Archive powered by MhonArc 2.6.16.

Top of Page