chore: don't expose Nat.find or Nat.rfind - #42430
Open
vihdzp wants to merge 6 commits into
Open
Conversation
5 tasks
PR summary 8290d01268Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
| Current number | Change | Type (strong) |
|---|---|---|
| 678 | -6 | backward.privateInPublic |
| 330 | -2 | backward.privateInPublic.warn |
Decrease in weak tech debt: (relative, absolute) = (2.00, 0.00)
| Current number | Change | Type (weak) |
|---|---|---|
| 5045 | -2 | exposed public sections |
Current commit 8290d01268
Reference commit b2418b0404
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.sh pr_summary
- The
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
grunweg
reviewed
Aug 4, 2026
grunweg
left a comment
Contributor
There was a problem hiding this comment.
Thanks! Half of the PR is clearly useful, and the other half requires more careful attention from somebody who knows the file better.
Contributor
|
Let's hope we can split out the easy half, and then split the rest into separate PRs per file to get eyes on them? |
This was referenced Aug 4, 2026
mathlib-bors Bot
pushed a commit
that referenced
this pull request
Aug 4, 2026
… (#42433) This PR was automatically created from PR #42430 by @vihdzp via a [review comment](#42430 (comment)) by @grunweg. Co-authored-by: vihdzp <65465670+vihdzp@users.noreply.github.com>
mathlib-bors Bot
pushed a commit
that referenced
this pull request
Aug 4, 2026
… (#42433) This PR was automatically created from PR #42430 by @vihdzp via a [review comment](#42430 (comment)) by @grunweg. Co-authored-by: vihdzp <65465670+vihdzp@users.noreply.github.com>
mathlib-bors Bot
pushed a commit
that referenced
this pull request
Aug 4, 2026
…42432) This PR was automatically created from PR #42430 by @vihdzp via a [review comment](#42430 (comment)) by @grunweg. Co-authored-by: vihdzp <65465670+vihdzp@users.noreply.github.com>
mathlib-bors Bot
pushed a commit
that referenced
this pull request
Aug 4, 2026
…42432) This PR was automatically created from PR #42430 by @vihdzp via a [review comment](#42430 (comment)) by @grunweg. Co-authored-by: vihdzp <65465670+vihdzp@users.noreply.github.com>
linter.defPropNat.find or Nat.rfind
|
This PR/issue depends on:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Both have highly bespoke definitions, and are best characterized by the predicate they satisfy.
linter.defProp#42463