mathlib documentation

core / init.data.fin.basic

def fin (n : ℕ) :
Type

fin n is the subtype of ℕ consisting of natural numbers strictly smaller than n.

Equations
def fin.mk {n : ℕ} (i : ℕ) (h : i < n) :
fin n

Backwards-compatible constructor for fin n.

Equations
@[protected]
def fin.lt {n : ℕ} (a b : fin n) :
Prop
Equations
@[protected]
def fin.le {n : ℕ} (a b : fin n) :
Prop
Equations
@[protected, instance]
def fin.has_lt {n : ℕ} :
Equations
@[protected, instance]
def fin.has_le {n : ℕ} :
Equations
@[protected, instance]
def fin.decidable_lt {n : ℕ} (a b : fin n) :
decidable (a < b)
Equations
@[protected, instance]
def fin.decidable_le {n : ℕ} (a b : fin n) :
Equations
def fin.elim0 {α : fin 0 → Sort u} (x : fin 0) :
α x
Equations
theorem fin.eq_of_veq {n : ℕ} {i j : fin n} :
i.val = j.val → i = j
theorem fin.veq_of_eq {n : ℕ} {i j : fin n} :
i = j → i.val = j.val
theorem fin.ne_of_vne {n : ℕ} {i j : fin n} (h : i.val ≠ j.val) :
i ≠ j
theorem fin.vne_of_ne {n : ℕ} {i j : fin n} (h : i ≠ j) :
i.val ≠ j.val
@[protected, instance]
Equations