Mathlib Map

Theorems · Theorem · combinatorics

List.count_diff

∀ {α : Type u_1} [inst : BEq α] [LawfulBEq α] (a : α) (l₁ l₂ : List α),
  List.count a (l₁.diff l₂) = List.count a l₁ - List.count a l₂
Defined in
Mathlib.Data.List.Count
Cited by
1 results in Mathlib
Foundations
Depth 18 from the axioms · uses propext, Classical.choice, Quot.sound
Assumes
BEqLawfulBEq

Around this declaration

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

Cites0

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

Nothing in Mathlib beyond the foundations.

Cited by1

Results whose statement or proof uses this declaration.