The sublevel sets {f < c} are relatively open in K by continuity; if f had no maximum they would cover K, and a finite subcover would bound f strictly below one of its own values. The minimum follows by applying this to -f.
Let be the subspace topology on induced by . By Compact Topological Space and Compact Subset §compact-subset, the hypothesis on says that is compact. The order of is total, and the rules of Rules of Arithmetic and Order in an Ordered Field apply to it. Steps 1 and 2 use of only that it is a map from to that is continuous on as a map from to .
Step 1: for every real , the set belongs to . Let be the set of all with , and put . As is a topology on and , Topological Space §unions gives . If , then for some , so ; hence . Conversely, let . Then , so satisfies by Rules of Arithmetic and Order in an Ordered Field §order-sum. As is continuous at relative to , by Continuous Map Between Metric Spaces §continuous, there is a real such that every with satisfies , that is by The Distance on the Real Numbers §distance. For such , Rules of Arithmetic and Order in an Ordered Field §absolute-value gives , hence , and adding gives by Rules of Arithmetic and Order in an Ordered Field §order-sum. By Open Ball in a Metric Space §membership this says , where is the open ball. That ball is open in by Open Ball in a Metric Space is Open §open, so it lies in and hence in ; and because by Metric Space §zero. Thus . Hence with and , so by Subspace Topology §subspace-topology.
Step 2: attains a maximum. Suppose that there is no with for every . Then for every there is for which fails, so that , the order being total. Let be the set of all with for some . If and satisfies , then , and by Step 1; so is a subset of with . As is compact, Compact Topological Space and Compact Subset §compact gives a finite subset of with . For the set is nonempty, so Finite Sets: the Pigeonhole Principle, Uniqueness of the Length, Subsets, Unions, Products, Images, Bounded Sets of Natural Numbers, Extreme Elements, Sets of Maps, Finite Unions and Finite Choice §choice, applied to the finite set and the family , gives a map on with for every . Let be the image of under the map from to ; it is finite by Finite Sets: the Pigeonhole Principle, Uniqueness of the Length, Subsets, Unions, Products, Images, Bounded Sets of Natural Numbers, Extreme Elements, Sets of Maps, Finite Unions and Finite Choice §image. Since is nonempty and , the set is nonempty, and so is . By Finite Sets: the Pigeonhole Principle, Uniqueness of the Length, Subsets, Unions, Products, Images, Bounded Sets of Natural Numbers, Extreme Elements, Sets of Maps, Finite Unions and Finite Choice §extremes, has a greatest element , unique by Bounds, Least and Greatest Elements, Suprema and Infima for a Partial Order §least. Then for some ; put . As , there is with , so , whence , which is impossible. Hence there exists with for every .
Step 3: attains a minimum. Let be the map . For , Rules of Arithmetic and Order in an Ordered Field §signs gives , so by Rules of Arithmetic and Order in an Ordered Field §absolute-value and The Distance on the Real Numbers §distance. Hence, for every and every real , the that Continuous Map Between Metric Spaces §continuous-at provides for serves for , and is continuous on as a map from to . Steps 1 and 2 applied to give with , that is , for every , and then by Rules of Arithmetic and Order in an Ordered Field §order-negative.
Steps 2 and 3 together give the assertion.
Loading…