Skip to content

Commit 699a55a

Browse files
committed
chore(MathlibTest/slow_instance): add test for Grind.OrderedAdd (leanprover-community#35667)
This PR adds a test to show that some instance search fails quickly.
1 parent 27b0924 commit 699a55a

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

MathlibTest/slow_instances.lean

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,14 @@ Hint: Additional diagnostic information may be available using the `set_option d
2626
-/
2727
#guard_msgs in
2828
#synth NoZeroSMulDivisors ℕ K
29+
30+
variable {d : Type*} in
31+
set_option maxHeartbeats 3000 in -- uses about 2400 as of 2026-02-20
32+
/--
33+
error: failed to synthesize
34+
Lean.Grind.OrderedAdd (Submodule ℂ (WithLp 2 (d → ℂ)))
35+
36+
Hint: Additional diagnostic information may be available using the `set_option diagnostics true` command.
37+
-/
38+
#guard_msgs in
39+
#synth Lean.Grind.OrderedAdd (Submodule ℂ (WithLp 2 (d → ℂ)))

0 commit comments

Comments
 (0)