18. 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.
- 18.1. Natural Numbers
- 18.2. Integers
- 18.3. Finite Natural Numbers
- 18.4. Fixed-Precision Integers
- 18.5. Bitvectors
- 18.6. Floating-Point Numbers
- 18.7. Characters
- 18.8. Strings
- 18.9. The Unit Type
- 18.10. The Empty Type
- 18.11. Booleans
- 18.12. Optional Values
- 18.13. Tuples
- 18.14. Sum Types
- 18.15. Linked Lists
- 18.16. Arrays
- 18.17. Subtypes
- 18.18. Lazy Computations