Theorem-proving anonymity of infinite-state systems