A higher index theorem for proper cocompact actions