Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Init/Data/Nat/Lemmas.lean
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,7 @@ grind_pattern div_pow_of_pos => a ^ n where
guard n > 0

grind_pattern Nat.pow_pos => a ^ n where
not_value n
guard a > 0

protected theorem pow_add' (a m n : Nat) : a ^ (m + n) = a ^ n * a ^ m := by
Expand Down
4 changes: 1 addition & 3 deletions tests/lean/run/grind_lint_bitvec.lean
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ import Lean.Elab.Tactic.Grind.LintExceptions
#guard_msgs in
#grind_lint inspect (min := 30) BitVec.msb_replicate

-- TODO: Reduce limit after we add support for `no_value` constraint
-- `BitVec.msb_signExtend` is reasonable at 22.
-- `BitVec.msb_signExtend` is reasonable at 26.
#guard_msgs in
#grind_lint inspect (min := 26) BitVec.msb_signExtend

/-! Check BitVec namespace: -/

-- TODO: Reduce limit after we add support for `no_value` constraint. It was `20`
#guard_msgs in
#grind_lint check (min := 23) in BitVec
4 changes: 4 additions & 0 deletions tests/lean/run/grind_match_cond_issue.lean
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ example {n m a : Nat} (ih : ∀ {a : Nat}, a ^ 2 = 4 ^ m * n → False)
example {n m a : Nat} (ih : ∀ {a : Nat}, a ^ 2 = 4 ^ m * n → False)
(h : a ^ 2 = 4 ^ m * n) : False := by
grind

example {m a n : Nat} (ih : ∀ {a : Nat}, a ^ 2 = 4 ^ m * 4 * n → False)
(h : a ^ 2 = 4 ^ (m + 1) * n) : False := by
grind
Loading