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.Ring.CharZero

16 declarations. Mathlib docs · Source

def Nat.castEmbedding E1 #

{R : Type u_2} → [inst : AddMonoidWithOne R] → [CharZero R] → ℕ ↪ R

Nat.cast as an embedding into monoids of characteristic 0.

theorem Nat.castEmbedding_apply E0 #

∀ {R : Type u_2} [inst : AddMonoidWithOne R] [inst_1 : CharZero R] (a : ℕ), Nat.castEmbedding a = ↑a

instance CharZero.NeZero.two E0 #

∀ {R : Type u_2} [inst : AddMonoidWithOne R] [CharZero R], NeZero 2

theorem Function.support_natCast E1 #

∀ {α : Type u_1} {R : Type u_2} {n : ℕ} [inst : AddMonoidWithOne R] [CharZero R], n ≠ 0 → Function.support ↑n = Set.univ

theorem Function.mulSupport_natCast E1 #

∀ {α : Type u_1} {R : Type u_2} {n : ℕ} [inst : AddMonoidWithOne R] [CharZero R],
  n ≠ 1 → Function.mulSupport ↑n = Set.univ

theorem RingHom.charZero E1 #

∀ {R : Type u_2} {S : Type u_3} [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring S] (ϕ : R →+* S) [CharZero S],
  CharZero R

theorem RingHom.charZero_iff E0 #

∀ {R : Type u_2} {S : Type u_3} [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring S] {ϕ : R →+* S},
  Function.Injective ⇑ϕ → (CharZero R ↔ CharZero S)

theorem RingHom.injective_nat E1 #

∀ {R : Type u_2} [inst : NonAssocSemiring R] (f : ℕ →+* R) [CharZero R], Function.Injective ⇑f

theorem add_self_eq_zero E0 #

∀ {R : Type u_2} [inst : NonAssocSemiring R] [NoZeroDivisors R] [CharZero R] {a : R}, a + a = 0 ↔ a = 0

theorem Nat.cast_pow_eq_one E0 #

∀ {R : Type u_2} {n : ℕ} [inst : Semiring R] [CharZero R] {a : ℕ}, n ≠ 0 → (↑a ^ n = 1 ↔ a = 1)

instance HasUniqueDiv.of_isCancelMulZero_charZero E0 #

∀ {R : Type u_2} [inst : Semiring R] [CharZero R] [IsCancelMulZero R], HasUniqueDiv R

A characteristic zero domain is torsion-free.

theorem CharZero.neg_eq_self_iff E0 #

∀ {R : Type u_2} [inst : NonAssocRing R] [NoZeroDivisors R] [CharZero R] {a : R}, -a = a ↔ a = 0

theorem nat_mul_inj E1 #

∀ {R : Type u_2} [inst : NonAssocRing R] [NoZeroDivisors R] [CharZero R] {n : ℕ} {a b : R},
  ↑n * a = ↑n * b → n = 0 ∨ a = b

theorem nat_mul_inj' E1 #

∀ {R : Type u_2} [inst : NonAssocRing R] [NoZeroDivisors R] [CharZero R] {n : ℕ} {a b : R},
  ↑n * a = ↑n * b → n ≠ 0 → a = b

theorem units_ne_neg_self E0 #

∀ {R : Type u_2} [inst : Ring R] [CharZero R] (u : Rˣ), u ≠ -u

theorem neg_units_ne_self E0 #

∀ {R : Type u_2} [inst : Ring R] [CharZero R] (u : Rˣ), -u ≠ u