12.Β 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.
-
12.1. Natural Numbers
- 12.1.1. Logical Model
- 12.1.2. Run-Time Representation
- 12.1.3. Syntax
- 12.1.4. API Reference
- 12.1.5. Simplification
- 12.2. Integers
- 12.3. Finite Natural Numbers
- 12.4. Fixed-Precision Integer Types
- 12.5. Bitvectors
- 12.6. Floating-Point Numbers
- 12.7. Characters
-
12.8. Strings
- 12.8.1. Logical Model
- 12.8.2. Run-Time Representation
- 12.8.3. Syntax
-
12.8.4. API Reference
- 12.8.4.1. Constructing
- 12.8.4.2. Conversions
- 12.8.4.3. Properties
- 12.8.4.4. Positions
- 12.8.4.5. Lookups and Modifications
- 12.8.4.6. Folds and Aggregation
- 12.8.4.7. Comparisons
- 12.8.4.8. Manipulation
- 12.8.4.9. Iterators
- 12.8.4.10. Substrings
- 12.8.4.11. Proof Automation
- 12.8.4.12. Metaprogramming
- 12.8.4.13. Encodings
- 12.8.5. FFI
- 12.9. The Unit Type
- 12.10. The Empty Type
- 12.11. Booleans
- 12.12. Optional Values
- 12.13. Tuples
- 12.14. Sum Types
- 12.15. Dependent Pairs
- 12.16. Linked Lists
-
12.17. Arrays
- 12.17.1. Logical Model
- 12.17.2. Run-Time Representation
- 12.17.3. Syntax
-
12.17.4. API Reference
- 12.17.4.1. Constructing Arrays
- 12.17.4.2. Size
- 12.17.4.3. Lookups
- 12.17.4.4. Conversions
- 12.17.4.5. Modification
- 12.17.4.6. Sorted Arrays
- 12.17.4.7. Iteration
- 12.17.4.8. Transformation
- 12.17.4.9. Filtering
- 12.17.4.10. Partitioning
- 12.17.4.11. Element Predicates
- 12.17.4.12. Comparisons
- 12.17.4.13. Termination Helpers
- 12.17.4.14. Proof Automation
- 12.17.5. Sub-Arrays
- 12.17.6. FFI
- 12.18. Subtypes
- 12.19. Lazy Computations
- 12.20. Tasks and Threads