The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V04. Order and lattices

Mathlib.Order.PSigma

16 declarations. Mathlib docs · Source

Lexicographic order on a sigma type

This file defines the lexicographic order on Σₗ' i, α i. a is less than b if its summand is strictly less than the summand of b or they are in the same summand and a is less than b there.

Notation

  • Σₗ' i, α i: Sigma type equipped with the lexicographic order. A type synonym of Σ' i, α i.

See also

Related files are:

  • Data.Finset.Colex: Colexicographic order on finite sets.
  • Data.List.Lex: Lexicographic order on lists.
  • Data.Pi.Lex: Lexicographic order on Πₗ i, α i.
  • Order.Sigma: Lexicographic order on Σₗ i, α i. Basically a twin of this file.
  • Order.Prod.Lex.Basic: Lexicographic order on α × β.

TODO

Define the disjoint order on Σ' i, α i, where x ≤ y only if x.fst = y.fst. Prove that a sigma type is a NoMaxOrder, NoMinOrder, DenselyOrdered when its summands are.

def PSigma.«termΣₗ'_,_» E1 #

Lean.ParserDescr

The notation Σₗ' i, α i refers to a sigma type which is locally equipped with the lexicographic order.

instance PSigma.Lex.le E0 #

{ι : Type u_1} → {α : ι → Type u_2} → [LT ι] → [(i : ι) → LE (α i)] → LE (Σₗ' (i : ι), α i)

The lexicographical ≤ on a sigma type.

instance PSigma.Lex.lt E0 #

{ι : Type u_1} → {α : ι → Type u_2} → [LT ι] → [(i : ι) → LT (α i)] → LT (Σₗ' (i : ι), α i)

The lexicographical < on a sigma type.

instance PSigma.Lex.preorder E0 #

{ι : Type u_1} → {α : ι → Type u_2} → [Preorder ι] → [(i : ι) → Preorder (α i)] → Preorder (Σₗ' (i : ι), α i)

instance PSigma.Lex.partialOrder E0 #

{ι : Type u_1} →
  {α : ι → Type u_2} → [PartialOrder ι] → [(i : ι) → PartialOrder (α i)] → PartialOrder (Σₗ' (i : ι), α i)

Dictionary / lexicographic PartialOrder for dependent pairs.

instance PSigma.Lex.linearOrder E0 #

{ι : Type u_1} → {α : ι → Type u_2} → [LinearOrder ι] → [(i : ι) → LinearOrder (α i)] → LinearOrder (Σₗ' (i : ι), α i)

Dictionary / lexicographic LinearOrder for pairs.

instance PSigma.Lex.orderBot E0 #

{ι : Type u_1} →
  {α : ι → Type u_2} →
    [inst : PartialOrder ι] →
      [inst_1 : OrderBot ι] → [inst_2 : (i : ι) → Preorder (α i)] → [OrderBot (α ⊥)] → OrderBot (Σₗ' (i : ι), α i)

The lexicographical linear order on a sigma type.

instance PSigma.Lex.orderTop E0 #

{ι : Type u_1} →
  {α : ι → Type u_2} →
    [inst : PartialOrder ι] →
      [inst_1 : OrderTop ι] → [inst_2 : (i : ι) → Preorder (α i)] → [OrderTop (α ⊤)] → OrderTop (Σₗ' (i : ι), α i)

The lexicographical linear order on a sigma type.

instance PSigma.Lex.boundedOrder E0 #

{ι : Type u_1} →
  {α : ι → Type u_2} →
    [inst : PartialOrder ι] →
      [inst_1 : BoundedOrder ι] →
        [inst_2 : (i : ι) → Preorder (α i)] → [OrderBot (α ⊥)] → [OrderTop (α ⊤)] → BoundedOrder (Σₗ' (i : ι), α i)

The lexicographical linear order on a sigma type.

instance PSigma.Lex.denselyOrdered E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : Preorder ι] [DenselyOrdered ι] [∀ (i : ι), Nonempty (α i)]
  [inst_3 : (i : ι) → Preorder (α i)] [∀ (i : ι), DenselyOrdered (α i)], DenselyOrdered (Σₗ' (i : ι), α i)

instance PSigma.Lex.denselyOrdered_of_noMaxOrder E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : Preorder ι] [inst_1 : (i : ι) → Preorder (α i)]
  [∀ (i : ι), DenselyOrdered (α i)] [∀ (i : ι), NoMaxOrder (α i)], DenselyOrdered (Σₗ' (i : ι), α i)

instance PSigma.Lex.denselyOrdered_of_noMinOrder E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : Preorder ι] [inst_1 : (i : ι) → Preorder (α i)]
  [∀ (i : ι), DenselyOrdered (α i)] [∀ (i : ι), NoMinOrder (α i)], DenselyOrdered (Σₗ' (i : ι), α i)

instance PSigma.Lex.noMaxOrder_of_nonempty E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : Preorder ι] [inst_1 : (i : ι) → Preorder (α i)] [NoMaxOrder ι]
  [∀ (i : ι), Nonempty (α i)], NoMaxOrder (Σₗ' (i : ι), α i)

instance PSigma.Lex.noMinOrder_of_nonempty E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : Preorder ι] [inst_1 : (i : ι) → Preorder (α i)] [NoMinOrder ι]
  [∀ (i : ι), Nonempty (α i)], NoMinOrder (Σₗ' (i : ι), α i)

instance PSigma.Lex.noMaxOrder E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : Preorder ι] [inst_1 : (i : ι) → Preorder (α i)]
  [∀ (i : ι), NoMaxOrder (α i)], NoMaxOrder (Σₗ' (i : ι), α i)

instance PSigma.Lex.noMinOrder E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : Preorder ι] [inst_1 : (i : ι) → Preorder (α i)]
  [∀ (i : ι), NoMinOrder (α i)], NoMinOrder (Σₗ' (i : ι), α i)