Commit 2020-04-25 05:42 199f6fe4
View on Github →refactor(tactic/suggest): call library_search and suggest with additional lemmas, better lemma caching (#2429) This PR is mainly a refactoring of suggest. The changes include:
- Removed
(discharger : tactic unit := done)fromlibrary_search,suggest,suggest_scriptssuggest_core,suggest_core',apply_declarationandapply_and_solveand replaced by(opt : by_elim_opt := { })fromsolve_by_elim. - Replaced all occurences of
dischargerbyopt,opt.discharger, or..opt. - inserted a do block into the interactive
library_searchfunction. - Added
asms ← mk_assumption_set no_dflt hs attr_names, to the interactivesuggestandlibrary_searchfunctions. This is solibrary_searchandsuggestdon't rebuild the assumption set each time a lemma is applied. - Added several inputs for the interactive
library_searchandsuggestfunction. These parameters were lifted from the interactivesolve_by_elimfunction and allow the user to control howsolve_by_elimis utilized bylibrary_searchandsuggest. - Removed the
messagefunction (redundant code.) - Removed several unnecessary
g ← instantiate_mvars g, lines.