Towards a normative theory of the criminal trial