leanprover-community / leanprover-community/mathlib4
add protected after the fact?
Open
Nobody has claimed this yet.
t-meta
- Dominant language
- Lean
- Stars
- 4.2k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
We need a mechanism to add protected, or otherwise to tell alias to create protected declarations.
There is an example in Mathlib/Algebra/GroupWithZero/Units/Basic.lean.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading Mathlib/Algebra/GroupWithZero/Units/Basic.lean, the example named in the issue, and inspect how its declarations interact with aliasing and protection. The work is complete when the requested mechanism for creating protected declarations through alias, or an equivalent mechanism, is defined and its behavior matches the example.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100