请输入您要查询的百科知识:

 

词条 Quotient type
释义

  1. See also

In type theory, a kind of foundation of mathematics, a quotient type is an algebraic data type that represents a type whose equality relation has been redefined by a given equivalence relation such that the elements of the type are partitioned into a set of equivalence classes whose cardinality is less than or equal to that of the base type. Just as product types and sum types are analogous to the cartesian product and disjoint sum of abstract algebraic structures, quotient types reflect the concept of set-theoretic quotients, sets whose elements are surjectively partitioned into equivalence classes by a given equivalence relation on the set. Algebraic structures whose underlying set is a quotient are also termed quotients. Examples of such quotient structures include quotient sets, groups, rings, categories and, in topology, quotient spaces. For example, , the rational numbers, is the quotient ring – or "field of fractions" – of , the integers.

In type theories that lack quotient types, setoids – sets explicitly equipped with an equivalence relation – are often used instead.

See also

  • Algebraic data type
  • Product type
  • Sum type
  • Setoid
{{data types}}

3 : Data types|Type theory|Composite data types

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/10 7:37:28