2014-08-01 17:37:55 +00:00
|
|
|
data
|
|
|
|
====
|
|
|
|
|
2014-08-15 03:12:54 +00:00
|
|
|
Various data types.
|
2014-08-01 17:37:55 +00:00
|
|
|
|
|
|
|
Basic types:
|
|
|
|
|
2014-08-12 00:35:25 +00:00
|
|
|
* [empty](empty.lean) : the empty type
|
2014-08-01 17:37:55 +00:00
|
|
|
* [unit](unit.lean) : the singleton type
|
2014-12-23 20:35:06 +00:00
|
|
|
* [bool](bool.lean) : the boolean values
|
|
|
|
* [num](num.lean) : generic numerals
|
2014-08-01 17:37:55 +00:00
|
|
|
* [string](string.lean) : ascii strings
|
|
|
|
* [nat](nat/nat.md) : the natural numbers
|
2014-12-22 20:33:29 +00:00
|
|
|
* [fin](fin.lean) : finite ordinals
|
2014-08-01 17:37:55 +00:00
|
|
|
* [int](int/int.md) : the integers
|
2015-06-05 10:34:49 +00:00
|
|
|
* [rat](rat/rat.md) : the rationals
|
2014-08-01 17:37:55 +00:00
|
|
|
|
|
|
|
Constructors:
|
|
|
|
|
2014-08-15 03:12:54 +00:00
|
|
|
* [prod](prod.lean) : cartesian product
|
|
|
|
* [sum](sum.lean)
|
|
|
|
* [sigma](sigma.lean) : the dependent product
|
2015-05-08 10:23:15 +00:00
|
|
|
* [uprod](uprod.lean) : unordered pairs
|
2014-08-01 17:37:55 +00:00
|
|
|
* [option](option.lean)
|
2014-08-15 03:12:54 +00:00
|
|
|
* [subtype](subtype.lean)
|
2014-08-20 02:32:44 +00:00
|
|
|
* [quotient](quotient/quotient.md)
|
2015-05-08 10:23:15 +00:00
|
|
|
* [squash](squash.lean) : propositional truncation
|
2014-08-01 17:37:55 +00:00
|
|
|
* [list](list/list.md)
|
2015-05-08 10:23:15 +00:00
|
|
|
* [finset](finset/finset.md) : finite sets
|
2015-05-25 12:13:23 +00:00
|
|
|
* [stream](stream.lean)
|
2015-04-05 13:27:15 +00:00
|
|
|
* [set](set/set.md)
|
2015-05-08 10:23:15 +00:00
|
|
|
* [vector](vector.lean)
|
|
|
|
|
|
|
|
Types with extra information:
|
|
|
|
|
2015-06-05 09:32:42 +00:00
|
|
|
* [fintype](fintype/fintype.md) : finite types
|
2015-05-08 10:23:15 +00:00
|
|
|
* [encodable](encodable.lean) : types with a coding to nat
|