From 4a7d857dfb7733c103d944dfad82bd688037f721 Mon Sep 17 00:00:00 2001 From: Andres Erbsen Date: Sat, 25 Jun 2016 19:50:33 -0400 Subject: actually fix pose proof --- folkwisdom.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'folkwisdom.md') diff --git a/folkwisdom.md b/folkwisdom.md index 3530a517a..2234af646 100644 --- a/folkwisdom.md +++ b/folkwisdom.md @@ -208,11 +208,11 @@ sometimes even gives sensible error messages in Coq 8.5) but revert to `rewrite` once the issue has been found and fixed. If rewriting picks the wrong `Equivalence` or `Proper` instance for some type or function (or fails to find one altogether), troubleshoot that separately: check that `pose proof -(_:@Equivalence T equiv)` or `pose(_:Proper (equiv1==>equiv2) f)` give the right -answer, and if not, `Set Typeclasses Debug` and read the log (which is in the -hidden `*coq*` buffer in Proof General). A useful heuristic for reading that log -is to look for the first place where the resolution backtracks and then read -backwards from there. +(_:@Equivalence T equiv)` or `pose proof (_:Proper (equiv1==>equiv2) f)` give +the right answer, and if not, `Set Typeclasses Debug` and read the log (which is +in the hidden `*coq*` buffer in Proof General). A useful heuristic for reading +that log is to look for the first place where the resolution backtracks and then +read backwards from there. 5. To perform multiple rewrites at once, make rewrite hint database and call `(rewrite_strat topdown hints dbname).` where `topdown` can be replaced with `bottomup` for different behavior. This does not seem to unfold -- cgit v1.2.3