Repository navigation
[Merged by Bors] - feat: small missing group lemmas - #7614
PatrickMassot wants to merge 7 commits into
Conversation
PatrickMassot
commented
Oct 10, 2023
| 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 |
There was a problem hiding this comment.
Why is this so much longer than the Subgroup lemma? Is Submonoid also missing some lemmas used there?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Does copying the subgroup lemmas and replacing the word monoid with group work?
There was a problem hiding this comment.
Ok, I see Eric isn't in a mood to allow me to be lazy. I added the lemmas.
|
bors d+ Thanks! |
|
✌️ PatrickMassot can now approve this pull request. To approve and merge a pull request, simply reply with |
a50718b to
38016c6
Compare
|
bors merge |
Co-authored-by: Eric Wieser <[email protected]>
|
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. If you want to switch to GitHub's built-in merge queue, visit their help page. |
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.