mirror of
https://github.com/leanprover/lean4.git
synced 2026-03-17 18:34:06 +00:00
c86f82161abc7c13c99efaca5b7758ff3a2e4554
List/Array/Vector lemmas from human-eval-lean (#12405)
This PR adds several useful lemmas for `List`, `Array` and `Vector` whenever they were missing, improving API coverage and consistency among these types. - `size_singleton`/`sum_singleton`/`sum_push` - `foldlM_toArray`/`foldlM_toList`/`foldl_toArray`/`foldl_toList`/`foldrM_toArray`/`foldrM_toList`/`foldr_toList` - `toArray_toList` - `foldl_eq_apply_foldr`/`foldr_eq_apply_foldl`, `foldr_eq_foldl`: relates `foldl` and `foldr` for associative operations with identity - `sum_eq_foldl`: relates sum to `foldl` for associative operations with identity - `Perm.pairwise_iff`/`Perm.pairwise`: pairwise properties are preserved under permutations of arrays
This is the repository for Lean 4.
About
- Quickstart
- Homepage
- Theorem Proving Tutorial
- Functional Programming in Lean
- Documentation Overview
- Language Reference
- Release notes starting at v4.0.0-m3
- Examples
- External Contribution Guidelines
Installation
See Install Lean.
Contributing
Please read our Contribution Guidelines first.
Building from Source
See Building Lean.
Languages
Lean
94.3%
C++
4.1%
Python
0.6%
Shell
0.4%
CMake
0.3%