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

23 declarations. Mathlib docs · Source

theorem CharP.natCast_eq_natCast' E1 #

∀ (R : Type u_1) [inst : AddMonoidWithOne R] (p : ℕ) [CharP R p] {a b : ℕ}, a ≡ b [MOD p] → ↑a = ↑b

theorem CharP.natCast_eq_natCast_mod E1 #

∀ (R : Type u_1) [inst : AddMonoidWithOne R] (p : ℕ) [CharP R p] (a : ℕ), ↑a = ↑(a % p)

theorem CharP.natCast_eq_natCast E1 #

∀ (R : Type u_1) [inst : AddMonoidWithOne R] (p : ℕ) [CharP R p] {a b : ℕ} [IsRightCancelAdd R], ↑a = ↑b ↔ a ≡ b [MOD p]

theorem CharP.natCast_injOn_Iio E1 #

∀ (R : Type u_1) [inst : AddMonoidWithOne R] (p : ℕ) [CharP R p] [IsRightCancelAdd R], Set.InjOn Nat.cast (Set.Iio p)

theorem CharP.intCast_eq_intCast E1 #

∀ (R : Type u_1) [inst : AddGroupWithOne R] (p : ℕ) [CharP R p] {a b : ℤ}, ↑a = ↑b ↔ a ≡ b [ZMOD ↑p]

theorem CharP.intCast_eq_intCast_mod E1 #

∀ (R : Type u_1) [inst : AddGroupWithOne R] (p : ℕ) [CharP R p] {a : ℤ}, ↑a = ↑(a % ↑p)

theorem CharP.intCast_injOn_Ico E1 #

∀ (R : Type u_1) [inst : AddGroupWithOne R] (p : ℕ) [CharP R p], Set.InjOn Int.cast (Set.Ico 0 ↑p)

theorem CharP.cast_ne_zero_of_ne_of_prime E1 #

∀ (R : Type u_1) [inst : NonAssocSemiring R] [Nontrivial R] {p q : ℕ} [CharP R p], Nat.Prime q → p ≠ q → ↑q ≠ 0

If a ring R is of characteristic p, then for any prime number q different from p, it is not zero in R.

theorem CharP.ringChar_of_prime_eq_zero E1 #

∀ {R : Type u_1} [inst : NonAssocSemiring R] [Nontrivial R] {p : ℕ}, Nat.Prime p → ↑p = 0 → ringChar R = p

theorem CharP.charP_iff_prime_eq_zero E1 #

∀ {R : Type u_1} [inst : NonAssocSemiring R] [Nontrivial R] {p : ℕ}, Nat.Prime p → (CharP R p ↔ ↑p = 0)

theorem Ring.two_ne_zero E1 #

∀ {R : Type u_2} [inst : NonAssocSemiring R] [Nontrivial R], ringChar R ≠ 2 → 2 ≠ 0

We have 2 ≠ 0 in a nontrivial ring whose characteristic is not 2.

theorem Ring.neg_one_ne_one_of_char_ne_two E1 #

∀ {R : Type u_2} [inst : NonAssocRing R] [Nontrivial R], ringChar R ≠ 2 → -1 ≠ 1

Characteristic ≠ 2 and nontrivial implies that -1 ≠ 1.

instance Nat.lcm.charP E0 #

∀ (R : Type u_1) (S : Type u_2) [inst : AddMonoidWithOne R] [inst_1 : AddMonoidWithOne S] (p q : ℕ) [CharP R p]
  [CharP S q], CharP (R × S) (p.lcm q)

The characteristic of the product of rings is the least common multiple of the characteristics of the two rings.

instance Prod.charP E0 #

∀ (R : Type u_1) (S : Type u_2) [inst : AddMonoidWithOne R] [inst_1 : AddMonoidWithOne S] (p : ℕ) [CharP R p]
  [CharP S p], CharP (R × S) p

The characteristic of the product of two rings of the same characteristic is the same as the characteristic of the rings

instance Prod.charZero_of_left E0 #

∀ (R : Type u_1) (S : Type u_2) [inst : AddMonoidWithOne R] [inst_1 : AddMonoidWithOne S] [CharZero R], CharZero (R × S)

instance Prod.charZero_of_right E0 #

∀ (R : Type u_1) (S : Type u_2) [inst : AddMonoidWithOne R] [inst_1 : AddMonoidWithOne S] [CharZero S], CharZero (R × S)

instance ULift.charP E0 #

∀ (R : Type u_1) [inst : AddMonoidWithOne R] (p : ℕ) [CharP R p], CharP (ULift.{u_2, u_1} R) p

instance MulOpposite.charP E0 #

∀ (R : Type u_1) [inst : AddMonoidWithOne R] (p : ℕ) [CharP R p], CharP Rᵐᵒᵖ p

theorem Int.cast_injOn_of_ringChar_ne_two E1 #

∀ {R : Type u_2} [inst : NonAssocRing R] [Nontrivial R], ringChar R ≠ 2 → Set.InjOn Int.cast {0, 1, -1}

If two integers from {0, 1, -1} result in equal elements in a ring R that is nontrivial and of characteristic not 2, then they are equal.

theorem CharZero.charZero_iff_forall_prime_ne_zero E1 #

∀ (R : Type u_1) [inst : NonAssocRing R] [NoZeroDivisors R] [Nontrivial R], CharZero R ↔ ∀ (p : ℕ), Nat.Prime p → ↑p ≠ 0

instance Fin.charP E0 #

∀ (n : ℕ) [inst : NeZero n], CharP (Fin n) n

The characteristic of F_p is p.

instance instExpCharProd E0 #

∀ (R : Type u_1) [inst : AddMonoidWithOne R] (S : Type u_2) [inst_1 : Semiring S] (p : ℕ) [ExpChar R p] [ExpChar S p],
  ExpChar (R × S) p

instance instIsCharPOfIsLeftCancelAddOfCharP E0 #

∀ (α : Type u_2) [inst : Semiring α] [IsLeftCancelAdd α] (n : ℕ) [CharP α n], Lean.Grind.IsCharP α n