Skip to content

[Merged by Bors] - chore: cleanup API around LinearMap.injective_domRestrict_iff - #41229

Closed
ADedecker wants to merge 6 commits into
leanprover-community:masterfrom
ADedecker:AD_better_injective_restrict
Closed

ADedecker wants to merge 6 commits into
leanprover-community:masterfrom
ADedecker:AD_better_injective_restrict

Conversation

@ADedecker

@ADedecker ADedecker commented Jul 1, 2026 •

Copy link
Copy Markdown
Member

Co-authored-by: @JonBannon


Open in Gitpod

@github-actions

github-actions Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

PR summary 70e2a986e0

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

+ coind_injective_iff
+ injective_codRestrict_iff
+ injective_restrict_iff

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

  • +3 new declarations
  • −0 removed declarations
+LinearMap.injective_codRestrict_iff
+LinearMap.injective_restrict_iff
+Subtype.coind_injective_iff

No changes to strong technical debt.

No changes to weak technical debt.

Current commit 70e2a986e0
Reference commit a1566c2f4d

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

@github-actions github-actions Bot added the t-algebra Algebra (groups, rings, fields, etc) label Jul 1, 2026
@ADedecker ADedecker added the easy < 20s of review time. See the lifecycle page for guidelines. label Jul 1, 2026
@ADedecker ADedecker removed the easy < 20s of review time. See the lifecycle page for guidelines. label Jul 1, 2026

@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 2, 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 2, 2026

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

Nice work!

bors r+

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Jul 2, 2026
@mathlib-triage mathlib-triage Bot removed the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jul 2, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Jul 2, 2026
* Use `Disjoint` in [LinearMap.injective_domRestrict_iff](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Algebra/Module/Submodule/Ker.html#LinearMap.injective_domRestrict_iff), and simplify the proof greatly.
* Allow linear maps between two different spaces in [LinearMap.injective_restrict_iff_disjoint](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Algebra/Module/Submodule/Ker.html#LinearMap.injective_restrict_iff_disjoint), and rename it to `LinearMap.injective_restrict_iff` for consistency with the former
* Add `LinearMap.injective_codRestrict_iff` for completeness

Co-authored-by: @JonBannon
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Jul 2, 2026
@mathlib-bors

mathlib-bors Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title chore: cleanup API around LinearMap.injective_domRestrict_iff [Merged by Bors] - chore: cleanup API around LinearMap.injective_domRestrict_iff Jul 2, 2026
@mathlib-bors mathlib-bors Bot closed this Jul 2, 2026
joelriou pushed a commit to joelriou/mathlib4 that referenced this pull request Jul 4, 2026
…over-community#41229)

* Use `Disjoint` in [LinearMap.injective_domRestrict_iff](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Algebra/Module/Submodule/Ker.html#LinearMap.injective_domRestrict_iff), and simplify the proof greatly.
* Allow linear maps between two different spaces in [LinearMap.injective_restrict_iff_disjoint](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Algebra/Module/Submodule/Ker.html#LinearMap.injective_restrict_iff_disjoint), and rename it to `LinearMap.injective_restrict_iff` for consistency with the former
* Add `LinearMap.injective_codRestrict_iff` for completeness

Co-authored-by: @JonBannon
michaellee94 pushed a commit to michaellee94/mathlib4 that referenced this pull request Jul 11, 2026
…over-community#41229)

* Use `Disjoint` in [LinearMap.injective_domRestrict_iff](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Algebra/Module/Submodule/Ker.html#LinearMap.injective_domRestrict_iff), and simplify the proof greatly.
* Allow linear maps between two different spaces in [LinearMap.injective_restrict_iff_disjoint](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Algebra/Module/Submodule/Ker.html#LinearMap.injective_restrict_iff_disjoint), and rename it to `LinearMap.injective_restrict_iff` for consistency with the former
* Add `LinearMap.injective_codRestrict_iff` for completeness

Co-authored-by: @JonBannon
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