Solution (source code)

= Solution

For ordered simplicial cochains, define the Alexander-Whitney <cup product> by
$$
(\phi\smile\psi)[v_0,\ldots,v_{i+j}]
=\phi[v_0,\ldots,v_i]\,\psi[v_i,\ldots,v_{i+j}],
$$
using the front and back faces of each characteristic <simplex>. Write $\delta$ for the <coboundary>, $\delta\phi=\phi\partial$. Expanding the face-boundary formula gives the graded Leibniz identity
$$
\delta(\phi\smile\psi)=\delta\phi\smile\psi+(-1)^i\phi\smile\delta\psi.
$$
In this expansion, face omissions on the front and back portions supply the two displayed terms, and their extra terms at the shared vertex cancel with opposite signs. Hence the cup of cocycles is a <cocycle>. If $\phi$ changes by $\delta a$, its product with a <cocycle> changes by $\delta(a\smile\psi)$; changing $\psi$ by $\delta b$ changes it by $(-1)^i\delta(\phi\smile b)$. The product therefore descends to <cohomology>. It is associative by the three consecutive-face formula and has the constant degree-zero <cochain> as unit.

In the wedge, every positive-dimensional <simplex> belongs to exactly one factor. Restricting positive-degree cochains therefore gives a direct sum of the two <cochain> groups and splits the coboundaries in degrees above one. In degree one, the same splitting of coboundaries holds: any pair of degree-zero cochains on the factors can have their values at the glued vertices made equal by adding a constant to one factor, which does not change its <coboundary>. Thus restriction induces
$$
\boxed{H^n(X\vee Y)\cong H^n(X)\oplus H^n(Y)\quad(n>0)}.
$$
Represent classes from the two factors by cochains extended by zero on the other factor. If both degrees are positive, a <simplex> lies wholly in one factor, so one of the front or back evaluations is zero. Their <cup product> is already zero as a <cochain>. This proves all the stated mixed products vanish.

For the indicated wedge there is one unit in degree zero, two generators $a,b$ in degree one, and one generator $c$ in degree two; higher groups vanish. Every product of positive-degree elements is zero. Its ring is therefore
$$
\boxed{\mathbb Z\oplus(\mathbb Za\oplus\mathbb Zb\oplus\mathbb Zc),\qquad |a|=|b|=1,\ |c|=2,\quad(a,b,c)^2=0}.
$$
The <torus> has the same additive groups, but its degree-one generators have nonzero <cup product> generating degree two. The two graded rings are not isomorphic. Since a <homotopy equivalence> induces a <cohomology>-ring isomorphism, \b[the <torus> and this wedge are not <homotopy> equivalent].