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] - refactor: List.All₂ to List.Forall #7797

Closed
wants to merge 7 commits into from

Conversation

nomeata
Copy link
Collaborator

@nomeata nomeata commented Oct 20, 2023

This renames List.All₂ to List.Forall, because the is highly
confusing when it usually means “two lists”, and we had users on Zulip
not find List.Forall because of that
(https://leanprover.zulipchat.com/#narrow/stream/217875-Is-there-code-for-X.3F/topic/Is.20there.20List.2EForall.E2.82.82.2C.20but.20for.20one.20list.3F.20.28In.20library.20Std.29/near/397551365)


Open in Gitpod

This renames `List.All₂` to `List.Forall`, because the `₂` is highly
confusing when it usually means “two lists”, and we had users on Zulip
not find `List.Forall` because of that
(<https://leanprover.zulipchat.com/#narrow/stream/217875-Is-there-code-for-X.3F/topic/Is.20there.20List.2EForall.E2.82.82.2C.20but.20for.20one.20list.3F.20.28In.20library.20Std.29/near/397551365>)

This also

* Switches to primitive recursion, so that `all₂_cons` holds
  definitially and can be dropped
* Updates all affected proofs
* In `NumberTheory/Dioph`, a non-terminal `simp at d` could be removed
  completely because of this defeq.
* I also `simp-only`ied another non-terminal `simp` there.
@nomeata nomeata added the awaiting-review The author would like community review of the PR label Oct 20, 2023
Copy link
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

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

bors d+

Thanks!

@bors
Copy link

bors bot commented Oct 21, 2023

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

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added delegated and removed awaiting-review The author would like community review of the PR labels Oct 21, 2023
@eric-wieser
Copy link
Member

bors merge

@github-actions github-actions bot added the ready-to-merge This PR has been sent to bors. label Oct 21, 2023
bors bot pushed a commit that referenced this pull request Oct 21, 2023
This renames `List.All₂` to `List.Forall`, because the `₂` is highly
confusing when it usually means “two lists”, and we had users on Zulip
not find `List.Forall` because of that
(<https://leanprover.zulipchat.com/#narrow/stream/217875-Is-there-code-for-X.3F/topic/Is.20there.20List.2EForall.E2.82.82.2C.20but.20for.20one.20list.3F.20.28In.20library.20Std.29/near/397551365>)
@digama0
Copy link
Member

digama0 commented Oct 21, 2023

Note: I have pushed an update to the lean toolchain because this PR was on a buggy version of the toolchain. WARNING: checking out old commits of this PR using v4.2.0-rc2 or v4.2.0-rc3 can cause lake clean to delete your mathlib folder! If you need to do so, make sure to delete lakefile.olean manually before running any lake commands.

@bors
Copy link

bors bot commented Oct 21, 2023

Canceled.

@nomeata
Copy link
Collaborator Author

nomeata commented Oct 21, 2023

bors merge

bors bot pushed a commit that referenced this pull request Oct 21, 2023
This renames `List.All₂` to `List.Forall`, because the `₂` is highly
confusing when it usually means “two lists”, and we had users on Zulip
not find `List.Forall` because of that
(<https://leanprover.zulipchat.com/#narrow/stream/217875-Is-there-code-for-X.3F/topic/Is.20there.20List.2EForall.E2.82.82.2C.20but.20for.20one.20list.3F.20.28In.20library.20Std.29/near/397551365>)



Co-authored-by: Mario Carneiro <di.gama@gmail.com>
bors bot pushed a commit that referenced this pull request Oct 22, 2023
This renames `List.All₂` to `List.Forall`, because the `₂` is highly
confusing when it usually means “two lists”, and we had users on Zulip
not find `List.Forall` because of that
(<https://leanprover.zulipchat.com/#narrow/stream/217875-Is-there-code-for-X.3F/topic/Is.20there.20List.2EForall.E2.82.82.2C.20but.20for.20one.20list.3F.20.28In.20library.20Std.29/near/397551365>)



Co-authored-by: Mario Carneiro <di.gama@gmail.com>
@bors
Copy link

bors bot commented Oct 22, 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 refactor: List.All₂ to List.Forall [Merged by Bors] - refactor: List.All₂ to List.Forall Oct 22, 2023
@bors bors bot closed this Oct 22, 2023
@bors bors bot deleted the joachim/List.Forall branch October 22, 2023 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated ready-to-merge This PR has been sent to bors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants