User:IssaRice/Extreme value theorem

From Machinelearning

Working through the proof in Pugh's book by filling in the parts he doesn't talk about.

For x[a,b], define Vx=f([a,x])={f(t):atx} to be the values that f takes on as the input ranges from a to x (inclusive).

Let M=sup{f(x):axb}=supVb (this number exists by the boundedness theorem) and X={x[a,b]:supVx<M}.[note 1]

Our goal now is to find some x such that f(x)=M. The idea now is to locate the leftmost point where f attains M by taking the supremum of X. But we have a small problem, which is that X might be empty (it is however always bounded, so we don't need to worry about that part). This can happen if f(a)=M, in which case supVa=M. But if that's the case, we have already found a point where f equals M, so we're actually done!

So now suppose f(a)<M. Then aX. We already know that X is bounded above, for instance by the number b. We can thus take the least upper bound of X, say c=supX. We already know f(c)M, so if we can just eliminate the possibility that f(c)<M, we will be done.

So suppose for sake of contradiction that f(c)<M. Choose ϵ>0 with ϵ<Mf(c).[note 2] Continuity of f at c implies that there exists δ>0 such that x(cδ,c+δ)[a,b] implies |f(x)f(c)|<ϵ. Now, cδ cannot be an upper bound of X, so there exists some x0X such that cδ<x0c. Thus for x[a,x0] we have f(x)supVx0<M. Also, for x[x0,c](cδ,c+δ) we have f(x)<f(c)+ϵ<M. So f is bounded above by max{supVx0,f(c)+ϵ}<M on [a,c], which means supVc<M.[note 3] If c<b, then there are points to the right of c where f continues to stay below f(c)+ϵ<M, which contradicts the fact that c is an upper bound of X. So c=b, which means M=supVb=supVc<M, a contradiction.





If c<b then by continuity we can find points t to the right of c where supVt<M, which contradicts the fact that c is an upper bound of such points.

Therefore, c=b, which implies that M=supVb=supVc<M, a contradiction. So the assumption that f(c)<M was false, and we conclude f(c)=M.

Takeaways

  • "less than" vs "bounded away from"

Notes

  1. If we had used "" in the definition of X, then when we take the supremum we would just end up with b, regardless of where f achieves the maximum.
  2. It is important here that ϵ does not equal Mf(c); choosing this ϵ would be too weak and we would not be able to conclude supVc<M, rather only that supVcM.
  3. This part of the proof uses quite a bit of "low-level" argumentation, so it can be easy to miss the broader point. The reason we split the interval [a,c] into two parts is that we know two facts about f: (1) near c, continuity shows that f must be close to the value of f(c); since we assumed f(c)<M, this means we can find a neighborhood around c where f is bounded away from M. (2) up to c, our choice of c means the value of f is bounded away from M. Then we pick x0 as a "handing off point" to pass from one side to the other.