Documentation

Mathlib.Data.Multiset.Sections

Sections of a multiset #

def Multiset.Sections {α : Type u_1} (s : Multiset (Multiset α)) :

The sections of a multiset of multisets s consists of all those multisets which can be put in bijection with s, so each element is a member of the corresponding multiset.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    @[simp]
    @[simp]
    theorem Multiset.coe_sections {α : Type u_1} (l : List (List α)) :
    Multiset.Sections (List.map (fun (l : List α) => l) l) = (List.map (fun (l : List α) => l) (List.sections l))
    @[simp]
    theorem Multiset.sections_add {α : Type u_1} (s : Multiset (Multiset α)) (t : Multiset (Multiset α)) :
    theorem Multiset.mem_sections {α : Type u_1} {s : Multiset (Multiset α)} {a : Multiset α} :
    a Multiset.Sections s Multiset.Rel (fun (s : Multiset α) (a : α) => a s) s a
    theorem Multiset.card_sections {α : Type u_1} {s : Multiset (Multiset α)} :
    Multiset.card (Multiset.Sections s) = Multiset.prod (Multiset.map (Multiset.card) s)