natural deduction metalanguage, practical foundations
type theory (dependent, intensional, observational type theory, homotopy type theory)
computational trinitarianism =
propositions as types +programs as proofs +relation type theory/category theory
There are good reasons why the theorems should all be easy and the definitions hard. [Michael Spivak, preface to “Calculus on Manifolds”]
In type theory a definition is the construction of a type or a term of a certain type. By “construction”, we mean that the type has a formation rule and the term has an introduction rule. Then, there are in general two ways to complete the construction:
by adding to the type theory the elimination rules, computation rules, and uniqueness rules for types and their associated terms which characterize the universal property of the type (see natural deduction),
by adding to the type theory a rule stating that the type or term is equal to an existing term or type.
Many types in type theory, such as function types, product types, coproduct types, booleans type, natural numbers type, integers, et cetera, are defined in both ways, by universal properties and by equality with another type.
One way that definitions of types and of terms could be formalized inside the type theory is by the use of equality with another term or type. More specifically, every definition of a symbol comes with a formation rule for the symbol which states that it is a type or an introduction rule for the symbol which states that it is a term of a type, and a definition rule that the term or type is equal to some existing term or type . The equality used in the definition rule is called definitional equality.
As documented in the article on equality, there are three notions of equality used in type theory: judgmental equality, propositional equality, and typal equality. All three notions of equality could be used in the definition rule. In Martin-Löf type theory and cubical type theory, symbols and abbreviations are defined using judgmental equality. In ZFC and ETCS, they are defined using propositional equality, and in objective type theories, they are defined using typal equality.
For example, suppose that the type is already derived in some context . Then, in order to define the symbol to be the type there are the following formation and definition rules for :
Similarly, suppose that the term is already derived in some context . Then, in order to define the symbol to be the term there are the following introduction and definition rules for :
However, including separate rules for each new term or type is very cumbersome and would lead to an explosion of rules in the type theory. To handle that, one usually introduces the single assignment operator, initialization operator, initialisation operator, or definition operator to the type theory, which is formally defined as a pair of judgments
in addition to the judgments for types, terms, and judgmental equality. is called type definition, type initialization, type initialisation or type single assignment, while is called term definition, term initialization, term initialisation, or term single assignment. Judgmental single assignment is different from judgmental equality as judgmental equality is an equivalence relation, while judgmental single assignment is not an equivalence relation, but instead has a reflection rule into equality.
Depending upon what notion of equality is used for definitional equality, the single assignment operator has the following formation and equality reflection rules for type definitions
Formation and judgmental equality reflection rules for type definition:
Formation and propositional equality reflection rules for type definition:
Formation and typal equality reflection rules for type definition:
There are also the following introduction and equality reflection rules for term definitions:
Introduction and judgmental equality reflection rules for term definition:
Introduction and propositional equality reflection rules for term definition:
Introduction and typal equality reflection rules for term definition:
Another way of typally defining a type to be a type is via copying. Copying becomes important for typally defining the type of equivalences, as the usual way of typally defining types involves the type of equivalences and thus isn’t available. One add rules saying that from the assignment judgment one can derive that satisfies the universal property of a copy of .
mathematical statements
The single assignment operator is defined (not by name) in Remark 2.2.1 in:
See also:
Last revised on March 5, 2023 at 13:31:10. See the history of this page for a list of all contributions to it.