leanprover / leanprover/lean4

RFC: “Inline variable” code action

Open
#9,453 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

P-medium RFC
Dominant language
Lean
Stars
9.2k
Forks
990
Avg merge
1d 17h
Merged PRs (30d)
175

Description

Proposal

Add an action that inlines a let or have definition to all usages of that definition.

  • User Experience: The feature makes refactoring code and proofs easier.

  • Beneficiaries: Everyone, but especially people who use apply? or exact? with have to construct proofs

  • Maintainability: The features makes maintaining code easier by making refactoring easier

(moved from https://github.com/leanprover/vscode-lean4/issues/630)

Community Feedback

See Lean Zulip thread.

Impact

Add 👍 to issues you consider important. If others benefit from the changes in this proposal being added, please ask them to add 👍 to it.

Contributor guide

Open the contributing guide

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.

Research direction

Start by reading the proposal and the linked Lean Zulip thread; the issue names no repository files, tests, or entry points. Done would mean an implemented code action that inlines a let or have definition at all of its usages, with project-specific validation identified during investigation.

Written by the indexing model from the issue text.

Assessment

Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.