Invertibility of elements given a characteristic #
This file includes some instances of Invertible for specific numbers in
characteristic zero. Some more cases are given as a def, to be included only
when needed. To construct instances for concrete numbers,
invertibleOfNonzero is a useful definition.
theorem not_ringChar_dvd_of_invertible {R : Type u_1} [Ring R] {t : ℕ} [Invertible ↑t] [Nontrivial R] :
@[instance_reducible]
def invertibleOfCoprime {R : Type u_1} [Ring R] {p : ℕ} [CharP R p] {n : ℕ} (h : n.Coprime p) :
Invertible ↑n
In a ring of characteristic p, (n : R) is invertible when n is coprime with p, with
inverse n.gcdA p.
Equations
- invertibleOfCoprime h = { invOf := ↑(n.gcdA p), invOf_mul_self := ⋯, mul_invOf_self := ⋯ }
Instances For
theorem CharP.isUnit_ofNat_iff {R : Type u_1} [Ring R] {p : ℕ} [CharP R p] {n : ℕ} [n.AtLeastTwo] (hp : Nat.Prime p) :
@[instance_reducible]
def invertibleOfRingCharNotDvd {K : Type u_2} [Semifield K] {t : ℕ} (not_dvd : ¬ringChar K ∣ t) :
Invertible ↑t
A natural number t is invertible in a semifield K if the characteristic of K does not
divide t.
Equations
- invertibleOfRingCharNotDvd not_dvd = invertibleOfNonzero ⋯
Instances For
@[instance_reducible]
def invertibleOfCharPNotDvd {K : Type u_2} [Semifield K] {p : ℕ} [CharP K p] {t : ℕ} (not_dvd : ¬p ∣ t) :
Invertible ↑t
A natural number t is invertible in a semifield K of characteristic p if p does not
divide t.
Equations
- invertibleOfCharPNotDvd not_dvd = invertibleOfNonzero ⋯
Instances For
@[instance_reducible]
instance invertibleOfPos {K : Type u_2} [Semifield K] [CharZero K] (n : ℕ) [NeZero n] :
Invertible ↑n
Equations
@[instance_reducible]
instance invertibleSucc {K : Type u_2} [DivisionSemiring K] [CharZero K] (n : ℕ) :
Invertible ↑n.succ
Equations
A few Invertible n instances for small numerals n. Feel free to add your own
number when you need its inverse.
@[instance_reducible]
Equations
@[instance_reducible]