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(Data/Nat/Factorial): Use Std lemmas #11715

Closed
wants to merge 26 commits into from

Conversation

YaelDillies
Copy link
Collaborator

@YaelDillies YaelDillies commented Mar 26, 2024

Make use of Nat-specific lemmas from Std rather than the general ones provided by mathlib.

The ultimate goal here is to carve out Data, Algebra and Order sublibraries.


Open in Gitpod

@YaelDillies YaelDillies added awaiting-review The author would like community review of the PR awaiting-CI labels Mar 26, 2024
@YaelDillies YaelDillies changed the base branch from stdify_nat to master March 26, 2024 23:18
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Mar 27, 2024
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Mar 27, 2024
@semorrison
Copy link
Contributor

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review The author would like community review of the PR labels Mar 27, 2024
mathlib-bors bot pushed a commit that referenced this pull request Mar 27, 2024
Make use of `Nat`-specific lemmas from Std rather than the general ones provided by mathlib.

The ultimate goal here is to carve out `Data`, `Algebra` and `Order` sublibraries.
Comment on lines +26 to +28
lemma monotone_factorial : Monotone factorial := fun _ _ => factorial_le
#align nat.monotone_factorial Nat.monotone_factorial

Copy link
Member

Choose a reason for hiding this comment

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

Surely this doesn't belong in this file?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There's already stuff about orders in there and I don't really feel like creating a new file just for this one lemma. I'm not quite sure where Monotone will stand in the upcoming sublibraries but I think it will be in Order and not imported by Nat.factorial.

I'm happy for you to open a PR creating that Data.Nat.Factorial.Order file if you want though, or maybe it can be in Data.Nat.Order.Lemmas. Up to you.

@mathlib-bors
Copy link

mathlib-bors bot commented Mar 27, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore(Data/Nat/Factorial): Use Std lemmas [Merged by Bors] - chore(Data/Nat/Factorial): Use Std lemmas Mar 27, 2024
@mathlib-bors mathlib-bors bot closed this Mar 27, 2024
@mathlib-bors mathlib-bors bot deleted the stdify_factorial branch March 27, 2024 12:36
tendsto_atTop_atTop_of_monotone Nat.monotone_factorial fun n ↦ ⟨n, n.self_le_factorial⟩
tendsto_atTop_atTop_of_monotone (fun _ _ ↦ Nat.factorial_le) fun n ↦ ⟨n, n.self_le_factorial⟩
Copy link
Member

Choose a reason for hiding this comment

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

I would have thought you should just import monotone_factorial here; it's very weird to consider Tendsto more elementary than Monotone IMO.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah sorry, that's an accident. I had originally put monotone_factorial in Data.Nat.Factorial.Cast, so I didn't put to import it in Analysis.SpecificLimits.Basic.

Louddy pushed a commit that referenced this pull request Apr 15, 2024
Make use of `Nat`-specific lemmas from Std rather than the general ones provided by mathlib.

The ultimate goal here is to carve out `Data`, `Algebra` and `Order` sublibraries.
atarnoam pushed a commit that referenced this pull request Apr 16, 2024
Make use of `Nat`-specific lemmas from Std rather than the general ones provided by mathlib.

The ultimate goal here is to carve out `Data`, `Algebra` and `Order` sublibraries.
uniwuni pushed a commit that referenced this pull request Apr 19, 2024
Make use of `Nat`-specific lemmas from Std rather than the general ones provided by mathlib.

The ultimate goal here is to carve out `Data`, `Algebra` and `Order` sublibraries.
callesonne pushed a commit that referenced this pull request Apr 22, 2024
Make use of `Nat`-specific lemmas from Std rather than the general ones provided by mathlib.

The ultimate goal here is to carve out `Data`, `Algebra` and `Order` sublibraries.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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