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

fix: loose bound variables at ACLt #3819

Merged
merged 2 commits into from
Apr 1, 2024
Merged

fix: loose bound variables at ACLt #3819

merged 2 commits into from
Apr 1, 2024

Conversation

leodemoura
Copy link
Member

Closes #3705

This PR also fixes a performance issue at ACLt also exposed by example at #3705

@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc April 1, 2024 20:21 Inactive
if ptrAddrUnsafe a == ptrAddrUnsafe b then
if a == b then
-- We used to have an "optimization" using only pointer equality.
-- This was a bad idea, `==` is often much cheaper than `acLt`.
Copy link
Contributor

Choose a reason for hiding this comment

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

A reader might think that the pointer equality optimization was a bad idea (and not the “only”)

Suggested change
-- This was a bad idea, `==` is often much cheaper than `acLt`.
-- This was insufficient, as `==` is often much cheaper than `acLt`.

@@ -84,6 +86,16 @@ where
else
lt a₂ b₂

getParamsInfo (f : Expr) (numArgs : Nat) : MetaM (Array ParamInfo) := do
-- Ensure `f` does not have loose bound variables. This may happen in
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
-- Ensure `f` does not have loose bound variables. This may happen in
-- Ensure `f` does not have loose bound variables. This may happen

@leodemoura leodemoura added this pull request to the merge queue Apr 1, 2024
@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 Apr 1, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Mathlib CI can not be attempted yet, as the nightly-testing-2024-04-01 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-mathlib, Mathlib CI should run now. (2024-04-01 20:28:38)

Merged via the queue into master with commit a440e63 Apr 1, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

simp failing with unexpected bound variable
3 participants