Documentation

BourbakiLean2.Data.Nat.Basic

theorem Nat.le_one {n : Nat} :
n 1 n = 0 n = 1
theorem Nat.one_le_iff_ne_zero {n : Nat} :
1 n n 0
theorem Nat.le_iff_exists_eq_add {n m : Nat} :
n m ∃ (p : Nat), m = p + n
theorem Nat.le_iff_exists_eq_add' {n m : Nat} :
n m ∃ (p : Nat), m = n + p
theorem Nat.lt_two_pow {n : Nat} :
n < 2 ^ n
theorem Nat.lt_pow_ge_lt {n m : Nat} (h : 2 n) :
m < n ^ m
def Nat.ind_start {motive : NatProp} {start : Nat} (hstart : motive start) (succ : ∀ (n : Nat), start nmotive nmotive (n + 1)) (n : Nat) :
start nmotive n
Equations
  • =
Instances For
    def Nat.ind_start_end {motive : NatProp} {start stp : Nat} (hstart : motive start) (succ : ∀ (n : Nat), start nn < stpmotive nmotive (n + 1)) (n : Nat) :
    start nn stpmotive n
    Equations
    • =
    Instances For
      def Nat.ind_end_start {motive : NatProp} {start stp : Nat} (hstp : motive stp) (succ : ∀ (n : Nat), start nn < stpmotive (n + 1)motive n) (n : Nat) :
      start nn stpmotive n
      Equations
      • =
      Instances For
        theorem Nat.lt_iff_exists_eq_add' {n m : Nat} :
        n < m ∃ (p : Nat), p > 0 m = n + p
        @[simp]
        theorem Nat.zero_least :
        = 0
        theorem Nat.monotone_of_le_succ {α : Type u_1} [Preorder α] {f : Natα} (h : ∀ (n : Nat), f n f (n + 1)) :
        theorem Nat.strictMono_of_lt_succ {α : Type u_1} [PartialOrder α] {f : Natα} (h : ∀ (n : Nat), f n < f (n + 1)) :