Type theory explained

In mathematics and theoretical computer science, a type theory is the formal presentation of a specific type system. Type theory is the academic study of type systems.

Some type theories serve as alternatives to set theory as a foundation of mathematics. Two influential type theories that have been proposed as foundations are:

Most computerized proof-writing systems use a type theory for their foundation. A common one is Thierry Coquand's Calculus of Inductive Constructions.

History

See main article: History of type theory. Type theory was created to avoid a paradox in a mathematical equation based on naive set theory and formal logic. Russell's paradox (first described in Gottlob Frege's The Foundations of Arithmetic) is that, without proper axioms, it is possible to define the set of all sets that are not members of themselves; this set both contains itself and does not contain itself. Between 1902 and 1908, Bertrand Russell proposed various solutions to this problem.

By 1908, Russell arrived at a ramified theory of types together with an axiom of reducibility, both of which appeared in Whitehead and Russell's Principia Mathematica published in 1910, 1912, and 1913. This system avoided contradictions suggested in Russell's paradox by creating a hierarchy of types and then assigning each concrete mathematical entity to a specific type. Entities of a given type were built exclusively of subtypes of that type, thus preventing an entity from being defined using itself. This resolution of Russell's paradox is similar to approaches taken in other formal systems, such as Zermelo-Fraenkel set theory.[1]

Type theory is particularly popular in conjunction with Alonzo Church's lambda calculus. One notable early example of type theory is Church's simply typed lambda calculus. Church's theory of types[2] helped the formal system avoid the Kleene–Rosser paradox that afflicted the original untyped lambda calculus. Church demonstrated that it could serve as a foundation of mathematics and it was referred to as a higher-order logic.

In the modern literature, "type theory" refers to a typed system based around lambda calculus. One influential system is Per Martin-Löf's intuitionistic type theory, which was proposed as a foundation for constructive mathematics. Another is Thierry Coquand's calculus of constructions, which is used as the foundation by Coq, Lean, and other computer proof assistants. Type theory is an active area of research, one direction being the development of homotopy type theory.

Applications

Mathematical foundations

The first computer proof assistant, called Automath, used type theory to encode mathematics on a computer. Martin-Löf specifically developed intuitionistic type theory to encode all mathematics to serve as a new foundation for mathematics. There is ongoing research into mathematical foundations using homotopy type theory.

Mathematicians working in category theory already had difficulty working with the widely accepted foundation of Zermelo–Fraenkel set theory. This led to proposals such as Lawvere's Elementary Theory of the Category of Sets (ETCS). Homotopy type theory continues in this line using type theory. Researchers are exploring connections between dependent types (especially the identity type) and algebraic topology (specifically homotopy).

Proof assistants

See main article: Proof assistant. Much of the current research into type theory is driven by proof checkers, interactive proof assistants, and automated theorem provers. Most of these systems use a type theory as the mathematical foundation for encoding proofs, which is not surprising, given the close connection between type theory and programming languages:

Many type theories are supported by LEGO and Isabelle. Isabelle also supports foundations besides type theories, such as ZFC. Mizar is an example of a proof system that only supports set theory.

Programming languages

Any static program analysis, such as the type checking algorithms in the semantic analysis phase of compiler, has a connection to type theory. A prime example is Agda, a programming language which uses UTT (Luo's Unified Theory of dependent Types) for its type system.

The programming language ML was developed for manipulating type theories (see LCF) and its own type system was heavily influenced by them.

Linguistics

Type theory is also widely used in formal theories of semantics of natural languages,[3] [4] especially Montague grammar[5] and its descendants. In particular, categorial grammars and pregroup grammars extensively use type constructors to define the types (noun, verb, etc.) of words.

The most common construction takes the basic types

e

and

t

for individuals and truth-values, respectively, and defines the set of types recursively as follows:

a

and

b

are types, then so is

\langlea,b\rangle

;

A complex type

\langlea,b\rangle

is the type of functions from entities of type

a

to entities of type

b

. Thus one has types like

\langlee,t\rangle

which are interpreted as elements of the set of functions from entities to truth-values, i.e. indicator functions of sets of entities. An expression of type

\langle\langlee,t\rangle,t\rangle

is a function from sets of entities to truth-values, i.e. a (indicator function of a) set of sets. This latter type is standardly taken to be the type of natural language quantifiers, like everybody or nobody (Montague 1973, Barwise and Cooper 1981).[6]

Type theory with records is a formal semantics representation framework, using records to express type theory types. It has been used in natural language processing, principally computational semantics and dialogue systems.[7] [8]

Social sciences

Gregory Bateson introduced a theory of logical types into the social sciences; his notions of double bind and logical levels are based on Russell's theory of types.

Type theory as a logic

\varphi

is true", or "The formula

\varphi

is a well-formed formula".[9] A type theory has judgments that define types and assign them to a collection of formal objects, known as terms. A term and its type are often written together as

term:type

.

Terms

A term in logic is recursively defined as a constant symbol, variable, or a function application, where a term is applied to another term. Constant symbols could include the natural number

0

, the Boolean value

true

, and functions such as the successor function

S

and conditional operator

if

. Thus some terms could be

0

,

(S0)

,

(S(S0))

, and

(iftrue0(S0))

.

Judgments

Most type theories have 4 judgments:

T

is a type"

t

is a term of type

T

"

T1

is equal to type

T2

"

t1

and

t2

both of type

T

are equal"

Judgments may follow from assumptions. For example, one might say "assuming

x

is a term of type

bool

and

y

is a term of type

nat

, it follows that

(ifxyy)

is a term of type

nat

". Such judgments are formally written with the turnstile symbol

\vdash

.

x:bool,y:nat\vdash(rm{if}xyy):nat

If there are no assumptions, there will be nothing to the left of the turnstile.

\vdashS:nat\tonat

The list of assumptions on the left is the context of the judgment. Capital greek letters, such as

\Gamma

and

\Delta

, are common choices to represent some or all of the assumptions. The 4 different judgments are thus usually written as follows.
Formal notation for judgments Description

\Gamma\vdashT

Type

T

is a type (under assumptions

\Gamma

).

\Gamma\vdasht:T

t

is a term of type

T

(under assumptions

\Gamma

).

\Gamma\vdashT1=T2

Type

T1

is equal to type

T2

(under assumptions

\Gamma

).

\Gamma\vdasht1=t2:T

Terms

t1

and

t2

are both of type

T

and are equal (under assumptions

\Gamma

).

Some textbooks use a triple equal sign

\equiv

to stress that this is judgmental equality and thus an extrinsic notion of equality.[10] The judgments enforce that every term has a type. The type will restrict which rules can be applied to a term.

Rules of Inference

\Gamma

,

\Delta

,

t

,

T1

, and

T2

may actually consist of complex terms and types that contain many function applications, not just single symbols.

To generate a particular judgment in type theory, there must be a rule to generate it, as well as rules to generate all of that rule's required inputs, and so on. The applied rules form a proof tree, where the top-most rules need no assumptions. One example of a rule that does not require any inputs is one that states the type of a constant term. For example, to assert that there is a term

0

of type

nat

, one would write the following.\begin\hline\vdash 0 : nat \\\end

Type inhabitation

See main article: Type inhabitation. Generally, the desired conclusion of a proof in type theory is one of type inhabitation.[12] The decision problem of type inhabitation (abbreviated by

\existst.\Gamma\vdasht:\tau?

) is:

Given a context

\Gamma

and a type

\tau

, decide whether there exists a term

t

that can be assigned the type

\tau

in the type environment

\Gamma

.Girard's paradox shows that type inhabitation is strongly related to the consistency of a type system with Curry–Howard correspondence. To be sound, such a system must have uninhabited types.

A type theory usually has several rules, including ones to:

Also, for each "by rule" type, there are 4 different kinds of rules

For examples of rules, an interested reader may follow Appendix A.2 of the Homotopy Type Theory book, or read Martin-Löf's Intuitionistic Type Theory.[13]

Connections to foundations

The logical framework of a type theory bears a resemblance to intuitionistic, or constructive, logic. Formally, type theory is often cited as an implementation of the Brouwer–Heyting–Kolmogorov interpretation of intuitionistic logic. Additionally, connections can be made to category theory and computer programs.

Intuitionistic logic

When used as a foundation, certain types are interpreted to be propositions (statements that can be proven), and terms inhabiting the type are interpreted to be proofs of that proposition. When some types are interpreted as propositions, there is a set of common types that can be used to connect them to make a Boolean algebra out of types. However, the logic is not classical logic but intuitionistic logic, which is to say it does not have the law of excluded middle nor double negation.

Under this intuitionistic interpretation, there are common types that act as the logical operators:

Logic Name Logic Notation Type Notation Type Name
True

\top

\top

Unit Type
False

\bot

\bot

Empty Type
Implication

A\toB

A\toB

Function
Not

\negA

A\to\bot

Function to Empty Type
And

A\landB

A x B

Product Type
Or

A\lorB

A+B

Sum Type
For All

\foralla\inA,P(a)

\Pia:A.P(a)

Dependent Product
Exists

\existsa\inA,P(a)

\Sigmaa:A.P(a)

Dependent Sum

Because the law of excluded middle does not hold, there is no term of type

\Pia.A+(A\to\bot)

. Likewise, double negation does not hold, so there is no term of type

\PiA.((A\to\bot)\to\bot)\toA

.

It is possible to include the law of excluded middle and double negation into a type theory, by rule or assumption. However, terms may not compute down to canonical terms and it will interfere with the ability to determine if two terms are judgementally equal to each other.

Constructive mathematics

Per Martin-Löf proposed his intuitionistic type theory as a foundation for constructive mathematics. Constructive mathematics requires when proving "there exists an

x

with property

P(x)

", one must construct a particular

x

and a proof that it has property

P

. In type theory, existence is accomplished using the dependent product type, and its proof requires a term of that type.

An example of a non-constructive proof is proof by contradiction. The first step is assuming that

x

does not exist and refuting it by contradiction. The conclusion from that step is "it is not the case that

x

does not exist". The last step is, by double negation, concluding that

x

exists. Constructive mathematics does not allow the last step of removing the double negation to conclude that

x

exists.[14]

Most of the type theories proposed as foundations are constructive, and this includes most of the ones used by proof assistants. It is possible to add non-constructive features to a type theory, by rule or assumption. These include operators on continuations such as call with current continuation. However, these operators tend to break desirable properties such as canonicity and parametricity.

Curry-Howard correspondence

The Curry–Howard correspondence is the observed similarity between logics and programming languages. The implication in logic, "A

\to

B" resembles a function from type "A" to type "B". For a variety of logics, the rules are similar to expressions in a programming language's types. The similarity goes farther, as applications of the rules resemble programs in the programming languages. Thus, the correspondence is often summarized as "proofs as programs".

The opposition of terms and types can also be viewed as one of implementation and specification. By program synthesis, (the computational counterpart of) type inhabitation can be used to construct (all or parts of) programs from the specification given in the form of type information.[15]

Type inference

See main article: Type inference.

Many programs that work with type theory (e.g., interactive theorem provers) also do type inferencing. It lets them select the rules that the user intends, with fewer actions by the user.

Research areas

Category theory

Main article: Category theory

Although the initial motivation for category theory was far removed from foundationalism, the two fields turned out to have deep connections. As John Lane Bell writes: "In fact categories can themselves be viewed as type theories of a certain kind; this fact alone indicates that type theory is much more closely related to category theory than it is to set theory." In brief, a category can be viewed as a type theory by regarding its objects as types (or sorts), i.e. "Roughly speaking, a category may be thought of as a type theory shorn of its syntax." A number of significant results follow in this way:[16]

The interplay, known as categorical logic, has been a subject of active research since then; see the monograph of Jacobs (1999) for instance.

Homotopy type theory

Homotopy type theory attempts to combine type theory and category theory. It focuses on equalities, especially equalities between types. Homotopy type theory differs from intuitionistic type theory mostly by its handling of the equality type. In 2016 cubical type theory was proposed, which is a homotopy type theory with normalization.[17]

Definitions

Terms and types

Atomic terms

The most basic types are called atoms, and a term whose type is an atom is known as an atomic term. Common atomic terms included in type theories are natural numbers, often notated with the type

nat

, Boolean logic values (

true

/

false

), notated with the type

bool

, and formal variables, whose type may vary. For example, the following may be atomic terms.

42:nat

true:bool

x:nat

y:bool

Function terms

In addition to atomic terms, most modern type theories also allow for functions. Function types introduce an arrow symbol, and are defined inductively: If

\sigma

and

\tau

are types, then the notation

\sigma\to\tau

is the type of a function which takes a parameter of type

\sigma

and returns a term of type

\tau

. Types of this form are known as simple types.

Some terms may be declared directly as having a simple type, such as the following term,

add

, which takes in two natural numbers in sequence and returns one natural number.

add:nat\to(nat\tonat)

Strictly speaking, a simple type only allows for one input and one output, so a more faithful reading of the above type is that

add

is a function which takes in a natural number and returns a function of the form

nat\tonat

. The parentheses clarify that

add

does not have the type

(nat\tonat)\tonat

, which would be a function which takes in a function of natural numbers and returns a natural number. The convention is that the arrow is right associative, so the parentheses may be dropped from

add

's type.

Lambda terms

New function terms may be constructed using lambda expressions, and are called lambda terms. These terms are also defined inductively: a lambda term has the form

(λv.t)

, where

v

is a formal variable and

t

is a term, and its type is notated

\sigma\to\tau

, where

\sigma

is the type of

v

, and

\tau

is the type of

t

. The following lambda term represents a function which doubles an input natural number.

(λx.addxx):nat\tonat

The variable is

x

and (implicit from the lambda term's type) must have type

nat

. The term

addxx

has type

nat

, which is seen by applying the function application inference rule twice. Thus, the lambda term has type

nat\tonat

, which means it is a function taking a natural number as an argument and returning a natural number.

A lambda term is often referred to as an anonymous function because it lacks a name. The concept of anonymous functions appears in many programming languages.

Inference Rules

Function application

The power of type theories is in specifying how terms may be combined by way of inference rules. Type theories which have functions also have the inference rule of function application: if

t

is a term of type

\sigma\to\tau

, and

s

is a term of type

\sigma

, then the application of

t

to

s

, often written

(ts)

, has type

\tau

. For example, if one knows the type notations

0:sf{nat}

,

1:sf{nat}

, and

2:sf{nat}

, then the following type notations can be deduced from function application.

(add1):sf{nat}\tosf{nat}

((add2)0):sf{nat}

((add1)((add2)0)):sf{nat}

Parentheses indicate the order of operations; however, by convention, function application is left associative, so parentheses can be dropped where appropriate. In the case of the three examples above, all parentheses could be omitted from the first two, and the third may simplified to

add1(add20):sf{nat}

.

Reductions

Type theories that allow for lambda terms also include inference rules known as

\beta

-reduction and

η

-reduction. They generalize the notion of function application to lambda terms. Symbolically, they are written

(λv.t)st[v\colon=s]

(

\beta

-reduction).

(λv.tv)t

, if

v

is not a free variable in

t

(

η

-reduction).

The first reduction describes how to evaluate a lambda term: if a lambda expression

(λv.t)

is applied to a term

s

, one replaces every occurrence of

v

in

t

with

s

. The second reduction makes explicit the relationship between lambda expressions and function types: if

(λv.tv)

is a lambda term, then it must be that

t

is a function term because it is being applied to

v

. Therefore, the lambda expression is equivalent to just

t

, as both take in one argument and apply

t

to it.

For example, the following term may be

\beta

-reduced.

(λx.addxx)2 → add22

In type theories that also establish notions of equality for types and terms, there are corresponding inference rules of

\beta

-equality and

η

-equality.

Common terms and types

Empty type

The empty type has no terms. The type is usually written

\bot

or

0

. One use for the empty type is proofs of type inhabitation. If for a type

a

, it is consistent to derive a function of type

a\to\bot

, then

a

is uninhabited, which is to say it has no terms.

Unit type

The unit type has exactly 1 canonical term. The type is written

\top

or

1

and the single canonical term is written

\ast

. The unit type is also used in proofs of type inhabitation. If for a type

a

, it is consistent to derive a function of type

\top\toa

, then

a

is inhabited, which is to say it must have one or more terms.

Boolean type

The Boolean type has exactly 2 canonical terms. The type is usually written

sf{bool}

or

B

or

2

. The canonical terms are usually

true

and

false

.

Natural numbers

Natural numbers are usually implemented in the style of Peano Arithmetic. There is a canonical term

0:nat

for zero. Canonical values larger than zero use iterated applications of a successor function

S:nat\tonat

.

Dependent typing

Some type theories allow for types of complex terms, such as functions or lists, to depend on the types of its arguments. For example, a type theory could have the dependent type

lista

, which should correspond to lists of terms, where each term must have type

a

. In this case,

list

has the type

U\toU

, where

U

denotes the universe of all types in the theory.

Some theories also permit types to be dependent on terms instead of types. For example, a theory could have the type

vectorn

, where

n

is a term of type

nat

encoding the length of the vector. This allows for greater specificity and type safety: functions with vector length restrictions or length matching requirements, such as the dot product, can encode this requirement as part of the type.

There are foundational issues that can arise from dependent types if a theory is not careful about what dependencies are allowed, such as Girard's Paradox. The logician Henk Barendegt introduced the lambda cube as a framework for studying various restrictions and levels of dependent typing.[18]

Product type

(s,t)

or with the symbol

x

. The pair

(s,t)

has the product type

\sigma x \tau

, where

\sigma

is the type of

s

and

\tau

is the type of

t

. The product type is usually defined with eliminator functions

first:(\Pi\sigma\tau.\sigma x \tau\to\sigma)

and

second:(\Pi\sigma\tau.\sigma x \tau\to\tau)

.

first(s,t)

returns

s

, and

second(s,t)

returns

t

.

Besides ordered pairs, this type is used for the concepts of logical conjunction and intersection.

Sum type

The sum type depends on two types, and it is commonly written with the symbol

+

or

\sqcup

. In programming languages, sum types may be referred to as tagged unions. The type

\sigma\sqcup\tau

is usually defined with constructors

left:\sigma\to(\sigma\sqcup\tau)

and

right:\tau\to(\sigma\sqcup\tau)

, which are injective, and an eliminator function

match:(\Pi\rho.(\sigma\to\rho)\to(\tau\to\rho)\to(\sigma\sqcup\tau)\to\rho)

such that

matchfg(leftx)

returns

fx

, and

matchfg(righty)

returns

gy

.

The sum type is used for the concepts of logical disjunction and union.

Dependent products and sums

Two common type dependencies, dependent product and dependent sum types, allow for the theory to encode BHK intuitionistic logic by acting as equivalents to universal and existential quantification; this is formalized by Curry–Howard Correspondence. As they also connect to products and sums in set theory, they are often written with the symbols

\Pi

and

\Sigma

, respectively. Dependent product and sum types commonly appear in function types and are frequently incorporated in programming languages.

For example, consider a function

append

, which takes in a

lista

and a term of type

a

, and returns the list with the element at the end. The type annotation of such a function would be

append:(\Pia.lista\toa\tolista)

, which can be read as "for any type

a

, pass in a

lista

and an

a

, and return a

lista

".

Sum types are seen in dependent pairs, where the second type depends on the value of the first term. This arises naturally in computer science where functions may return different types of outputs based on the input. For example, the Boolean type is usually defined with an eliminator function

if

, which takes three arguments and behaves as follows.

iftruexy

returns

x

, and

iffalsexy

returns

y

.The return type of this function depends on its

bool

input. If the type theory allows for dependent types, then it is possible to define a function

TF\colonbool\toU\toU\toU

such that

TFtrue\sigma\tau

returns

\sigma

, and

TFfalse\sigma\tau

returns

\tau

.

The type of

if

may then be written as

(\Pi\sigma\tau.bool\to\sigma\to\tau\to(\Sigmax:sf{bool}.TFx\sigma\tau))

.

Identity type

Following the notion of Curry-Howard Correspondence, the identity type is a type introduced to mirror propositional equivalence, as opposed to the judgmental (syntactic) equivalence that type theory already provides.

An identity type requires two terms of the same type and is written with the symbol

=

. For example, if

x+1

and

1+x

are terms, then

x+1=1+x

is a possible type. Canonical terms are created with a reflexivity function,

refl

. For a term

t

, the call

reflt

returns the canonical term inhabiting the type

t=t

.

The complexities of equality in type theory make it an active research topic; homotopy type theory is a notable area of research that mainly deals with equality in type theory.

Inductive types

Inductive types are a general template for creating a large variety of types. In fact, all the types described above and more can be defined using the rules of inductive types. Two methods of generating inductive types are induction-recursion and induction-induction. A method that only uses lambda terms is Scott encoding.

Some proof assistants, such as Coq and Lean, are based on the calculus for inductive constructions, which is a calculus of constructions with inductive types.

Differences from set theory

The most commonly accepted foundation for mathematics is first-order logic with the language and axioms of Zermelo–Fraenkel set theory with the axiom of choice, abbreviated ZFC. Type theories having sufficient expressibility may also act as a foundation of mathematics. There are a number of differences between these two approaches.

x

is paired with a proof that the subset's property holds for

x

. Where a union would be used, type theory uses the sum type, which contains new canonical terms.

Proponents of type theory will also point out its connection to constructive mathematics through the BHK interpretation, its connection to logic by the Curry–Howard isomorphism, and its connections to Category theory.

Properties of type theories

Terms usually belong to a single type. However, there are set theories that define "subtyping".

Computation takes place by repeated application of rules. Many types of theories are strongly normalizing, which means that any order of applying the rules will always end in the same result. However, some are not. In a normalizing type theory, the one-directional computation rules are called "reduction rules", and applying the rules "reduces" the term. If a rule is not one-directional, it is called a "conversion rule".

Some combinations of types are equivalent to other combinations of types. When functions are considered "exponentiation", the combinations of types can be written similarly to algebraic identities.[19] Thus,

{0}+A\congA

,

{1} x A\congA

,

{1}+{1}\cong{2}

,

AB+C\congAB x AC

,

AB x \cong(AB)C

.

Axioms

Most type theories do not have axioms. This is because a type theory is defined by its rules of inference. This is a source of confusion for people familiar with Set Theory, where a theory is defined by both the rules of inference for a logic (such as first-order logic) and axioms about sets.

Sometimes, a type theory will add a few axioms. An axiom is a judgment that is accepted without a derivation using the rules of inference. They are often added to ensure properties that cannot be added cleanly through the rules.

Axioms can cause problems if they introduce terms without a way to compute on those terms. That is, axioms can interfere with the normalizing property of the type theory.[20]

Some commonly encountered axioms are:

The Axiom of Choice does not need to be added to type theory, because in most type theories it can be derived from the rules of inference. This is because of the constructive nature of type theory, where proving that a value exists requires a method to compute the value. The Axiom of Choice is less powerful in type theory than most set theories, because type theory's functions must be computable and, being syntax-driven, the number of terms in a type must be countable. (See .)

List of type theories

Major

Minor

Active research

See also

Further reading

External links

Introductory material

Advanced material

Notes and References

  1. Stanford Encyclopedia of Philosophy (rev. Mon Oct 12, 2020) Russell’s Paradox 3. Early Responses to the Paradox
  2. Alonzo Church. Alonzo. Church. A formulation of the simple theory of types. The Journal of Symbolic Logic. 5. 2. 56–68. 1940. 10.2307/2266170. 2266170. 15889861.
  3. Book: Chatzikyriakidis. Stergios. Modern Perspectives in Type-Theoretical Semantics. Luo. Zhaohui. 2017-02-07. Springer. 978-3-319-50422-3. en. 2022-07-29. 2023-08-10. https://web.archive.org/web/20230810074711/https://books.google.com/books?id=iEEUDgAAQBAJ. live.
  4. Book: Winter, Yoad. Elements of Formal Semantics: An Introduction to the Mathematical Theory of Meaning in Natural Language. 2016-04-08. Edinburgh University Press. 978-0-7486-7777-1. en. 2022-07-29. 2023-08-10. https://web.archive.org/web/20230810074717/https://books.google.com/books?id=aDRWDwAAQBAJ&q=%22formal+semantics%22+%22type+theory%22. live.
  5. Cooper, Robin. "Type theory and semantics in flux ." Handbook of the Philosophy of Science 14 (2012): 271-323.
  6. Barwise, Jon; Cooper, Robin (1981) Generalized quantifiers and natural language Linguistics and Philosophy 4 (2):159--219 (1981)
  7. Cooper. Robin. 2005. Records and Record Types in Semantic Theory. Journal of Logic and Computation. 15. 2. 99–112. 10.1093/logcom/exi004.
  8. Cooper, Robin (2010). Type theory and semantics in flux. Handbook of the Philosophy of Science. Volume 14: Philosophy of Linguistics. Elsevier.
  9. Martin-Löf . Per . 1987-12-01 . Truth of a proposition, evidence of a judgement, validity of a proof . Synthese . en . 73 . 3 . 407–420 . 10.1007/BF00484985 . 1573-0964.
  10. Book: The Univalent Foundations Program . Homotopy Type Theory: Univalent Foundations of Mathematics . Homotopy Type Theory . 2013.
  11. Web site: Smith . Peter . Types of proof system . live . https://ghostarchive.org/archive/20221009/https://www.logicmatters.net/resources/pdfs/ProofSystems.pdf . 2022-10-09 . 29 December 2021 . logicmatters.net.
  12. Book: Henk Barendregt . Lambda Calculus with Types . Wil Dekkers . Richard Statman . 20 June 2013 . Cambridge University Press . 978-0-521-76614-2 . 1–66.
  13. Web site: Rules to Martin-Löf's Intuitionistic Type Theory. 2022-01-22. 2021-10-21. https://web.archive.org/web/20211021231427/https://hott.github.io/HoTT-2019/images/mltt-rules.pdf. live.
  14. Web site: proof by contradiction. nlab. 29 December 2021. 13 August 2023. https://web.archive.org/web/20230813170132/https://ncatlab.org/nlab/show/proof+by+contradiction. live.
  15. Heineman . George T. . Bessai . Jan . Düdder . Boris . Rehof . Jakob . 2016 . A long and winding road towards modular synthesis . ISoLA 2016 . Lecture Notes in Computer Science . Springer . 9952 . 303–317 . 10.1007/978-3-319-47166-2_21 . 978-3-319-47165-5 . Leveraging Applications of Formal Methods, Verification and Validation: Foundational Techniques.
  16. Book: Bell, John L.. Handbook of the History of Logic. 6. Sets and Extensions in the Twentieth Century. 2012. Elsevier. 978-0-08-093066-4. Types, Sets and Categories. http://publish.uwo.ca/~jbell/types.pdf. Akihiro. Kanamory. 2012-11-03. 2018-04-17. https://web.archive.org/web/20180417105624/http://publish.uwo.ca/~jbell/types.pdf. live.
  17. Book: Sterling . Jonathan . 2021 36th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS) . Angiuli . Carlo . 2021-06-29 . IEEE . 978-1-6654-4895-6 . Rome, Italy . 1–15 . Normalization for Cubical Type Theory . 10.1109/LICS52264.2021.9470719 . 2022-06-21 . https://ieeexplore.ieee.org/document/9470719 . https://web.archive.org/web/20230813170127/https://ieeexplore.ieee.org/document/9470719 . 2023-08-13 . live . 2101.11479 . 231719089.
  18. Barendegt . Henk . April 1991 . Introduction to generalized type systems . . 1 . 2 . 125–154 . 10.1017/S0956796800020025 . Cambridge Core. 2066/17240 . free .
  19. Web site: Milewski. Bartosz. Programming with Math (Exploring Type Theory). YouTube. 2022-01-22. 2022-01-22. https://web.archive.org/web/20220122213434/https://www.youtube.com/watch?v=8AGWTWVOJ74. live.
  20. Web site: Axioms and Computation. Theorem Proving in Lean. 21 January 2022. 22 December 2021. https://web.archive.org/web/20211222130219/https://leanprover.github.io/theorem_proving_in_lean/axioms_and_computation.html. live.
  21. Web site: Axiom K. nLab. 2022-01-21. 2022-01-19. https://web.archive.org/web/20220119172036/http://nlab-pages.s3.us-east-2.amazonaws.com/nlab/show/axiom+K+(type+theory). live.
  22. Cohen. Cyril. Coquand. Thierry. Huber. Simon. Mörtberg. Anders. Cubical Type Theory: A constructive interpretation of the univalence axiom. 21st International Conference on Types for Proofs and Programs (TYPES 2015). 2016. 10.4230/LIPIcs.CVIT.2016.23. 31 January 2024. free . 1611.02108. https://ghostarchive.org/archive/20221009/https://www.cse.chalmers.se/~simonhu/papers/cubicaltt.pdf. 2022-10-09. live.