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 / V01. The language of Mathlib

Mathlib.Data.Sigma.Interval

15 declarations. Mathlib docs · Source

Finite intervals in a sigma type

This file provides the LocallyFiniteOrder instance for the disjoint sum of orders Σ i, α i and calculates the cardinality of its finite intervals.

TODO

Do the same for the lexicographical order

Disjoint sum of orders

instance Sigma.instLocallyFiniteOrder E0 #

{ι : Type u_1} →
  {α : ι → Type u_2} →
    [DecidableEq ι] →
      [inst : (i : ι) → Preorder (α i)] → [(i : ι) → LocallyFiniteOrder (α i)] → LocallyFiniteOrder ((i : ι) × α i)

theorem Sigma.card_Icc E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → Preorder (α i)]
  [inst_2 : (i : ι) → LocallyFiniteOrder (α i)] (a b : (i : ι) × α i),
  (Finset.Icc a b).card = if h : a.fst = b.fst then (Finset.Icc (h ▸ a.snd) b.snd).card else 0

theorem Sigma.card_Ico E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → Preorder (α i)]
  [inst_2 : (i : ι) → LocallyFiniteOrder (α i)] (a b : (i : ι) × α i),
  (Finset.Ico a b).card = if h : a.fst = b.fst then (Finset.Ico (h ▸ a.snd) b.snd).card else 0

theorem Sigma.card_Ioc E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → Preorder (α i)]
  [inst_2 : (i : ι) → LocallyFiniteOrder (α i)] (a b : (i : ι) × α i),
  (Finset.Ioc a b).card = if h : a.fst = b.fst then (Finset.Ioc (h ▸ a.snd) b.snd).card else 0

theorem Sigma.card_Ioo E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → Preorder (α i)]
  [inst_2 : (i : ι) → LocallyFiniteOrder (α i)] (a b : (i : ι) × α i),
  (Finset.Ioo a b).card = if h : a.fst = b.fst then (Finset.Ioo (h ▸ a.snd) b.snd).card else 0

theorem Sigma.Icc_mk_mk E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → Preorder (α i)]
  [inst_2 : (i : ι) → LocallyFiniteOrder (α i)] (i : ι) (a b : α i),
  Finset.Icc ⟨i, a⟩ ⟨i, b⟩ = Finset.map (Function.Embedding.sigmaMk i) (Finset.Icc a b)

theorem Sigma.Ico_mk_mk E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → Preorder (α i)]
  [inst_2 : (i : ι) → LocallyFiniteOrder (α i)] (i : ι) (a b : α i),
  Finset.Ico ⟨i, a⟩ ⟨i, b⟩ = Finset.map (Function.Embedding.sigmaMk i) (Finset.Ico a b)

theorem Sigma.Ioc_mk_mk E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → Preorder (α i)]
  [inst_2 : (i : ι) → LocallyFiniteOrder (α i)] (i : ι) (a b : α i),
  Finset.Ioc ⟨i, a⟩ ⟨i, b⟩ = Finset.map (Function.Embedding.sigmaMk i) (Finset.Ioc a b)

theorem Sigma.Ioo_mk_mk E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : DecidableEq ι] [inst_1 : (i : ι) → Preorder (α i)]
  [inst_2 : (i : ι) → LocallyFiniteOrder (α i)] (i : ι) (a b : α i),
  Finset.Ioo ⟨i, a⟩ ⟨i, b⟩ = Finset.map (Function.Embedding.sigmaMk i) (Finset.Ioo a b)

instance Sigma.instLocallyFiniteOrderBot E0 #

{ι : Type u_1} →
  {α : ι → Type u_2} →
    [inst : (i : ι) → Preorder (α i)] → [(i : ι) → LocallyFiniteOrderBot (α i)] → LocallyFiniteOrderBot ((i : ι) × α i)

theorem Sigma.Iic_mk E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Preorder (α i)] [inst_1 : (i : ι) → LocallyFiniteOrderBot (α i)]
  (i : ι) (a : α i), Finset.Iic ⟨i, a⟩ = Finset.map (Function.Embedding.sigmaMk i) (Finset.Iic a)

theorem Sigma.Iio_mk E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Preorder (α i)] [inst_1 : (i : ι) → LocallyFiniteOrderBot (α i)]
  (i : ι) (a : α i), Finset.Iio ⟨i, a⟩ = Finset.map (Function.Embedding.sigmaMk i) (Finset.Iio a)

instance Sigma.instLocallyFiniteOrderTop E0 #

{ι : Type u_1} →
  {α : ι → Type u_2} →
    [inst : (i : ι) → Preorder (α i)] → [(i : ι) → LocallyFiniteOrderTop (α i)] → LocallyFiniteOrderTop ((i : ι) × α i)

theorem Sigma.Ici_mk E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Preorder (α i)] [inst_1 : (i : ι) → LocallyFiniteOrderTop (α i)]
  (i : ι) (a : α i), Finset.Ici ⟨i, a⟩ = Finset.map (Function.Embedding.sigmaMk i) (Finset.Ici a)

theorem Sigma.Ioi_mk E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Preorder (α i)] [inst_1 : (i : ι) → LocallyFiniteOrderTop (α i)]
  (i : ι) (a : α i), Finset.Ioi ⟨i, a⟩ = Finset.map (Function.Embedding.sigmaMk i) (Finset.Ioi a)