Compactness of a closed interval #
In this file we prove that a closed interval in a conditionally complete linear ordered type with
order topology (or a product of such types) is compact. We also prove the extreme value theorem
(is_compact.exists_forall_le
, is_compact.exists_forall_ge
): a continuous function on a compact
set takes its minimum and maximum values.
We also prove that the image of a closed interval under a continuous map is a closed interval, see
continuous_on.image_Icc
.
Tags #
compact, extreme value theorem
Compactness of a closed interval #
In this section we define a typeclass compact_Icc_space α
saying that all closed intervals in α
are compact. Then we provide an instance for a conditionally_complete_linear_order
and prove that
the product (both α × β
and an indexed product) of spaces with this property inherits the
property.
We also prove some simple lemmas about spaces with this property.
- is_compact_Icc : ∀ {a b : α}, is_compact (set.Icc a b)
This typeclass says that all closed intervals in α
are compact. This is true for all
conditionally complete linear orders with order topology and products (finite or infinite)
of such spaces.
A closed interval in a conditionally complete linear order is compact.
An unordered closed interval in a conditionally complete linear order is compact.
A complete linear order is a compact space.
We do not register an instance for a [compact_Icc_space α]
because this would only add instances
for products (indexed or not) of complete linear orders, and we have instances with higher priority
that cover these cases.
Min and max elements of a compact set #
Extreme value theorem #
The extreme value theorem: a continuous function realizes its minimum on a compact set.
The extreme value theorem: a continuous function realizes its maximum on a compact set.
The extreme value theorem: if a continuous function f
tends to infinity away from compact
sets, then it has a global minimum.
The extreme value theorem: if a continuous function f
tends to negative infinity away from
compact sets, then it has a global maximum.