Zulip Chat Archive

Stream: Is there code for X?

Topic: ring.inverse equals has_inv.inv


Eric Wieser (Oct 29 2021 at 12:46):

Do we have this anywhere?

example {G₀} [group_with_zero G₀] (g : G₀) : ring.inverse g = g⁻¹ :=
begin
  obtain rfl | hg := eq_or_ne g 0,
  { rw [ring.inverse_non_unit (0 : G₀) (not_is_unit_zero), _root_.inv_zero], },
  { lift g to units G₀ using hg,
    rw [ring.inverse_unit, units.coe_inv'] }
end

Eric Wieser (Oct 29 2021 at 12:51):

Ah, its docs#inverse_eq_has_inv which has bad assumptios and a bad namespace

Eric Wieser (Oct 29 2021 at 13:28):

#10033 to rename it to start with ring.


Last updated: Dec 20 2023 at 11:08 UTC