Add tests for capture-avoiding substitution in lamba calculi

Open
#711 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@korbonits is already working on this.

Since Aug 10, 2026.

  • #9 by @Digger-Rockwell — open
  • #737 by @korbonits — closed without merging
  • #791 by @korbonits — open
  • #1253 by @Digger-Rockwell — open

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

help wanted

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

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from leanprover/cslib

All issues in leanprover/cslib

Similar issues

More Compilers issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.