Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Ssreflect rewrite term matching in vanilla Coq

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Ssreflect rewrite term matching in vanilla Coq


Chronological Thread 
  • From: Enrico Tassi <enrico.tassi AT inria.fr>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Ssreflect rewrite term matching in vanilla Coq
  • Date: Wed, 23 Dec 2015 10:06:06 +0100
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=enrico.tassi AT inria.fr; spf=None smtp.mailfrom=gares AT fettunta.org; spf=None smtp.helo=postmaster AT fettunta.org
  • Ironport-phdr: 9a23:ImyVWRIAxkD8nHUZGdmcpTZWNBhigK39O0sv0rFitYgUKfXxwZ3uMQTl6Ol3ixeRBMOAu6wC17Wd6vq/EUU7or+/81k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i760zceF13FOBZvIaytQ8iJ35rxi7/5oseMKyxzxxODIppKZC2sqgvQssREyaBDEY0WjiXzn31TZu5NznlpL1/A1zz158O34YIxu38I46FppIZ8VvDxeL19RrhFBhwnNXo07Yvlr0rtVwyKs1YaSGQdlVJ0ChPe7VmuU5HrsyD98PZ0wzKbFczwV7E9Hzq4ufQ4ACT0gTsKYmZquFrcjdZ92fpW

On Wed, Dec 23, 2015 at 12:19:53AM +0100, Robbert Krebbers wrote:
> > rewrite foo; last by eauto using foo bar baz.
> >
> This is problematic when rewriting with foo gives rise to multiple
> side-conditions. Does ssreflect have a construct similar to "first"/"last"
> that applies a tactic to all generated subgoals _apart from_ the first/last
> one?

I'm afraid there is no such construct in ssreflect.

The only thing I can suggest is to "tune" the statement of the lemma.
I mean, if foo is supposed to always generate 3 subgoals, all solvable by
a tactic like eauto, then rephrasing is as "c1 /\ c2 /\ c3 -> a=b" may
be worth it.

Hope it helps,
--
Enrico Tassi



Archive powered by MHonArc 2.6.18.

Top of Page