This is essentially the Schröder-Bernstein theorem together with the HLM-specific equality criterion on structures.