Documentation

Mathlib.Data.Int.Range

Intervals in ℤ #

This file defines integer ranges. range m n is the set of integers greater than m and strictly less than n.

Note #

This could be unified with Data.List.Intervals. See the TODOs there.

def Int.range (m : ℤ) (n : ℤ) :

List enumerating [m, n). This is the ℤ variant of List.Ico.

Equations
Instances For
    theorem Int.mem_range_iff {m : ℤ} {n : ℤ} {r : ℤ} :
    r ∈ Int.range m n ↔ m ≤ r ∧ r < n
    instance Int.decidableLELT (P : ℤ → Prop) [DecidablePred P] (m : ℤ) (n : ℤ) :
    Decidable ((r : ℤ) → m ≤ r → r < n → P r)
    Equations
    instance Int.decidableLELE (P : ℤ → Prop) [DecidablePred P] (m : ℤ) (n : ℤ) :
    Decidable ((r : ℤ) → m ≤ r → r ≤ n → P r)
    Equations
    instance Int.decidableLTLT (P : ℤ → Prop) [DecidablePred P] (m : ℤ) (n : ℤ) :
    Decidable ((r : ℤ) → m < r → r < n → P r)
    Equations
    instance Int.decidableLTLE (P : ℤ → Prop) [DecidablePred P] (m : ℤ) (n : ℤ) :
    Decidable ((r : ℤ) → m < r → r ≤ n → P r)
    Equations