Abstract:Metatheorems about type theories are often proven by interpreting the syntax into models constructed using categorical gluing. We propose to use only sconing (gluing along a global section functor) instead of general gluing. The sconing is performed internally to a presheaf category, and we recover the original glued model by externalization.
Our method relies on constructions involving two notions of models: first-order models (with explicit contexts) and higher-order models (without explicit contexts). Sconing turns a displayed higher-order model into a displayed first-order model.
Using these, we derive specialized induction principles for the syntax of type theory. The input of such an induction principle is a boilerplate-free description of its motives and methods, not mentioning contexts. The output is a section with computation rules specified in the same internal language. We illustrate our framework by proofs of canonicity, normalization and syntactic parametricity for type theory.
What problem does this paper attempt to address?
The problem that this paper attempts to solve is to simplify and optimize the meta - theoretical proof methods in type theory. Specifically, the author proposes a new method, which simplifies the construction and analysis of type - theory models by using internal sconing (gluing along the global section functor) to replace categorical gluing in the general sense.
### Core problems of the paper
1. **Simplifying meta - theoretical proofs**: Traditional meta - theoretical proofs usually rely on interpreting syntax into models constructed by categorical gluing. Although this method is effective, the process is complex and difficult to be abstracted into reusable theorems. The author hopes to simplify this process by using internal sconing.
2. **Combining the advantages of first - order and higher - order representations**: The author hopes to combine the advantages of first - order Generalized Algebraic Theories (GAT) and higher - order theories to handle the meta - theoretical properties of type theory, such as canonicity, reducibility and syntactic parametricity, in a more flexible and concise way.
### Main contributions
- **Relative induction principles**: The author proposes several relative induction principles, which combine the initiality of the underlying category and the initiality of the syntax. These principles can be used to prove meta - theoretical properties of type theory, such as canonicity and reducibility.
- **Internalization, contextualization and externalization constructions**: The author defines a series of construction methods, including internalization, contextualization and externalization, which make it possible to formulate relative induction principles.
- **Derivation of internal sections**: By analyzing the section category, the author derives internal sections, which helps to understand the results of induction principles.
### Application examples
- **Canonicity**: The author shows how to use the induction principle relative to the empty context to prove canonicity.
- **Reducibility**: The author shows how to use the induction principle relative to renaming to prove reducibility.
- **Syntactic parametricity**: The author also shows how to use the above - mentioned induction principles to prove syntactic parametricity.
### Technical details
- **First - order models and higher - order models**: First - order models correspond to models with explicit contexts, while higher - order models correspond to models without explicit contexts. The author converts between these two models by methods such as contextualization and internalization.
- **Sconing**: Sconing is an operation performed inside the presheaf category, which converts a higher - order display model into a first - order display model. After externalization, the original gluing model can be restored.
### Conclusion
The main conclusion of this paper is that when using Higher - Order Abstract Syntax (HOAS), the first - order representation should not be discarded, even in an internal setting. In particular, the higher - order display model (as the input of the induction principle) should be located above the first - order model, and the result of the induction principle is also a section of the first - order model, still maintaining internality.
Through this method, the author provides a more concise and modular framework for proving meta - theoretical properties of type theory, such as canonicity, reducibility and syntactic parametricity.