Contents
Contents
Idea
Type theory with shapes is a layered type theory consisting of a dependent type theory over a typed predicate logic with finite product types. The type layer of the typed predicate logic is called the cube layer, whose types are called cubes, the propositional logic layer of the typed predicate logic is called the tope layer, whose types are called topes, and the type layer of the dependent type theory is called the type layer, whose types are called types. Shapes are then built out of cubes and topes.
Type theory with shapes is used in some formalizations of simplicial type theory and cubical type theory.
Syntax
With three layers
Cube layer
The cube layer is a type theory which consists of finite product types.
Tope layer
The tope layer is an intuitionistic logic over the cube layer, and the types in the tope layer are called topes because they can be interpreted as polytopes embedded in a cube. There is a tope representing equality of terms of cubes, called the equality tope and given the symbol for cube . The equality tope is used to define the eta and beta conversion rules for finite product cubes.
Shapes
Shapes are a cube with a tope in the context of a term of the cube
Type layer
This type layer is a dependent type theory with some notion of identity type, dependent product type, dependent sum type, and higher inductive types, as well as judgmental equality to reflect the equality tope of the tope layer, and cube contexts and tope contexts in addition to the usual type contexts. The beta conversion and eta conversion rules for the types may either be typal or judgmental. In addition, there is no equality reflection rule, which makes the dependent type theory an intensional type theory.
Extension types
Formation rules for non-dependent extension types
With two layers
It is also possible to combine the cube layer and the tope layer together into one layer of shapes, just as in traditional mathematics it is possible to combine the set layer and the logic layer into one layer of types:
Shape layer
The shape layer is a dependent type theory which consists of identity types, dependent sum types, dependent product types, empty type, unit type, propositional truncations, booleans type, quotient sets, and axiom K or uniqueness of identity proofs. This is enough to define cofibrations used for extension types as well as the coherent theory of the interval used for simplicial type theory.
Type layer
This type layer is a dependent type theory with some notion of identity type, dependent product type, dependent sum type, and higher inductive types, as well as judgmental equality to reflect the identity type of the shape layer, and shape contexts in addition to the usual type contexts. The beta conversion and eta conversion rules for the types may either be typal or judgmental.
We also state the rules in such a way that the following substitution rule is admissible:
We also have a rule which states that the identity type in the shape layer behaves like judgmental equality in the type layer
Finally, we have rules which states that the type theory in the type layer respects the type theory in the shape layer. This means that we have additional elimination, computation, and uniqueness rules for all the positive types in the shape layer:
Elimination rules for the empty shape
Uniqueness rules for the empty shape
Cofibrations and extension types
A cofibration is a shape inclusion, which means shapes and and an embedding of shapes .
Formation rules for dependent extension types
Introduction rules for dependent extension types
Elimination rules for dependent extension types
Computation rules for dependent extension types
Uniqueness rules for dependent extension types
See also
References