It is enough to assume that is surjective for every ; an integrally surjective Hurewicz homomorphism certainly has this property. First give the minimal-model argument suggested by the hint. Let be a simply connected Sullivan minimal model, with in degrees at least two. Put . Its indecomposable quotient of an augmented algebra is
Minimality makes the induced differential on zero, so projection is a chain map . The Sullivan model identification says that the induced map
is dual to rational Hurewicz homomorphism. Under the usual finite-type duality convention, the assumed surjectivity makes injective.
A product of two positive cohomology classes has a decomposable cocycle representative, so its image under is zero. Injectivity therefore gives
This deduction uses the hypothesis; zero cup products by themselves would not yet prove formality of a topological space.
Choose a homogeneous cohomology basis and cocycle representatives . Their indecomposable parts are linearly independent. Extend them to a graded basis of and replace the corresponding generators by the actual cocycles . This is a valid change of free algebra generators: each differs from its indecomposable part by products of generators of strictly smaller degree, so degree induction constructs the inverse substitution. Call these closed generators , and the remaining generators .
Define a map of graded algebras
Its target has zero differential. Every differential in is decomposable, and all products of positive target classes vanish, so is a chain map. If is any positive cocycle, its indecomposable part is in the span of the , because these form the image of . Write . Then , while injectivity of gives . Thus induces the identity on cohomology and is a quasi-isomorphism. This proves that is a formal space.
The rational wedge sum assertion has a direct topological proof, which also avoids finite-dimensional duality restrictions in the preceding model argument. Choose a homogeneous basis of . By surjectivity, each basis class is the image under the Hurewicz homomorphism of an element of . In this element is represented by an actual sphere map . Simple connectivity and ensure . The wedge sum of these maps gives
and induces an isomorphism of rational homology by the choice of basis. The rational Whitehead theorem now makes it a rational homotopy equivalence, giving
A wedge sum of spheres is a formal space. For each individual sphere, its augmented minimal model maps by a quasi-isomorphism to its sphere cochain algebra, and also to its cohomology algebra, by killing the extra odd generator in the even-sphere case. Take based simplicial models of the spheres. Their wedge sum is a simplicial pushout over the common basepoint, so the algebra of rational polynomial differential forms is the corresponding fibre product of augmented sphere algebras. Taking fibre products of these model maps gives a quasi-isomorphism zigzag to the square-zero cohomology algebra. This also works for infinitely many sphere summands: the positive parts are products of the individual complexes, and products of vector-space exact sequences over a field are exact. In the finite case its minimal resolution is the minimal model of a wedge of simply connected spheres. Thus the topological proof establishes both conclusions without imposing finite rank on the sphere basis. For the zero reduced-homology case the wedge sum is a point. Both the minimal-model construction and the explicit sphere map explain why the surjectivity hypothesis is decisive.