Zulip Chat Archive

Stream: lean4

Topic: Debugging simp loops


Patrick Massot (Sep 13 2023 at 19:06):

Is there anything one can do to debug a simp call that loops forever (or at least long enough to time out)? I tried using set_option trace.Meta.Tactic.simp.rewrite true in but this simply freezes the Lean server.

Sebastian Ullrich (Sep 13 2023 at 19:09):

Do you get a (helpful) trace if you lower the timeout?

Patrick Massot (Sep 13 2023 at 19:13):

I tried

    set_option maxHeartbeats 10 in
    set_option trace.Meta.Tactic.simp.rewrite true in
    simp (config := {zeta := false}) [hγ₁.t₀]

which changes nothing (still freeze VSCode). Is that what you mean?

Sebastian Ullrich (Sep 13 2023 at 19:34):

Yes. I don't know off the top of my mind what could go wrong there, certainly the tracing should do allocations, i.e. use heartbeats


Last updated: Dec 20 2023 at 11:08 UTC