leanprover-community / leanprover-community/lean

API to set decl_pos

Open
#486 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C++
Stars
433
Forks
79
PR merge metrics
No merged PRs in 30d

Description

It could either be an extra argument to the environment.add_decl function, or a free function set_decl_pos, depending on the constraints in the C++.

From https://github.com/leanprover-community/mathlib/issues/4778

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 locating the C++ implementation of environment.add_decl and the declaration-position representation. Compare the proposed extra argument with a set_decl_pos function under the stated C++ constraints, then identify existing tests or API checks that could define the expected behavior; done means a documented, tested way to set decl_pos.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.