11.Β 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.
-
11.1. Natural Numbers
- 11.1.1. Logical Model
- 11.1.2. Run-Time Representation
- 11.1.3. Syntax
- 11.1.4. API Reference
- 11.1.5. Simplification
- 11.2. Integers
- 11.3. Finite Natural Numbers
- 11.4. Fixed-Precision Integer Types
- 11.5. Bitvectors
- 11.6. Floating-Point Numbers
- 11.7. Characters
-
11.8. Strings
- 11.8.1. Logical Model
- 11.8.2. Run-Time Representation
- 11.8.3. Syntax
-
11.8.4. API Reference
- 11.8.4.1. Constructing
- 11.8.4.2. Conversions
- 11.8.4.3. Properties
- 11.8.4.4. Positions
- 11.8.4.5. Lookups and Modifications
- 11.8.4.6. Folds and Aggregation
- 11.8.4.7. Comparisons
- 11.8.4.8. Manipulation
- 11.8.4.9. Iterators
- 11.8.4.10. Substrings
- 11.8.4.11. Proof Automation
- 11.8.4.12. Metaprogramming
- 11.8.4.13. Encodings
- 11.8.5. FFI
- 11.9. The Unit Type
- 11.10. The Empty Type
- 11.11. Booleans
- 11.12. Optional Values
- 11.13. Tuples
- 11.14. Sum Types
- 11.15. Dependent Pairs
- 11.16. Linked Lists
-
11.17. Arrays
- 11.17.1. Logical Model
- 11.17.2. Run-Time Representation
- 11.17.3. Syntax
-
11.17.4. API Reference
- 11.17.4.1. Constructing Arrays
- 11.17.4.2. Size
- 11.17.4.3. Lookups
- 11.17.4.4. Conversions
- 11.17.4.5. Modification
- 11.17.4.6. Sorted Arrays
- 11.17.4.7. Iteration
- 11.17.4.8. Transformation
- 11.17.4.9. Filtering
- 11.17.4.10. Partitioning
- 11.17.4.11. Element Predicates
- 11.17.4.12. Comparisons
- 11.17.4.13. Termination Helpers
- 11.17.4.14. Proof Automation
- 11.17.5. Sub-Arrays
- 11.17.6. FFI
- 11.18. Subtypes
- 11.19. Lazy Computations
- 11.20. Tasks and Threads