Skip to content

Commit f9954c4

Browse files
tb65536b-mehta
authored andcommitted
feat(GroupTheory/Rank): nontrivial groups have positive rank (leanprover-community#38720)
This PR proves that nontrivial groups have positive rank. Co-authored-by: tb65536 <thomas.l.browning@gmail.com>
1 parent 74e5a04 commit f9954c4

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Mathlib/GroupTheory/Rank.lean

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,24 @@ lemma rank_spec [h : FG G] : ∃ S : Finset G, S.card = rank G ∧ .closure S =
4141
lemma rank_le [h : FG G] {S : Finset G} (hS : .closure S = (⊤ : Subgroup G)) : rank G ≤ S.card :=
4242
@Nat.find_le _ _ (Classical.decPred _) (fg_iff'.mp h) ⟨S, rfl, hS⟩
4343

44+
variable (G) in
45+
@[to_additive (attr := nontriviality)]
46+
theorem rank_eq_zero [Subsingleton G] : rank G = 0 := by
47+
rw [← le_zero_iff, ← Finset.card_empty]
48+
exact rank_le (Subsingleton.elim _ _)
49+
50+
@[to_additive]
51+
theorem rank_eq_zero_iff [FG G] : rank G = 0 ↔ Subsingleton G := by
52+
refine ⟨fun h ↦ ?_, fun _ ↦ rank_eq_zero G⟩
53+
obtain ⟨s, hs, hs'⟩ := rank_spec G
54+
rw [h, Finset.card_eq_zero] at hs
55+
simpa [hs, subsingleton_iff_bot_eq_top] using hs'
56+
57+
variable (G) in
58+
@[to_additive]
59+
theorem rank_pos [Nontrivial G] [FG G] : 0 < rank G := by
60+
rwa [pos_iff_ne_zero, ne_eq, rank_eq_zero_iff, not_subsingleton_iff_nontrivial]
61+
4462
@[to_additive]
4563
lemma rank_le_of_surjective [FG G] [FG H] (f : G →* H) (hf : Surjective f) : rank H ≤ rank G := by
4664
classical

0 commit comments

Comments
 (0)