Linear Algebra - Friedberg p.53
Let $F$ be a field and $c_0,\ldots,c_n$ be distinct scalars in $F$. Then, define $l_j(X)=\prod_{i=0\bigwedge i\neq j}^n \frac{X-c_i}{c_j-c_i}$ (Lagrange Polynomials). Then $\{l_0(X),\ldots,l_n(X)\}$ is a basis for $P_n(F)$.
If $F$ is infinite, then it has following properties;
For each $f(X)\in P_n(F), f(X)=\sum_{i=0}^n f(c_i)l_i(X)$.
If $f(X),g(X)\in P_n(F)$ and [$\forall 0≦i≦n,\ f(c_i)=g(c_i)$], then $f(X)=g(X)$.
I don't know why infiniteness of $F$ should be in the hypothesis. I cannot find where i used the hypothesis, that is, " $\forall a\in F,\ f(a)=g(a) \Rightarrow f(X)=g(X)$ ".