Tagging a partition of a finite set #
Tagging vertices according to a predicate embeds a type into its disjoint sum with itself. The finite-set image formula compares constructions on a single vertex type with constructions on disjoint vertex types.
Embed a type into its disjoint sum with itself, tagging elements on the left when they
satisfy p and on the right otherwise.
Equations
Instances For
@[simp]
The partition embedding tags an element according to the predicate.
@[simp]
theorem
Finset.image_partitionEmbedding
{α : Type u_1}
[DecidableEq α]
(s : Finset α)
(p : α → Prop)
[DecidablePred p]
:
Tagging a finite set according to a predicate gives the disjoint sum of its two parts.