Commit 2020-07-20 08:16 a400adb9
View on Github →fix(tactic/library_search): 1 ≤ n goals in nat (#3462)
Fixes #3432.
This PR changes library_search and suggest:
- instead of just selecting lemma with a single
nameas their head symbol, allows selecting from aname_set. - when the goal is
≤on certainℕgoals, set thatname_setto[has_lt.lt, has_le.le], for more flexible matching of inequality lemmas aboutℕ - now successfully solves
theorem nonzero_gt_one (n : ℕ) : ¬ n = 0 → n ≥ 1 := by library_search! - splits the
test/library_search/basic.leanfile into two parts, one which doesn't importdata.nat.basic, for faster testing