Documentation

Mathlib.Data.Fin.SuccPredOrder

SuccOrder and PredOrder of Fin n #

In this file, we show that Fin n is both a SuccOrder and a PredOrder. Note that they are also archimedean, but this is derived from the general instance for well-orderings as opposed to a specific Fin instance.

instance Fin.instSuccOrder {n : } :
Equations
    theorem Fin.orderSucc_eq {n : } :
    Order.succ = fun (i : Fin (n + 1)) => lastCases (last n) succ i
    instance Fin.instPredOrder {n : } :
    Equations
      theorem Fin.orderPred_eq {n : } :
      Order.pred = fun (i : Fin (n + 1)) => cases 0 castSucc i