9.Β 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.
- 9.1. Natural Numbers
- 9.2. Integers
- 9.3. Fixed-Precision Integer Types
- 9.4. Bitvectors
- 9.5. Floating-Point Numbers
- 9.6. Characters
-
9.7. Strings
- 9.7.1. Logical Model
- 9.7.2. Run-Time Representation
- 9.7.3. Syntax
-
9.7.4. API Reference
- 9.7.4.1. Constructing
- 9.7.4.2. Conversions
- 9.7.4.3. Properties
- 9.7.4.4. Positions
- 9.7.4.5. Lookups and Modifications
- 9.7.4.6. Folds and Aggregation
- 9.7.4.7. Comparisons
- 9.7.4.8. Manipulation
- 9.7.4.9. Iterators
- 9.7.4.10. Substrings
- 9.7.4.11. Proof Automation
- 9.7.4.12. Metaprogramming
- 9.7.4.13. Encodings
- 9.7.5. FFI
- 9.8. The Unit Type
- 9.9. Booleans
- 9.10. Linked Lists
-
9.11. Arrays
- 9.11.1. Logical Model
- 9.11.2. Run-Time Representation
- 9.11.3. Syntax
-
9.11.4. API Reference
- 9.11.4.1. Constructing Arrays
- 9.11.4.2. Size
- 9.11.4.3. Lookups
- 9.11.4.4. Conversions
- 9.11.4.5. Modification
- 9.11.4.6. Sorted Arrays
- 9.11.4.7. Iteration
- 9.11.4.8. Transformation
- 9.11.4.9. Filtering
- 9.11.4.10. Partitioning
- 9.11.4.11. Element Predicates
- 9.11.4.12. Comparisons
- 9.11.4.13. Termination Helpers
- 9.11.4.14. Proof Automation
- 9.11.5. Sub-Arrays
- 9.11.6. FFI
- 9.12. Lazy Computations
- 9.13. Tasks and Threads