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(archive + counterexamples): namespaces imo, theorems_100, counterexample, plus three more #19129

Closed
wants to merge 9 commits into from

Conversation

adomani
Copy link
Collaborator

@adomani adomani commented May 30, 2023

This PR is a revision of #19122: it addresses namespacing in archive and counterexamples.

The main difference with #19122 is that it adds namespaces less aggressively: I added a namespace only if there was not an explicit namespace after the initial "fluff". In counterexamples, I added namespaces to all files.

I introduced three "main" namespaces: imo, theorems_100, counterexample (the last one singular). Besides these, I also introduced the namespaces prop_encodable, oxford_invariants, sensitivity, to cover the left-over files in archive.

Note that if a file has namespace early on, then it does not get a new namespace, even though it might be desirable for it to have one.

Comments are very welcome!

Note: besides adding namespaces, the only files that I had to manually edit are the ones in

  • commit d337b99 -- I do not like these changes, but currently do not see how to avoid them;
  • commit 48471f3 -- I removed an pre-existing namespace, replacing it by open <itself>.

Zulip discussion: this PR is motivated by the desire to port to mathlib4 the files in archive, counterexamples, taking advantage of mathport. The namespacing helps with avoiding clashes among names of declarations, as well as one-lettered declarations in the root namespace.


Open in Gitpod

@adomani adomani changed the title chore(archive): namespace imo+100-theorems chore(archive + counterexamples): namespaces imo, theorems_100, counterexample, plus three more May 30, 2023
@adomani adomani added awaiting-review The author would like community review of the PR mathport For compatibility with Lean 4 changes, to simplify porting labels May 30, 2023
@semorrison
Copy link
Collaborator

bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels May 30, 2023
bors bot pushed a commit that referenced this pull request May 30, 2023
…erexample, plus three more (#19129)

This PR is a revision of #19122: it addresses namespacing in `archive` and `counterexamples`.

The main difference with #19122 is that it adds namespaces less aggressively: I added a namespace only if there was not an explicit namespace after the initial "fluff".  In `counterexamples`, I added namespaces to all files.

I introduced three "main" namespaces: `imo, theorems_100, counterexample` (the last one singular).  Besides these, I also introduced the namespaces `prop_encodable, oxford_invariants, sensitivity`, to cover the left-over files in `archive`.

Note that if a file has `namespace` early on, then it does not get a new namespace, even though it might be desirable for it to have one.

Comments are very welcome!

Note: besides adding namespaces, the only files that I had to manually edit are the ones in
* commit d337b99 -- I do not like these changes, but currently do not see how to avoid them;
* commit 48471f3 -- I *removed* an pre-existing namespace, replacing it by `open <itself>`.

[Zulip discussion](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/mk_all.2Esh): this PR is motivated by the desire to port to mathlib4 the files in `archive, counterexamples`, taking advantage of `mathport`.  The namespacing helps with avoiding clashes among names of declarations, as well as one-lettered declarations in the root namespace.
@bors
Copy link

bors bot commented May 31, 2023

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title chore(archive + counterexamples): namespaces imo, theorems_100, counterexample, plus three more [Merged by Bors] - chore(archive + counterexamples): namespaces imo, theorems_100, counterexample, plus three more May 31, 2023
@bors bors bot closed this May 31, 2023
@bors bors bot deleted the someNamespacing branch May 31, 2023 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mathport For compatibility with Lean 4 changes, to simplify porting ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants