14.Β Basic Types
Lean includes a number of built-in types that are specially supported by the compiler.
Some, such as Nat
, additionally have special support in the kernel.
Other types don't have special compiler support per se, but rely in important ways on the internal representation of types for performance reasons.
- 14.1. Natural Numbers
- 14.2. Integers
- 14.3. Finite Natural Numbers
- 14.4. Fixed-Precision Integer Types
- 14.5. Bitvectors
- 14.6. Floating-Point Numbers
- 14.7. Characters
- 14.8. Strings
- 14.9. The Unit Type
- 14.10. The Empty Type
- 14.11. Booleans
- 14.12. Optional Values
- 14.13. Tuples
- 14.14. Sum Types
- 14.15. Linked Lists
- 14.16. Arrays
- 14.17. Subtypes
- 14.18. Lazy Computations
- 14.19. Tasks and Threads