You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"message": "Lean error:\n(deterministic) timeout at `elaborator`, maximum number of heartbeats (200000) has been reached\nUse `set_option maxHeartbeats <num>` to set the limit.(invalid MessageData.lazy, missing context)"}
What I've Tried
Verify in the lean:
import Mathlib
set_option maxHeartbeats 0set_option maxRecDepth 1000000theoremmathd_numbertheory_314 (r n : ℕ) (h₀ : r = 1342 % 13) (h₁ : 0 < n) (h₂ : 1342 ∣ n)
(h₃ : n % 13 < r) : 6710 ≤ n := by
contrapose! h₃
interval_cases n <;> simp_all (config := {decide := true})
lake env lean mathd_numbertheory_314.lean
Test set_option in command mode:
remove set_option maxHeartbeats 0: raise the same error with heartbeats (200000)
lower the number to set_option maxHeartbeats 100000: raise error with heartbeats (100000)
Test set_option in tactic mode:
remove set_option maxHeartbeats 0: raise the same error with heartbeats (200000)
lower the number set_option maxHeartbeats 100000: raise the same error with heartbeats (200000)
set set_option maxHeartbeats 0 and set_option maxRecDepth 300000: raise the same error with heartbeats (200000)
specify "env" in the tactic mode(the same error)
The text was updated successfully, but these errors were encountered:
When using the Lean REPL,
set_option maxHeartbeats
appears to have no effect in tactic mode, while it works correctly in command mode.Minimal Working Example
Works in Command Mode:
Same proof in tactic mode fails:
Error message:
What I've Tried
Test
set_option
in command mode:set_option maxHeartbeats 0
: raise the same error withheartbeats (200000)
set_option maxHeartbeats 100000
: raise error withheartbeats (100000)
Test
set_option
in tactic mode:set_option maxHeartbeats 0
: raise the same error withheartbeats (200000)
set_option maxHeartbeats 100000
: raise the same error withheartbeats (200000)
set_option maxHeartbeats 0
andset_option maxRecDepth 300000
: raise the same error withheartbeats (200000)
The text was updated successfully, but these errors were encountered: