Statement: Polytopes are convex, thus: if $x, y \in P $ then $\lambda x + (1-\lambda)y \in P$ for $0 \leq \lambda \leq 1$
I understand that somehow it should mean that if we draw a line from $x$ to $y$ then it should stay inside a polytope and it won't cross the borders.
But I do not understand the formal statement. Could someone explain? Thank you
EDIT: I guess I don't understand how $\lambda x + (1-\lambda)y \in P$ defines the line segment...
Assume $x,y \in P$. Look at $f(\lambda) = \lambda x + (1-\lambda)y$.
Note that $f(0) = y$ and $f(1) = x$, and $f(1/2) = (x+y)/2$. As you try out different values of $\lambda \in (0,1)$ you will see that $f(\lambda)$ is indeed a parameterization of a line segment between $x$ and $y$.
Then, as you said, your statement says that if you find any pair of points in $P$, the line segment between them is also in $P$, which is a property of a convex set.
EDIT
To build some intuition, let $x = (1,0)$ and $y = (0,1)$. Note that $$ f(\lambda) = \lambda (1,0) + (1-\lambda)(0,1) = (\lambda, 1- \lambda). $$ Notice that as $\lambda$ varies from $0$ to $1$, you begin at $(0,1)=y$ and trace out the part of the line $y=1-x$ until you end up at $(1,0)=x$. The same happens between any two pairs of points in any space, feel free to experiment with other values to get some intuition how it works.