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.Algebra

27 declarations. Mathlib docs · Source

Characteristics of algebras

In this file we describe the characteristic of R-algebras.

In particular we are interested in the characteristic of free algebras over R and the fraction field FractionRing R.

Main results

  • charP_of_injective_algebraMap If R →+* A is an injective algebra map then A has the same characteristic as R.

Instances constructed from this result:

  • Any FreeAlgebra R X has the same characteristic as R.
  • The FractionRing R of an integral domain R has the same characteristic as R.

As an application, a ℚ-algebra has characteristic zero.

An algebra over a field has the same characteristic as the field.

theorem CharP.dvd_of_ringHom E1 #

∀ {R : Type u_1} {A : Type u_2} [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring A] (f : R →+* A) (p q : ℕ)
  [CharP R p] [CharP A q], q ∣ p

Given R →+* A, then char A ∣ char R.

theorem CharP.of_ringHom_of_ne_zero E1 #

∀ {R : Type u_1} {A : Type u_2} [inst : NonAssocSemiring R] [NoZeroDivisors R] [inst_2 : NonAssocSemiring A]
  [Nontrivial A] (f : R →+* A) (p : ℕ), p ≠ 0 → ∀ [CharP R p], CharP A p

Given R →+* A, where R is a domain with char R > 0, then char A = char R.

theorem charP_of_injective_ringHom E1 #

∀ {R : Type u_1} {A : Type u_2} [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring A] {f : R →+* A},
  Function.Injective ⇑f → ∀ (p : ℕ) [CharP R p], CharP A p

If a ring homomorphism R →+* A is injective then A has the same characteristic as R.

theorem charP_of_injective_algebraMap E3 #

∀ {R : Type u_1} {A : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A],
  Function.Injective ⇑(algebraMap R A) → ∀ (p : ℕ) [CharP R p], CharP A p

If the algebra map R →+* A is injective then A has the same characteristic as R.

theorem charP_of_injective_algebraMap' E1 #

∀ {A : Type u_2} (R : Type u_3) [inst : CommRing R] [inst_1 : Semiring A] [inst_2 : Algebra R A] [FaithfulSMul R A]
  (p : ℕ) [CharP R p], CharP A p

theorem charZero_of_injective_ringHom E1 #

∀ {R : Type u_1} {A : Type u_2} [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring A] {f : R →+* A},
  Function.Injective ⇑f → ∀ [CharZero R], CharZero A

If a ring homomorphism R →+* A is injective and R has characteristic zero then so does A.

theorem charZero_of_injective_algebraMap E1 #

∀ {R : Type u_1} {A : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A],
  Function.Injective ⇑(algebraMap R A) → ∀ [CharZero R], CharZero A

If the algebra map R →+* A is injective and R has characteristic zero then so does A.

theorem RingHom.charP E1 #

∀ {R : Type u_1} {A : Type u_2} [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring A] (f : R →+* A),
  Function.Injective ⇑f → ∀ (p : ℕ) [CharP A p], CharP R p

If R →+* A is injective, and A is of characteristic p, then R is also of characteristic p. Similar to RingHom.charZero.

theorem RingHom.charP_iff E0 #

∀ {R : Type u_1} {A : Type u_2} [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring A] (f : R →+* A),
  Function.Injective ⇑f → ∀ (p : ℕ), CharP R p ↔ CharP A p

If R →+* A is injective, then R is of characteristic p if and only if A is also of characteristic p. Similar to RingHom.charZero_iff.

theorem expChar_of_injective_ringHom E1 #

∀ {R : Type u_1} {A : Type u_2} [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring A] {f : R →+* A},
  Function.Injective ⇑f → ∀ (q : ℕ) [hR : ExpChar R q], ExpChar A q

If a ring homomorphism R →+* A is injective then A has the same exponential characteristic as R.

theorem RingHom.expChar E1 #

∀ {R : Type u_1} {A : Type u_2} [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring A] (f : R →+* A),
  Function.Injective ⇑f → ∀ (p : ℕ) [ExpChar A p], ExpChar R p

If R →+* A is injective, and A is of exponential characteristic p, then R is also of exponential characteristic p. Similar to RingHom.charZero.

theorem RingHom.expChar_iff E0 #

∀ {R : Type u_1} {A : Type u_2} [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring A] (f : R →+* A),
  Function.Injective ⇑f → ∀ (p : ℕ), ExpChar R p ↔ ExpChar A p

If R →+* A is injective, then R is of exponential characteristic p if and only if A is also of exponential characteristic p. Similar to RingHom.charZero_iff.

theorem expChar_of_injective_algebraMap E1 #

∀ {R : Type u_1} {A : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A],
  Function.Injective ⇑(algebraMap R A) → ∀ (q : ℕ) [ExpChar R q], ExpChar A q

If the algebra map R →+* A is injective then A has the same exponential characteristic as R.

theorem ExpChar.of_injective_algebraMap' E1 #

∀ (R : Type u_1) {A : Type u_2} [inst : CommRing R] [inst_1 : CommRing A] [inst_2 : Algebra R A] [FaithfulSMul R A]
  (q : ℕ) [ExpChar R q], ExpChar A q

instance Subfield.charP E0 #

∀ {R : Type u_1} [inst : DivisionRing R] (L : Subfield R) (p : ℕ) [CharP R p], CharP (↥L) p

instance Subfield.expChar E0 #

∀ {R : Type u_1} [inst : DivisionRing R] (L : Subfield R) (p : ℕ) [ExpChar R p], ExpChar (↥L) p

theorem algebraRat.charP_zero E1 #

∀ (R : Type u_3) [Nontrivial R] [inst : Semiring R] [Algebra ℚ R], CharP R 0

A nontrivial ℚ-algebra has CharP equal to zero.

This cannot be a (local) instance because it would immediately form a loop with the instance DivisionRing.toRatAlgebra. It's probably easier to go the other way: prove CharZero R and automatically receive an Algebra ℚ R instance.

theorem algebraRat.charZero E1 #

∀ (R : Type u_3) [Nontrivial R] [inst : Ring R] [Algebra ℚ R], CharZero R

A nontrivial ℚ-algebra has characteristic zero.

This cannot be a (local) instance because it would immediately form a loop with the instance DivisionRing.toRatAlgebra. It's probably easier to go the other way: prove CharZero R and automatically receive an Algebra ℚ R instance.

theorem RingHom.charP_iff_charP E1 #

∀ {K : Type u_3} {L : Type u_4} [inst : DivisionRing K] [inst_1 : NonAssocSemiring L] [Nontrivial L] (f : K →+* L)
  (p : ℕ), CharP K p ↔ CharP L p

theorem Algebra.charP_iff E0 #

∀ (K : Type u_3) (L : Type u_4) [inst : Field K] [inst_1 : CommSemiring L] [Nontrivial L] [Algebra K L] (p : ℕ),
  CharP K p ↔ CharP L p

theorem Algebra.ringChar_eq E0 #

∀ (K : Type u_3) (L : Type u_4) [inst : Field K] [inst_1 : CommSemiring L] [Nontrivial L] [Algebra K L],
  ringChar K = ringChar L

instance FreeAlgebra.charP E0 #

∀ {R : Type u_3} {X : Type u_4} [inst : CommSemiring R] (p : ℕ) [CharP R p], CharP (FreeAlgebra R X) p

If R has characteristic p, then so does FreeAlgebra R X.

instance FreeAlgebra.charZero E0 #

∀ {R : Type u_3} {X : Type u_4} [inst : CommSemiring R] [CharZero R], CharZero (FreeAlgebra R X)

If R has characteristic 0, then so does FreeAlgebra R X.

theorem IsFractionRing.charP_of_isFractionRing E1 #

∀ (R : Type u_3) {K : Type u_4} [inst : CommRing R] [inst_1 : Field K] [inst_2 : Algebra R K] [IsFractionRing R K]
  (p : ℕ) [CharP R p], CharP K p

If R has characteristic p, then so does Frac(R).

theorem IsFractionRing.charZero_of_isFractionRing E1 #

∀ (R : Type u_3) {K : Type u_4} [inst : CommRing R] [inst_1 : Field K] [inst_2 : Algebra R K] [IsFractionRing R K]
  [CharZero R], CharZero K

If R has characteristic 0, then so does Frac(R).

instance IsFractionRing.charP E0 #

∀ (R : Type u_3) [inst : CommRing R] (p : ℕ) [IsDomain R] [CharP R p], CharP (FractionRing R) p

If R has characteristic p, then so does FractionRing R.

instance IsFractionRing.charZero E0 #

∀ (R : Type u_3) [inst : CommRing R] [IsDomain R] [CharZero R], CharZero (FractionRing R)

If R has characteristic 0, then so does FractionRing R.