Skip to content

fix: remove incorrect assertion at Sym/Simp/Have.lean#13611

Merged
leodemoura merged 1 commit into
masterfrom
sym_have_relax
May 2, 2026
Merged

fix: remove incorrect assertion at Sym/Simp/Have.lean#13611
leodemoura merged 1 commit into
masterfrom
sym_have_relax

Conversation

@leodemoura
Copy link
Copy Markdown
Member

@leodemoura leodemoura commented May 2, 2026

This PR fixes an assertion failure in Sym.simp when simplifying a have-expression whose binder type depends on a preceding binder in the telescope.

The simproc that beta-applies a chain of nested non-dependent let-expressions previously asserted that each binder type t contained no loose bound variables. This assumption is not valid: a later binder's type may refer to earlier have-binders. The fix instantiates t with the accumulated binders xs before introducing the new local declaration.

This PR removes an incorrect assertion in the simproc used to simplify `have`-expressions in `Sym.simp`.
@leodemoura leodemoura added the changelog-tactics User facing tactics label May 2, 2026
@leodemoura leodemoura enabled auto-merge May 2, 2026 16:16
@leodemoura leodemoura added this pull request to the merge queue May 2, 2026
Merged via the queue into master with commit 75e37de May 2, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-tactics User facing tactics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant