Convex set
A set is convex if it contains the line segment between any two of its points
Convex set
Let be a vector space (typically over ). A set is convex if for all and all we have
Context. Equivalently, is convex iff it contains every line segment joining any two of its points. Convexity is the core geometric notion underlying convex analysis and optimization.
Examples:
- Any affine subspace of (e.g., a line or plane) is convex.
- Any ball in a normed space is convex.
- A halfspace is convex.
Non-example.
- The annulus is not convex: a segment between two points may pass through the “hole.”