Skip to content

[Merged by Bors] - feat(LinearAlgebra/SesquilinearForm): add basic lemmas for bilinear forms - #34487

Closed
martinwintermath wants to merge 22 commits into
leanprover-community:masterfrom
martinwintermath:bilinear-separating
Closed

martinwintermath wants to merge 22 commits into
leanprover-community:masterfrom
martinwintermath:bilinear-separating

Conversation

@martinwintermath

@martinwintermath martinwintermath commented Jan 27, 2026 •

Copy link
Copy Markdown
Contributor

Some file cleanup and adding minor lemmas.

This is an extract from and in preparation for #43143.


Open in Gitpod

@github-actions github-actions Bot added new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! large-import Automatically added label for PRs with a significant increase in transitive imports t-algebra Algebra (groups, rings, fields, etc) labels Jan 27, 2026
@github-actions

github-actions Bot commented Jan 27, 2026 •

Copy link
Copy Markdown

PR summary 4d14adf7a0

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

+ IsPerfPair.nondegenerate
+ IsPerfPair.separatingLeft
+ IsPerfPair.separatingRight
+ Nondegenerate.eval
+ Nondegenerate.id
+ SeparatingLeft.eval
+ SeparatingLeft.id
+ SeparatingRight.eval
+ SeparatingRight.id

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

  • +9 new declarations
  • −0 removed declarations
+LinearMap.IsPerfPair.nondegenerate
+LinearMap.IsPerfPair.separatingLeft
+LinearMap.IsPerfPair.separatingRight
+LinearMap.Nondegenerate.eval
+LinearMap.Nondegenerate.id
+LinearMap.SeparatingLeft.eval
+LinearMap.SeparatingLeft.id
+LinearMap.SeparatingRight.eval
+LinearMap.SeparatingRight.id

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

Current commit 4d14adf7a0
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).

@martinwintermath

martinwintermath commented Jan 27, 2026 •

Copy link
Copy Markdown
Contributor Author

@mathlib4-merge-conflict-bot mathlib4-merge-conflict-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 28, 2026
@mathlib4-merge-conflict-bot

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Mar 15, 2026
@martinwintermath
martinwintermath marked this pull request as ready for review March 15, 2026 22:26
@mathlib-merge-conflicts

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

@mathlib-merge-conflicts mathlib-merge-conflicts Bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Mar 29, 2026
@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Mar 30, 2026
@martinwintermath martinwintermath changed the title feat(LinearAlgebra/SesquilinearForm/Basic): add instances for SeparatingLeft, SeparatingRight and Nondegenerate feat(LinearAlgebra/SesquilinearForm): add instances for SeparatingLeft, SeparatingRight and Nondegenerate Apr 2, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Apr 28, 2026
- deprecate `Module.dualPairing` (and associated lemmas) since merely synonym for identity (essentially always easier to just use `.id`, see next bullet point)
- remove use of deprecated lemmas
- remove from file doc-string
- generalize `dualPairing_nondegenerate` + rename to `id_nondegenerate`
- add accompanying `id_separatingLeft`, `id_separatingRight` and versions for `Dual.eval` (similar lemmas have also been proposed in #34487)

Co-authored-by: Martin Winter <[email protected]>
xroblot pushed a commit to xroblot/mathlib4 that referenced this pull request May 2, 2026
…-community#37542)

- deprecate `Module.dualPairing` (and associated lemmas) since merely synonym for identity (essentially always easier to just use `.id`, see next bullet point)
- remove use of deprecated lemmas
- remove from file doc-string
- generalize `dualPairing_nondegenerate` + rename to `id_nondegenerate`
- add accompanying `id_separatingLeft`, `id_separatingRight` and versions for `Dual.eval` (similar lemmas have also been proposed in leanprover-community#34487)

Co-authored-by: Martin Winter <[email protected]>
gaetanserre pushed a commit to gaetanserre/mathlib4 that referenced this pull request May 5, 2026
…-community#37542)

- deprecate `Module.dualPairing` (and associated lemmas) since merely synonym for identity (essentially always easier to just use `.id`, see next bullet point)
- remove use of deprecated lemmas
- remove from file doc-string
- generalize `dualPairing_nondegenerate` + rename to `id_nondegenerate`
- add accompanying `id_separatingLeft`, `id_separatingRight` and versions for `Dual.eval` (similar lemmas have also been proposed in leanprover-community#34487)

Co-authored-by: Martin Winter <[email protected]>
gasparattila pushed a commit to gasparattila/mathlib4 that referenced this pull request May 9, 2026
…-community#37542)

- deprecate `Module.dualPairing` (and associated lemmas) since merely synonym for identity (essentially always easier to just use `.id`, see next bullet point)
- remove use of deprecated lemmas
- remove from file doc-string
- generalize `dualPairing_nondegenerate` + rename to `id_nondegenerate`
- add accompanying `id_separatingLeft`, `id_separatingRight` and versions for `Dual.eval` (similar lemmas have also been proposed in leanprover-community#34487)

Co-authored-by: Martin Winter <[email protected]>
@github-actions github-actions Bot removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Aug 28, 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.

Can you loogle some of these lemmas to make sure you're not duplicating lemmas, for example: https://loogle.lean-lang.org/?q=LinearMap.SeparatingRight%2C+LinearMap.id

Comment thread Mathlib/LinearAlgebra/Dual/Lemmas.lean Resolved
Comment thread Mathlib/LinearAlgebra/Dual/Lemmas.lean Resolved
Comment thread Mathlib/LinearAlgebra/Dual/Lemmas.lean Resolved
@themathqueen themathqueen added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Aug 30, 2026
@github-actions github-actions Bot removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Aug 30, 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.

Thanks!

maintainer delegate

Comment thread Mathlib/LinearAlgebra/Dual/Lemmas.lean Resolved
@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 Aug 31, 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.

Agreed with Yaël's comments, looks good to me otherwise too!

bors d+

Comment thread Mathlib/LinearAlgebra/Dual/Lemmas.lean Resolved
Comment thread Mathlib/LinearAlgebra/Dual/Lemmas.lean Resolved
Comment thread Mathlib/LinearAlgebra/Dual/Lemmas.lean Resolved
Comment thread Mathlib/LinearAlgebra/Dual/Lemmas.lean Resolved
@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 31, 2026
@mathlib-bors

mathlib-bors Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

✌️ martinwintermath can now approve this pull request until 2026-09-14 16:03 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-triage mathlib-triage Bot removed the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Aug 31, 2026
Comment thread Mathlib/LinearAlgebra/Dual/Lemmas.lean Resolved
@martinwintermath

Copy link
Copy Markdown
Contributor Author

bors r+

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

Some file cleanup and adding minor lemmas.

This is an extract from and in preparation for #43143.

Co-authored-by: Martin Winter <[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 31, 2026
@mathlib-bors

mathlib-bors Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(LinearAlgebra/SesquilinearForm): add basic lemmas for bilinear forms [Merged by Bors] - feat(LinearAlgebra/SesquilinearForm): add basic lemmas for bilinear forms Aug 31, 2026
@mathlib-bors mathlib-bors Bot closed this Aug 31, 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 31, 2026
joelriou pushed a commit to joelriou/mathlib4 that referenced this pull request Sep 5, 2026
…orms (leanprover-community#34487)

Some file cleanup and adding minor lemmas.

This is an extract from and in preparation for leanprover-community#43143.

Co-authored-by: Martin Winter <[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. new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! 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.

9 participants