Characteristics of algebras #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
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 fraction_ring R.
Main results #
char_p_of_injective_algebra_mapIfR →+* Ais an injective algebra map thenAhas the same characteristic asR.
Instances constructed from this result:
- Any
free_algebra R Xhas the same characteristic asR. - The
fraction_ring Rof an integral domainRhas the same characteristic asR.
If the algebra map R →+* A is injective then A has the same characteristic as R.
If the algebra map R →+* A is injective and R has characteristic zero then so does A.
As an application, a ℚ-algebra has characteristic zero.
A nontrivial ℚ-algebra has char_p equal to zero.
This cannot be a (local) instance because it would immediately form a loop with the
instance algebra_rat. It's probably easier to go the other way: prove char_zero R and
automatically receive an algebra ℚ R instance.
A nontrivial ℚ-algebra has characteristic zero.
This cannot be a (local) instance because it would immediately form a loop with the
instance algebra_rat. It's probably easier to go the other way: prove char_zero R and
automatically receive an algebra ℚ R instance.
An algebra over a field has the same characteristic as the field.
If R has characteristic p, then so does free_algebra R X.
If R has characteristic 0, then so does free_algebra R X.
If R has characteristic 0, then so does Frac(R).
If R has characteristic p, then so does fraction_ring R.
If R has characteristic 0, then so does fraction_ring R.