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.CharP.Invertible

16 declarations. Mathlib docs · Source

theorem Even.all E0 #

∀ {R : Type u_1} [inst : Semiring R] [Invertible 2] (a : R), Even a

When two is invertible, every element is Even.

theorem Odd.all E0 #

∀ {R : Type u_1} [inst : Ring R] [Invertible 2] (a : R), Odd a

When two is invertible in a ring, every element is Odd.

theorem not_ringChar_dvd_of_invertible E1 #

∀ {R : Type u_1} [inst : Ring R] {t : ℕ} [Invertible ↑t] [Nontrivial R], ¬ringChar R ∣ t

theorem CharP.intCast_mul_natCast_gcdA_eq_gcd E1 #

∀ {R : Type u_1} [inst : Ring R] {p : ℕ} [CharP R p] (n : ℕ), ↑n * ↑(n.gcdA p) = ↑(n.gcd p)

theorem CharP.natCast_gcdA_mul_intCast_eq_gcd E1 #

∀ {R : Type u_1} [inst : Ring R] {p : ℕ} [CharP R p] (n : ℕ), ↑(n.gcdA p) * ↑n = ↑(n.gcd p)

def invertibleOfCoprime E1 #

{R : Type u_1} → [inst : Ring R] → {p : ℕ} → [CharP R p] → {n : ℕ} → 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.

theorem invOf_eq_of_coprime E1 #

∀ {R : Type u_1} [inst : Ring R] {p : ℕ} [CharP R p] {n : ℕ} [inst_2 : Invertible ↑n], n.Coprime p → ⅟↑n = ↑(n.gcdA p)

theorem CharP.isUnit_natCast_iff E0 #

∀ {R : Type u_1} [inst : Ring R] {p : ℕ} [CharP R p] {n : ℕ}, Nat.Prime p → (IsUnit ↑n ↔ ¬p ∣ n)

theorem CharP.isUnit_ofNat_iff E0 #

∀ {R : Type u_1} [inst : Ring R] {p : ℕ} [CharP R p] {n : ℕ} [inst_2 : n.AtLeastTwo],
  Nat.Prime p → (IsUnit (OfNat.ofNat n) ↔ ¬p ∣ OfNat.ofNat n)

theorem CharP.isUnit_intCast_iff E0 #

∀ {R : Type u_1} [inst : Ring R] {p : ℕ} [CharP R p] {z : ℤ}, Nat.Prime p → (IsUnit ↑z ↔ ¬↑p ∣ z)

def invertibleOfRingCharNotDvd E1 #

{K : Type u_2} → [inst : Semifield K] → {t : ℕ} → ¬ringChar K ∣ t → Invertible ↑t

A natural number t is invertible in a semifield K if the characteristic of K does not divide t.

def invertibleOfCharPNotDvd E1 #

{K : Type u_2} → [inst : Semifield K] → {p : ℕ} → [CharP K p] → {t : ℕ} → ¬p ∣ t → Invertible ↑t

A natural number t is invertible in a semifield K of characteristic p if p does not divide t.

instance invertibleOfPos E0 #

{K : Type u_2} → [inst : Semifield K] → [CharZero K] → (n : ℕ) → [NeZero n] → Invertible ↑n

instance invertibleSucc E0 #

{K : Type u_2} → [inst : DivisionSemiring K] → [CharZero K] → (n : ℕ) → Invertible ↑n.succ

instance invertibleTwo E0 #

{K : Type u_2} → [inst : DivisionSemiring K] → [CharZero K] → Invertible 2

instance invertibleThree E0 #

{K : Type u_2} → [inst : DivisionSemiring K] → [CharZero K] → Invertible 3