Zulip Chat Archive

Stream: lean4

Topic: debugging maximum recursion depth


Chris B (Jan 09 2022 at 10:12):

Is there any way to get more info about/debug a maximum recursion depth has been reached (use set_option maxRecDepth <num> to increase limit) error? I'm getting this in a very odd spot, but it's not feasible for me to reduce the context to a self-contained mwe.

Henrik Böving (Jan 09 2022 at 12:06):

The only thing that would come to my mind would be to place sensible dbg_traceand figure out from that what is happening but maybe there is more sophisticated things.

Chris B (Jan 09 2022 at 12:47):

Thanks. Whatever it is, it doesn't seem to be easily reachable with print debugging. I have something like:

have h : min (min a b) c <= c := min_le_right _ _
refine le_trans h ?x

and it's only giving me the error at the le_trans part.

Chris B (Jan 09 2022 at 12:51):

I'm actually getting this in two places with le_trans, so it seems to have something to do with that.


Last updated: Dec 20 2023 at 11:08 UTC