mirror of
https://github.com/leanprover/lean4.git
synced 2026-03-17 18:34:06 +00:00
03a5db34c77db5266d21af56469ba43c9965d341
String.Slice.Pos.cast (#12771)
This PR generalizes `String.Slice.Pos.cast`, which turns an `s.Pos` into a `t.Pos`, to no longer require `s = t`, but merely `s.copy = t.copy`. This is a breaking change, but one that is easy to adapt to, by replacing `proof` with `congrArg Slice.copy proof` where required.
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%