The areas / V04. Order and lattices
Mathlib.Order.Disjointed
32 declarations. Mathlib docs · Source
Making a sequence disjoint
This file defines the way to make a sequence of sets - or, more generally, a map from a partially
ordered type ι into a (generalized) Boolean algebra α - into a pairwise disjoint sequence with
the same partial sups.
For a sequence f : ℕ → α, this new sequence will be f 0, f 1 \ f 0, f 2 \ (f 0 ⊔ f 1) ⋯.
It is actually unique, as disjointed_unique shows.
Main declarations
disjointed f: The map sendingitof i \ (⨆ j < i, f j). We require the index type to be aLocallyFiniteOrderBotto ensure that the supremum is well defined.partialSups_disjointed:disjointed fhas the same partial sups asf.disjoint_disjointed: The elements ofdisjointed fare pairwise disjoint.disjointed_unique:disjointed fis the only pairwise disjoint sequence having the same partial sups asf.Fintype.sup_disjointed(for finiteι) oriSup_disjointed(for completeα):disjointed fhas the same supremum asf. Limiting case ofpartialSups_disjointed.Fintype.exists_disjointed_le: for any finite familyf : ι → α, there exists a pairwise disjoint familyg : ι → αwhich is bounded above byfand has the same supremum. This is an analogue ofdisjointedfor arbitrary finite index types (but without any uniqueness).
We also provide set notation variants of some lemmas.
Linear orders
Functions on an arbitrary fintype
Complete Boolean algebras
Lemmas specific to set-valued functions
Functions on ℕ
(See also Mathlib/Algebra/Order/Disjointed.lean for results with more algebra pre-requisites.)
def disjointed E3 #
{α : Type u_1} →
{ι : Type u_2} → [GeneralizedBooleanAlgebra α] → [inst : Preorder ι] → [LocallyFiniteOrderBot ι] → (ι → α) → ι → α
The function mapping i to f i \ (⨆ j < i, f j). When ι is a partial order, this is the
unique function g having the same partialSups as f and such that g i and g j are
disjoint whenever i < j.
theorem disjointed_apply E0 #
∀ {α : Type u_1} {ι : Type u_2} [inst : GeneralizedBooleanAlgebra α] [inst_1 : Preorder ι]
[inst_2 : LocallyFiniteOrderBot ι] (f : ι → α) (i : ι), disjointed f i = f i \ (Finset.Iio i).sup f
theorem disjointed_of_isMin E1 #
∀ {α : Type u_1} {ι : Type u_2} [inst : GeneralizedBooleanAlgebra α] [inst_1 : Preorder ι]
[inst_2 : LocallyFiniteOrderBot ι] (f : ι → α) {i : ι}, IsMin i → disjointed f i = f i
theorem disjointed_bot E0 #
∀ {α : Type u_1} {ι : Type u_2} [inst : GeneralizedBooleanAlgebra α] [inst_1 : Preorder ι]
[inst_2 : LocallyFiniteOrderBot ι] [inst_3 : OrderBot ι] (f : ι → α), disjointed f ⊥ = f ⊥
theorem disjointed_le_id E1 #
∀ {α : Type u_1} {ι : Type u_2} [inst : GeneralizedBooleanAlgebra α] [inst_1 : Preorder ι]
[inst_2 : LocallyFiniteOrderBot ι], disjointed ≤ id
theorem disjointed_le E1 #
∀ {α : Type u_1} {ι : Type u_2} [inst : GeneralizedBooleanAlgebra α] [inst_1 : Preorder ι]
[inst_2 : LocallyFiniteOrderBot ι] (f : ι → α), disjointed f ≤ f
theorem disjoint_disjointed_of_lt E1 #
∀ {α : Type u_1} {ι : Type u_2} [inst : GeneralizedBooleanAlgebra α] [inst_1 : Preorder ι]
[inst_2 : LocallyFiniteOrderBot ι] (f : ι → α) {i j : ι}, i < j → Disjoint (disjointed f i) (disjointed f j)
theorem disjointed_eq_self E1 #
∀ {α : Type u_1} {ι : Type u_2} [inst : GeneralizedBooleanAlgebra α] [inst_1 : Preorder ι]
[inst_2 : LocallyFiniteOrderBot ι] {f : ι → α} {i : ι}, (∀ j < i, Disjoint (f j) (f i)) → disjointed f i = f i
theorem disjointedRec E1 #
∀ {α : Type u_1} {ι : Type u_2} [inst : GeneralizedBooleanAlgebra α] [inst_1 : Preorder ι]
[inst_2 : LocallyFiniteOrderBot ι] {f : ι → α} {p : α → Prop},
(∀ ⦃t : α⦄ ⦃i : ι⦄, p t → p (t \ f i)) → ∀ ⦃i : ι⦄, p (f i) → p (disjointed f i)
An induction principle for disjointed. To prove something about disjointed f i, it's
enough to prove it for f i and being able to extend through diffs.
theorem partialSups_disjointed E3 #
∀ {α : Type u_1} {ι : Type u_2} [inst : GeneralizedBooleanAlgebra α] [inst_1 : PartialOrder ι]
[inst_2 : LocallyFiniteOrderBot ι] (f : ι → α), partialSups (disjointed f) = partialSups f
theorem Fintype.sup_disjointed E3 #
∀ {α : Type u_1} {ι : Type u_2} [inst : GeneralizedBooleanAlgebra α] [inst_1 : PartialOrder ι]
[inst_2 : LocallyFiniteOrderBot ι] [inst_3 : Fintype ι] (f : ι → α),
Finset.univ.sup (disjointed f) = Finset.univ.sup f
theorem disjointed_partialSups E1 #
∀ {α : Type u_1} {ι : Type u_2} [inst : GeneralizedBooleanAlgebra α] [inst_1 : PartialOrder ι]
[inst_2 : LocallyFiniteOrderBot ι] (f : ι → α), disjointed ⇑(partialSups f) = disjointed f
theorem disjointed_unique E3 #
∀ {α : Type u_1} {ι : Type u_2} [inst : GeneralizedBooleanAlgebra α] [inst_1 : PartialOrder ι]
[inst_2 : LocallyFiniteOrderBot ι] {f d : ι → α},
(∀ {i j : ι}, i < j → Disjoint (d i) (d j)) → partialSups d = partialSups f → d = disjointed f
disjointed f is the unique map d : ι → α such that d has the same partial sups as f,
and d i and d j are disjoint whenever i < j.
theorem biUnion_Iic_disjointed E1 #
∀ {ι : Type u_2} [inst : PartialOrder ι] [inst_1 : LocallyFiniteOrderBot ι] {α : Type u_3} (f : ι → Set α) (n : ι),
⋃ i ∈ Finset.Iic n, disjointed f i = (partialSups f) n
theorem biUnion_range_succ_disjointed E1 #
∀ {α : Type u_3} (f : ℕ → Set α) (n : ℕ), ⋃ i ∈ Finset.range (n + 1), disjointed f i = (partialSups f) n
theorem disjoint_disjointed E3 #
∀ {α : Type u_1} {ι : Type u_2} [inst : GeneralizedBooleanAlgebra α] [inst_1 : LinearOrder ι]
[inst_2 : LocallyFiniteOrderBot ι] (f : ι → α), Pairwise (Function.onFun Disjoint (disjointed f))
theorem disjointed_unique' E1 #
∀ {α : Type u_1} {ι : Type u_2} [inst : GeneralizedBooleanAlgebra α] [inst_1 : LinearOrder ι]
[inst_2 : LocallyFiniteOrderBot ι] {f d : ι → α},
Pairwise (Function.onFun Disjoint d) → partialSups d = partialSups f → d = disjointed f
disjointed f is the unique sequence that is pairwise disjoint and has the same partial sups
as f.
theorem Finset.disjiUnion_Iic_disjointed E1 #
∀ {α : Type u_1} {ι : Type u_2} [inst : LinearOrder ι] [inst_1 : LocallyFiniteOrderBot ι] [inst_2 : DecidableEq α]
(n : ι) (t : ι → Finset α), (Finset.Iic n).disjiUnion (disjointed t) ⋯ = (partialSups t) n
theorem disjointed_succ E1 #
∀ {α : Type u_1} {ι : Type u_2} [inst : GeneralizedBooleanAlgebra α] [inst_1 : LinearOrder ι]
[inst_2 : LocallyFiniteOrderBot ι] [inst_3 : SuccOrder ι] (f : ι → α) {i : ι},
¬IsMax i → disjointed f (Order.succ i) = f (Order.succ i) \ (partialSups f) i
theorem Monotone.disjointed_succ E1 #
∀ {α : Type u_1} {ι : Type u_2} [inst : GeneralizedBooleanAlgebra α] [inst_1 : LinearOrder ι]
[inst_2 : LocallyFiniteOrderBot ι] [inst_3 : SuccOrder ι] {f : ι → α},
Monotone f → ∀ {i : ι}, ¬IsMax i → disjointed f (Order.succ i) = f (Order.succ i) \ f i
theorem Monotone.disjointed_succ_sup E1 #
∀ {α : Type u_1} {ι : Type u_2} [inst : GeneralizedBooleanAlgebra α] [inst_1 : LinearOrder ι]
[inst_2 : LocallyFiniteOrderBot ι] [inst_3 : SuccOrder ι] {f : ι → α},
Monotone f → ∀ (i : ι), disjointed f (Order.succ i) ⊔ f i = f (Order.succ i)
Note this lemma does not require ¬IsMax i, unlike disjointed_succ.
theorem sup_Ioc_disjointed_of_monotone E1 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] {ι : Type u_3} [inst_1 : LinearOrder ι]
[inst_2 : LocallyFiniteOrder ι] [inst_3 : OrderBot ι] {f : ι → α},
Monotone f → ∀ {m n : ι}, n ≤ m → (Finset.Ioc n m).sup (disjointed f) = f m \ f n
theorem biUnion_Ioc_disjointed_of_monotone E1 #
∀ {α : Type u_3} {ι : Type u_4} [inst : LinearOrder ι] [inst_1 : LocallyFiniteOrder ι] [inst_2 : OrderBot ι]
{f : ι → Set α}, Monotone f → ∀ {m n : ι}, n ≤ m → ⋃ i ∈ Finset.Ioc n m, disjointed f i = f m \ f n
theorem Fintype.exists_disjointed_le E3 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] {ι : Type u_3} [inst_1 : Fintype ι] (f : ι → α),
∃ g ≤ f, Finset.univ.sup g = Finset.univ.sup f ∧ Pairwise (Function.onFun Disjoint g)
For any finite family of elements f : ι → α, we can find a pairwise-disjoint family g
bounded above by f and having the same supremum. This is non-canonical, depending on an arbitrary
choice of ordering of ι.
theorem iSup_disjointed E3 #
∀ {α : Type u_1} {ι : Type u_2} [inst : CompleteBooleanAlgebra α] [inst_1 : PartialOrder ι]
[inst_2 : LocallyFiniteOrderBot ι] (f : ι → α), ⨆ i, disjointed f i = ⨆ i, f i
theorem disjointed_eq_inf_compl E1 #
∀ {α : Type u_1} {ι : Type u_2} [inst : CompleteBooleanAlgebra α] [inst_1 : Preorder ι]
[inst_2 : LocallyFiniteOrderBot ι] (f : ι → α) (i : ι), disjointed f i = f i ⊓ ⨅ j, ⨅ (_ : j < i), (f j)ᶜ
theorem disjointed_subset E1 #
∀ {α : Type u_1} {ι : Type u_2} [inst : Preorder ι] [inst_1 : LocallyFiniteOrderBot ι] (f : ι → Set α) (i : ι),
disjointed f i ⊆ f i
theorem iUnion_disjointed E1 #
∀ {α : Type u_1} {ι : Type u_2} [inst : PartialOrder ι] [inst_1 : LocallyFiniteOrderBot ι] {f : ι → Set α},
⋃ i, disjointed f i = ⋃ i, f i
theorem disjointed_eq_inter_compl E1 #
∀ {α : Type u_1} {ι : Type u_2} [inst : Preorder ι] [inst_1 : LocallyFiniteOrderBot ι] (f : ι → Set α) (i : ι),
disjointed f i = f i ∩ ⋂ j, ⋂ (_ : j < i), (f j)ᶜ
theorem preimage_find_eq_disjointed E1 #
∀ {α : Type u_1} (s : ℕ → Set α) (H : ∀ (x : α), ∃ n, x ∈ s n) [inst : (x : α) → (n : ℕ) → Decidable (x ∈ s n)] (n : ℕ),
(fun x ↦ Nat.find ⋯) ⁻¹' {n} = disjointed s n
theorem preimage_find_eq_disjointed_setOf E1 #
∀ {α : Type u_1} {p : α → ℕ → Prop} (H : ∀ (x : α), ∃ n, p x n) [inst : (x : α) → (n : ℕ) → Decidable (p x n)] (n : ℕ),
(fun x ↦ Nat.find ⋯) ⁻¹' {n} = disjointed (fun k ↦ {x | p x k}) n
theorem disjointed_zero E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] (f : ℕ → α), disjointed f 0 = f 0