coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jonathan Leivent <jonikelee AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] very slow rewrite in *|- in 8.5beta3
- Date: Fri, 13 Nov 2015 11:43:00 -0500
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=jonikelee AT gmail.com; spf=Pass smtp.mailfrom=jonikelee AT gmail.com; spf=None smtp.helo=postmaster AT mail-yk0-f176.google.com
- Ironport-phdr: 9a23:IKgTnxae6IPnbK9mHJQqo+//LSx+4OfEezUN459isYplN5qZpc+zbnLW6fgltlLVR4KTs6sC0LqL9f25Ej1Yqb+681k8M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aJBzzOEJPK/jvHcaK1oLsh730psSYMl0ArQH+SI0xBS3+lR/WuMgSjNkqAYcK4TyNnEF1ff9Lz3hjP1OZkkW0zM6x+Jl+73YY4Kp5pIYTGZn9Kq8/VPlTCCksG2Ez/szi8xfZHiWV4X5JcGIQmwZICg6NyBz7QJr3rmOutO172SqXOcD7Zb8xUDWmqaxsTUm72288Kzcl/TSP2YRLh6VBrUf5qg==
On 11/13/2015 09:58 AM, Jonathan Leivent wrote:
On 11/13/2015 05:33 AM, Pierre-Marie Pédrot wrote:
On 13/11/2015 05:41, Jonathan Leivent wrote:
I compared a problematic rewrite in *|- against aProbably due to the cost of finding paths through setoid_rewrite. Do you
repeat/match/context/rewrite tactic that does the same set of rewrites
in the goal, and the rewrite in *|- was 8X slower. But, removing the
context pattern removes the 8X speedup.
have a reproducible and minimal example?
It will take me a while to prepare something small. Maybe Jason's coq-bug-finder can be used to assist this process. I'll work on it...
I tried the easiest thing first - simply factor out the particular subgoal I used in this test into a standalone "Goal". Quite surprisingly, that didn't work - the "rewrite in *|-" went very fast in that standalone goal.
I then went back into the original proof and admitted all prior subgoals that did rewrites before the subgoal I tested, so that the tested subgoal would be the first with rewrites - and again the "rewrite in *|-" in that tested subgoal were very fast.
I then used abstract on those prior subgoals, instead of admits, so that the full subgoal proofs with rewrites would go through, but wouldn't appear in the proof term. That again made the slowdown disappear in the tested subgoal! In fact, the time went down to 0.1 secs.
So, "rewrite in |-*" is carrying around some burden from prior subgoals in the same proof. Perhaps it is performing the search on the entire proof term up to that point (which is large if I don't do those admits or abstracts), instead of just on the particular subgoal's context?
-- Jonathan
- [Coq-Club] very slow rewrite in *|- in 8.5beta3, Jonathan Leivent, 11/13/2015
- Re: [Coq-Club] very slow rewrite in *|- in 8.5beta3, Pierre-Marie Pédrot, 11/13/2015
- Re: [Coq-Club] very slow rewrite in *|- in 8.5beta3, Jonathan Leivent, 11/13/2015
- Re: [Coq-Club] very slow rewrite in *|- in 8.5beta3, Jonathan Leivent, 11/13/2015
- Re: [Coq-Club] very slow rewrite in *|- in 8.5beta3, Pierre-Marie Pédrot, 11/13/2015
- Re: [Coq-Club] very slow rewrite in *|- in 8.5beta3, Jason Gross, 11/13/2015
- Re: [Coq-Club] very slow rewrite in *|- in 8.5beta3, Clément Pit--Claudel, 11/13/2015
- Re: [Coq-Club] very slow rewrite in *|- in 8.5beta3, Jonathan Leivent, 11/13/2015
- Re: [Coq-Club] very slow rewrite in *|- in 8.5beta3, Jonathan Leivent, 11/16/2015
- Re: [Coq-Club] very slow rewrite in *|- in 8.5beta3, Pierre-Marie Pédrot, 11/16/2015
- Re: [Coq-Club] very slow rewrite in *|- in 8.5beta3, Jason Gross, 11/13/2015
- Re: [Coq-Club] very slow rewrite in *|- in 8.5beta3, Pierre-Marie Pédrot, 11/13/2015
- Re: [Coq-Club] very slow rewrite in *|- in 8.5beta3, Jonathan Leivent, 11/13/2015
- Re: [Coq-Club] very slow rewrite in *|- in 8.5beta3, Jonathan Leivent, 11/13/2015
- Re: [Coq-Club] very slow rewrite in *|- in 8.5beta3, Pierre-Marie Pédrot, 11/13/2015
Archive powered by MHonArc 2.6.18.