diff options
author | Jason Gross <jasongross9@gmail.com> | 2016-07-22 15:33:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-22 15:33:31 -0700 |
commit | 2abb4b5ea3440d478540aad852cfe81e65596189 (patch) | |
tree | 3851f94e613e595bc99da6c932ec99e033694fa3 /src/Util/FixCoqMistakes.v | |
parent | 29bb3dd531be45ba7960b34ef759b44436e48905 (diff) | |
parent | 4519b114c66b184611068b2cc9bdad644f4a5a47 (diff) |
Merge pull request #37 from JasonGross/fix-intuition
Redesign intuition, speeding up overall compilation by 20%
Diffstat (limited to 'src/Util/FixCoqMistakes.v')
-rw-r--r-- | src/Util/FixCoqMistakes.v | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Util/FixCoqMistakes.v b/src/Util/FixCoqMistakes.v new file mode 100644 index 000000000..abacfa580 --- /dev/null +++ b/src/Util/FixCoqMistakes.v @@ -0,0 +1,13 @@ +(** * Fixes *) + +(** Coq is poorly designed in some ways. We fix some of these issues + in this file. *) + +(** [intuition] means [intuition auto with *]. This is very wrong and + fragile and slow. We make [intuition] mean [intuition auto]. *) +Tactic Notation "intuition" tactic3(tactic) := intuition tactic. +Tactic Notation "intuition" := intuition auto. + +(** A version of [intuition] that allows you to see how the old + [intuition] tactic solves the proof. *) +Ltac debug_intuition := idtac "<infomsg>Warning: debug_intuition should not be used in production code.</infomsg>"; intuition debug auto with *. |