leanprover-community / leanprover-community/mathlib4

Porting note: unimplemented instance_priority linter

Open
#12,096 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

porting-notes t-meta tech debt
Dominant language
Lean
Stars
4.2k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

This issue is tracking all porting notes referring to the instance_priority linter from mathlib3:
as this linter has not been ported to mathlib4 yet, the nolint entries from mathlib3 are commented. Porting notes look like

https://github.com/leanprover-community/mathlib4/blob/b0aea6152df43fd6c825b82890c858f00c21a051/Mathlib/Algebra/Algebra/Hom.lean#L31

Steps to fix

  • port the linter
  • see which of the previous nolints are required: uncomment the necessary ones and delete the now-superfluous ones.
    Remove the porting note in either case.
  • deal with any new errors in mathlib4
  • land the linter and rejoice :-)

Note. There are just five such porting notes. Perhaps this issue can also serve as a tracking issue for this particular linter.

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 porting note in Mathlib/Algebra/Algebra/Hom.lean and locate the five notes referring to instance_priority. Port the linter, then determine which nolint entries remain necessary, remove each porting note, and address any new mathlib4 errors before landing the linter.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.