Nicer proofs for equality functions