The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V05. Groups

Mathlib.Algebra.Group.Invertible.Basic

30 declarations. Mathlib docs · Source

Theorems about invertible elements

def unitOfInvertible E1 #

{α : Type u} → [inst : Monoid α] → (a : α) → [Invertible a] → αˣ

An Invertible element is a unit.

theorem val_unitOfInvertible E0 #

∀ {α : Type u} [inst : Monoid α] (a : α) [inst_1 : Invertible a], ↑(unitOfInvertible a) = a

theorem val_inv_unitOfInvertible E0 #

∀ {α : Type u} [inst : Monoid α] (a : α) [inst_1 : Invertible a], ↑(unitOfInvertible a)⁻¹ = ⅟a

theorem isUnit_of_invertible E1 #

∀ {α : Type u} [inst : Monoid α] (a : α) [Invertible a], IsUnit a

instance Units.invertible E0 #

{α : Type u} → [inst : Monoid α] → (u : αˣ) → Invertible ↑u

Units are invertible in their associated monoid.

theorem invOf_units E0 #

∀ {α : Type u} [inst : Monoid α] (u : αˣ) [inst_1 : Invertible ↑u], ⅟↑u = ↑u⁻¹

theorem IsUnit.nonempty_invertible E1 #

∀ {α : Type u} [inst : Monoid α] {a : α}, IsUnit a → Nonempty (Invertible a)

def IsUnit.invertible E1 #

{α : Type u} → [inst : Monoid α] → {a : α} → IsUnit a → Invertible a

Convert IsUnit to Invertible using Classical.choice.

Prefer casesI h.nonempty_invertible over letI := h.invertible if you want to avoid choice.

theorem nonempty_invertible_iff_isUnit E0 #

∀ {α : Type u} [inst : Monoid α] (a : α), Nonempty (Invertible a) ↔ IsUnit a

theorem Commute.invOf_right E1 #

∀ {α : Type u} [inst : Monoid α] {a b : α} [inst_1 : Invertible b], Commute a b → Commute a ⅟b

theorem Commute.invOf_left E1 #

∀ {α : Type u} [inst : Monoid α] {a b : α} [inst_1 : Invertible b], Commute b a → Commute (⅟b) a

theorem commute_invOf E1 #

∀ {M : Type u_1} [inst : One M] [inst_1 : Mul M] (m : M) [inst_2 : Invertible m], Commute m ⅟m

abbrev invertibleOfInvertibleMul E1 #

{α : Type u} → [inst : Monoid α] → (a b : α) → [Invertible a] → [Invertible (a * b)] → Invertible b

This is the Invertible version of Units.isUnit_units_mul

abbrev invertibleOfMulInvertible E1 #

{α : Type u} → [inst : Monoid α] → (a b : α) → [Invertible (a * b)] → [Invertible b] → Invertible a

This is the Invertible version of Units.isUnit_mul_units

def Invertible.mulLeft E1 #

{α : Type u} → [inst : Monoid α] → {a : α} → Invertible a → (b : α) → Invertible b ≃ Invertible (a * b)

invertibleOfInvertibleMul and invertibleMul as an equivalence.

theorem Invertible.mulLeft_apply E0 #

∀ {α : Type u} [inst : Monoid α] {a : α} (x : Invertible a) (b : α) (x_1 : Invertible b),
  (x.mulLeft b) x_1 = invertibleMul a b

theorem Invertible.mulLeft_symm_apply E0 #

∀ {α : Type u} [inst : Monoid α] {a : α} (x : Invertible a) (b : α) (x_1 : Invertible (a * b)),
  (x.mulLeft b).symm x_1 = invertibleOfInvertibleMul a b

def Invertible.mulRight E1 #

{α : Type u} → [inst : Monoid α] → (a : α) → {b : α} → Invertible b → Invertible a ≃ Invertible (a * b)

invertibleOfMulInvertible and invertibleMul as an equivalence.

theorem Invertible.mulRight_apply E0 #

∀ {α : Type u} [inst : Monoid α] (a : α) {b : α} (x : Invertible b) (x_1 : Invertible a),
  (Invertible.mulRight a x) x_1 = invertibleMul a b

theorem Invertible.mulRight_symm_apply E0 #

∀ {α : Type u} [inst : Monoid α] (a : α) {b : α} (x : Invertible b) (x_1 : Invertible (a * b)),
  (Invertible.mulRight a x).symm x_1 = invertibleOfMulInvertible a b

instance invertiblePow E0 #

{α : Type u} → [inst : Monoid α] → (m : α) → [Invertible m] → (n : ℕ) → Invertible (m ^ n)

theorem invOf_pow E1 #

∀ {α : Type u} [inst : Monoid α] (m : α) [inst_1 : Invertible m] (n : ℕ) [inst_2 : Invertible (m ^ n)],
  ⅟(m ^ n) = ⅟m ^ n

def invertibleOfPowEqOne E1 #

{α : Type u} → [inst : Monoid α] → (x : α) → (n : ℕ) → x ^ n = 1 → n ≠ 0 → Invertible x

If x ^ n = 1 then x has an inverse, x^(n - 1).

def Invertible.map E1 #

{R : Type u_1} →
  {S : Type u_2} →
    {F : Type u_3} →
      [inst : MulOneClass R] →
        [inst_1 : MulOneClass S] →
          [inst_2 : FunLike F R S] → [MonoidHomClass F R S] → (f : F) → (r : R) → [Invertible r] → Invertible (f r)

Monoid homs preserve invertibility.

theorem map_invOf E0 #

∀ {R : Type u_1} {S : Type u_2} {F : Type u_3} [inst : MulOneClass R] [inst_1 : Monoid S] [inst_2 : FunLike F R S]
  [MonoidHomClass F R S] (f : F) (r : R) [inst_4 : Invertible r] [ifr : Invertible (f r)], f ⅟r = ⅟(f r)

Note that the Invertible (f r) argument can be satisfied by using letI := Invertible.map f r before applying this lemma.

def Invertible.ofLeftInverse E1 #

{R : Type u_1} →
  {S : Type u_2} →
    {G : Type u_3} →
      [inst : MulOneClass R] →
        [inst_1 : MulOneClass S] →
          [inst_2 : FunLike G S R] →
            [MonoidHomClass G S R] →
              (f : R → S) → (g : G) → (r : R) → Function.LeftInverse (⇑g) f → [Invertible (f r)] → Invertible r

If a function f : R → S has a left-inverse that is a monoid hom, then r : R is invertible if f r is.

The inverse is computed as g (⅟(f r))

theorem Invertible.ofLeftInverse_invOf E1 #

∀ {R : Type u_1} {S : Type u_2} {G : Type u_3} [inst : MulOneClass R] [inst_1 : MulOneClass S] [inst_2 : FunLike G S R]
  [inst_3 : MonoidHomClass G S R] (f : R → S) (g : G) (r : R) (h : Function.LeftInverse (⇑g) f)
  [inst_4 : Invertible (f r)], ⅟r = ⅟(g (f r))

def invertibleEquivOfLeftInverse E1 #

{R : Type u_1} →
  {S : Type u_2} →
    {F : Type u_3} →
      {G : Type u_4} →
        [inst : Monoid R] →
          [inst_1 : Monoid S] →
            [inst_2 : FunLike F R S] →
              [MonoidHomClass F R S] →
                [inst_4 : FunLike G S R] →
                  [MonoidHomClass G S R] →
                    (f : F) → (g : G) → (r : R) → Function.LeftInverse ⇑g ⇑f → Invertible (f r) ≃ Invertible r

Invertibility on either side of a monoid hom with a left-inverse is equivalent.

theorem invertibleEquivOfLeftInverse_apply E0 #

∀ {R : Type u_1} {S : Type u_2} {F : Type u_3} {G : Type u_4} [inst : Monoid R] [inst_1 : Monoid S]
  [inst_2 : FunLike F R S] [inst_3 : MonoidHomClass F R S] [inst_4 : FunLike G S R] [inst_5 : MonoidHomClass G S R]
  (f : F) (g : G) (r : R) (h : Function.LeftInverse ⇑g ⇑f) (x : Invertible (f r)),
  (invertibleEquivOfLeftInverse f g r h) x = Invertible.ofLeftInverse (⇑f) g r h

theorem invertibleEquivOfLeftInverse_symm_apply E0 #

∀ {R : Type u_1} {S : Type u_2} {F : Type u_3} {G : Type u_4} [inst : Monoid R] [inst_1 : Monoid S]
  [inst_2 : FunLike F R S] [inst_3 : MonoidHomClass F R S] [inst_4 : FunLike G S R] [inst_5 : MonoidHomClass G S R]
  (f : F) (g : G) (r : R) (h : Function.LeftInverse ⇑g ⇑f) (x : Invertible r),
  (invertibleEquivOfLeftInverse f g r h).symm x = Invertible.map f r