Module docstring
{"# Injectivity of Int.Cast into characteristic zero rings and fields.
"}
{"# Injectivity of Int.Cast into characteristic zero rings and fields.
"}
Int.cast_div_charZero
theorem
{k : Type*} [DivisionRing k] [CharZero k] {m n : ℤ} (n_dvd : n ∣ m) : ((m / n : ℤ) : k) = m / n
@[simp, norm_cast]
theorem cast_div_charZero {k : Type*} [DivisionRing k] [CharZero k] {m n : ℤ} (n_dvd : n ∣ m) :
((m / n : ℤ) : k) = m / n := by
rcases eq_or_ne n 0 with (rfl | hn)
· simp [Int.ediv_zero]
· exact cast_div n_dvd (cast_ne_zero.mpr hn)
Int.cast_div_ofNat_charZero
theorem
{k : Type*} [DivisionRing k] [CharZero k] {m n : ℕ} (n_dvd : n ∣ m) : (((m : ℤ) / (n : ℤ) : ℤ) : k) = m / n
@[simp, norm_cast]
theorem cast_div_ofNat_charZero {k : Type*} [DivisionRing k] [CharZero k] {m n : ℕ}
(n_dvd : n ∣ m) : (((m : ℤ) / (n : ℤ) : ℤ) : k) = m / n := by
rw [cast_div_charZero (Int.ofNat_dvd.mpr n_dvd), cast_natCast, cast_natCast]
RingHom.injective_int
theorem
{α : Type*} [NonAssocRing α] (f : ℤ →+* α) [CharZero α] : Function.Injective f
theorem RingHom.injective_int {α : Type*} [NonAssocRing α] (f : ℤℤ →+* α) [CharZero α] :
Function.Injective f :=
Subsingleton.elim (Int.castRingHom _) f ▸ Int.cast_injective
Function.support_intCast
theorem
(hn : n ≠ 0) : support (n : α → β) = univ
lemma support_intCast (hn : n ≠ 0) : support (n : α → β) = univ :=
support_const <| Int.cast_ne_zero.2 hn
Function.mulSupport_intCast
theorem
(hn : n ≠ 1) : mulSupport (n : α → β) = univ
lemma mulSupport_intCast (hn : n ≠ 1) : mulSupport (n : α → β) = univ :=
mulSupport_const <| Int.cast_ne_one.2 hn