refactor: classify recursive calls in one pass along the head's type `finishApp` now infers the type of the folded head once and follows it along the arguments (folding them as it goes, to keep the order of the IHs), instead of inferring the type of every prefix of the application. This finds exactly, over- and partially applied recursive calls in one place. Spines whose head does not mention the IH are not inspected at all. The delta-unfolding step now uses the head and arguments from `withApp`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This is the repository for Lean 4.
See Install Lean.
Please read our Contribution Guidelines first.
See Building Lean.