We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6dc549 commit 7bfd03dCopy full SHA for 7bfd03d
tests/playground/div_mod_grind.lean
@@ -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