19. 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.
- 19.1. Natural Numbers
- 19.2. Integers
- 19.3. Finite Natural Numbers
- 19.4. Fixed-Precision Integers
- 19.5. Bitvectors
- 19.6. Floating-Point Numbers
- 19.7. Characters
- 19.8. Strings
- 19.9. The Unit Type
- 19.10. The Empty Type
- 19.11. Booleans
- 19.12. Optional Values
- 19.13. Tuples
- 19.14. Sum Types
- 19.15. Linked Lists
- 19.16. Arrays
- 19.17. Subtypes
- 19.18. Lazy Computations
