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