leanprover-community / leanprover-community/mathlib4

protect `id`s

Open
#22,111 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

tech debt
Dominant language
Lean
Stars
4.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

RingHom.id, LinearMap.id are not protected, which makes it occassionally necessary to write _root_.id for id.

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 with the linked RingHom.id and LinearMap.id declarations in the mathlib documentation, then inspect their source definitions and nearby naming conventions. Protect both declarations and verify that ordinary uses of id no longer require root.id, checking the affected references or project tests afterward.

Written by the indexing model from the issue text.

Assessment

Domain
backend-api-design
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.