Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] dealing with setoid rewriting problems

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] dealing with setoid rewriting problems


Chronological Thread 
  • 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 help
Typeclasses eauto := 5 (* or a small number, to limit the depth of search  *)
Typeclasses eauto := debug


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:

http://bit.ly/1St2sZy

P.S. I tried breadth-first search as well.


Sincerely,
Vadim Zaliva

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




Archive powered by MHonArc 2.6.18.

Top of Page