mathlib documentation

data.​int.​range

data.​int.​range

def int.​range  :
ℤ → ℤ → list ℤ

List enumerating [m, n).

Equations
theorem int.​mem_range_iff {m n r : ℤ} :
r ∈ m.range n ↔ m ≤ r ∧ r < n

@[instance]
def int.​decidable_le_lt (P : ℤ → Prop) [decidable_pred P] (m n : ℤ) :
decidable (∀ (r : ℤ), m ≤ r → r < n → P r)

Equations
@[instance]
def int.​decidable_le_le (P : ℤ → Prop) [decidable_pred P] (m n : ℤ) :
decidable (∀ (r : ℤ), m ≤ r → r ≤ n → P r)

Equations
@[instance]
def int.​decidable_lt_lt (P : ℤ → Prop) [decidable_pred P] (m n : ℤ) :
decidable (∀ (r : ℤ), m < r → r < n → P r)

Equations
@[instance]
def int.​decidable_lt_le (P : ℤ → Prop) [decidable_pred P] (m n : ℤ) :
decidable (∀ (r : ℤ), m < r → r ≤ n → P r)

Equations