Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
Find a file
jrr6 e337129108
fix: move auxDeclToFullName to LocalContext to fix name (un)resolution (#7075)
This PR ensures that names suggested by tactics like `simp?` are not
shadowed by auxiliary declarations in the local context and that names
of `let rec` and `where` declarations are correctly resolved in tactic
blocks.

This PR contains the following potentially breaking changes:
* Moves the `auxDeclToFullName` map from `TermElab.Context` to
`LocalContext`.
* Refactors `Lean.Elab.Term.resolveLocalName : Name → TermElabM …` to
`Lean.resolveLocalName [MonadResolveName m] [MonadEnv m] [MonadLCtx m] :
Name → m …`.
* Refactors the `TermElabM` action `Lean.Elab.Term.withAuxDecl` to a
monad-polymorphic action `Lean.Meta.withAuxDecl`.
* Adds an optional `filter` argument to `Lean.unresolveNameGlobal`.

Closes #6706, closes #7073.
2025-03-03 16:10:54 +00:00
.github chore: CI: bump dawidd6/action-download-artifact from 8 to 9 (#7285) 2025-03-01 20:47:28 +00:00
doc chore: post-#7100 cleanup (#7196) 2025-02-23 22:46:22 +00:00
images
nix
releases doc: add highlights section to v4.16.0 release notes (#6925) 2025-02-03 23:18:08 +00:00
releases_drafts
script chore: release_notes.py: report on all commit types (#7258) 2025-02-28 17:39:18 +00:00
src fix: move auxDeclToFullName to LocalContext to fix name (un)resolution (#7075) 2025-03-03 16:10:54 +00:00
stage0 chore: update stage0 2025-02-25 08:57:53 +00:00
tests fix: move auxDeclToFullName to LocalContext to fix name (un)resolution (#7075) 2025-03-03 16:10:54 +00:00
.gitattributes
.gitignore
.gitpod.Dockerfile
.gitpod.yml
.ignore
CMakeLists.txt
CMakePresets.json
CODEOWNERS
CONTRIBUTING.md
flake.lock chore: compile against glibc 2.26 (#7037) 2025-02-12 09:29:51 +00:00
flake.nix chore: compile against glibc 2.26 (#7037) 2025-02-12 09:29:51 +00:00
lean-toolchain
lean.code-workspace
LICENSE
LICENSES
README.md
RELEASES.md chore: split RELEASES.md into releases/ folder (#6918) 2025-02-03 11:04:09 +00:00

This is the repository for Lean 4.

About

Installation

See Setting Up Lean.

Contributing

Please read our Contribution Guidelines first.

Building from Source

See Building Lean (documentation source: doc/make/index.md).