Order properties of cast of integers #
This file proves additional properties about the canonical homomorphism from
the integers into an additive group with a one (Int.cast),
particularly results involving algebraic homomorphisms or the order structure on ℤ
which were not available in the import dependencies of Mathlib/Data/Int/Cast/Basic.lean.
TODO #
Move order lemmas about Nat.cast, Rat.cast, NNRat.cast here.
theorem Int.cast_mono {R : Type u_1} [AddCommGroupWithOne R] [PartialOrder R] [AddLeftMono R] [ZeroLEOneClass R] :
@[simp]
theorem Int.cast_nonneg {R : Type u_1} [AddCommGroupWithOne R] [PartialOrder R] [AddLeftMono R] [ZeroLEOneClass R] {n : ℤ} :
@[simp]
theorem Int.cast_nonneg_iff {R : Type u_1} [AddCommGroupWithOne R] [PartialOrder R] [AddLeftMono R] [ZeroLEOneClass R] [NeZero 1] {n : ℤ} :
@[simp]
theorem Int.cast_le {R : Type u_1} [AddCommGroupWithOne R] [PartialOrder R] [AddLeftMono R] [ZeroLEOneClass R] [NeZero 1] {m n : ℤ} :
theorem Int.cast_strictMono {R : Type u_1} [AddCommGroupWithOne R] [PartialOrder R] [AddLeftMono R] [ZeroLEOneClass R] [NeZero 1] :
StrictMono fun (x : ℤ) => ↑x
@[simp]
theorem Int.cast_lt {R : Type u_1} [AddCommGroupWithOne R] [PartialOrder R] [AddLeftMono R] [ZeroLEOneClass R] [NeZero 1] {m n : ℤ} :
@[simp]
theorem Int.cast_nonpos {R : Type u_1} [AddCommGroupWithOne R] [PartialOrder R] [AddLeftMono R] [ZeroLEOneClass R] [NeZero 1] {n : ℤ} :
@[simp]
theorem Int.cast_pos {R : Type u_1} [AddCommGroupWithOne R] [PartialOrder R] [AddLeftMono R] [ZeroLEOneClass R] [NeZero 1] {n : ℤ} :
@[simp]
theorem Int.cast_lt_zero {R : Type u_1} [AddCommGroupWithOne R] [PartialOrder R] [AddLeftMono R] [ZeroLEOneClass R] [NeZero 1] {n : ℤ} :
@[simp]
@[simp]
@[simp]
theorem Int.cast_one_le_of_pos {R : Type u_1} [Ring R] [LinearOrder R] [IsStrictOrderedRing R] {a : ℤ} (h : 0 < a) :
theorem Int.cast_le_neg_one_of_neg {R : Type u_1} [Ring R] [LinearOrder R] [IsStrictOrderedRing R] {a : ℤ} (h : a < 0) :
theorem Int.cast_le_neg_one_or_one_le_cast_of_ne_zero (R : Type u_1) [Ring R] [LinearOrder R] [IsStrictOrderedRing R] {n : ℤ} (hn : n ≠ 0) :
theorem Int.nonneg_mul_add_sq_of_abs_le_one {R : Type u_1} [Ring R] [LinearOrder R] [IsStrictOrderedRing R] {x : R} (n : ℤ) (hx : |x| ≤ 1) :
@[deprecated Int.nonneg_mul_add_sq_of_abs_le_one (since := "2026-09-17")]
theorem Int.nneg_mul_add_sq_of_abs_le_one {R : Type u_1} [Ring R] [LinearOrder R] [IsStrictOrderedRing R] {x : R} (n : ℤ) (hx : |x| ≤ 1) :
Alias of Int.nonneg_mul_add_sq_of_abs_le_one.