The generalized dynamic factor model: Representation theory