1B — Definition of Vector Space
Proof. Let \(S\) be a nonempty set and let \(\mathbb{F}^S\) be the set of all functions from \(S\) to \(\mathbb{F}\). Addition and scalar multiplication are defined pointwise. For \(f,g\in\mathbb{F}^S\), \(a\in\mathbb{F}\), and \(x\in S\), we have \[ (f+g)(x)=f(x)+g(x),\qquad (af)(x)=af(x). \] Both expressions take values in \(\mathbb{F}\), so \(\mathbb{F}^S\) is closed under addition and scalar multiplication.
Let \(f,g,h\in\mathbb{F}^S\), \(a,b\in\mathbb{F}\), and \(x\in S\) be arbitrary. By the commutativity and associativity of addition in \(\mathbb{F}\), \[ \begin{aligned} (f+g)(x) &=f(x)+g(x)=g(x)+f(x)=(g+f)(x),\\ \bigl((f+g)+h\bigr)(x) &=\bigl(f(x)+g(x)\bigr)+h(x)\\ &=f(x)+\bigl(g(x)+h(x)\bigr) =\bigl(f+(g+h)\bigr)(x). \end{aligned} \]
Let \(0_S\) be the zero function, defined by \(0_S(x)=0\) for every \(x\in S\). For each \(f\in\mathbb{F}^S\), define \(-f\) by \((-f)(x)=-f(x)\) for every \(x\in S\). Then \[ \begin{aligned} (f+0_S)(x)&=f(x)+0=f(x),\\ \bigl(f+(-f)\bigr)(x)&=f(x)+\bigl(-f(x)\bigr)=0=0_S(x). \end{aligned} \]
By the multiplication and distributive laws in \(\mathbb{F}\), \[ \begin{aligned} \bigl((ab)f\bigr)(x) &=(ab)f(x)=a\bigl(bf(x)\bigr)=\bigl(a(bf)\bigr)(x),\\ (1f)(x) &=1f(x)=f(x),\\ \bigl(a(f+g)\bigr)(x) &=a\bigl(f(x)+g(x)\bigr)=af(x)+ag(x)=(af+ag)(x),\\ \bigl((a+b)f\bigr)(x) &=(a+b)f(x)=af(x)+bf(x)=(af+bf)(x). \end{aligned} \]
Since these equalities hold for every \(x\in S\), they give the corresponding equalities of functions. Thus \(\mathbb{F}^S\) satisfies all the vector space axioms and is a vector space over \(\mathbb{F}\). \(\square\)