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.Range

14 declarations. Mathlib docs · Source

def Multiset.range E1 #

ℕ → Multiset ℕ

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

theorem Multiset.coe_range E0 #

∀ (n : ℕ), ↑(List.range n) = Multiset.range n

theorem Multiset.range_zero E0 #

Multiset.range 0 = 0

theorem Multiset.range_succ E0 #

∀ (n : ℕ), Multiset.range n.succ = n ::ₘ Multiset.range n

theorem Multiset.card_range E0 #

∀ (n : ℕ), (Multiset.range n).card = n

theorem Multiset.range_subset E1 #

∀ {m n : ℕ}, Multiset.range m ⊆ Multiset.range n ↔ m ≤ n

theorem Multiset.mem_range E0 #

∀ {m n : ℕ}, m ∈ Multiset.range n ↔ m < n

theorem Multiset.notMem_range_self E1 #

∀ {n : ℕ}, n ∉ Multiset.range n

theorem Multiset.self_mem_range_succ E1 #

∀ (n : ℕ), n ∈ Multiset.range (n + 1)

theorem Multiset.range_add E1 #

∀ (a b : ℕ), Multiset.range (a + b) = Multiset.range a + Multiset.map (fun x ↦ a + x) (Multiset.range b)

theorem Multiset.range_disjoint_map_add E1 #

∀ (a : ℕ) (m : Multiset ℕ), Disjoint (Multiset.range a) (Multiset.map (fun x ↦ a + x) m)

theorem Multiset.range_add_eq_union E1 #

∀ (a b : ℕ), Multiset.range (a + b) = Multiset.range a ∪ Multiset.map (fun x ↦ a + x) (Multiset.range b)

theorem Multiset.nodup_range E1 #

∀ (n : ℕ), (Multiset.range n).Nodup

theorem Multiset.range_le E1 #

∀ {m n : ℕ}, Multiset.range m ≤ Multiset.range n ↔ m ≤ n