The areas / V04. Order and lattices
Mathlib.Order.PartialSups
34 declarations. Mathlib docs · Source
The monotone sequence of partial supremums of a sequence
For ι a preorder in which all bounded-above intervals are finite (such as ℕ), and α a
⊔-semilattice, we define partialSups : (ι → α) → ι →o α by the formula
partialSups f i = (Finset.Iic i).sup' ⋯ f, where the ⋯ denotes a proof that Finset.Iic i is
nonempty. This is a way of spelling ⊔ k ≤ i, f k which does not require a α to have a bottom
element, and makes sense in conditionally-complete lattices (where indexed suprema over sets are
badly-behaved).
Under stronger hypotheses on α and ι, we show that this coincides with other candidate
definitions, see e.g. partialSups_eq_biSup, partialSups_eq_sup_range,
and partialSups_eq_sup'_range.
We show this construction gives a Galois insertion between functions ι → α and monotone functions
ι →o α, see partialSups.gi.
Implementation notes
One might dispute whether this sequence should start at f 0 or ⊥. We choose the former because:
- Starting at
⊥requires... having a bottom element. fun f i ↦ (Finset.Iio i).sup fis already effectively the sequence starting at⊥.- If we started at
⊥we wouldn't have the Galois insertion. SeepartialSups.gi.
Functions out of ℕ
Functions valued in a distributive lattice
These lemmas require the target to be a distributive lattice, so they are not useful (or true) in situations such as submodules.
Lemmas about the supremum over the whole domain
These lemmas require some completeness assumptions on the target space.
Functions into Set α
Functions taking values on some LinearOrder.
def partialSups E1 #
{α : Type u_1} →
{ι : Type u_3} → [inst : SemilatticeSup α] → [inst_1 : Preorder ι] → [LocallyFiniteOrderBot ι] → (ι → α) → ι →o α
The monotone sequence whose value at i is the supremum of the f j where j ≤ i.
theorem partialSups_apply E0 #
∀ {α : Type u_1} {ι : Type u_3} [inst : SemilatticeSup α] [inst_1 : Preorder ι] [inst_2 : LocallyFiniteOrderBot ι]
(f : ι → α) (i : ι), (partialSups f) i = (Finset.Iic i).sup' ⋯ f
theorem partialSups_iff_forall E1 #
∀ {α : Type u_1} {ι : Type u_3} [inst : SemilatticeSup α] [inst_1 : Preorder ι] [inst_2 : LocallyFiniteOrderBot ι]
{f : ι → α} (p : α → Prop), (∀ {a b : α}, p (a ⊔ b) ↔ p a ∧ p b) → ∀ {i : ι}, p ((partialSups f) i) ↔ ∀ j ≤ i, p (f j)
theorem partialSups_le_iff E0 #
∀ {α : Type u_1} {ι : Type u_3} [inst : SemilatticeSup α] [inst_1 : Preorder ι] [inst_2 : LocallyFiniteOrderBot ι]
{f : ι → α} {i : ι} {a : α}, (partialSups f) i ≤ a ↔ ∀ j ≤ i, f j ≤ a
theorem le_partialSups_of_le E1 #
∀ {α : Type u_1} {ι : Type u_3} [inst : SemilatticeSup α] [inst_1 : Preorder ι] [inst_2 : LocallyFiniteOrderBot ι]
(f : ι → α) {i j : ι}, i ≤ j → f i ≤ (partialSups f) j
theorem le_partialSups E1 #
∀ {α : Type u_1} {ι : Type u_3} [inst : SemilatticeSup α] [inst_1 : Preorder ι] [inst_2 : LocallyFiniteOrderBot ι]
(f : ι → α), f ≤ ⇑(partialSups f)
theorem partialSups_le E1 #
∀ {α : Type u_1} {ι : Type u_3} [inst : SemilatticeSup α] [inst_1 : Preorder ι] [inst_2 : LocallyFiniteOrderBot ι]
(f : ι → α) (i : ι) (a : α), (∀ j ≤ i, f j ≤ a) → (partialSups f) i ≤ a
theorem upperBounds_range_partialSups E0 #
∀ {α : Type u_1} {ι : Type u_3} [inst : SemilatticeSup α] [inst_1 : Preorder ι] [inst_2 : LocallyFiniteOrderBot ι]
(f : ι → α), upperBounds (Set.range ⇑(partialSups f)) = upperBounds (Set.range f)
theorem bddAbove_range_partialSups E0 #
∀ {α : Type u_1} {ι : Type u_3} [inst : SemilatticeSup α] [inst_1 : Preorder ι] [inst_2 : LocallyFiniteOrderBot ι]
{f : ι → α}, BddAbove (Set.range ⇑(partialSups f)) ↔ BddAbove (Set.range f)
theorem Monotone.partialSups_eq E0 #
∀ {α : Type u_1} {ι : Type u_3} [inst : SemilatticeSup α] [inst_1 : Preorder ι] [inst_2 : LocallyFiniteOrderBot ι]
{f : ι → α}, Monotone f → ⇑(partialSups f) = f
theorem partialSups_mono E1 #
∀ {α : Type u_1} {ι : Type u_3} [inst : SemilatticeSup α] [inst_1 : Preorder ι] [inst_2 : LocallyFiniteOrderBot ι],
Monotone partialSups
theorem partialSups_monotone E1 #
∀ {α : Type u_1} {ι : Type u_3} [inst : SemilatticeSup α] [inst_1 : Preorder ι] [inst_2 : LocallyFiniteOrderBot ι]
(f : ι → α), Monotone ⇑(partialSups f)
def partialSups.gi E1 #
{α : Type u_1} →
{ι : Type u_3} →
[inst : SemilatticeSup α] →
[inst_1 : Preorder ι] → [inst_2 : LocallyFiniteOrderBot ι] → GaloisInsertion partialSups DFunLike.coe
partialSups forms a Galois insertion with the coercion from monotone functions to functions.
theorem Pi.partialSups_apply E0 #
∀ {ι : Type u_3} [inst : Preorder ι] [inst_1 : LocallyFiniteOrderBot ι] {τ : Type u_4} {π : τ → Type u_5}
[inst_2 : (t : τ) → SemilatticeSup (π t)] (f : ι → (t : τ) → π t) (i : ι) (t : τ),
(partialSups f) i t = (partialSups fun x ↦ f x t) i
theorem comp_partialSups E1 #
∀ {α : Type u_1} {β : Type u_2} {ι : Type u_3} [inst : SemilatticeSup α] [inst_1 : SemilatticeSup β]
[inst_2 : Preorder ι] [inst_3 : LocallyFiniteOrderBot ι] {F : Type u_4} [inst_4 : FunLike F α β] [SupHomClass F α β]
(f : ι → α) (g : F), ⇑(partialSups (⇑g ∘ f)) = ⇑g ∘ ⇑(partialSups f)
theorem map_partialSups E0 #
∀ {α : Type u_1} {β : Type u_2} {ι : Type u_3} [inst : SemilatticeSup α] [inst_1 : SemilatticeSup β]
[inst_2 : Preorder ι] [inst_3 : LocallyFiniteOrderBot ι] {F : Type u_4} [inst_4 : FunLike F α β] [SupHomClass F α β]
(f : F) (g : ι → α) (i : ι), (partialSups fun j ↦ f (g j)) i = f ((partialSups g) i)
theorem partialSups_succ E0 #
∀ {α : Type u_1} {ι : Type u_3} [inst : SemilatticeSup α] [inst_1 : LinearOrder ι] [inst_2 : LocallyFiniteOrderBot ι]
[inst_3 : SuccOrder ι] (f : ι → α) (i : ι), (partialSups f) (Order.succ i) = (partialSups f) i ⊔ f (Order.succ i)
theorem partialSups_bot E0 #
∀ {α : Type u_1} {ι : Type u_3} [inst : SemilatticeSup α] [inst_1 : PartialOrder ι] [inst_2 : LocallyFiniteOrder ι]
[inst_3 : OrderBot ι] (f : ι → α), (partialSups f) ⊥ = f ⊥
theorem partialSups_zero E0 #
∀ {α : Type u_1} [inst : SemilatticeSup α] (f : ℕ → α), (partialSups f) 0 = f 0
theorem partialSups_eq_sup'_range E1 #
∀ {α : Type u_1} [inst : SemilatticeSup α] (f : ℕ → α) (n : ℕ), (partialSups f) n = (Finset.range (n + 1)).sup' ⋯ f
theorem partialSups_eq_sup_range E1 #
∀ {α : Type u_1} [inst : SemilatticeSup α] [inst_1 : OrderBot α] (f : ℕ → α) (n : ℕ),
(partialSups f) n = (Finset.range (n + 1)).sup f
theorem disjoint_partialSups_left E0 #
∀ {α : Type u_1} {ι : Type u_3} [inst : Preorder ι] [inst_1 : LocallyFiniteOrderBot ι] [inst_2 : DistribLattice α]
[inst_3 : OrderBot α] {f : ι → α} {i : ι} {x : α}, Disjoint ((partialSups f) i) x ↔ ∀ j ≤ i, Disjoint (f j) x
theorem disjoint_partialSups_right E0 #
∀ {α : Type u_1} {ι : Type u_3} [inst : Preorder ι] [inst_1 : LocallyFiniteOrderBot ι] [inst_2 : DistribLattice α]
[inst_3 : OrderBot α] {f : ι → α} {i : ι} {x : α}, Disjoint x ((partialSups f) i) ↔ ∀ j ≤ i, Disjoint x (f j)
theorem partialSups_disjoint_of_disjoint E1 #
∀ {α : Type u_1} {ι : Type u_3} [inst : Preorder ι] [inst_1 : LocallyFiniteOrderBot ι] [inst_2 : DistribLattice α]
[inst_3 : OrderBot α] (f : ι → α),
Pairwise (Function.onFun Disjoint f) → ∀ {i j : ι}, i < j → Disjoint ((partialSups f) i) (f j)
theorem partialSups_eq_ciSup_Iic E1 #
∀ {α : Type u_1} {ι : Type u_3} [inst : Preorder ι] [inst_1 : LocallyFiniteOrderBot ι]
[inst_2 : ConditionallyCompleteLattice α] (f : ι → α) (i : ι), (partialSups f) i = ⨆ i_1, f ↑i_1
theorem ciSup_partialSups_eq E0 #
∀ {α : Type u_1} {ι : Type u_3} [inst : Preorder ι] [inst_1 : LocallyFiniteOrderBot ι]
[inst_2 : ConditionallyCompleteLattice α] {f : ι → α}, BddAbove (Set.range f) → ⨆ i, (partialSups f) i = ⨆ i, f i
theorem ciSup_partialSups_eq' E0 #
∀ {α : Type u_1} {ι : Type u_3} [inst : Preorder ι] [inst_1 : LocallyFiniteOrderBot ι]
[inst_2 : ConditionallyCompleteLinearOrder α] (f : ι → α), ⨆ i, (partialSups f) i = ⨆ i, f i
Version of ciSup_partialSups_eq without boundedness assumptions, but requiring a
ConditionallyCompleteLinearOrder rather than just a ConditionallyCompleteLattice.
theorem iSup_partialSups_eq E0 #
∀ {α : Type u_1} {ι : Type u_3} [inst : Preorder ι] [inst_1 : LocallyFiniteOrderBot ι] [inst_2 : CompleteLattice α]
(f : ι → α), ⨆ i, (partialSups f) i = ⨆ i, f i
Version of ciSup_partialSups_eq without boundedness assumptions, but requiring a
CompleteLattice rather than just a ConditionallyCompleteLattice.
theorem partialSups_eq_biSup E1 #
∀ {α : Type u_1} {ι : Type u_3} [inst : Preorder ι] [inst_1 : LocallyFiniteOrderBot ι] [inst_2 : CompleteLattice α]
(f : ι → α) (i : ι), (partialSups f) i = ⨆ j, ⨆ (_ : j ≤ i), f j
theorem iSup_le_iSup_of_partialSups_le_partialSups E1 #
∀ {α : Type u_1} {ι : Type u_3} [inst : Preorder ι] [inst_1 : LocallyFiniteOrderBot ι] [inst_2 : CompleteLattice α]
{f g : ι → α}, partialSups f ≤ partialSups g → ⨆ i, f i ≤ ⨆ i, g i
theorem iSup_eq_iSup_of_partialSups_eq_partialSups E1 #
∀ {α : Type u_1} {ι : Type u_3} [inst : Preorder ι] [inst_1 : LocallyFiniteOrderBot ι] [inst_2 : CompleteLattice α]
{f g : ι → α}, partialSups f = partialSups g → ⨆ i, f i = ⨆ i, g i
theorem partialSups_eq_sUnion_image E1 #
∀ {α : Type u_1} (s : ℕ → Set α) (n : ℕ), (partialSups s) n = ⋃₀ ↑(Finset.image s (Finset.range (n + 1)))
theorem partialSups_eq_biUnion_range E1 #
∀ {α : Type u_1} (s : ℕ → Set α) (n : ℕ), (partialSups s) n = ⋃ i ∈ Finset.range (n + 1), s i
theorem exists_partialSups_eq E0 #
∀ {α : Type u_1} {ι : Type u_3} [inst : Preorder ι] [inst_1 : LocallyFiniteOrderBot ι] [inst_2 : LinearOrder α]
(f : ι → α) (i : ι), ∃ j ≤ i, (partialSups f) i = f j