Mathlib Map

Theorems · Definition · combinatorics

Multiset.foldr

{α : Type u_1} → {β : Type v} → (f : α → β → β) → [LeftCommutative f] → β → Multiset α → β

foldr f H b s is the lift of the list operation foldr f b l, which folds f over the multiset. It is well defined when f is left-commutative, that is, f a₁ (f a₂ b) = f a₂ (f a₁ b).

Defined in
Mathlib.Data.Multiset.MapFold
Cited by
18 results in Mathlib
Foundations
Depth 10 from the axioms · uses propext
Assumes
LeftCommutative

Around this declaration

Dashed lines are statement dependencies; solid lines are citations in proofs.

Cites3

Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.

Cited by22

Results whose statement or proof uses this declaration.