Mathlib.Data.Int.Cast.Basic
17 declarations. Mathlib docs · Source
Cast of integers (additional theorems)
This file proves additional properties about the canonical homomorphism from
the integers into an additive group with a one (Int.cast).
There is also Mathlib.Data.Int.Cast.Lemmas,
which includes lemmas stated in terms of algebraic homomorphisms,
and results involving the order structure of ℤ.
By contrast, this file's only import beyond Mathlib.Data.Int.Cast.Defs is
Mathlib.Algebra.Group.Basic.
theorem Nat.cast_sub E0 #
∀ {R : Type u} [inst : AddGroupWithOne R] {m n : ℕ}, m ≤ n → ↑(n - m) = ↑n - ↑m
theorem Nat.cast_pred E0 #
∀ {R : Type u} [inst : AddGroupWithOne R] {n : ℕ}, 0 < n → ↑(n - 1) = ↑n - 1
theorem Int.cast_ite E0 #
∀ {R : Type u} [inst : IntCast R] (P : Prop) [inst_1 : Decidable P] (m n : ℤ),
↑(if P then m else n) = if P then ↑m else ↑n
theorem Int.cast_negSucc E0 #
∀ {R : Type u} [inst : AddGroupWithOne R] (n : ℕ), ↑(Int.negSucc n) = -↑(n + 1)
theorem Int.cast_zero E0 #
∀ {R : Type u} [inst : AddGroupWithOne R], ↑0 = 0
theorem Int.cast_natCast E0 #
∀ {R : Type u} [inst : AddGroupWithOne R] (n : ℕ), ↑↑n = ↑n
theorem Int.cast_ofNat E0 #
∀ {R : Type u} [inst : AddGroupWithOne R] (n : ℕ) [inst_1 : n.AtLeastTwo], ↑(OfNat.ofNat n) = OfNat.ofNat n
theorem Int.cast_one E0 #
∀ {R : Type u} [inst : AddGroupWithOne R], ↑1 = 1
theorem Int.cast_neg E0 #
∀ {R : Type u} [inst : AddGroupWithOne R] (n : ℤ), ↑(-n) = -↑n
theorem Int.cast_subNatNat E0 #
∀ {R : Type u} [inst : AddGroupWithOne R] (m n : ℕ), ↑(Int.subNatNat m n) = ↑m - ↑n
theorem Int.cast_negOfNat E0 #
∀ {R : Type u} [inst : AddGroupWithOne R] (n : ℕ), ↑(Int.negOfNat n) = -↑n
theorem Int.cast_add E0 #
∀ {R : Type u} [inst : AddGroupWithOne R] (m n : ℤ), ↑(m + n) = ↑m + ↑n
theorem Int.cast_sub E0 #
∀ {R : Type u} [inst : AddGroupWithOne R] (m n : ℤ), ↑(m - n) = ↑m - ↑n
theorem Int.cast_two E1 #
∀ {R : Type u} [inst : AddGroupWithOne R], ↑2 = 2
theorem Int.cast_three E1 #
∀ {R : Type u} [inst : AddGroupWithOne R], ↑3 = 3
theorem Int.cast_four E1 #
∀ {R : Type u} [inst : AddGroupWithOne R], ↑4 = 4
theorem zsmul_one E0 #
∀ {R : Type u_1} [inst : AddGroupWithOne R] (n : ℤ), n • 1 = ↑n