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.Order.Ring.Cast

16 declarations and 1 deprecated aliases. Mathlib docs · Source

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 E1 #

∀ {R : Type u_1} [inst : AddCommGroupWithOne R] [inst_1 : PartialOrder R] [AddLeftMono R] [ZeroLEOneClass R],
  Monotone Int.cast

theorem Int.cast_nonneg E0 #

∀ {R : Type u_1} [inst : AddCommGroupWithOne R] [inst_1 : PartialOrder R] [AddLeftMono R] [ZeroLEOneClass R] {n : ℤ},
  0 ≤ n → 0 ≤ ↑n

theorem Int.cast_nonneg_iff E0 #

∀ {R : Type u_1} [inst : AddCommGroupWithOne R] [inst_1 : PartialOrder R] [AddLeftMono R] [ZeroLEOneClass R] [NeZero 1]
  {n : ℤ}, 0 ≤ ↑n ↔ 0 ≤ n

theorem Int.cast_le E0 #

∀ {R : Type u_1} [inst : AddCommGroupWithOne R] [inst_1 : PartialOrder R] [AddLeftMono R] [ZeroLEOneClass R] [NeZero 1]
  {m n : ℤ}, ↑m ≤ ↑n ↔ m ≤ n

theorem Int.cast_strictMono E1 #

∀ {R : Type u_1} [inst : AddCommGroupWithOne R] [inst_1 : PartialOrder R] [AddLeftMono R] [ZeroLEOneClass R] [NeZero 1],
  StrictMono fun x ↦ ↑x

theorem Int.cast_lt E0 #

∀ {R : Type u_1} [inst : AddCommGroupWithOne R] [inst_1 : PartialOrder R] [AddLeftMono R] [ZeroLEOneClass R] [NeZero 1]
  {m n : ℤ}, ↑m < ↑n ↔ m < n

theorem Int.cast_nonpos E0 #

∀ {R : Type u_1} [inst : AddCommGroupWithOne R] [inst_1 : PartialOrder R] [AddLeftMono R] [ZeroLEOneClass R] [NeZero 1]
  {n : ℤ}, ↑n ≤ 0 ↔ n ≤ 0

theorem Int.cast_pos E0 #

∀ {R : Type u_1} [inst : AddCommGroupWithOne R] [inst_1 : PartialOrder R] [AddLeftMono R] [ZeroLEOneClass R] [NeZero 1]
  {n : ℤ}, 0 < ↑n ↔ 0 < n

theorem Int.cast_lt_zero E0 #

∀ {R : Type u_1} [inst : AddCommGroupWithOne R] [inst_1 : PartialOrder R] [AddLeftMono R] [ZeroLEOneClass R] [NeZero 1]
  {n : ℤ}, ↑n < 0 ↔ n < 0

theorem Int.cast_min E0 #

∀ {R : Type u_1} [inst : Ring R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R] {a b : ℤ}, ↑(min a b) = min ↑a ↑b

theorem Int.cast_max E0 #

∀ {R : Type u_1} [inst : Ring R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R] {a b : ℤ}, ↑(max a b) = max ↑a ↑b

theorem Int.cast_abs E0 #

∀ {R : Type u_1} [inst : Ring R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R] {a : ℤ}, ↑|a| = |↑a|

theorem Int.cast_one_le_of_pos E1 #

∀ {R : Type u_1} [inst : Ring R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R] {a : ℤ}, 0 < a → 1 ≤ ↑a

theorem Int.cast_le_neg_one_of_neg E1 #

∀ {R : Type u_1} [inst : Ring R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R] {a : ℤ}, a < 0 → ↑a ≤ -1

theorem Int.cast_le_neg_one_or_one_le_cast_of_ne_zero E1 #

∀ (R : Type u_1) [inst : Ring R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R] {n : ℤ}, n ≠ 0 → ↑n ≤ -1 ∨ 1 ≤ ↑n

theorem Int.nonneg_mul_add_sq_of_abs_le_one E1 #

∀ {R : Type u_1} [inst : Ring R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R] {x : R} (n : ℤ),
  |x| ≤ 1 → 0 ≤ ↑n * x + ↑n * ↑n

Deprecated aliases

NameNew nameSince
Int.nneg_mul_add_sq_of_abs_le_oneInt.nonneg_mul_add_sq_of_abs_le_one2026-09-17