HepLean Documentation

Mathlib.Data.Multiset.Range

Multiset.range n gives {0, 1, ..., n-1} as a multiset. #

range n is the multiset lifted from the list range n, that is, the set {0, 1, ..., n-1}.

Equations
Instances For
    @[simp]
    theorem Multiset.card_range (n : ) :
    Multiset.card (Multiset.range n) = n
    @[simp]
    theorem Multiset.mem_range {m : } {n : } :
    theorem Multiset.range_add (a : ) (b : ) :
    theorem Multiset.range_disjoint_map_add (a : ) (m : Multiset ) :
    (Multiset.range a).Disjoint (Multiset.map (fun (x : ) => a + x) m)