Skip to content

[Merged by Bors] - feat: sorted lists sort to themselves - #45930

Closed
vihdzp wants to merge 1 commit into
leanprover-community:masterfrom
vihdzp:listsort
Closed

vihdzp wants to merge 1 commit into
leanprover-community:masterfrom
vihdzp:listsort

Conversation

@vihdzp

@vihdzp vihdzp commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

PR summary 8bca9a7f3c

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

+ _root_.List.SortedGT.sort_toFinset
+ _root_.List.SortedLT.sort_toFinset

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)

✅ Lean-aware diff — post-build, computed from the Lean environment (commit 8bca9a7).

  • +2 new declarations
  • −0 removed declarations
+List.SortedGT.sort_toFinset
+List.SortedLT.sort_toFinset

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

Current commit 8bca9a7f3c
Reference commit b97762998b

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).

@github-actions github-actions Bot added the t-data Data (lists, quotients, numbers, etc) label Nov 12, 2026
@vihdzp vihdzp added the easy < 20s of review time. See the lifecycle page for guidelines. label Nov 12, 2026

@YaelDillies YaelDillies left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I guess there is no point having a generic Sorted.sort_toFinset?

maintainer delegate

@github-actions

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by YaelDillies.

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Nov 12, 2026

@jcommelin jcommelin 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 🎉

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Nov 17, 2026
@mathlib-triage mathlib-triage Bot removed the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Nov 17, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Nov 17, 2026
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Nov 17, 2026
@mathlib-bors

mathlib-bors Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Build failed (retrying...):

@mathlib-bors mathlib-bors Bot removed the bors-staging This PR is currently being built by bors on the staging branch. label Nov 17, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Nov 17, 2026
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Nov 17, 2026
@mathlib-bors

mathlib-bors Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title feat: sorted lists sort to themselves [Merged by Bors] - feat: sorted lists sort to themselves Nov 17, 2026
@mathlib-bors mathlib-bors Bot closed this Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bors-staging This PR is currently being built by bors on the staging branch. easy < 20s of review time. See the lifecycle page for guidelines. ready-to-merge This PR has been sent to bors. t-data Data (lists, quotients, numbers, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants