Skip to content

Commit f692bd3

Browse files
committed
fix: add docstring for additive version of isOpen_units and fix deprecated syntax
Addresses review comment from plp127 about missing docstring for the additive version. Also fixes the deprecated string syntax warning for to_additive attribute.
1 parent e9c4b77 commit f692bd3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Mathlib/Topology/Algebra/Group/Units.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ open Units
1919

2020
/-- If a submonoid is open in a topological monoid, then its units form an open subset
2121
of the units of the monoid. -/
22-
@[to_additive]
22+
@[to_additive /-- If a subgroup of the additive units is open in a topological additive monoid,
23+
then its additive units form an open subset of the additive units of the monoid. -/]
2324
lemma Submonoid.isOpen_units {M : Type*} [TopologicalSpace M] [Monoid M]
2425
{U : Submonoid M} (hU : IsOpen (U : Set M)) : IsOpen (U.units : Set Mˣ) :=
2526
(hU.preimage Units.continuous_val).inter (hU.preimage Units.continuous_coe_inv)

0 commit comments

Comments
 (0)