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 / V02. Numbers

Mathlib.Data.Nat.Cast.Order.Basic

28 declarations. Mathlib docs · Source

theorem Nat.mono_cast E1 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α],
  Monotone Nat.cast

theorem Nat.cast_nonneg' E0 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] (n : ℕ),
  0 ≤ ↑n

See also Nat.cast_nonneg, specialised to IsOrderedRing.

theorem Nat.ofNat_nonneg' E0 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] (n : ℕ)
  [inst_4 : n.AtLeastTwo], 0 ≤ OfNat.ofNat n

See also Nat.ofNat_nonneg, specialised to IsOrderedRing.

theorem Nat.cast_add_one_pos E1 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] [NeZero 1]
  (n : ℕ), 0 < ↑n + 1

theorem Nat.cast_pos' E0 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] [NeZero 1]
  {n : ℕ}, 0 < ↑n ↔ 0 < n

See also Nat.cast_pos, specialised to IsOrderedRing.

theorem Nat.strictMono_cast E1 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] [CharZero α],
  StrictMono Nat.cast

def Nat.castOrderEmbedding E1 #

{α : Type u_1} →
  [inst : AddMonoidWithOne α] → [inst_1 : PartialOrder α] → [AddLeftMono α] → [ZeroLEOneClass α] → [CharZero α] → ℕ ↪o α

Nat.cast : ℕ → α as an OrderEmbedding

theorem Nat.castOrderEmbedding_apply E0 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [inst_2 : AddLeftMono α]
  [inst_3 : ZeroLEOneClass α] [inst_4 : CharZero α], ⇑Nat.castOrderEmbedding = Nat.cast

theorem Nat.cast_le E0 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] [CharZero α]
  {m n : ℕ}, ↑m ≤ ↑n ↔ m ≤ n

theorem Nat.cast_lt E0 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] [CharZero α]
  {m n : ℕ}, ↑m < ↑n ↔ m < n

theorem Nat.one_lt_cast E0 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] [CharZero α]
  {n : ℕ}, 1 < ↑n ↔ 1 < n

theorem Nat.one_le_cast E0 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] [CharZero α]
  {n : ℕ}, 1 ≤ ↑n ↔ 1 ≤ n

theorem Nat.one_le_cast_iff_ne_zero E1 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] [CharZero α]
  {n : ℕ}, 1 ≤ ↑n ↔ n ≠ 0

theorem Nat.cast_lt_one E0 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] [CharZero α]
  {n : ℕ}, ↑n < 1 ↔ n = 0

theorem Nat.cast_le_one E0 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] [CharZero α]
  {n : ℕ}, ↑n ≤ 1 ↔ n ≤ 1

theorem Nat.cast_nonpos E0 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] [CharZero α]
  {n : ℕ}, ↑n ≤ 0 ↔ n = 0

theorem Nat.ofNat_le_cast E0 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] [CharZero α]
  {m n : ℕ} [inst_5 : m.AtLeastTwo], OfNat.ofNat m ≤ ↑n ↔ OfNat.ofNat m ≤ n

theorem Nat.ofNat_lt_cast E0 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] [CharZero α]
  {m n : ℕ} [inst_5 : m.AtLeastTwo], OfNat.ofNat m < ↑n ↔ OfNat.ofNat m < n

theorem Nat.cast_le_ofNat E0 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] [CharZero α]
  {m n : ℕ} [inst_5 : n.AtLeastTwo], ↑m ≤ OfNat.ofNat n ↔ m ≤ OfNat.ofNat n

theorem Nat.cast_lt_ofNat E0 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] [CharZero α]
  {m n : ℕ} [inst_5 : n.AtLeastTwo], ↑m < OfNat.ofNat n ↔ m < OfNat.ofNat n

theorem Nat.one_lt_ofNat E0 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] [CharZero α]
  {n : ℕ} [inst_5 : n.AtLeastTwo], 1 < OfNat.ofNat n

theorem Nat.one_le_ofNat E0 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] [CharZero α]
  {n : ℕ} [inst_5 : n.AtLeastTwo], 1 ≤ OfNat.ofNat n

theorem Nat.not_ofNat_le_one E0 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] [CharZero α]
  {n : ℕ} [inst_5 : n.AtLeastTwo], ¬OfNat.ofNat n ≤ 1

theorem Nat.not_ofNat_lt_one E0 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] [CharZero α]
  {n : ℕ} [inst_5 : n.AtLeastTwo], ¬OfNat.ofNat n < 1

theorem Nat.ofNat_le E1 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] [CharZero α]
  {m n : ℕ} [inst_5 : n.AtLeastTwo] [inst_6 : m.AtLeastTwo],
  OfNat.ofNat m ≤ OfNat.ofNat n ↔ OfNat.ofNat m ≤ OfNat.ofNat n

theorem Nat.ofNat_lt E1 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] [CharZero α]
  {m n : ℕ} [inst_5 : n.AtLeastTwo] [inst_6 : m.AtLeastTwo],
  OfNat.ofNat m < OfNat.ofNat n ↔ OfNat.ofNat m < OfNat.ofNat n

instance instNontrivialOfCharZero E0 #

∀ {α : Type u_1} [inst : AddMonoidWithOne α] [CharZero α], Nontrivial α

theorem NeZero.nat_of_injective E1 #

∀ {R : Type u_2} {S : Type u_3} {F : Type u_4} [inst : NonAssocSemiring R] [inst_1 : NonAssocSemiring S]
  [inst_2 : FunLike F R S] {n : ℕ} [NeZero ↑n] [RingHomClass F R S] {f : F}, Function.Injective ⇑f → NeZero ↑n