Zulip Chat Archive

Stream: lean4

Topic: Recursion elimination and auxiliary definition


Leni Aniva (Mar 01 2025 at 03:46):

When do the generations of these auxiliary definitions happen in Lean's source code?

For example, if I declare a recursive function, #print gives an equivalent non-recursive form. Sometimes a match expression turns into .match_1, etc.

Henrik Böving (Mar 01 2025 at 09:58):

This component is known as the equation compiler and for the most part lives in this directory: https://github.com/leanprover/lean4/tree/master/src/Lean/Elab/PreDefinition


Last updated: May 02 2025 at 03:31 UTC