compare(s, t), that tests whether two instances' states are equivalent in some sense; hash(s), that computes some standard hash function from the instance's state; print(s) or show(s), that produces a human-readable representation of the instance's state.