Upper / lower bounds #
In this file we define:
upperBounds
,lowerBounds
: the set of upper bounds (resp., lower bounds) of a set;BddAbove s
,BddBelow s
: the sets
is bounded above (resp., below), i.e., the set of upper (resp., lower) bounds ofs
is nonempty;IsLeast s a
,IsGreatest s a
:a
is a least (resp., greatest) element ofs
; for a partial order, it is unique if exists;IsLUB s a
,IsGLB s a
:a
is a least upper bound (resp., a greatest lower bound) ofs
; for a partial order, it is unique if exists. We also prove various lemmas about monotonicity, behaviour under∪
,∩
,insert
, and provide formulas for∅
,univ
, and intervals.
Definitions #
The set of upper bounds of a set.
Equations
- upperBounds s = {x : α | ∀ ⦃a : α⦄, a ∈ s → a ≤ x}
Instances For
The set of lower bounds of a set.
Equations
- lowerBounds s = {x : α | ∀ ⦃a : α⦄, a ∈ s → x ≤ a}
Instances For
A set is bounded above if there exists an upper bound.
Equations
- BddAbove s = Set.Nonempty (upperBounds s)
Instances For
A set is bounded below if there exists a lower bound.
Equations
- BddBelow s = Set.Nonempty (lowerBounds s)
Instances For
a
is a greatest element of a set s
; for a partial order, it is unique if exists.
Equations
- IsGreatest s a = (a ∈ s ∧ a ∈ upperBounds s)
Instances For
a
is a greatest lower bound of a set s
; for a partial order, it is unique if exists.
Equations
- IsGLB s = IsGreatest (lowerBounds s)
Instances For
A set s
is not bounded above if and only if for each x
there exists y ∈ s
such that x
is not greater than or equal to y
. This version only assumes Preorder
structure and uses
¬(y ≤ x)
. A version for linear orders is called not_bddAbove_iff
.
A set s
is not bounded below if and only if for each x
there exists y ∈ s
such that x
is not less than or equal to y
. This version only assumes Preorder
structure and uses
¬(x ≤ y)
. A version for linear orders is called not_bddBelow_iff
.
A set s
is not bounded above if and only if for each x
there exists y ∈ s
that is greater
than x
. A version for preorders is called not_bddAbove_iff'
.
A set s
is not bounded below if and only if for each x
there exists y ∈ s
that is less
than x
. A version for preorders is called not_bddBelow_iff'
.
If a
is the least element of a set s
, then subtype s
is an order with bottom element.
Equations
Instances For
If a
is the greatest element of a set s
, then subtype s
is an order with top element.
Equations
Instances For
Monotonicity #
Conversions #
If s
has a greatest element, then it is bounded above.
Union and intersection #
If a
is the greatest element of s
and b
is the greatest element of t
,
then max a b
is the greatest element of s ∪ t
.
Singleton #
Bounded intervals #
Univ #
Empty set #
insert #
Sets are automatically bounded or cobounded in complete lattices. To use the same statements
in complete and conditionally complete lattices but let automation fill automatically the
boundedness proofs in complete lattices, we use the tactic bddDefault
in the statements,
in the form (hA : BddAbove A := by bddDefault)
.
Equations
- tacticBddDefault = Lean.ParserDescr.node `tacticBddDefault 1024 (Lean.ParserDescr.nonReservedSymbol "bddDefault" false)
Instances For
Pair #
Lower/upper bounds #
(In)equalities with the least upper bound and the greatest lower bound #
Images of upper/lower bounds under monotone functions #
The image under a monotone function on a set t
of a subset which has an upper bound in t
is bounded above.
The image under a monotone function on a set t
of a subset which has a lower bound in t
is bounded below.
A monotone map sends a greatest element of a set to a greatest element of its image.
The image under an antitone function of a set which is bounded above is bounded below.
The image under an antitone function of a set which is bounded below is bounded above.
An antitone map sends a greatest element of a set to a least element of its image.
An antitone map sends a least element of a set to a greatest element of its image.
A monotone map sends a greatest element of a set to a greatest element of its image.
See also Monotone.map_bddAbove
.
See also Monotone.map_bddBelow
.
A function between preorders is said to be Scott continuous if it preserves IsLUB
on directed
sets. It can be shown that a function is Scott continuous if and only if it is continuous wrt the
Scott topology.
The dual notion
∀ ⦃d : Set α⦄, d.Nonempty → DirectedOn (· ≥ ·) d → ∀ ⦃a⦄, IsGLB d a → IsGLB (f '' d) (f a)
does not appear to play a significant role in the literature, so is omitted here.
Equations
- ScottContinuous f = ∀ ⦃d : Set α⦄, Set.Nonempty d → DirectedOn (fun (x x_1 : α) => x ≤ x_1) d → ∀ ⦃a : α⦄, IsLUB d a → IsLUB (f '' d) (f a)