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.
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)
:
def
invertibleOfRingCharNotDvd
{K : Type u_2}
[Field K]
{t : ℕ}
(not_dvd : ¬ringChar K ∣ t)
:
Invertible ↑t
A natural number t
is invertible in a field K
if the characteristic of K
does not divide
t
.
Equations
- invertibleOfRingCharNotDvd not_dvd = invertibleOfNonzero ⋯
Instances For
def
invertibleOfCharPNotDvd
{K : Type u_2}
[Field K]
{p : ℕ}
[CharP K p]
{t : ℕ}
(not_dvd : ¬p ∣ t)
:
Invertible ↑t
A natural number t
is invertible in a field K
of characteristic p
if p
does not divide
t
.
Equations
- invertibleOfCharPNotDvd not_dvd = invertibleOfNonzero ⋯
Instances For
Equations
Equations
A few Invertible n
instances for small numerals n
. Feel free to add your own
number when you need its inverse.