coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Vadim Zaliva <vzaliva AT cmu.edu>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] dealing with setoid rewriting problems
- Date: Mon, 30 Nov 2015 18:57:53 -0800
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=vadim.zaliva AT west.cmu.edu; spf=None smtp.mailfrom=vadim.zaliva AT west.cmu.edu; spf=None smtp.helo=postmaster AT mail-pa0-f52.google.com
- Ironport-phdr: 9a23:oUDQVxYbikFiCGYgQIl/X0//LSx+4OfEezUN459isYplN5qZpcm7bnLW6fgltlLVR4KTs6sC0LqL9fCxEjFcqb+681k8M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aJBzzOEJPK/jvHcaK1oLsh730q8yYPlkArQH+SI0xBS3+lR/WuMgSjNkqAYcK4TyNnEF1ff9Lz3hjP1OZkkW0zM6x+Jl+73YY4Kp5pIZ2arjhZ6kzUZBfCT0nNSh1uJyq5lH/Sl6E4WJZWWELmDJJBRLE5Vf0RMTfqCz/49R01Cifdf//SbEqUHz28bViTB72gQ8MMiN//W3K3J8jxJlHqQ6s8kQsi7XfZ5uYYaYvcw==
On Nov 30, 2015, at 16:29 , Abhishek Anand <abhishek.anand.iitg AT gmail.com> wrote:1) Typeclass resolution may be a reason for long rewrite times. If so, the following may helpTypeclasses eauto := 5 (* or a small number, to limit the depth of search *)Typeclasses eauto := debugFor more, see the last section of https://coq.inria.fr/refman/Reference-Manual022.html#sec673
Thanks!
I played with these options and experimentally determined that if I set:
Typeclasses eauto := 7.
the ‘rewrite’ tactics application succeeds. Depths below 7 causes unresolved constraints. Any number above 7 works but takes exponentially longer time, which makes sense. Apparently some non-essential branch goes too deep, but I am unsure which one. My intuition is to try to find which one and somehow limit it, perhaps using "Typeclasses Opaque”.
Any hints how to analyze the debug log? What should I look for? Here is partial log file:
P.S. I tried breadth-first search as well.
Sincerely,
Vadim Zaliva
Vadim Zaliva
--
CMU ECE PhD candidate
Mobile: +1(510)220-1060
Skype: vzaliva
- [Coq-Club] dealing with setoid rewriting problems, Vadim Zaliva, 12/01/2015
- Re: [Coq-Club] dealing with setoid rewriting problems, Clément Pit--Claudel, 12/01/2015
- Re: [Coq-Club] dealing with setoid rewriting problems, Vadim Zaliva, 12/01/2015
- Re: [Coq-Club] dealing with setoid rewriting problems, Abhishek Anand, 12/01/2015
- Re: [Coq-Club] dealing with setoid rewriting problems, Vadim Zaliva, 12/01/2015
- Re: [Coq-Club] dealing with setoid rewriting problems, Vadim Zaliva, 12/01/2015
- Re: [Coq-Club] dealing with setoid rewriting problems, James Lottes, 12/01/2015
- Re: [Coq-Club] dealing with setoid rewriting problems, Pierre Courtieu, 12/01/2015
- Re: [Coq-Club] dealing with setoid rewriting problems, James Lottes, 12/01/2015
- Re: [Coq-Club] dealing with setoid rewriting problems, Vadim Zaliva, 12/01/2015
- Re: [Coq-Club] dealing with setoid rewriting problems, Vadim Zaliva, 12/01/2015
- Re: [Coq-Club] dealing with setoid rewriting problems, Abhishek Anand, 12/01/2015
- Re: [Coq-Club] dealing with setoid rewriting problems, Vadim Zaliva, 12/01/2015
- Re: [Coq-Club] dealing with setoid rewriting problems, Clément Pit--Claudel, 12/01/2015
Archive powered by MHonArc 2.6.18.