Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slow typeclass synthesis: takes 19000 heartbeats to fail in MulHomClass C(ℝ, ↥circle) ?m ?m #12229

Closed
kim-em opened this issue Apr 18, 2024 · 2 comments

Comments

@kim-em
Copy link
Contributor

kim-em commented Apr 18, 2024

import Mathlib

/--
error: failed to synthesize
  MulHomClass C(ℝ, ↥circle) ?m.26276 ?m.26277
(deterministic) timeout at 'typeclass', maximum number of heartbeats (19000) has been reached (use 'set_option synthInstance.maxHeartbeats <num>' to set the limit)
-/
#guard_msgs in
set_option synthInstance.maxHeartbeats 19000 in
example : expMapCircle (2 * π) = 1 := by simp

This then gets slightly worse after leanprover/lean4#3807, and thereafter causes the simpNF linter to fail on expMapCircle_two_pi.

@mattrobball
Copy link
Collaborator

Also fixed by leanprover/lean4#4085

@jcommelin
Copy link
Member

Confirm:

import Mathlib

open Real in
set_option synthInstance.maxHeartbeats 8000 in
example : expMapCircle (2 * π) = 1 := by simp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants