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: Georges Gonthier <>
  • To: Enrico Tassi <>, "" <>
  • Subject: RE: [ssreflect] [rewrite foo in hyp] weirdness
  • Date: Thu, 14 Jan 2016 15:34:04 +0000
  • Accept-language: en-GB, en-US
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=Pass
  • Ironport-phdr: 9a23:s/NFWxTKNognSO2nZhvKq8oistpsv+yvbD5Q0YIujvd0So/mwa65YBKN2/xhgRfzUJnB7Loc0qyN4/6mCT1LvsrJmUtBWaIPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3BPAZ4bt74BpTVx5zukbvipduDMk4X2HKUWvBbElaflU3prM4YgI9veO4a6yDihT92QdlQ3n5iPlmJnhzxtY+a9Z9n9DlM6bp6r5YTGY2zRakzTKRZATI6KCh1oZSz7ViQBTeIs1YaSGQdlVJ0ChPe7VmuU5HrsyD98PZ0wzKbFczwV7E9Hzq4ueMjAgTzkioJMzMy7EnSkdY1jaRBoRvnphplwoeSbpvffK5lZbnQc9cXTnZpW91LEi1HGIK1KYoJFesIe+hC+drTvVwL+DSzAhOjCfin5ThOmn/30Ldyh+smFx3G3QE6N9cPu27Tt9L7KOEZVuXjn/qA9inKc/4DgWS104PPaB105KjUBb8=
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:23

> 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".

The real reason we unfold is to identify the LHS and RHS, which we need to
interpret the pattern (at the very least, to skip trivial rewrites). Assuming
Coq now does the unfolding properly (which was not the case at some point) we
could otherwise just pass the rule to the Coq rewrite code.

> Another option would be to add a command like
> Ssr Rewrite Delegate head1 head2 ....
> and keep a database on the plugin side.

That's a bit redundant, because vanilla Coq uses instances of the Relation
class exactly for this purpose, and nominally the function we call just
checks for such an instance. I'm not sure why it's failed again (maybe
because the Coq rewrite bypasses it and directly gets the full instance), but
it would be better to get the fix from Matthieu instead.


Best,
Georges



Archive powered by MHonArc 2.6.18.

Top of Page