Skip to content

fix: mkBindUnlessPure should call the continuation only once#13985

Open
Rob23oba wants to merge 1 commit into
leanprover:masterfrom
Rob23oba:do-pure-cont-fix
Open

fix: mkBindUnlessPure should call the continuation only once#13985
Rob23oba wants to merge 1 commit into
leanprover:masterfrom
Rob23oba:do-pure-cont-fix

Conversation

@Rob23oba

@Rob23oba Rob23oba commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

This PR fixes mkBindUnlessPure to only run the continuation once, making sure that using pure () doesn't elaborate everything afterwards twice.

Closes #13858

@Rob23oba Rob23oba marked this pull request as ready for review June 9, 2026 14:36
@github-actions github-actions Bot added the changelog-language Language features and metaprograms label Jun 9, 2026
@Rob23oba Rob23oba marked this pull request as draft June 9, 2026 14:39
@Rob23oba Rob23oba marked this pull request as ready for review June 9, 2026 14:39
@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 Jun 9, 2026
@leanprover-bot

Copy link
Copy Markdown
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI can not be attempted yet, as the nightly-testing-2026-06-08 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-manual, reference manual CI should run now. You can force reference manual CI using the force-manual-ci label. (2026-06-09 14:56:31)

@github-actions github-actions Bot added the mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN label Jun 9, 2026
@mathlib-lean-pr-testing mathlib-lean-pr-testing Bot added the builds-mathlib CI has verified that Mathlib builds against this PR label Jun 9, 2026
@mathlib-lean-pr-testing

Copy link
Copy Markdown

Mathlib CI status (docs):

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

Labels

builds-mathlib CI has verified that Mathlib builds against this PR changelog-language Language features and metaprograms mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN 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.

Exponential time growth when repeating pure ()

2 participants