We define the Cumulative Distribution Function F(x0) as the sum of the probabilities (values of the probability density function) up-to X=x0 for a discrete random variables.
F(X0)=∑x≤x0P(X=x)
Note: from this definition F(xmax)=1.