-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Order/Bounds/Lattice): bounds over collections of sets (#19150)
Some results about upper and lower bounds over collections of sets. Inspired by #15412, but possibly of greater interest? Co-authored-by: Christopher Hoskin <[email protected]>
- Loading branch information
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/- | ||
Copyright (c) 2024 Christopher Hoskin. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Christopher Hoskin | ||
-/ | ||
import Mathlib.Data.Set.Lattice | ||
|
||
/-! | ||
# Unions and intersections of bounds | ||
Some results about upper and lower bounds over collections of sets. | ||
## Implementation notes | ||
In a separate file as we need to import `Mathlib.Data.Set.Lattice`. | ||
-/ | ||
|
||
variable {α : Type*} [Preorder α] {ι : Sort*} {s : ι → Set α} | ||
|
||
open Set | ||
|
||
theorem gc_upperBounds_lowerBounds : GaloisConnection | ||
(OrderDual.toDual ∘ upperBounds : Set α → (Set α)ᵒᵈ) | ||
(lowerBounds ∘ OrderDual.ofDual : (Set α)ᵒᵈ → Set α) := by | ||
simpa [GaloisConnection, subset_def, mem_upperBounds, mem_lowerBounds] | ||
using fun S T ↦ forall₂_swap | ||
|
||
@[simp] | ||
theorem upperBounds_iUnion : | ||
upperBounds (⋃ i, s i) = ⋂ i, upperBounds (s i) := | ||
gc_upperBounds_lowerBounds.l_iSup | ||
|
||
@[simp] | ||
theorem lowerBounds_iUnion : | ||
lowerBounds (⋃ i, s i) = ⋂ i, lowerBounds (s i) := | ||
gc_upperBounds_lowerBounds.u_iInf | ||
|
||
theorem isLUB_iUnion_iff_of_isLUB {u : ι → α} (hs : ∀ i, IsLUB (s i) (u i)) (c : α) : | ||
IsLUB (Set.range u) c ↔ IsLUB (⋃ i, s i) c := by | ||
refine isLUB_congr ?_ | ||
simp_rw [range_eq_iUnion, upperBounds_iUnion, upperBounds_singleton, (hs _).upperBounds_eq] | ||
|
||
theorem isGLB_iUnion_iff_of_isLUB {u : ι → α} (hs : ∀ i, IsGLB (s i) (u i)) (c : α) : | ||
IsGLB (Set.range u) c ↔ IsGLB (⋃ i, s i) c := by | ||
refine isGLB_congr ?_ | ||
simp_rw [range_eq_iUnion, lowerBounds_iUnion, lowerBounds_singleton, (hs _).lowerBounds_eq] |