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 / V06. Rings, fields and ordered algebra

Mathlib.Algebra.Ring.Invertible

23 declarations. Mathlib docs · Source

def AddUnits.mulLeft E1 #

{R : Type u_1} → [inst : NonUnitalNonAssocSemiring R] → AddUnits R → R → AddUnits R

Multiplying an additive unit from the left produces another additive unit.

theorem AddUnits.val_neg_mulLeft E0 #

∀ {R : Type u_1} [inst : NonUnitalNonAssocSemiring R] (x : AddUnits R) (y : R), ↑(-x.mulLeft y) = y * x.neg

theorem AddUnits.val_mulLeft E0 #

∀ {R : Type u_1} [inst : NonUnitalNonAssocSemiring R] (x : AddUnits R) (y : R), ↑(x.mulLeft y) = y * ↑x

def AddUnits.mulRight E1 #

{R : Type u_1} → [inst : NonUnitalNonAssocSemiring R] → AddUnits R → R → AddUnits R

Multiplying an additive unit from the right produces another additive unit.

theorem AddUnits.val_neg_mulRight E0 #

∀ {R : Type u_1} [inst : NonUnitalNonAssocSemiring R] (x : AddUnits R) (y : R), ↑(-x.mulRight y) = x.neg * y

theorem AddUnits.val_mulRight E0 #

∀ {R : Type u_1} [inst : NonUnitalNonAssocSemiring R] (x : AddUnits R) (y : R), ↑(x.mulRight y) = ↑x * y

theorem AddUnits.neg_mulLeft E1 #

∀ {R : Type u_1} [inst : NonUnitalNonAssocSemiring R] {x : AddUnits R} {y : R}, -x.mulLeft y = (-x).mulLeft y

theorem AddUnits.neg_mulRight E1 #

∀ {R : Type u_1} [inst : NonUnitalNonAssocSemiring R] {x : AddUnits R} {y : R}, -x.mulRight y = (-x).mulRight y

theorem AddUnits.neg_mul_eq_mul_neg E1 #

∀ {R : Type u_1} [inst : NonUnitalNonAssocSemiring R] {x y : AddUnits R}, ↑(-x) * ↑y = ↑x * ↑(-y)

theorem AddUnits.neg_mul_neg E1 #

∀ {R : Type u_1} [inst : NonUnitalNonAssocSemiring R] {x y : AddUnits R}, ↑(-x) * ↑(-y) = ↑x * ↑y

theorem IsAddUnit.mul_left E1 #

∀ {R : Type u_1} [inst : NonUnitalNonAssocSemiring R] {x : R}, IsAddUnit x → ∀ (y : R), IsAddUnit (y * x)

theorem IsAddUnit.mul_right E1 #

∀ {R : Type u_1} [inst : NonUnitalNonAssocSemiring R] {x : R}, IsAddUnit x → ∀ (y : R), IsAddUnit (x * y)

def invertibleNeg E1 #

{R : Type u_1} →
  [inst : Mul R] → [inst_1 : One R] → [inst_2 : HasDistribNeg R] → (a : R) → [Invertible a] → Invertible (-a)

-⅟a is the inverse of -a

theorem invOf_neg E0 #

∀ {R : Type u_1} [inst : Monoid R] [inst_1 : HasDistribNeg R] (a : R) [inst_2 : Invertible a]
  [inst_3 : Invertible (-a)], ⅟(-a) = -⅟a

theorem one_sub_invOf_two E0 #

∀ {R : Type u_1} [inst : Ring R] [inst_1 : Invertible 2], 1 - ⅟2 = ⅟2

theorem invOf_two_add_invOf_two E0 #

∀ {R : Type u_1} [inst : NonAssocSemiring R] [inst_1 : Invertible 2], ⅟2 + ⅟2 = 1

theorem pos_of_invertible_cast E1 #

∀ {R : Type u_1} [inst : NonAssocSemiring R] [Nontrivial R] (n : ℕ) [Invertible ↑n], 0 < n

theorem invOf_add_invOf E1 #

∀ {R : Type u_1} [inst : Semiring R] (a b : R) [inst_1 : Invertible a] [inst_2 : Invertible b],
  ⅟a + ⅟b = ⅟a * (a + b) * ⅟b

theorem invOf_sub_invOf E1 #

∀ {R : Type u_1} [inst : Ring R] (a b : R) [inst_1 : Invertible a] [inst_2 : Invertible b], ⅟a - ⅟b = ⅟a * (b - a) * ⅟b

A version of inv_sub_inv' for invOf.

theorem neg_add_eq_mul_invOf_mul_same_iff E0 #

∀ {R : Type u_1} [inst : Ring R] {a b : R} [inst_1 : Invertible a] [inst_2 : Invertible b],
  -(b + a) = a * ⅟b * a ↔ -1 = ⅟a * b + ⅟b * a

theorem neg_one_eq_invOf_mul_add_invOf_mul_iff E0 #

∀ {R : Type u_1} [inst : Ring R] {a b : R} [inst_1 : Invertible a] [inst_2 : Invertible b]
  [inst_3 : Invertible (a + b)], ⅟(a + b) = ⅟a + ⅟b ↔ -1 = ⅟a * b + ⅟b * a

theorem Ring.inverse_add_inverse E1 #

∀ {R : Type u_1} [inst : Semiring R] {a b : R},
  (IsUnit a ↔ IsUnit b) → Ring.inverse a + Ring.inverse b = Ring.inverse a * (a + b) * Ring.inverse b

A version of inv_add_inv' for Ring.inverse.

theorem Ring.inverse_sub_inverse E1 #

∀ {R : Type u_1} [inst : Ring R] {a b : R},
  (IsUnit a ↔ IsUnit b) → Ring.inverse a - Ring.inverse b = Ring.inverse a * (b - a) * Ring.inverse b

A version of inv_sub_inv' for Ring.inverse.