Convex segment from the origin stays inside
ProvedConvex.smul_mem_of_nonneg_of_leconvex-geometry
In a convex set containing and , every with stays inside: write it as with ratio in . Drift repair: Mathlib.Basic.Real.Basic replaced by Mathlib.Data.Real.Basic.
Preamble
import Mathlib.Analysis.Convex.Basic import Mathlib.Data.Real.Basic import Mathlib.Tactic.Linarith open Convex
Formal statement
namespace Convex
theorem smul_mem_of_nonneg_of_le {E : Type*} [AddCommGroup E] [Module ℝ E] {s : Set E} (hs : Convex ℝ s) {v : E} {x a : ℝ} (hzero : (0 : E) ∈ s) (ha : a • v ∈ s) (hx : 0 ≤ x) (hxa : x ≤ a) : x • v ∈ s := by sorry
end ConvexSource