Theorems · Theorem · combinatorics
Finset.fold_insert_idem
∀ {α : Type u_1} {β : Type u_2} {op : β → β → β} [hc : Std.Commutative op] [ha : Std.Associative op] {f : α → β} {b : β}
{s : Finset α} {a : α} [inst : DecidableEq α] [hi : Std.IdempotentOp op],
Finset.fold op b f (insert a s) = op (f a) (Finset.fold op b f s)- Defined in
- Mathlib.Data.Finset.Fold
- Cited by
- 5 results in Mathlib
- Foundations
- Depth 57 from the axioms · uses propext, Classical.choice, Quot.sound
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites7
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- Finsetstatement and proof · cited by 13,712
- Finset.eraseproof · cited by 455
- Finset.insert_eraseproof · cited by 65
- Finset.foldstatement and proof · cited by 46
- Finset.insert_eq_of_memproof · cited by 28
- Finset.fold_insertproof · cited by 11
- Finset.fold.congr_simpproof · cited by 2
Cited by5
Results whose statement or proof uses this declaration.
- Finset.sup_insertproof · cited by 35
- Finset.inf_insertproof · cited by 16
- Finset.max_insertproof · cited by 3
- Finset.min_insertproof · cited by 2
- Finset.fold_image_idemproof · cited by 2