Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
This PR changes the construction of a `CompleteLattice` instance on predicates (maps intro `Prop`) inside of `coinductive_fixpoint`/`inductive_fixpoint` machinery. Consider a following endomap on predicates of the type ` α → Prop`: ```lean4 def DefFunctor (r : α → α → Prop) (infSeq : α → Prop) : α → Prop := λ x : α => ∃ y, r x y ∧ infSeq y ``` The following eta-reduced expression failed to elaborate: ```lean4 def def1 (r : α → α → Prop) : α → Prop := DefFunctor r (def1 r) coinductive_fixpoint monotonicity sorry ``` At the same time, eta-expanded variant would elaborate correctly: ```lean4 def def2 (r : α → α → Prop) : α → Prop := fun x => DefFunctor r (def2 r) x coinductive_fixpoint monotonicity sorry ``` This PR fixes the above issue, by changing the way how `CompleteLattice` instance on the space of predicates is constructed, to allow for the eta-reduced case, as outlined above. |
||
|---|---|---|
| .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 Setting Up Lean.
Contributing
Please read our Contribution Guidelines first.
Building from Source
See Building Lean.