Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: clarify difference between Expr.hasLooseBVars and Expr.hasLooseBVar #6344

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

alexkeizer
Copy link
Contributor

This PR adds docstrings to Expr.hasLooseBVars and Expr.hasLooseBVar, to clarify the difference between these functions, and to document that the former traverses the expression, while the latter is constant-time, using cached information.

@alexkeizer
Copy link
Contributor Author

awaiting-review

@github-actions github-actions bot added the awaiting-review Waiting for someone to review the PR label Dec 9, 2024
@alexkeizer
Copy link
Contributor Author

I added these based on my own confusion around these similarly named methods, see also the Zulip thread

@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 9, 2024
@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 520d4b698f3f1f8ed5d673fad6cc810179642279 --onto 3f791933f16d74d74ab8116c96cadec6cdf7b70e. (2024-12-09 15:25:24)

src/Lean/Expr.lean Outdated Show resolved Hide resolved
Co-authored-by: Joachim Breitner <[email protected]>
@nomeata nomeata added this pull request to the merge queue Dec 9, 2024
Merged via the queue into leanprover:master with commit ff3d12c Dec 9, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review Waiting for someone to review the PR 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.

3 participants