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 / V03. Sets, finite structures and big operators

Mathlib.Data.Multiset.Lattice

27 declarations. Mathlib docs · Source

def Multiset.sup E1 #

{α : Type u_1} → [inst : SemilatticeSup α] → [OrderBot α] → Multiset α → α

Supremum of a multiset: sup {a, b, c} = a ⊔ b ⊔ c

def Multiset.inf E1 #

{α : Type u_1} → [inst : SemilatticeInf α] → [OrderTop α] → Multiset α → α

Infimum of a multiset: inf {a, b, c} = a ⊓ b ⊓ c

theorem Multiset.sup_coe E0 #

∀ {α : Type u_1} [inst : SemilatticeSup α] [inst_1 : OrderBot α] (l : List α),
  (↑l).sup = List.foldr (fun x1 x2 ↦ x1 ⊔ x2) ⊥ l

theorem Multiset.inf_coe E0 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderTop α] (l : List α),
  (↑l).inf = List.foldr (fun x1 x2 ↦ x1 ⊓ x2) ⊤ l

theorem Multiset.sup_zero E0 #

∀ {α : Type u_1} [inst : SemilatticeSup α] [inst_1 : OrderBot α], Multiset.sup 0 = ⊥

theorem Multiset.inf_zero E0 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderTop α], Multiset.inf 0 = ⊤

theorem Multiset.sup_cons E0 #

∀ {α : Type u_1} [inst : SemilatticeSup α] [inst_1 : OrderBot α] (a : α) (s : Multiset α), (a ::ₘ s).sup = a ⊔ s.sup

theorem Multiset.inf_cons E0 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderTop α] (a : α) (s : Multiset α), (a ::ₘ s).inf = a ⊓ s.inf

theorem Multiset.sup_singleton E0 #

∀ {α : Type u_1} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {a : α}, {a}.sup = a

theorem Multiset.inf_singleton E0 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {a : α}, {a}.inf = a

theorem Multiset.inf_add E0 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderTop α] (s₁ s₂ : Multiset α), (s₁ + s₂).inf = s₁.inf ⊓ s₂.inf

theorem Multiset.sup_add E0 #

∀ {α : Type u_1} [inst : SemilatticeSup α] [inst_1 : OrderBot α] (s₁ s₂ : Multiset α), (s₁ + s₂).sup = s₁.sup ⊔ s₂.sup

theorem Multiset.le_inf E0 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s : Multiset α} {a : α}, a ≤ s.inf ↔ ∀ b ∈ s, a ≤ b

theorem Multiset.sup_le E0 #

∀ {α : Type u_1} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s : Multiset α} {a : α}, s.sup ≤ a ↔ ∀ b ∈ s, b ≤ a

theorem Multiset.le_sup E1 #

∀ {α : Type u_1} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s : Multiset α} {a : α}, a ∈ s → a ≤ s.sup

theorem Multiset.inf_le E1 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s : Multiset α} {a : α}, a ∈ s → s.inf ≤ a

theorem Multiset.inf_mono E1 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderTop α] {s₁ s₂ : Multiset α}, s₁ ⊆ s₂ → s₂.inf ≤ s₁.inf

theorem Multiset.sup_mono E1 #

∀ {α : Type u_1} [inst : SemilatticeSup α] [inst_1 : OrderBot α] {s₁ s₂ : Multiset α}, s₁ ⊆ s₂ → s₁.sup ≤ s₂.sup

theorem Multiset.inf_dedup E0 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderTop α] [inst_2 : DecidableEq α] (s : Multiset α),
  s.dedup.inf = s.inf

theorem Multiset.sup_dedup E0 #

∀ {α : Type u_1} [inst : SemilatticeSup α] [inst_1 : OrderBot α] [inst_2 : DecidableEq α] (s : Multiset α),
  s.dedup.sup = s.sup

theorem Multiset.inf_ndunion E0 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderTop α] [inst_2 : DecidableEq α] (s₁ s₂ : Multiset α),
  (s₁.ndunion s₂).inf = s₁.inf ⊓ s₂.inf

theorem Multiset.sup_ndunion E0 #

∀ {α : Type u_1} [inst : SemilatticeSup α] [inst_1 : OrderBot α] [inst_2 : DecidableEq α] (s₁ s₂ : Multiset α),
  (s₁.ndunion s₂).sup = s₁.sup ⊔ s₂.sup

theorem Multiset.inf_union E0 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderTop α] [inst_2 : DecidableEq α] (s₁ s₂ : Multiset α),
  (s₁ ∪ s₂).inf = s₁.inf ⊓ s₂.inf

theorem Multiset.sup_union E0 #

∀ {α : Type u_1} [inst : SemilatticeSup α] [inst_1 : OrderBot α] [inst_2 : DecidableEq α] (s₁ s₂ : Multiset α),
  (s₁ ∪ s₂).sup = s₁.sup ⊔ s₂.sup

theorem Multiset.sup_ndinsert E0 #

∀ {α : Type u_1} [inst : SemilatticeSup α] [inst_1 : OrderBot α] [inst_2 : DecidableEq α] (a : α) (s : Multiset α),
  (Multiset.ndinsert a s).sup = a ⊔ s.sup

theorem Multiset.inf_ndinsert E0 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderTop α] [inst_2 : DecidableEq α] (a : α) (s : Multiset α),
  (Multiset.ndinsert a s).inf = a ⊓ s.inf

theorem Multiset.nodup_sup_iff E0 #

∀ {α : Type u_2} [inst : DecidableEq α] {m : Multiset (Multiset α)}, m.sup.Nodup ↔ ∀ a ∈ m, a.Nodup