Skip to content

fix: cbv discharges overlap hypotheses of match equations - #16316

Open
wkrozowski wants to merge 1 commit into
leanprover:masterfrom
wkrozowski:wkroz/16313
Open

wkrozowski wants to merge 1 commit into
leanprover:masterfrom
wkrozowski:wkroz/16313

Conversation

@wkrozowski

Copy link
Copy Markdown
Contributor

This PR improves cbv handling of match equations. Previously cbv, when encountering match expressions would try first to use matcher equations using Sym machinery for theorem rewrite, with no discharger enabled, before falling back to whnf. Now, we try a discharger that can deal with overlap hypotheses, by applying cbv to each of the arguments of the overlaph hypothesis. Literals nested inside constructor pattterns, still fall back to whnf, since Sym.simp has no simproc for constructor injectivity yet.

Partially solves #16313.

@wkrozowski
wkrozowski marked this pull request as ready for review November 6, 2026 14:09
@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 Nov 6, 2026
@leodemoura leodemoura added the changelog-tactics User facing tactics label Nov 6, 2026

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

changelog-tactics User facing tactics toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants