Skip to content

Commit 7bfd03d

Browse files
committed
Add test for mod_eq_of_lt grind annotation
1 parent f6dc549 commit 7bfd03d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import Init.Data.Nat.Div.Basic
2+
3+
-- Uncommenting this repetition enables `grind` to solve the example:
4+
-- grind_pattern Nat.mod_eq_of_lt => a % b where
5+
-- guard (a < b)
6+
7+
-- The same command is already in Init.Data.Nat.Div.Basic
8+
9+
example : (a : Nat) < b → a % b = a := by
10+
set_option trace.grind.debug.ematch true in
11+
grind

0 commit comments

Comments
 (0)