Skip to content

[Merged by Bors] - feat: characterize when projections are almost 0 or almost id - #41038

Closed
ADedecker wants to merge 4 commits into
leanprover-community:masterfrom
ADedecker:AD_projection_equiv
Closed

ADedecker wants to merge 4 commits into
leanprover-community:masterfrom
ADedecker:AD_projection_equiv

Conversation

@ADedecker

Copy link
Copy Markdown
Member

in the sense of LinearMap.FiniteRangeSetoid.


Open in Gitpod

@github-actions github-actions Bot added the t-algebra Algebra (groups, rings, fields, etc) label Jun 25, 2026
@github-actions

github-actions Bot commented Jun 25, 2026 •

Copy link
Copy Markdown

PR summary 4402e42c17

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

+ comm
+ equiv_zero_iff_hasFiniteRange
+ equiv_zero_iff_hasNoetherianRange
+ isQuasiInverse_subtype_projectionOnto
+ projection_equiv_id
+ projection_equiv_id_iff_isNoetherian
+ projection_equiv_zero
+ projection_equiv_zero_iff_isNoetherian

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

  • +8 new declarations
  • −0 removed declarations
+LinearMap.FiniteRangeSetoid.equiv_zero_iff_hasFiniteRange
+LinearMap.FiniteRangeSetoid.equiv_zero_iff_hasNoetherianRange
+LinearMap.FiniteRangeSetoid.projection_equiv_id
+LinearMap.FiniteRangeSetoid.projection_equiv_id_iff_isNoetherian
+LinearMap.FiniteRangeSetoid.projection_equiv_zero
+LinearMap.FiniteRangeSetoid.projection_equiv_zero_iff_isNoetherian
+LinearMap.isQuasiInverse_subtype_projectionOnto
+Setoid.comm

No changes to strong technical debt.

No changes to weak technical debt.

Current commit 4402e42c17
Reference commit 008653f6c0

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

@themathqueen themathqueen added awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. and removed awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. labels Jun 30, 2026
theorem comm' (s : Setoid α) {x y} : s x y ↔ s y x :=
⟨s.symm', s.symm'⟩

theorem comm [Setoid α] {x y : α} : x ≈ y ↔ y ≈ x :=

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.

I think this should live where Setoid.refl and .trans live (so outside Mathlib).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I agree, but that's in core which is not very welcoming to external contributors, and I'd rather not have to wait until the next toolchain bump...

@themathqueen themathqueen 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!

maintainer merge

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

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

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

@ocfnash ocfnash 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.

Thanks!

bors merge

@mathlib-bors mathlib-bors Bot added 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 Jul 1, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Jul 1, 2026
in the sense of `LinearMap.FiniteRangeSetoid`.
@mathlib-triage mathlib-triage Bot removed the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jul 1, 2026
@mathlib-bors

mathlib-bors Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat: characterize when projections are almost 0 or almost id [Merged by Bors] - feat: characterize when projections are almost 0 or almost id Jul 1, 2026
@mathlib-bors mathlib-bors Bot closed this Jul 1, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Jul 2, 2026
…erse_subtype_projectionOnto (#41272)

This PR strengthens `isQuasiInverse_subtype_projectionOnto` to an iff (`... ↔ IsNoetherian K T`), matching the iff/instance lemma pairs established in #41038, and derives the original statement from it.

🤖 Prepared with Claude Code
joelriou pushed a commit to joelriou/mathlib4 that referenced this pull request Jul 4, 2026
joelriou pushed a commit to joelriou/mathlib4 that referenced this pull request Jul 4, 2026
…erse_subtype_projectionOnto (leanprover-community#41272)

This PR strengthens `isQuasiInverse_subtype_projectionOnto` to an iff (`... ↔ IsNoetherian K T`), matching the iff/instance lemma pairs established in leanprover-community#41038, and derives the original statement from it.

🤖 Prepared with Claude Code
michaellee94 pushed a commit to michaellee94/mathlib4 that referenced this pull request Jul 11, 2026
michaellee94 pushed a commit to michaellee94/mathlib4 that referenced this pull request Jul 11, 2026
…erse_subtype_projectionOnto (leanprover-community#41272)

This PR strengthens `isQuasiInverse_subtype_projectionOnto` to an iff (`... ↔ IsNoetherian K T`), matching the iff/instance lemma pairs established in leanprover-community#41038, and derives the original statement from it.

🤖 Prepared with Claude Code
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. ready-to-merge This PR has been sent to bors. t-algebra Algebra (groups, rings, fields, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants