Skip to content

[Merged by Bors] - chore(Logic/Equiv): swap the names of Equiv.setCongr and Equiv.Set.congr - #43005

Closed
YaelDillies wants to merge 4 commits into
leanprover-community:masterfrom
YaelDillies:equiv_set_congr
Closed

YaelDillies wants to merge 4 commits into
leanprover-community:masterfrom
YaelDillies:equiv_set_congr

Conversation

@YaelDillies

Copy link
Copy Markdown
Contributor

The new Equiv.setCongr matches MulEquiv.monoidHomCongrLeft and friends. Perform the same change for Finset.

Follow-up to #42640.

Generated by Claude Sonnet, reviewed and improved line-by-line by myself.

Assisted-by: Claude Sonnet 5


Equiv.Set.congr is a strange name for the other operation. Other subobjects tend to have this operation be called Subfoo.fooEquivOfEq. This can be renamed again later, or in this PR.

Open in Gitpod

….congr`

The new `Equiv.setCongr` matches `MulEquiv.monoidHomCongrLeft` and friends. Perform the same change for `Finset`.

Follow-up to leanprover-community#42640.

Generated by Claude Sonnet, reviewed and improved line-by-line by myself.

Assisted-by: Claude Sonnet 5
@github-actions

github-actions Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

PR summary 21ff622679

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

+ Set.congr
+ setCongr_apply
+ setCongr_symm_apply
+--+ setCongr
- congr_apply
-++- congr
-+- finsetCongr_symm
-+- finsetCongr_trans
--+ finsetCongr_refl

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

  • +9 new declarations
  • −10 removed declarations
-Equiv.Finset.congr_apply
+Equiv.Finset.congr_apply_coe
+Equiv.Finset.congr_symm_apply_coe
-Equiv.Finset.finsetCongr_apply
-Equiv.Finset.finsetCongr_refl
-Equiv.Finset.finsetCongr_symm
-Equiv.Finset.finsetCongr_toEmbedding
-Equiv.Finset.finsetCongr_trans
+Equiv.Set.congr.congr_simp
+Equiv.finsetCongr_apply
-Equiv.finsetCongr_apply_coe
-Equiv.finsetCongr_symm_apply_coe
+Equiv.finsetCongr_toEmbedding
-Equiv.setCongr.congr_simp
+OrderIso.Set.congr
+OrderIso.Set.congr.congr_simp
+OrderIso.Set.congr_apply
+OrderIso.Set.congr_symm_apply
-OrderIso.setCongr.congr_simp

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

Current commit 21ff622679
Reference commit 8ce5b6b713

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

@YaelDillies YaelDillies added the t-data Data (lists, quotients, numbers, etc) label Aug 21, 2026
@ocfnash ocfnash self-assigned this Aug 23, 2026
@ocfnash

ocfnash commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Thanks for getting to this.

I also agree with this remark:

Equiv.Set.congr is a strange name for the other operation. Other subobjects tend to have this operation be called Subfoo.fooEquivOfEq. This can be renamed again later, or in this PR.

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Aug 28, 2026
@YaelDillies YaelDillies added the LLM-generated PRs with substantial input from LLMs - review accordingly label Aug 28, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Aug 28, 2026
….congr` (#43005)

The new `Equiv.setCongr` matches `MulEquiv.monoidHomCongrLeft` and friends. Perform the same change for `Finset`.

Follow-up to #42640.

Generated by Claude Sonnet, reviewed and improved line-by-line by myself.

Assisted-by: Claude Sonnet 5

Co-authored-by: Oliver Nash <[email protected]>
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Aug 28, 2026
@mathlib-bors

mathlib-bors Bot commented Aug 28, 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 Aug 28, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Aug 28, 2026
….congr` (#43005)

The new `Equiv.setCongr` matches `MulEquiv.monoidHomCongrLeft` and friends. Perform the same change for `Finset`.

Follow-up to #42640.

Generated by Claude Sonnet, reviewed and improved line-by-line by myself.

Assisted-by: Claude Sonnet 5

Co-authored-by: Oliver Nash <[email protected]>
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Aug 28, 2026
@mathlib-bors

mathlib-bors Bot commented Aug 28, 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 Aug 28, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Aug 28, 2026
….congr` (#43005)

The new `Equiv.setCongr` matches `MulEquiv.monoidHomCongrLeft` and friends. Perform the same change for `Finset`.

Follow-up to #42640.

Generated by Claude Sonnet, reviewed and improved line-by-line by myself.

Assisted-by: Claude Sonnet 5

Co-authored-by: Oliver Nash <[email protected]>
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Aug 28, 2026
@ocfnash

ocfnash commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

This needs a merge of master.

bors r-

bors d+

@mathlib-bors mathlib-bors Bot added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Aug 28, 2026
@mathlib-bors

mathlib-bors Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

✌️ YaelDillies can now approve this pull request until 2026-09-11 14:15 UTC (in 2 weeks). To approve and merge, reply with bors r+. More detailed instructions are available here.

⚠️ This delegation only covers changes within Archive/**, Counterexamples/**, docs/**, DownstreamTest/**, Mathlib/**, MathlibTest/**, Wanted/**, widget/**, Archive.lean, Counterexamples.lean, docs.lean, Mathlib.lean, Wanted.lean; an author commit touching anything else will revoke it. Bors also revokes it if a later push changes too many files for it to check the full list — even if it stays within scope.

@mathlib-bors

mathlib-bors Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Bors build canceled.

Address comments or fix if necessary, and then someone with permission can run bors r+.

@mathlib-bors mathlib-bors Bot removed ready-to-merge This PR has been sent to bors. bors-staging This PR is currently being built by bors on the staging branch. labels Aug 28, 2026
@YaelDillies

Copy link
Copy Markdown
Contributor Author

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Aug 28, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Aug 28, 2026
….congr` (#43005)

The new `Equiv.setCongr` matches `MulEquiv.monoidHomCongrLeft` and friends. Perform the same change for `Finset`.

Follow-up to #42640.

Generated by Claude Sonnet, reviewed and improved line-by-line by myself.

Assisted-by: Claude Sonnet 5

Co-authored-by: Oliver Nash <[email protected]>
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Aug 28, 2026
@mathlib-bors

mathlib-bors Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title chore(Logic/Equiv): swap the names of Equiv.setCongr and Equiv.Set.congr [Merged by Bors] - chore(Logic/Equiv): swap the names of Equiv.setCongr and Equiv.Set.congr Aug 28, 2026
@mathlib-bors mathlib-bors Bot closed this Aug 28, 2026
@mathlib-bors mathlib-bors Bot removed the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Aug 28, 2026
@YaelDillies
YaelDillies deleted the equiv_set_congr branch August 28, 2026 21:32
jsm28 pushed a commit to jsm28/mathlib4 that referenced this pull request Aug 30, 2026
….congr` (leanprover-community#43005)

The new `Equiv.setCongr` matches `MulEquiv.monoidHomCongrLeft` and friends. Perform the same change for `Finset`.

Follow-up to leanprover-community#42640.

Generated by Claude Sonnet, reviewed and improved line-by-line by myself.

Assisted-by: Claude Sonnet 5

Co-authored-by: Oliver Nash <[email protected]>
attilavjda pushed a commit to attilavjda/mathlib4 that referenced this pull request Sep 5, 2026
….congr` (leanprover-community#43005)

The new `Equiv.setCongr` matches `MulEquiv.monoidHomCongrLeft` and friends. Perform the same change for `Finset`.

Follow-up to leanprover-community#42640.

Generated by Claude Sonnet, reviewed and improved line-by-line by myself.

Assisted-by: Claude Sonnet 5

Co-authored-by: Oliver Nash <[email protected]>
joelriou pushed a commit to joelriou/mathlib4 that referenced this pull request Sep 5, 2026
….congr` (leanprover-community#43005)

The new `Equiv.setCongr` matches `MulEquiv.monoidHomCongrLeft` and friends. Perform the same change for `Finset`.

Follow-up to leanprover-community#42640.

Generated by Claude Sonnet, reviewed and improved line-by-line by myself.

Assisted-by: Claude Sonnet 5

Co-authored-by: Oliver Nash <[email protected]>
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. LLM-generated PRs with substantial input from LLMs - review accordingly 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.

2 participants