Zulip Chat Archive
Stream: lean4
Topic: partialFixpointursion
Robin Arnez (Mar 12 2025 at 18:43):
I just found this:
def hello (x : Nat) : Nat := hello (x + 1)
termination_by partialFixpointursion
which seems to be treated as a special case (try changing partialFixpointursion
to something else).
This seems to be some kind of leftover from testing perhaps. I love myself some "partialFixpointursion" lol
Mario Carneiro (Mar 12 2025 at 19:07):
the culprit is here
Mario Carneiro (Mar 12 2025 at 19:08):
cc: @Joachim Breitner
Robin Arnez (Mar 12 2025 at 19:31):
Yeah I honestly only found this because of looking in the source code
Joachim Breitner (Mar 13 2025 at 10:01):
:man_facepalming:
Joachim Breitner (Mar 13 2025 at 10:01):
What's the emoji for hiding in a cave?
Joachim Breitner (Mar 13 2025 at 10:02):
PR welcome :-D
Joachim Breitner (Mar 13 2025 at 10:03):
(I wonder if I can blame the horrible interaction of u
and Ctrl-Z
when using VSCode with vim bindings.)
Patrick Massot (Mar 13 2025 at 10:07):
This was the main reason why I gave up on vim plugins in VSCode during the dark ages before lean.nvim. Of course now the issue is completely solved by lean.nvim.
Patrick Massot (Mar 13 2025 at 10:09):
And don’t forget to also use something like https://github.com/debugloop/telescope-undo.nvim
Jz Pan (Mar 13 2025 at 15:52):
What's worse:
theorem hello (x : Nat) : False := hello (x + 1)
termination_by partialFixpointursion
Aaron Liu (Mar 13 2025 at 15:54):
Why is this worse? You see the same behavior when you put something else there.
Jz Pan (Mar 13 2025 at 15:55):
Oh sorry. I was thinking that it will get compiled... Seems that it reports the same error with OP's test code.
Jz Pan (Mar 13 2025 at 15:56):
I was thinking that it was the cheat code to bypass termination_by
check
Mario Carneiro (Mar 13 2025 at 15:57):
it is a cheat code which takes you straight to the "you lose" screen
Joachim Breitner (Mar 13 2025 at 22:06):
A Bit Like
https://pbs.twimg.com/media/EWsJLGWXsAIhb0h?format=jpg&name=4096x4096
Last updated: May 02 2025 at 03:31 UTC