A Formal Type System for Comparing Partial Evaluators