While self-studying Rockafellar's Convex Analysis, I am struggling with the proof on Rockafellar's note on page 6 about proving the definition of the affine hull. Note that I don't want the intuitive definition of the affine hull as most of the existing answers did. Rather I want a rigorous proof of the following section.
Therefore given any $S \subset R^n$ there exists a unique smallest affine set containing S (namely the intersection of the collection of affine sets $M$ such that $M\supset S$). This set is called affine hull of S and is denoted by aff S. It can be proved as an exercise, that aff S consists of the vectors of the form $\lambda_1 x_1 + \ldots+\lambda_m x_m$, such that $x_i \in S$ and $\lambda_1 + \ldots + \lambda_m = 1$.
Now I see the proof other way around, that is given S an affine space any convex combination of the points will lie in S. Also intuitively we understand that the points inside the hull has to be comvex combination in order to fall inside S, otherwise it will go outside. But I can't prove it. Please help.
Usually when you have a space $X(S)$ associated to a set $S$, that is the smallest set satisfying a certain property $P$ (in this case, being affine), to prove that another set $Y$ is $X(S)=Y$, what you do is 1) Prove that $Y$ is contained in every set with property $P$ (which is what you did, every convex combination of points of $S$ lies in every affine space containing $S$) and 2) Prove that $Y$ has the property $P$ (in this case, prove that all convex combinations of points in $S$ form an affine set), then $$Y\subseteq X(S)$$ by point 1) and $$X(S)\subseteq Y$$ being $X(S)$ the $\textit{smallest}$ set satisfying $P$, so you reach the conclusion $$X(S)=Y$$So, can you prove that all convex combinations of points in $S$ form an affine set? in which case you're done
Edit Addressing the comment: I don't know if there is a way to directly prove that every element of $\text{aff}(S)=X(S)$ is a convex combination of elements from $S$ from the definition of $X(S)$. The definition of $X(S)$ only tells you that it is the intersection of all affine spaces containing $S$. In particular, it doesn't tell you what's the form of a generic element of $X(S)$, so to prove that every element $v\in X(S)$ is a convex combination of elements in $S$, the only way I see would be to prove that a point $v$ that is not a convex combination of elements from $S$ doesn't belong to $X(S)$ by showing that there is an affine set $A$ containing $S$ and not containing $v$. The best choice for this affine set $A$ is the set $CC(S)$ of all convex combinations of elements in $S$ and if you prove that $CC(S)$ is an affine set, then by definition $$X(S)\subseteq CC(S)$$ which proves that every element in $X(S)$ is indeed a convex combination of elements from $S$. So in the end, it all comes down to prove that $CC(S)$ is an affine space, thus it contains $X(S)$.