Let us place two blocks having mass $m_1$ and $m_2$ in contact with each other on a frictionless surface. Let us assume that one of the blocks is pushed by a force $F$ which in turn pushes the other block in the same direction in which it is being accelerated.
In such a scenario why do we always assume that both the blocks will move with same acceleration which is $a=F/(m1+m2)$? Can't the acceleration of second body be larger than the first body momentarily such that it loses contact with the first body for a while? If not then how to prove it?