Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
This PR implements hover information for `grind` anchors. Anchors are stable hash codes for referencing terms in the grind state. The anchors will be used when auto generating tactic scripts. The hover display the following information: 1- In the `instantiate` tactic, it displays the type of the theorem being instantiated. <img width="952" height="125" alt="image" src="https://github.com/user-attachments/assets/be949b87-cf9b-4f75-abe0-17751295de93" /> 2- In the `cases` tactic, the hover information depends on the kind of case-split. a) Proposition <img width="1019" height="125" alt="image" src="https://github.com/user-attachments/assets/253e2927-f18e-49ab-a8fc-2144657406d8" /> b) A hypotheses. In this case, you can opt to replace the anchor with the hypothesis' name if it is accessible. <img width="1019" height="178" alt="image" src="https://github.com/user-attachments/assets/858b3751-4ef9-492d-a42f-c0743753a7de" /> c) A term. The hover displays just the type, by `grind` logs a silent information with additional information <img width="1376" height="148" alt="image" src="https://github.com/user-attachments/assets/30078ca4-a886-49d9-912e-866f3567b0da" /> |
||
|---|---|---|
| .claude/commands | ||
| .github | ||
| doc | ||
| images | ||
| releases_drafts | ||
| script | ||
| src | ||
| stage0 | ||
| tests | ||
| .gitattributes | ||
| .gitignore | ||
| .gitpod.Dockerfile | ||
| .gitpod.yml | ||
| .ignore | ||
| CMakeLists.txt | ||
| CMakePresets.json | ||
| CODEOWNERS | ||
| CONTRIBUTING.md | ||
| flake.lock | ||
| flake.nix | ||
| lean-toolchain | ||
| lean.code-workspace | ||
| LICENSE | ||
| LICENSES | ||
| README.md | ||
| RELEASES.md | ||
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.