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 / V04. Order and lattices

Mathlib.Order.Setoid.Partition.Card

1 declarations. Mathlib docs · Source

Cardinality of parts of partitions

  • Setoid.IsPartition.ncard_eq_finsum on an ambient finite type, the cardinal of a set is the sum of the cardinalities of its trace on the parts of the partition

theorem Setoid.IsPartition.ncard_eq_finsum E1 #

∀ {α : Type u_1} {P : Set (Set α)},
  Setoid.IsPartition P →
    ∀ (s : Set α), autoParam s.Finite Setoid.IsPartition.ncard_eq_finsum._auto_1 → s.ncard = ∑ᶠ (t : ↑P), (s ∩ ↑t).ncard

Given a partition of the ambient type, the cardinal of a finite set is the finsum of the cardinalities of its traces on the parts of the partition