Coinductive proofs of type class instances