Convex Analysis (Rockafellar, 1970) -- Chapter 05 -- Section 25 -- Part 13

open scoped Topologyopen scoped Pointwisesection Chap05section Section25

Helper for Corollary 25.7.1: Theorem 25.3 gives continuity and monotonicity of the derivative on every compact subinterval once differentiability is known on the whole open interval.

lemma helperForCorollary_25_7_1_deriv_continuousOn_Icc_and_monotoneOn {I : Set } (hIopen : IsOpen I) (hIconv : Convex I) {g : } (hgconv : ConvexOn I g) (hgdiff : DifferentiableOn g I) {a b : } (_hab : a b) (hIcc : Set.Icc a b I) : ContinuousOn (deriv g) (Set.Icc a b) MonotoneOn (deriv g) (Set.Icc a b) := by let D : Set := {x | x I HasDerivAt g (deriv g x) x} have hTheorem25_3 := convexOn_openInterval_countable_nondifferentiabilitySet_dense_and_deriv_continuousOn_monotoneOn (I := I) hIopen hIconv hgconv rcases hTheorem25_3 with _hcount, _hclosure, hcontD, hmonoD have hDI : D = I := by -- Differentiability on the open interval identifies the set `D` from Theorem 25.3 with `I`. ext x constructor · intro hx exact hx.1 · intro hx refine hx, ?_ exact (hgdiff x hx).differentiableAt (hIopen.mem_nhds hx) |>.hasDerivAt constructor · intro x hx -- Restrict the continuity statement from `D = I` down to the compact interval. have hxI : x I := hIcc hx have hxD : x D := by rw [hDI] exact hxI have hcontDx : ContinuousWithinAt (deriv g) D x := hcontD x hxD have hIccSubsetD : Set.Icc a b D := by intro y hy rw [hDI] exact hIcc hy exact hcontDx.mono hIccSubsetD · intro x hx y hy hxy -- The same restriction argument transports monotonicity to `Set.Icc a b`. have hxD : x D := by rw [hDI] exact hIcc hx have hyD : y D := by rw [hDI] exact hIcc hy simpa [hDI] using hmonoD hxD hyD hxy
end Section25end Chap05