Type theory and rewriting

Frédéric Blanqui
DOI: https://doi.org/10.48550/arXiv.cs/0610068
2007-02-22
Abstract:We study the properties, in particular termination, of dependent types systems for lambda calculus and rewriting.
Logic in Computer Science
What problem does this paper attempt to address?
The core problem that this paper attempts to solve is: **Introduce rewriting rules into the type system to expand its expressive and computational capabilities while ensuring the correctness and consistency of the system**. Specifically, the author hopes to study how to apply rewriting rules to the Calculus of Constructions and its extended versions in order to better combine programming and logical reasoning. ### Detailed Interpretation 1. **Motivation and Background** - Type Systems are fundamental tools in formal mathematics and programming. Through type systems, the correctness of programs can be ensured and they can be used in formal verification. - Rewriting Rules are a general - purpose computational paradigm that can be used to simplify expressions, define functions, etc. For example, `x + 0 → x` means that if there is an expression `x + 0`, it can be simplified to `x`. - The author hopes that by introducing rewriting rules into the type system, the type system can not only express more functions and algorithms, but also maintain its logical consistency and correctness. 2. **Specific Problems** - **Expansion of Expressive Capability**: Existing type systems such as the Calculus of Constructions, although powerful, cannot efficiently express or implement certain functions and algorithms. For example, the predecessor function of natural numbers is difficult to implement with constant - time complexity in the Calculus of Constructions. - **Enhancement of Computational Capability**: By introducing rewriting rules, complex functions can be more flexibly defined and calculated, especially in higher - order logic. - **Correctness of the System**: After introducing rewriting rules, it is necessary to ensure that the system does not introduce inconsistent or incorrect proofs. Therefore, the conditions of rewriting rules need to be given and it needs to be proved that these conditions can ensure the correctness of the system. 3. **Solutions** - **Type Systems Modulo (TSMs)**: Research on how to introduce rewriting rules into the type system and maintain the properties of the system. - **Reduction Type Systems (RTSs)**: Explore the application of rewriting rules in the type system, especially logical and functional reduction type systems. - **Algebraic Type Systems (ATSs)**: Research on how to define and analyze rewriting rules in the type system through algebraic structures. - **Conditions of Strong Normalization**: Give the conditions to ensure strong normalization of the system, that is, each expression can be rewritten to an irreducible form in a finite number of steps. 4. **Contributions** - Propose the concept of Type Systems Modulo (TSMs) and study their properties. - Give the definition and classification of Reduction Type Systems (RTSs). - Study Algebraic Type Systems (ATSs) and their applications in rewriting rules. - Propose the conditions of strong normalization and prove the effectiveness of these conditions. ### Summary The main goal of this paper is to expand the expressive and computational capabilities of the type system by introducing rewriting rules while ensuring the correctness and consistency of the system. The author studies different type systems (such as TSMs, RTSs, ATSs) and their properties, proposes the conditions to ensure strong normalization of the system, and proves the effectiveness of these conditions. This not only enhances the functionality of the type system, but also provides new tools and methods for formal verification and program correctness.