  In this paper we prove some gap theorems in Yang-Mills theory for complete
four-dimensional manifolds with a weighted Poincar\'e inequality. We apply the
results to many examples of manifolds and we prove a uniqueness theorem for the
basic instanton.
