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: make erased names in simp clickable #4176

Merged
merged 1 commit into from
May 15, 2024
Merged

Conversation

nomeata
Copy link
Contributor

@nomeata nomeata commented May 15, 2024

as usually, just a matter of using the WithInfo variant.

Also simplifying the code a bit, it seems we can use
realizeGlobalConstNoOverloadWithInfo here.

(It's somehwatdubious API design that of all the functions in
the {resolve/realise}GlobalConst{NoOverload,}{WithInfo,} family
the one with the longest name is the one that should be used
unless one has a reason to use another one.)

Fixes: #4174

as usually, just a matter of using the `WithInfo` variant.

Also simplifying the code a bit, it seems we can use
`realizeGlobalConstNoOverloadWithInfo` here.

(It's dubious API design that of all the
```
{resolve/realise}GlobalConst{NoOverload,}{WithInfo,}
```
functions the one with the longest name is the one that should be used
unless one has a reason to use another one.
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc May 15, 2024 14:04 Inactive
@nomeata nomeata marked this pull request as ready for review May 15, 2024 14:08
@nomeata nomeata requested a review from semorrison as a code owner May 15, 2024 14:08
@nomeata nomeata enabled auto-merge May 15, 2024 14:08
@nomeata nomeata added this pull request to the merge queue May 15, 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 May 15, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request May 15, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request May 15, 2024
Merged via the queue into master with commit 82666e5 May 15, 2024
15 checks passed
@nomeata nomeata deleted the joachim/simp-erase-info branch May 15, 2024 15:20
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the builds-mathlib CI has verified that Mathlib builds against this PR label May 15, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

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 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 erasure specifications are not hoverable/clickable
2 participants