Down-compressions #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
This file defines down-compression.
Down-compressing π : finset (finset Ξ±)
along a : Ξ±
means removing a
from the elements of π
,
when the resulting set is not already in π
.
Main declarations #
finset.non_member_subfamily
:π.non_member_subfamily a
is the subfamily of sets not containinga
.finset.member_subfamily
:π.member_subfamily a
is the image of the subfamily of sets containinga
under removinga
.down.compression
: Down-compression.
Notation #
π a π
is notation for down.compress a π
in locale set_family
.
References #
Tags #
compression, down-compression
Elements of π
that do not contain a
.
Equations
- finset.non_member_subfamily a π = finset.filter (Ξ» (s : finset Ξ±), a β s) π
Image of the elements of π
which contain a
under removing a
. Finsets that do not contain
a
such that insert a s β π
.
Equations
- finset.member_subfamily a π = finset.image (Ξ» (s : finset Ξ±), s.erase a) (finset.filter (Ξ» (s : finset Ξ±), a β s) π)
a
-down-compressing π
means removing a
from the elements of π
that contain it, when the
resulting finset is not already in π
.
Equations
- down.compression a π = (finset.filter (Ξ» (s : finset Ξ±), s.erase a β π) π).disj_union (finset.filter (Ξ» (s : finset Ξ±), s β π) (finset.image (Ξ» (s : finset Ξ±), s.erase a) π)) _
a
is in the down-compressed family iff it's in the original and its compression is in the
original, or it's not in the original but it's the compression of something in the original.
Down-compressing a family is idempotent.
Down-compressing a family doesn't change its size.