Skip to content

Conversation

@JovanGerb
Copy link
Contributor

This PR defines the termBeforeBy parser which we will need in order to increase the precedence of the by term parser.

@JovanGerb
Copy link
Contributor Author

changelog-no

@github-actions github-actions bot added the changelog-no Do not include this PR in the release changelog label Dec 3, 2025
disallows `by` outside of a bracketing construct. This is used for parsers like `show p by ...`
or `suffices p by ...`, where we do not want `p by ...` to be parsed as an application of `p` to a
`by` block, which would otherwise be allowed. -/
def termBeforeBy := withForbidden "by" termParser
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, since this is not used anywhere yet, you'll have to tag it with @[run_builtin_parser_attribute_hooks] to make the alias work.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do need to use it in this file, but I had originally left this for the follow-up PR. I've now added the two uses in this PR.

@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 Dec 4, 2025
@leanprover-community-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 54fbe931ab77351ccba28aa7c03f22c717ba0681 --onto 5bd331e85d9d110a29fb3367dbb21854010ffcbd. You can force Mathlib CI using the force-mathlib-ci label. (2025-12-04 01:30:23)

@leanprover-bot
Copy link
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI will not be attempted unless your PR branches off the nightly-with-manual branch. Try git rebase 54fbe931ab77351ccba28aa7c03f22c717ba0681 --onto d3dda9f6d4428a906c096067ecb75e432afc4615. You can force reference manual CI using the force-manual-ci label. (2025-12-04 01:30:25)

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

Labels

changelog-no Do not include this PR in the release changelog 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.

4 participants