Skip to Content.
Sympa Menu

ssreflect - Re: [ssreflect] [rewrite foo in hyp] weirdness

Subject: Ssreflect Users Discussion List

List archive

Re: [ssreflect] [rewrite foo in hyp] weirdness


Chronological Thread 
  • From: Enrico Tassi <>
  • To:
  • Subject: Re: [ssreflect] [rewrite foo in hyp] weirdness
  • Date: Thu, 14 Jan 2016 15:49:38 +0100
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:/FccJRGkjeLLonPGobRXLp1GYnF86YWxBRYc798ds5kLTJ75o8SwAkXT6L1XgUPTWs2DsrQf27SQ4/GrBzFIyK3CmU5BWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYsExnyfTB4Ov7yUtaLyZ/niabiqtaNPk1hv3mUX/BbFF2OtwLft80b08NJC50a7V/3mEZOYPlc3mhyJFiezF7W78a0+4N/oWwL46pyv50IbaKvZL8iQLJcAT86G2Uu/ojqswPCRE2O4GEdWyMYiElmGQ/AuTz8RJb6tWPGv/Fm2WHOMMvsTLszHyir9LxqYB7ukiYOcTAjpjKEwvdshb5W9Ury7yd0xJTZNdmY

On Wed, Jan 13, 2016 at 05:05:22PM +0000, Georges Gonthier wrote:
> - We use a function provided by the setoid API to determine whether
> arguments to rewrite are valid relations; it has a history of falling
> back behind the rest of the setoid library, unfortunately...

I'm wondering if we happen to be too strict. Today we ask, beforehand,
the rewrite tactic if it can handle the head symbol of the rewrite rule
provided by the user. We could maybe say: "if it's not Leibnitz, and
it's not unfoldable, then we pass the ball to Coq's rewrite anyway and
let it complain".

Robbers, is your rewriteable relation a defined (i.e. delta-reducible)
constant or it is an inductive/hard constant?

Another option would be to add a command like

Ssr Rewrite Delegate head1 head2 ....

and keep a database on the plugin side.

Best,
--
Enrico Tassi



Archive powered by MHonArc 2.6.18.

Top of Page