Topological Yang-Mills symmetry