Skip to Content.
Sympa Menu

coq-club - [Coq-Club] hint cost vs. order

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] hint cost vs. order


Chronological Thread 
  • From: Jonathan Leivent <jonikelee AT gmail.com>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: [Coq-Club] hint cost vs. order
  • Date: Thu, 15 Oct 2015 19:10:41 -0400
  • Authentication-results: mail2-smtp-roc.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-qk0-f179.google.com
  • Ironport-phdr: 9a23:ZwJFLR2ejUVNC+TYsmDT+DRfVm0co7zxezQtwd8ZsegeL/ad9pjvdHbS+e9qxAeQG96Lt7QV06GM6OjJYi8p39WoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6kO74TNaIBjjLw09fr2zQd6OyZXvnLrps7ToICx2xxOFKYtoKxu3qQiD/uI3uqBFbpgL9x3Sv3FTcP5Xz247bXianhL7+9vitMU7q3cYk7sb+sVBSaT3ebgjBfwdVWx+cjMDzZa07lybEUPPuyNdAS0qlU9jBBGNxxXnVN+luSzj8+F5xSOyPMvsTLlyVy70vIlxTxq9qiABPiI5+WefrsFxkq9dvFr1pRt5wo3ZZIyYHPV7d6LZO9gdQDwSDY5qSyVdD9bkPMM0BO0bMLMd8tHw

Is it the case that auto is supposed to try all (pattern applicable) hints in ascending cost order, regardless of hint declaration order? That seems to be what the refman implies - although it says very little about cost. However, there appear to be cases where auto will try a higher cost hint that was declared later before a lower cost hint declared earlier. Is that a bug?

Interestingly, it looks like using auto with nocore and a small db can outperform combining the hints from that small db into a single recursive match-based tactic. However, I'm finding it difficult to use hint cost to control the order in which hints are tried.

-- Jonathan




Archive powered by MHonArc 2.6.18.

Top of Page