请输入您要查询的字词:

 

单词 13UniversesAndFamilies
释义

1.3 Universes and Families


So far, we have been using the expression “A is a type” informally. Weare going to make this more precise by introducing universesPlanetmathPlanetmath.A universe is a type whose elements are types. As in naive set theory,we might wish for a universe of all types 𝒰 including itself(that is, with 𝒰:𝒰).However, as in settheoryMathworldPlanetmath, this is unsound, i.e. we can deduce from it that every type,including the empty type representing the propositionPlanetmathPlanetmathPlanetmath False (see §1.7 (http://planetmath.org/17coproducttypes)), is inhabited.For instance, using arepresentation of sets as trees, we can directly encode Russell’sparadoxMathworldPlanetmath [1].

To avoid the paradox we introduce a hierarchy of universes

𝒰0:𝒰1:𝒰2:

where every universe 𝒰i is an element of the next universe𝒰i+1. Moreover, we assume that our universes arecumulative,that is that all the elements of the ithuniverse are also elements of the (i+1)st universe, i.e. ifA:𝒰i then also A:𝒰i+1.This is convenient, but has the slightly unpleasant consequence that elements no longer have unique types, and is a bit tricky in other ways that need not concern us here; see the Notes.

When we say that A is a type, we mean that it inhabits some universe𝒰i. We usually want to avoid mentioning the leveli explicitly,and just assume that levels can be assigned in a consistent way; thus wemay write A:𝒰 omitting the level. This way we can even write𝒰:𝒰, which can be read as 𝒰i:𝒰i+1, having left theindices implicit. Writing universes in this style is referred to astypical ambiguity.It is convenient but a bit dangerous, since it allows us to write valid-looking proofs that reproduce the paradoxes of self-reference.If there is any doubt about whether an argument is correct, the way to check it is to try to assign levels consistently to all universes appearing in it.When some universe 𝒰 is assumed, we may refer to types belonging to 𝒰 as small types.

To model a collectionMathworldPlanetmath of types varying over a given type A, we use functionsMathworldPlanetmath B:A𝒰 whosecodomain is a universe. These functions are calledfamilies of types (or sometimes dependent types);they correspond to families of sets as used inset theory.

An example of a type family is the family of finite setsMathworldPlanetmath 𝖥𝗂𝗇:𝒰, where 𝖥𝗂𝗇(n) is a type with exactly n elements.(We cannot define the family 𝖥𝗂𝗇 yet — indeed, we have not even introduced its domain yet — but we will be able to soon; see \\autorefex:fin.)We may denote the elements of 𝖥𝗂𝗇(n) by 0n,1n,,(n-1)n, with subscripts to emphasize that the elements of 𝖥𝗂𝗇(n) are different from those of 𝖥𝗂𝗇(m) if n is different from m, and all are different from the ordinary natural numbersMathworldPlanetmath (which we will introduce in §1.9 (http://planetmath.org/19thenaturalnumbers)).

A more trivial (but very important) example of a type family is the constant type familyat a type B:𝒰, which is of course the constant functionMathworldPlanetmath (λ(x:A).B):A𝒰.

As a non-example, in our version of type theoryPlanetmathPlanetmath there is no type family “λ(i:).𝒰i”.Indeed, there is no universe large enough to be its codomain.Moreover, we do not even identify the indices i of the universes 𝒰i with the natural numbers of type theory (the latter to be introduced in §1.9 (http://planetmath.org/19thenaturalnumbers)).

References

  • 1 Coquand,Thierry. The paradox of trees in type theory. BIT Numerical Mathematics, 32:10–14 1992
随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/4 19:19:43