Skip to content

Commit 1b0ffa3

Browse files
committed
mk_iff
1 parent c13d2d4 commit 1b0ffa3

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

Mathlib/GroupTheory/Finiteness.lean

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ element of the type can be written as a finite sum of elements from this finite
4848
4949
This generalizes and will eventually replace the four existing definitions
5050
`AddSubmonoid.FG`, `AddMonoid.FG`, `AddSubgroup.FG`, and `AddGroup.FG`. -/
51+
@[mk_iff isAddFG_def]
5152
class IsAddFG (M : Type*) [Add M] : Prop where
5253
fg_top : ∃ S : Finset M, AddSubsemigroup.closure (S : Set M) = ⊤
5354

@@ -60,16 +61,12 @@ element of the type can be written as a finite product of elements from this fin
6061
6162
This generalizes and will eventually replace the four existing definitions
6263
`Submonoid.FG`, `Monoid.FG`, `Subgroup.FG`, and `Group.FG`. -/
63-
@[to_additive existing]
64+
@[to_additive existing, mk_iff isMulFG_def]
6465
class IsMulFG : Prop where
6566
fg_top : ∃ S : Finset M, Subsemigroup.closure (S : Set M) = ⊤
6667

6768
variable {M N}
6869

69-
@[to_additive]
70-
theorem isMulFG_def : IsMulFG M ↔ ∃ S : Finset M, Subsemigroup.closure (S : Set M) = ⊤ :=
71-
fun h ↦ h.fg_top, fun h ↦ ⟨h⟩⟩
72-
7370
-- We give this instance low priority to avoid slow typeclass resolutions.
7471
@[to_additive]
7572
instance (priority := 100) [Finite M] : IsMulFG M := by

0 commit comments

Comments
 (0)