Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] more naive questions about rewriting

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] more naive questions about rewriting


Chronological Thread 
  • From: Matthieu Sozeau <mattam AT mattam.org>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] more naive questions about rewriting
  • Date: Thu, 18 Aug 2016 16:12:38 +0000
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=mattam AT mattam.org; spf=Pass smtp.mailfrom=matthieu.sozeau AT gmail.com; spf=None smtp.helo=postmaster AT mail-wm0-f47.google.com
  • Ironport-phdr: 9a23:7UWkyhVzX1d92NeISCHXbXDTn9rV8LGtZVwlr6E/grcLSJyIuqrYZhGDt8tkgFKBZ4jH8fUM07OQ6PG5HzZcqsff+DBaKdoXBkdD0Z1X1yUbQ+e9QXXhK/DrayFoVO9jb3RCu0+BDE5OBczlbEfTqHDhpRQbGxH4KBYnbr+tQt2asc272qiI9oHJZE0Q3XzmMOo0dkn9/FuZ9pFPx9AzcuBpklqBi0ALUtwe/XlvK1OXkkS0zeaL17knzR5tvek8/dVLS6TwcvdwZ7VZCDM7LzJ9v5Wz5lGQBTeIs3AbSyAdlgdCKwnD9hDzGJnr4QXgse8o/SCGIc33QK18YjOw4q52AEvtgTsbPjsR9WjLlsV1yqVBr0Ty9FRE34fIbdTNZ7JFdaTHcIZCSA==

Hi Vadim,

It's more likely to be failing unifications that take a long time indeed. It's easy to check which it is using Set Typeclasses Depth 0 which will make resolution fail immediately. Maybe using Hint Opaque foo : rewrite. for a few constants you don't want to unfold during unification of the lemma would help (these hints are used by setoid_rewrite).

Hope this helps,
-- Matthieu

Le jeu. 18 août 2016 à 01:56, Vadim Zaliva <vzaliva AT cmu.edu> a écrit :

On Wed, Aug 17, 2016 at 4:16 PM, Vadim Zaliva <vzaliva AT cmu.edu> wrote:
expressions 'a' and 'b' are approximately 400 lines long each. Even if I use (set with wildcards trick proposed by Laurent, I do not have to spell out 'a' but I still need manually construct and write down 'b'. So making 'setoid_rewrite ... at n' could really help here.

Found another workaround which allows to avoid spelling full expressions:

  remember (compose (foo _ ) _) as c1 eqn: Hc1.
  setoid_rewrite <- compose_assoc in Hc1.
  subst c1.

but it is still hacky...


--
CMU ECE PhD candidate
Mobile: +1(510)220-1060




Archive powered by MHonArc 2.6.18.

Top of Page