Skip to content

[Merged by Bors] - feat: small missing group lemmas - #7614

Closed
PatrickMassot wants to merge 7 commits into
masterfrom
pm_subgroup_eq_bot
Closed

PatrickMassot wants to merge 7 commits into
masterfrom
pm_subgroup_eq_bot

Conversation

@PatrickMassot

Copy link
Copy Markdown
Member

Open in Gitpod

Comment on lines +346 to +354
lemma eq_bot_iff_card {S : Submonoid M} [Fintype S] : S = ⊥ ↔ card S = 1 := by
suffices (∀ x ∈ S, x = 1) ↔ ∃ x ∈ S, ∀ a ∈ S, a = x by
simpa [eq_bot_iff_forall, card_eq_one_iff]
constructor
· intro h
use 1, S.one_mem
· rintro ⟨y, -, hy'⟩ x hx
calc x = y := hy' x hx
_ = 1 := (hy' 1 S.one_mem).symm

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why is this so much longer than the Subgroup lemma? Is Submonoid also missing some lemmas used there?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes. I thought it would be nice to have the Submonoid version of the Subgroup lemma I was interested in but I didn't have the patience to add every missing Submonoid lemma.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does copying the subgroup lemmas and replacing the word monoid with group work?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ok, I see Eric isn't in a mood to allow me to be lazy. I added the lemmas.

Comment thread Mathlib/GroupTheory/Subgroup/Basic.lean Resolved
@eric-wieser

Copy link
Copy Markdown
Member

bors d+

Thanks!

@bors

bors Bot commented Oct 11, 2023

Copy link
Copy Markdown

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

@github-actions github-actions Bot added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed awaiting-review labels Oct 11, 2023
@PatrickMassot

Copy link
Copy Markdown
Member Author

bors merge

@github-actions github-actions Bot added the ready-to-merge This PR has been sent to bors. label Oct 12, 2023
bors Bot pushed a commit that referenced this pull request Oct 12, 2023
@bors

bors Bot commented Oct 12, 2023

Copy link
Copy Markdown

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 feat: small missing group lemmas [Merged by Bors] - feat: small missing group lemmas Oct 12, 2023
@bors bors Bot closed this Oct 12, 2023
@bors
bors Bot deleted the pm_subgroup_eq_bot branch October 12, 2023 03:38
mucoucah added a commit to mucoucah/mathlib4 that referenced this pull request Nov 30, 2026
Remove CREDIT header lines that named a Lean identifier (@COns, @insert) as a GitHub handle. The real merged-PR authors (@mattdorman leanprover-community#7614, @yhay81 leanprover-community#28713, @marcusbuffett leanprover-community#3735, per GitHub API) are already credited on the next line. Header comments only; no Lean code changed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants