More work on the type inference proof.