Fix type inference proof