Skip to content

feat: isPrivateOrAutoDecl#1835

Open
thorimur wants to merge 7 commits into
leanprover-community:mainfrom
thorimur:isPrivateOrAutoDecl
Open

feat: isPrivateOrAutoDecl#1835
thorimur wants to merge 7 commits into
leanprover-community:mainfrom
thorimur:isPrivateOrAutoDecl

Conversation

@thorimur

@thorimur thorimur commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

This PR adds isPrivateOrAutoDecl in preparation for not returning true on private declarations in isAutoDecl (#1831). Currently, this has the same behavior as isAutoDecl; #1831 will modify the behavior of isAutoDecl.

It also (in preparation) modifies the docstring linters to use this declaration, since private declarations are allowed to not have docstrings.


As far as I can tell, the docstring linters are the only ones that are specifically about the public interface and would not also be helpful for private decls. Review should ensure that this is correct (for Batteries) :)

@github-actions github-actions Bot added the awaiting-review This PR is ready for review; the author thinks it is ready to be merged. label Jun 2, 2026
@mathlib-nightly-testing

Copy link
Copy Markdown
Contributor

Mathlib CI status (docs):

@mathlib-merge-conflicts mathlib-merge-conflicts Bot added the merge-conflict This PR has merge conflicts with the `main` branch which must be resolved by the author. label Jun 15, 2026
mathlib-nightly-testing Bot added a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Jun 15, 2026
mathlib-nightly-testing Bot added a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Jun 15, 2026
@mathlib-nightly-testing

Copy link
Copy Markdown
Contributor

Mathlib CI status (docs):

mathlib-nightly-testing Bot added a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Jun 15, 2026
@mathlib-merge-conflicts mathlib-merge-conflicts Bot removed the merge-conflict This PR has merge conflicts with the `main` branch which must be resolved by the author. label Jun 15, 2026
@mathlib-nightly-testing

Copy link
Copy Markdown
Contributor

Mathlib CI status (docs):

@mathlib-nightly-testing

Copy link
Copy Markdown
Contributor

Mathlib CI status (docs):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review This PR is ready for review; the author thinks it is ready to be merged. builds-mathlib

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant