Documentation

Mathlib.Order.Interval.Lex

The lexicographic order on intervals #

This order is compatible with the inclusion ordering, but is total.

Under this ordering, [(3, 3), (2, 2), (2, 3), (1, 1), (1, 2), (1, 3)] is sorted.

theorem NonemptyInterval.toLex_le_toLex {α : Type u_1} [LT α] [LE α] {x y : NonemptyInterval α} :
toLex x toLex y y.toProd.1 < x.toProd.1 x.toProd.1 = y.toProd.1 x.toProd.2 y.toProd.2
theorem NonemptyInterval.toLex_lt_toLex {α : Type u_1} [LT α] [LE α] {x y : NonemptyInterval α} :
toLex x < toLex y y.toProd.1 < x.toProd.1 x.toProd.1 = y.toProd.1 x.toProd.2 < y.toProd.2
Equations
Equations
  • One or more equations did not get rendered due to their size.