Convex sets have property that a line between any two points, lies in the set.
This is stated algebraically here as:
Given an affine space E, ... a subset V of E is
convex if for any two points $a, b ∈ V,$ we have $c ∈ V$ for
every point $c = (1 − λ)a + λb,$ with $0 ≤ λ ≤ 1 (λ ∈ R).$
I.e., any point (in the convex set) $c,$ that lies on the line joining $a, b;$ can be stated as a linear combination of points $a, b.$
But, there is an alternative definition of the convex function, which is expressed by stating that any point on the line joining any points, on a convex function, lies at least at a height (i.e., the $y-$ value) equal to that of the point on the convex function.
This is stated as, in Definition 3.3.8:
Let $A$ be a nonempty convex subset of $A_n.$ A function, $f : A → R,$ is convex if $f ((1 − λ)a + λb) ≤ (1 − λ)f (a) + λf (b)$ for all $a, b ∈ A$ and for all $λ ∈ [0, 1].$
I intuitively can see the dependence of the first definition on the second, but cannot prove it theoretically; though the first concerns with convex set; and the second with convex functions.
So, request help on proving the dependence of the first definition, on the second.
And if possible, also to prove the vice-versa; i.e. to prove the dependence of the second definition, on the first one.