On the Lagrangian description of unsteady boundary-layer separation. Part 1. General theory