Results on BRS cohomologies in gauge theory