spec for argmax with implicit domain