Relativistic study of the reaction pp → dπ: Formalism and comparison with experiment at Tp = 578 MeV