More type inference proof