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: move Lean.List.toSMap to List.toSMap #3035

Merged
merged 1 commit into from
Dec 12, 2023
Merged

Conversation

digama0
Copy link
Collaborator

@digama0 digama0 commented Dec 6, 2023

This definition was clearly meant to be in the List namespace, but it is also in a namespace Lean so it ended up as Lean.List.toSMap instead of List.toSMap. It would be nice if #3031 made this unnecessary, but for now this seems to be the convention.

I noticed this because of another side effect: it defines Lean.List as a namespace, which means that

import Std

namespace Lean
open List

#check [1] <+ [2]

does not work as expected, it opens the Lean.List namespace instead of the List namespace. Should there be a regression test to ensure that the Lean.List namespace (and maybe others) are not accidentally created? (Unfortunately this puts a bit of a damper on #3031.)

@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 6, 2023
@leanprover-community-mathlib4-bot
Copy link
Collaborator

  • ❗ Mathlib CI will not be attempted unless you rebase your PR onto the 'nightly' branch. (2023-12-06 13:54:05)

@kim-em
Copy link
Collaborator

kim-em commented Dec 12, 2023

This needs to be rebased onto something more recent (e.g. nightly), so that the new CI requirements for the merge queue run.

@kim-em kim-em added this pull request to the merge queue Dec 12, 2023
Merged via the queue into leanprover:master with commit b120080 Dec 12, 2023
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.

4 participants