Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
This PR adds a JSON schema for `lakefile.toml`. Importantly, this schema is *not* intended for validating `lakefile.toml`, but is instead optimized for auto-completion and hovers using the [Even Better TOML](https://marketplace.visualstudio.com/items?itemName=tamasfe.even-better-toml) VS Code extension. Once merged, I will attempt to contribute a link to this schema to the [JSON Schema store](https://github.com/SchemaStore/schemastore). When that is done, we can integrate the Lean 4 VS Code extension with Even Better TOML, providing us with language server support in `lakefile.toml`. The schema contributed by this PR has the following known deficiencies: - Superfluous properties do not produce an error. - The structure of complicated structures (e.g. path or version patterns) is deliberately not accurately reflected in the schema. Even Better TOML doesn't seem to handle these structures well in auto-completion. - Due to the lack of an accurate declarative spec of the lakefile.toml format and several deviations from the format to provide better auto-completions, this schema will have to be kept in sync manually with the code in Lake, at least for now. |
||
|---|---|---|
| .github | ||
| doc | ||
| images | ||
| nix | ||
| 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 Setting Up Lean.
Contributing
Please read our Contribution Guidelines first.
Building from Source
See Building Lean.