[Paper Review] Normalisation by Evaluation for Type Theory, in Type Theory
This paper presents a type-theoretic formulation of normalisation by evaluation (NBE) for dependent type theory using quotient inductive types and a proof-relevant logical predicate that unifies presheaf semantics and logical relations. The key contribution is a constructive proof of definitional equality decidability via normalisation to neutral and normal forms, formalized in Agda with full type safety and completeness.
We develop normalisation by evaluation (NBE) for dependent types based on presheaf categories. Our construction is formulated in the metalanguage of type theory using quotient inductive types. We use a typed presentation hence there are no preterms or realizers in our construction, and every construction respects the conversion relation. NBE for simple types uses a logical relation between the syntax and the presheaf interpretation. In our construction, we merge the presheaf interpretation and the logical relation into a proof-relevant logical predicate. We prove normalisation, completeness, stability and decidability of definitional equality. Most of the constructions were formalized in Agda.
Motivation & Objective
- To develop a normalisation-by-evaluation construction for dependent type theory that is fully internalized in type theory.
- To unify presheaf semantics and logical relations into a single proof-relevant logical predicate.
- To establish decidability of definitional equality using a bidirectional approach on normal forms.
- To formalize the entire construction in Agda using quotient inductive types for syntax.
- To ensure all constructions respect convertibility and maintain type safety throughout.
Proposed method
- The syntax is defined as a quotient inductive type (QIT) for well-typed terms, quotiented by definitional equality.
- A proof-relevant logical predicate is constructed that combines the presheaf model and logical relation into a single type-indexed family.
- Normalisation is defined via a fundamental theorem that lifts the logical predicate to a function from terms to normal forms.
- The normalisation function is proven complete using the logical predicate's properties and the unquote operation.
- Decidability of equality is derived by deciding equality on normal forms and composing with normalisation.
- Stability and consistency are proven via mutual induction on neutral and normal forms.
Experimental results
Research questions
- RQ1Can normalisation by evaluation be fully internalized in type theory for dependent types using quotient inductive types?
- RQ2How can the presheaf model and logical relation be merged into a single proof-relevant logical predicate?
- RQ3Does the NBE construction imply decidability of definitional equality in dependent type theory?
- RQ4Can the construction be formalized in Agda while preserving type safety and convertibility?
- RQ5What is the role of the bidirectional approach in enabling decidability of equality?
Key findings
- The normalisation function is complete: every term is mapped to a normal form that is definitionally equal to the original.
- Definitional equality is decidable, as equality on normal forms is decidable and normalisation is complete.
- The construction is stable: normalising a normal form yields the same normal form.
- The logical predicate is proof-relevant and respects convertibility, ensuring all functions are type-safe.
- The formalization in Agda confirms the correctness of the construction with full type safety.
- Consistency of the type theory is established via mutual induction on neutral and normal forms, showing no term can inhabit a false type.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.