Add tests for capture-avoiding substitution in lamba calculi
Maintainers usually reply within 1 day
@korbonits is already working on this.
Since Aug 10, 2026.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Domain
- compilers
Research direction
Start with the existing locally nameless STLC implementation and review the linked lambda-n-ways test suite for relevant capture-avoiding substitution cases. Done means a test suite covers the existing binding definitions and gives confidence that substitution behaves correctly across the selected cases.
Written by the indexing model from the issue text.
Description
Binding in lambda calculi is notoriously prone to error, and isn't a problem where formalization is an immediate defense because this is a question of correct definitions. Especially because we will have multiple implementations of binding, I'd like to have a set of tests that give us a bit more confidence that we've written the correct definitions. I'd like to start with the existing locally nameless STLC and port something like what exists at https://github.com/sweirich/lambda-n-ways into a suite of tests.
Help is welcome with this issue since I have somewhat limited time at the moment.
- Dominant language
- Lean
- Stars
- 862
- Forks
- 242
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 55
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from leanprover/cslib
-
`listFullBeta_cons_r` should rename to `listFullBeta_concat_r`Possibly taken @lengyijun claimed this 146 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 72/100
leanprover/cslib#784 ·
Maintainers usually reply within 1 day
-
logic
Difficulty 1/5 Under an hour Newbie friendliness 72/100
leanprover/cslib#74 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
leanprover/cslib#1319 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
leanprover/cslib#1314 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
leanprover/cslib#1309 ·
Maintainers usually reply within 1 day
All issues in leanprover/cslib
Similar issues
-
area-dart-model gardening
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 87/100
Maintainers usually reply within 1 day
-
`shift(x, y)` with a uint256 shift amount >= 2**255 shifts in the wrong directionPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 71/100
facebookexperimental/semcode#195 ·
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
stjude-rust-labs/sprocket#1476 · 3 comments ·
Maintainers usually reply within 1 day