Semirings and rings of sets #
A semi-ring of sets C
(in the sense of measure theory) is a family of sets containing ∅
,
stable by intersection and such that for all s, t ∈ C
, t \ s
is equal to a disjoint union of
finitely many sets in C
. Note that a semi-ring of sets may not contain unions.
An important example of a semi-ring of sets is intervals in ℝ
. The intersection of two intervals
is an interval (possibly empty). The union of two intervals may not be an interval.
The set difference of two intervals may not be an interval, but it will be a disjoint union of
two intervals.
A ring of sets is a set of sets containing ∅
, stable by union, set difference and intersection.
Main definitions #
-
MeasureTheory.IsSetSemiring C
: property of being a semi-ring of sets. -
MeasureTheory.IsSetSemiring.diffFinset hs ht
: fors, t
in a semi-ringC
(withhC : IsSetSemiring C
) withhs : s ∈ C
,ht : t ∈ C
, this is aFinset
of pairwise disjoint sets such thats \ t = ⋃₀ hC.diffFinset hs ht
. -
MeasureTheory.IsSetSemiring.diffFinset₀ hs hI
: forhs : s ∈ C
and a finsetI
of sets inC
(withhI : ↑I ⊆ C
), this is aFinset
of pairwise disjoint sets such thats \ ⋃₀ I = ⋃₀ hC.diffFinset₀ hs hI
. -
MeasureTheory.IsSetRing
: property of being a ring of sets.
Main statements #
MeasureTheory.IsSetSemiring.exists_disjoint_finset_diff_eq
: the existence of theFinset
given by the definitionIsSetSemiring.diffFinset₀
(see above).
A semi-ring of sets C
is a family of sets containing ∅
, stable by intersection and such that
for all s, t ∈ C
, s \ t
is equal to a disjoint union of finitely many sets in C
.
Instances For
In a semi-ring of sets C
, for all sets s, t ∈ C
, s \ t
is equal to a disjoint union of
finitely many sets in C
. The finite set of sets in the union is not unique, but this definition
gives an arbitrary Finset (Set α)
that satisfies the equality.
We remove the empty set to ensure that t ∉ hC.diffFinset hs ht
even if t = ∅
.
Equations
- MeasureTheory.IsSetSemiring.diffFinset hC hs ht = Exists.choose (_ : ∃ (I : Finset (Set α)), ↑I ⊆ C ∧ Set.PairwiseDisjoint (↑I) id ∧ s \ t = ⋃₀ ↑I) \ {∅}
Instances For
In a semiring of sets C
, for all set s ∈ C
and finite set of sets I ⊆ C
, there is a
finite set of sets in C
whose union is s \ ⋃₀ I
.
See IsSetSemiring.diffFinset₀
for a definition that gives such a set.
In a semiring of sets C
, for all set s ∈ C
and finite set of sets I ⊆ C
,
diffFinset₀
is a finite set of sets in C
such that s \ ⋃₀ I = ⋃₀ (hC.diffFinset₀ hs I hI)
.
diffFinset
is a special case of diffFinset₀
where I
is a singleton.
Equations
- MeasureTheory.IsSetSemiring.diffFinset₀ hC hs hI = Exists.choose (_ : ∃ (J : Finset (Set α)), ↑J ⊆ C ∧ Set.PairwiseDisjoint (↑J) id ∧ s \ ⋃₀ ↑I = ⋃₀ ↑J) \ {∅}
Instances For
A ring of sets C
is a family of sets containing ∅
, stable by union and set difference.
It is then also stable by intersection (see IsSetRing.inter_mem
).