Skip to content

feat(100,1000.yaml): clarify intended contents; remove non-mathlib formalizations - #44115

Open
grunweg wants to merge 6 commits into
leanprover-community:masterfrom
grunweg:empty-1000
Open

grunweg wants to merge 6 commits into
leanprover-community:masterfrom
grunweg:empty-1000

Conversation

@grunweg

@grunweg grunweg commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Clarify the intended content of 1000.yaml: as discussed in the reviewers stream, these days "any formalization" is not interesting, any making this repository listing on mathlib ones is a better choice.

Remove all mention of formalizations outside of mathlib, allowing at most a comment when things are out of scope (because they belong to cslib or physlib). We also allow a reference to quasi-official mathlib extensions like LeanCamCombi.

Tweak the entries for Cauchy's circle integral integral theorem, and update the comments about Wiener-Ikehara and PNT to indicate pending pull requests.

We add a similar comment to 100.yaml, clarifying its scope. We don't split this file, as having it in one place is nicer for Wiedijk's list and the number of entries outside of mathlib/the archive is rather small anyway.


Independently developed version of #44114; let's compare and merge a good synthesis!

Remove all mention of formalizations outside of mathlib, allowing at most
a comment when things are out of scope (because they belong to cslib or physlib).
We also allow a reference to quasi-official mathlib extensions like LeanCamCombi.

Clarify the intended content of this file.
@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

PR summary 38fae3d57f

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

No declarations were harmed in the making of this PR! 🐙

You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.

Declarations diff (Lean -- pending)

Computed after the build finishes.


No changes to strong technical debt.
No changes to weak technical debt.

Current commit 38fae3d57f
Reference commit 9d63ad78de

This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:

git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@grunweg grunweg changed the title feat: clarify 1000.yaml feat(100,1000.yaml): clarify intended contents; remove non-mathlib formalizations Sep 23, 2026
@github-actions

Copy link
Copy Markdown

🚨 PR Title Needs Formatting

Please update the title to match our commit style conventions.

Errors from script:

labels are []
error: a PR's scope should be a directory or file name, not a module name
hint: the scope contains a dot, use forward slashes instead
Details on the required title format

The title should fit the following format:

<kind>(<optional-scope>): <subject>

<kind> is:

  • feat (feature)
  • fix (bug fix)
  • doc (documentation)
  • style (formatting, missing semicolons, ...)
  • refactor
  • test (when adding missing tests)
  • chore (maintain)
  • perf (performance improvement, optimization, ...)
  • ci (changes to continuous integration, repo automation, ...)

<optional-scope> is a name of module or a directory which contains changed modules.
This is not necessary to include, but may be useful if the <subject> is insufficient.
The Mathlib directory prefix is always omitted.
For instance, it could be

  • Data/Nat/Basic
  • Algebra/Group/Defs
  • Topology/Constructions

<subject> has the following constraints:

  • do not capitalize the first letter
  • no dot(.) at the end
  • use imperative, present tense: "change" not "changed" nor "changes"

@joneugster joneugster left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking up references to physlib and cslib. It sounds reasonable to add these for theorems which are out-of-scope for mathlib

Am I right that the deleted links to external projects will be migrated to the website in some form? Does the order of things matter here?

Comment thread docs/100.yaml
Comment on lines +8 to +10
# Note: this file only accepts entries about formalisations in mathlib, the archive and
# counterexamples. A comment that a theorem is out of scope for mathlib resp. present in cslib/
# physlib is acceptable; no more.

@joneugster joneugster Sep 23, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Note: this file only accepts entries about formalisations in mathlib, the archive and
# counterexamples. A comment that a theorem is out of scope for mathlib resp. present in cslib/
# physlib is acceptable; no more.
# Note: this file only accepts entries about formalisations in the mathlib repository, and
# references to a few selected libraries: cslib, physlib, cam-combi.
# For statements formalised in these libraries, add `authors: cslib` without any specific `decl`.

maybe? or you might want to include the Wanted directory if you list all mathlib directories explictely

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(wanted, because, for example FLT has only a statement in mathlib, but no proof)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good points. I like including Wanted also, had not realised LeanCamCombi has been renamed... and am fine with an "external" field if that's easier to implement. (I don't feel strongly.)

Comment thread docs/100.yaml
authors: Brendan Seamas Murphy
links :
result: https://github.com/Shamrock-Frost/BrouwerFixedPoint/blob/master/src/brouwer_fixed_point.lean
# exists Lean 3 formalization, AI-slopped one. full mathlib upstreaming in progress

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# exists Lean 3 formalization, AI-slopped one. full mathlib upstreaming in progress
# exists Lean 3 formalization, and AI generated Lean 4 formalization. full mathlib upstreaming in progress

we shouldn't use "slop", it sounds too opinionated

Comment thread docs/1000.yaml
Comment on lines +10 to 15
# Note: this file only accepts entries about formalisations in mathlib, the archive and
# counterexamples. A comment that a theorem is out of scope for mathlib resp. present in cslib/
# physlib is acceptable; no more.
#
# Future possibility: generate this file automatically from inline wikidata annotations

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(same suggestions here)

Comment thread docs/1000.yaml
url: https://github.com/vlad902/misc-lean-proofs/blob/main/MiscLeanProofs/Dilworth.lean
authors: Vlad Tsyrklevich
date: 2025
comment: "pre-AI formalization not in mathlib"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a meaning behind the quotes " in some comments?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sometimes I was paranoid to quote everything, sometimes not. No particular meaning. Making it always quote is fine with me.

Comment thread docs/1000.yaml Resolved
Comment thread docs/1000.yaml Resolved
@joneugster joneugster self-assigned this Sep 23, 2026
@joneugster joneugster added documentation Improvements or additions to documentation awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. labels Sep 23, 2026
Comment thread docs/1000.yaml Resolved
Comment thread docs/100.yaml Resolved
Co-authored-by: Jon Eugster <[email protected]>
Co-authored-by: Michael Rothgang <[email protected]>
@fpvandoorn

fpvandoorn commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

I would prefer if we keep 100.yaml intact. My comments on Zulip were specifically about 1000.yaml.

@SnirBroshi

Copy link
Copy Markdown
Collaborator

I would prefer if we keep 100.yaml intact.

Do you also mean accept external AI formalizations of the remaining 15, or just keep the existing 85 intact and new ones have to be in Mathlib?

@grunweg

grunweg commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor Author

I think it should be the latter. Perhaps amended to "mathlib or adjacent repositories that are allowed explicitly by mathlib's maintainers".

@mathlib-merge-conflicts mathlib-merge-conflicts Bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Oct 22, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

This branch has not been deployed

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

Labels

awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. documentation Improvements or additions to documentation merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants