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: Fix name of Nat.card_mono #8340

Closed
wants to merge 1 commit into from

Conversation

YaelDillies
Copy link
Collaborator

This was accidentally put in the PartENat namespace in #8202. Also add Set.Infinite.card_eq_zero and fix capitalisation errors.


Open in Gitpod

This was accidentally put in the `PartENat` namespace in #8202. Also add `Set.Infinite.card_eq_zero` and fix capitalisation errors.
@YaelDillies YaelDillies added the awaiting-review The author would like community review of the PR label Nov 11, 2023
Comment on lines -183 to +193
theorem card_uLift (α : Type*) : card (ULift α) = card α :=
card_congr Equiv.ulift
#align part_enat.card_ulift PartENat.card_uLift

@[simp]
theorem card_pLift (α : Type*) : card (PLift α) = card α :=
card_congr Equiv.plift
#align part_enat.card_plift PartENat.card_pLift
@[simp] lemma card_ulift (α : Type*) : card (ULift α) = card α := card_congr Equiv.ulift
#align part_enat.card_ulift PartENat.card_ulift

lemma card_mono {s t : Set α} (ht : t.Finite) (h : s ⊆ t) : Nat.card s ≤ Nat.card t :=
toNat_le_of_le_of_lt_aleph0 ht.lt_aleph0 <| mk_le_mk_of_subset h
@[simp] lemma card_plift (α : Type*) : card (PLift α) = card α := card_congr Equiv.plift
#align part_enat.card_plift PartENat.card_plift
Copy link
Contributor

Choose a reason for hiding this comment

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

Where did we decide PLift should turn into plift rather than pLift, and what's the rationale? (From the existing names in mathlib4 indeed plift seems to be the convention ...)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

First cluster of caps gets lowercased. That's the rule I know.

Copy link
Contributor

@alreadydone alreadydone left a comment

Choose a reason for hiding this comment

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

Okay, LGTM!

maintainer merge

Copy link

🚀 Pull request has been placed on the maintainer queue by alreadydone.

Copy link
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

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

Thanks 🎉

bors merge

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-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 Nov 13, 2023
mathlib-bors bot pushed a commit that referenced this pull request Nov 13, 2023
This was accidentally put in the `PartENat` namespace in #8202. Also add `Set.Infinite.card_eq_zero` and fix capitalisation errors.
@mathlib-bors
Copy link

mathlib-bors bot commented Nov 13, 2023

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: Fix name of Nat.card_mono [Merged by Bors] - chore: Fix name of Nat.card_mono Nov 13, 2023
@mathlib-bors mathlib-bors bot closed this Nov 13, 2023
@mathlib-bors mathlib-bors bot deleted the nat_card_mono branch November 13, 2023 08:38
alexkeizer pushed a commit that referenced this pull request Nov 17, 2023
This was accidentally put in the `PartENat` namespace in #8202. Also add `Set.Infinite.card_eq_zero` and fix capitalisation errors.
alexkeizer pushed a commit that referenced this pull request Nov 21, 2023
This was accidentally put in the `PartENat` namespace in #8202. Also add `Set.Infinite.card_eq_zero` and fix capitalisation errors.
grunweg pushed a commit that referenced this pull request Dec 15, 2023
This was accidentally put in the `PartENat` namespace in #8202. Also add `Set.Infinite.card_eq_zero` and fix capitalisation errors.
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