This has nothing to do with p v np. An AI has no will. Even if superior to our abilities it just does what we tell it.