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

[Merged by Bors] - chore: Added namespace Mathlib around Vector defs #13407

Closed
wants to merge 11 commits into from

Conversation

Shreyas4991
Copy link
Collaborator

@Shreyas4991 Shreyas4991 commented May 31, 2024

This PR puts Mathlib.Data.Vector's Vector type into the namespace Mathlib. This will help ensure that users of Mathlib and Batteries can use this Vector type and Batteries' upcoming Array based Vector type without name conflicts.

Tasks:

  • Put all Vector definitions, currently all of which are inside Mathlib/Data/Vector into the namespace Mathlib.
    - [x] Add deprecation aliases for all defs, theorems and lemmas thus namespaced. NOTE : This is not possible because alias simply reintroduces naming conflicts. See the linked zulip discussion
  • Fix breakages within Mathlib

Discussion in Zulip topic


Open in Gitpod

@Shreyas4991 Shreyas4991 added the WIP Work in progress label May 31, 2024
@Shreyas4991
Copy link
Collaborator Author

Note at this commit : When opening the namespace Mathlib inside the namespace Vector in Topology.List, a number of Vector functions were inferred as List functions and this created errors. I correctly namespaced them

@Shreyas4991 Shreyas4991 added awaiting-CI and removed WIP Work in progress labels May 31, 2024
@Shreyas4991 Shreyas4991 force-pushed the feat_namespace_mathlib_vector branch from 9e91a8f to 05c3fcf Compare May 31, 2024 21:48
@Shreyas4991 Shreyas4991 changed the title Added namespace Mathlib around Vector defs Fix: Added namespace Mathlib around Vector defs Jun 1, 2024
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jun 8, 2024
Copy link

github-actions bot commented Jun 24, 2024

PR summary be5981ac7d

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

No declarations were harmed in the making of this PR! 🐙

You can run this locally as follows
## summary with just the declaration names:
./scripts/no_lost_declarations.sh short <optional_commit>

## more verbose report:
./scripts/no_lost_declarations.sh <optional_commit>

@Shreyas4991 Shreyas4991 changed the title Fix: Added namespace Mathlib around Vector defs Chore: Added namespace Mathlib around Vector defs Jun 24, 2024
@Shreyas4991 Shreyas4991 added awaiting-CI tech debt Tracking cross-cutting technical debt, see e.g. the "Technical debt counters" stream on zulip and removed merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) tech debt Tracking cross-cutting technical debt, see e.g. the "Technical debt counters" stream on zulip labels Jun 24, 2024
@Shreyas4991 Shreyas4991 force-pushed the feat_namespace_mathlib_vector branch from 683ad6b to 2235ae5 Compare June 24, 2024 22:56
@Shreyas4991 Shreyas4991 changed the title Chore: Added namespace Mathlib around Vector defs chore: Added namespace Mathlib around Vector defs Jun 25, 2024
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jul 1, 2024
@fpvandoorn
Copy link
Member

fpvandoorn commented Jul 8, 2024

LGTM

bors d+

Make sure you merge master and CI builds before merging.

@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Jul 8, 2024

✌️ Shreyas4991 can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@Shreyas4991 Shreyas4991 added awaiting-CI and removed merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) labels Jul 8, 2024
@Shreyas4991
Copy link
Collaborator Author

Master has been merged into this PR. CI passes.

bors r+

mathlib-bors bot pushed a commit that referenced this pull request Jul 8, 2024
This PR puts `Mathlib.Data.Vector`'s `Vector` type into the namespace `Mathlib`. This will help ensure that users of `Mathlib` and `Batteries` can use this Vector type and Batteries' upcoming Array based Vector type without name conflicts.

Tasks:
- [x] Put all Vector definitions, currently all of which are inside Mathlib/Data/Vector into the namespace `Mathlib`.
~~- [x] Add deprecation aliases for all `def`s, `theorem`s and `lemmas` thus namespaced.~~ NOTE : This is  not possible because `alias` simply reintroduces naming conflicts. See the linked zulip discussion
- [x] Fix breakages within Mathlib

Discussion in [Zulip topic](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/Mathlib.20Vector.20namespace/near/441643042)
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Jul 8, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: Added namespace Mathlib around Vector defs [Merged by Bors] - chore: Added namespace Mathlib around Vector defs Jul 8, 2024
@mathlib-bors mathlib-bors bot closed this Jul 8, 2024
@mathlib-bors mathlib-bors bot deleted the feat_namespace_mathlib_vector branch July 8, 2024 16:16
@adomani adomani mentioned this pull request Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants