Download lean/OAI/MathematicalPhysics/DefocusingNLS/Certificates/ContinuousHalfLineBound.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
theoremexists_bounded_extension_nonneg (f : ℝ→E) (hf : Continuous f)
(h : ∃C : ℝ, ∀ᶠ t in atTop, ‖f t‖ ≤C) :
∃F : ℝ→ᵇ E, ∀ t, 0≤ t →F t=f t :=by
proof · 8
lines
obtain ⟨M,hM⟩ := continuous_halfLine_bound f hf h
letF : ℝ→ᵇ E:=BoundedContinuousFunction.ofNormedAddCommGroup
(fun t => f (max t 0)) (hf.comp (continuous_id.max continuous_const)) M
(fun t => hM _ (le_max_right t 0))
refine ⟨F,?_⟩
intro t ht
change f (max t 0)=f t
rw [max_eq_left ht]