Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 369525b

Browse files
committed
chore(algebra/group/units): is_add_unit.decidable (#18439)
Missing `to_additive` I had actually added this to mathlib4 3 months ago in leanprover-community/mathlib4@cbc0834 (leanprover-community/mathlib4#549), and never noticed it wasn't in mathlib3. mathlib4 hash-update placeholder pr: leanprover-community/mathlib4#2278
1 parent a231f96 commit 369525b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/algebra/group/units.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ lemma coe_inv_mul (h : is_unit a) : ↑(h.unit)⁻¹ * a = 1 := units.mul_inv _
458458
by convert h.unit.mul_inv
459459

460460
/-- `is_unit x` is decidable if we can decide if `x` comes from `Mˣ`. -/
461+
@[to_additive "`is_add_unit x` is decidable if we can decide if `x` comes from `add_units M"]
461462
instance (x : M) [h : decidable (∃ u : Mˣ, ↑u = x)] : decidable (is_unit x) := h
462463

463464
@[to_additive] lemma mul_left_inj (h : is_unit a) : b * a = c * a ↔ b = c :=

0 commit comments

Comments
 (0)