The origin of the nontriviality of observables in topological Yang-Mills theory is discussed from the viewpoint that BRST transformation is the exterior derivative. We show that the appearance of singularities due to the Gribov problem makes the Donaldson polynomials cohomologically nontrivial. © 1990 Kluwer Academic Publishers.