coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Gregory Malecha <gmalecha AT eecs.harvard.edu>
- To: Adam Chlipala <adamc AT csail.mit.edu>
- Cc: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Ltac unify expressions
- Date: Fri, 17 Feb 2012 17:45:49 -0500
- Authentication-results: mr.google.com; spf=pass (google.com: domain of gmalecha AT eecs.harvard.edu designates 10.60.3.167 as permitted sender) smtp.mail=gmalecha AT eecs.harvard.edu
Hi, Adam --
Does the [clear] call remove all traces of this from the proof? I'm going to end up calling this a lot (at least 100) and I'm worried about even small bits being left in the proof.
The other thing is that this means is that I have to cps convert all of my ltac. Is there any other way to do this? I assume there is some Ocaml function that I could expose using a plugin if this doesn't exist right now. Would this be reasonable?
Thanks.
On Fri, Feb 17, 2012 at 5:26 PM, Adam Chlipala <adamc AT csail.mit.edu> wrote:
On 02/17/2012 04:44 PM, Gregory Malecha wrote:Here's one of those Gallina/Ltac puns that is both horrifying and super-fun IMO:I am wondering if there is a better way to perform semantic equivalence checking in Ltac. Currently, I'm doing the following:
Ltac unifies a b :=match a with| b => true| _ =>let a := eval cbv in a inlet b := eval cbv in b inmatch a with| b => true| _ => falseendend.
(let H := fresh in assert (H : a = b) by reflexivity; clear H; (* call a continuation with [true]) || (* call continuation with [false] *)
This may have side effects if there are unification variables left undetermined beforehand.
gregory malecha
- [Coq-Club] Ltac unify expressions, Gregory Malecha
- Re: [Coq-Club] Ltac unify expressions,
Adam Chlipala
- Re: [Coq-Club] Ltac unify expressions, Gregory Malecha
- Re: [Coq-Club] Ltac unify expressions,
Adam Chlipala
- Re: [Coq-Club] Ltac unify expressions,
Matthieu Sozeau
- Re: [Coq-Club] Ltac unify expressions, Gregory Malecha
- Re: [Coq-Club] Ltac unify expressions,
Matthieu Sozeau
- Re: [Coq-Club] Ltac unify expressions,
Adam Chlipala
- Re: [Coq-Club] Ltac unify expressions, Gregory Malecha
- Re: [Coq-Club] Ltac unify expressions,
Adam Chlipala
Archive powered by MhonArc 2.6.16.