Skip to content

feat: eta-expand recursor major for subsingleton structures - #15371

Draft
arthur-adjedj wants to merge 2 commits into
leanprover:masterfrom
arthur-adjedj:eta-singleton-major
Draft

arthur-adjedj wants to merge 2 commits into
leanprover:masterfrom
arthur-adjedj:eta-singleton-major

Conversation

@arthur-adjedj

Copy link
Copy Markdown
Contributor

This PR expands the condition for which the major of a recursor can be eta-expanded. Namely, subsingleton structures such as And should be eta-expanded in this situation.

This PR depends on #15351 to make sure the non-termination of proof normalization doesn't leak to non-proof terms (see test file for example)
TODO more tests
Related to #14977
Closes #3213

@github-actions github-actions Bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Sep 27, 2026
@arthur-adjedj

Copy link
Copy Markdown
Contributor Author

downstream

@downstream-lean4

Copy link
Copy Markdown

The adaptation PR for this PR is leanprover/downstream-lean4#115.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

downstream Request a downstream-lean4 adaptation PR. toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

1 participant