Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
Find a file
Leonardo de Moura 9ba65fee83 fix: a coercion around an output parameter (and promotion to synthetic opaque) should only be used if there in no other way to infer parameter
We need this refinement for declarations such as
```
def add_one {X} [Trait X] [One (Trait.R X)] [HAdd X (Trait.R X) X] (x : X) : X := x + (One.one : (Trait.R X))
```
from test 948.lean
2022-07-06 16:38:39 -07:00
.github chore: Nix: use --deps-json for faster, single IFD per package 2022-07-06 16:12:30 +02:00
.vscode doc: fix some syntax and link in the docs, and more 2021-10-10 11:36:43 +02:00
doc doc: update LeanInk 2022-07-03 17:56:51 +02:00
images
nix chore: Nix: use --deps-json for faster, single IFD per package 2022-07-06 16:12:30 +02:00
script chore: update script/reformat.lean 2022-05-13 11:55:44 +02:00
src fix: a coercion around an output parameter (and promotion to synthetic opaque) should only be used if there in no other way to infer parameter 2022-07-06 16:38:39 -07:00
stage0 chore: update stage0 2022-07-06 16:12:30 +02:00
tests fix: bug at withAssignableSyntheticOpaque 2022-07-06 15:24:17 -07:00
.gitattributes chore: fix changelog path... 2022-02-09 09:42:17 +01:00
.gitignore fix: UTF-8 file path support for lean on Windows 2021-09-22 12:21:52 +02:00
.gitmodules chore: add ignore = untracked 2021-10-18 14:39:43 -07:00
.ignore chore: ignore stage0/ (for rg etc.) 2022-03-18 15:28:20 +01:00
CMakeLists.txt fix: forward USE_GMP to stage 0 2021-12-02 15:52:48 +01:00
CONTRIBUTING.md doc: fix a few links 2021-11-09 09:55:11 +01:00
default.nix doc: setup 2021-01-03 13:21:58 +01:00
flake.lock chore: nix flake update 2022-06-03 13:41:04 +02:00
flake.nix chore: Nix: fix stage0-from-input 2022-06-27 22:37:02 +02:00
LICENSE chore: remove LICENSE header that confused GitHub 2021-11-18 09:42:35 +01:00
LICENSES chore: add GMP license for now 2021-11-18 09:42:35 +01:00
README.md doc: add new bullet 2022-06-30 19:17:29 -07:00
RELEASES.md chore: update Lake 2022-07-05 17:27:41 -07:00
shell.nix chore: update benchmark suite 2022-05-25 18:26:36 +02:00

This is the repository for Lean 4, which is currently being released as milestone releases towards a first stable release. Lean 3 is still the latest stable release.

About

Installation

See Setting Up Lean.

Contributing

Please read our Contribution Guidelines first.

Building from Source

See Building Lean.