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.

  1. 14.1. Natural Numbers
  2. 14.2. Integers
  3. 14.3. Finite Natural Numbers
  4. 14.4. Fixed-Precision Integer Types
  5. 14.5. Bitvectors
  6. 14.6. Floating-Point Numbers
  7. 14.7. Characters
  8. 14.8. Strings
  9. 14.9. The Unit Type
  10. 14.10. The Empty Type
  11. 14.11. Booleans
  12. 14.12. Optional Values
  13. 14.13. Tuples
  14. 14.14. Sum Types
  15. 14.15. Linked Lists
  16. 14.16. Arrays
  17. 14.17. Subtypes
  18. 14.18. Lazy Computations
  19. 14.19. Tasks and Threads