Skip to content

[Merged by Bors] - feat(Analysis/InnerProductSpace/MulOpposite): defines the inner product on opposite spaces#25951

Closed
themathqueen wants to merge 31 commits intoleanprover-community:masterfrom
themathqueen:inner_op
Closed

[Merged by Bors] - feat(Analysis/InnerProductSpace/MulOpposite): defines the inner product on opposite spaces#25951
themathqueen wants to merge 31 commits intoleanprover-community:masterfrom
themathqueen:inner_op

Conversation

@themathqueen
Copy link
Copy Markdown
Collaborator

@themathqueen themathqueen commented Jun 16, 2025

This pr defines the inner product on opposite spaces.

Motivation for having the inner product structure on the opposite:
One application comes up in non-commutative graphs, which are defined on a finite-dimensional C*-algebra with a faithful and positive functional (a Hilbert space structure can be induced by the defined faithful and positive functional (will be added to a pr soon)). For example, we'd need the Hilbert space structure to be defined on the opposite space to define the isomorphism: (A →ₗ[ℂ] B) ≃ₗ[ℂ] TensorProduct ℂ B Aᵐᵒᵖ, where A, B are again finite-dimensional C*-algebras with faithful and positive functionals.


Open in Gitpod

@github-actions github-actions Bot added the new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! label Jun 16, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 16, 2025

PR summary 85598ed4df

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.Analysis.InnerProductSpace.MulOpposite (new file) 2040

Declarations diff

+ _root_.Module.Basis.mulOpposite_is_orthonormal_iff
+ _root_.OrthonormalBasis.mulOpposite
+ inner_op
+ inner_unop
+ instance : InnerProductSpace 𝕜 Hᵐᵒᵖ
+ instance [Inner 𝕜 H] : Inner 𝕜 Hᵐᵒᵖ where inner x y := inner 𝕜 x.unop y.unop
+ isometry_opLinearEquiv
+ opLinearIsometryEquiv
+ toContinuousLinearEquiv_opLinearIsometryEquiv
+ toLinearEquiv_opLinearIsometryEquiv

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

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

@j-loreaux
Copy link
Copy Markdown
Contributor

I'm not saying we can't have it, but why do you need this? I only see this being viable for H = \bbk or H = EuclideanSpace \bbk n.

@j-loreaux j-loreaux added awaiting-author A reviewer has asked the author a question or requested changes. blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) labels Jul 3, 2025
@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Jul 3, 2025
@themathqueen
Copy link
Copy Markdown
Collaborator Author

@j-loreaux, also viable for H = Matrix n n \bbk or for finite-dimensional C*-algebras. Same goes for the pr that this one depends on.

@j-loreaux
Copy link
Copy Markdown
Contributor

The Frobenius norm on Matrix makes sense, but I wouldn't expect to put an inner product structure on a generic finite dimensional C*-algebra.

But I guess the question is still: do you have a case in mind where you'll need the inner product structure on the opposite?

It seems like it would almost never be necessary.

@j-loreaux j-loreaux added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Jul 11, 2025
@themathqueen
Copy link
Copy Markdown
Collaborator Author

-awaiting-author

@github-actions github-actions Bot removed the awaiting-author A reviewer has asked the author a question or requested changes. label Jul 12, 2025
mathlib-bors Bot pushed a commit that referenced this pull request Jul 23, 2025
…5949)

This adds the definition of `Basis.mulOpposite` and shows finite-dimensionality and freeness of `Hᵐᵒᵖ`.

For motivation, see #25951.



Co-authored-by: themathqueen <23701951+themathqueen@users.noreply.github.com>
mathlib-bors Bot pushed a commit that referenced this pull request Jul 23, 2025
…5949)

This adds the definition of `Basis.mulOpposite` and shows finite-dimensionality and freeness of `Hᵐᵒᵖ`.

For motivation, see #25951.



Co-authored-by: themathqueen <23701951+themathqueen@users.noreply.github.com>
mathlib-bors Bot pushed a commit that referenced this pull request Jul 23, 2025
…5949)

This adds the definition of `Basis.mulOpposite` and shows finite-dimensionality and freeness of `Hᵐᵒᵖ`.

For motivation, see #25951.



Co-authored-by: themathqueen <23701951+themathqueen@users.noreply.github.com>
Comment thread Mathlib/Analysis/InnerProductSpace/MulOpposite.lean Outdated
@j-loreaux j-loreaux added the awaiting-author A reviewer has asked the author a question or requested changes. label Aug 19, 2025
@themathqueen themathqueen removed the awaiting-author A reviewer has asked the author a question or requested changes. label Aug 19, 2025
Copy link
Copy Markdown
Contributor

@j-loreaux j-loreaux left a comment

Choose a reason for hiding this comment

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

Thanks!

bors d+

Comment thread Mathlib/Analysis/InnerProductSpace/MulOpposite.lean
Comment thread Mathlib/Analysis/InnerProductSpace/MulOpposite.lean
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors Bot commented Aug 20, 2025

✌️ themathqueen can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ghost ghost added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Aug 20, 2025
Co-authored-by: Jireh Loreaux <loreaujy@gmail.com>
@themathqueen
Copy link
Copy Markdown
Collaborator Author

bors r+

mathlib-bors Bot pushed a commit that referenced this pull request Aug 20, 2025
…ct on opposite spaces (#25951)

This pr defines the inner product on opposite spaces.

Motivation for having the inner product structure on the opposite:
One application comes up in non-commutative graphs, which are defined on a finite-dimensional C*-algebra with a faithful and positive functional (a Hilbert space structure can be induced by the defined faithful and positive functional (will be added to a pr soon)). For example, we'd need the Hilbert space structure to be defined on the opposite space to define the isomorphism: `(A →ₗ[ℂ] B) ≃ₗ[ℂ] TensorProduct ℂ B Aᵐᵒᵖ`, where `A`, `B` are again finite-dimensional C*-algebras with faithful and positive functionals.



Co-authored-by: themathqueen <23701951+themathqueen@users.noreply.github.com>
@themathqueen
Copy link
Copy Markdown
Collaborator Author

bors r-

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors Bot commented Aug 20, 2025

Canceled.

@themathqueen
Copy link
Copy Markdown
Collaborator Author

bors r+

mathlib-bors Bot pushed a commit that referenced this pull request Aug 20, 2025
…ct on opposite spaces (#25951)

This pr defines the inner product on opposite spaces.

Motivation for having the inner product structure on the opposite:
One application comes up in non-commutative graphs, which are defined on a finite-dimensional C*-algebra with a faithful and positive functional (a Hilbert space structure can be induced by the defined faithful and positive functional (will be added to a pr soon)). For example, we'd need the Hilbert space structure to be defined on the opposite space to define the isomorphism: `(A →ₗ[ℂ] B) ≃ₗ[ℂ] TensorProduct ℂ B Aᵐᵒᵖ`, where `A`, `B` are again finite-dimensional C*-algebras with faithful and positive functionals.



Co-authored-by: Monica Omar <2497250a@research.gla.ac.uk>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors Bot commented Aug 20, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(Analysis/InnerProductSpace/MulOpposite): defines the inner product on opposite spaces [Merged by Bors] - feat(Analysis/InnerProductSpace/MulOpposite): defines the inner product on opposite spaces Aug 20, 2025
@mathlib-bors mathlib-bors Bot closed this Aug 20, 2025
@themathqueen themathqueen deleted the inner_op branch August 20, 2025 06:38
pfaffelh pushed a commit to pfaffelh/mathlib4 that referenced this pull request Aug 20, 2025
…ct on opposite spaces (leanprover-community#25951)

This pr defines the inner product on opposite spaces.

Motivation for having the inner product structure on the opposite:
One application comes up in non-commutative graphs, which are defined on a finite-dimensional C*-algebra with a faithful and positive functional (a Hilbert space structure can be induced by the defined faithful and positive functional (will be added to a pr soon)). For example, we'd need the Hilbert space structure to be defined on the opposite space to define the isomorphism: `(A →ₗ[ℂ] B) ≃ₗ[ℂ] TensorProduct ℂ B Aᵐᵒᵖ`, where `A`, `B` are again finite-dimensional C*-algebras with faithful and positive functionals.



Co-authored-by: Monica Omar <2497250a@research.gla.ac.uk>
Paul-Lez pushed a commit to Paul-Lez/mathlib4 that referenced this pull request Aug 23, 2025
…ct on opposite spaces (leanprover-community#25951)

This pr defines the inner product on opposite spaces.

Motivation for having the inner product structure on the opposite:
One application comes up in non-commutative graphs, which are defined on a finite-dimensional C*-algebra with a faithful and positive functional (a Hilbert space structure can be induced by the defined faithful and positive functional (will be added to a pr soon)). For example, we'd need the Hilbert space structure to be defined on the opposite space to define the isomorphism: `(A →ₗ[ℂ] B) ≃ₗ[ℂ] TensorProduct ℂ B Aᵐᵒᵖ`, where `A`, `B` are again finite-dimensional C*-algebras with faithful and positive functionals.



Co-authored-by: Monica Omar <2497250a@research.gla.ac.uk>
pechersky pushed a commit to pechersky/mathlib4 that referenced this pull request Aug 25, 2025
…ct on opposite spaces (leanprover-community#25951)

This pr defines the inner product on opposite spaces.

Motivation for having the inner product structure on the opposite:
One application comes up in non-commutative graphs, which are defined on a finite-dimensional C*-algebra with a faithful and positive functional (a Hilbert space structure can be induced by the defined faithful and positive functional (will be added to a pr soon)). For example, we'd need the Hilbert space structure to be defined on the opposite space to define the isomorphism: `(A →ₗ[ℂ] B) ≃ₗ[ℂ] TensorProduct ℂ B Aᵐᵒᵖ`, where `A`, `B` are again finite-dimensional C*-algebras with faithful and positive functionals.



Co-authored-by: Monica Omar <2497250a@research.gla.ac.uk>
pfaffelh pushed a commit to pfaffelh/mathlib4 that referenced this pull request Jan 9, 2026
…ct on opposite spaces (leanprover-community#25951)

This pr defines the inner product on opposite spaces.

Motivation for having the inner product structure on the opposite:
One application comes up in non-commutative graphs, which are defined on a finite-dimensional C*-algebra with a faithful and positive functional (a Hilbert space structure can be induced by the defined faithful and positive functional (will be added to a pr soon)). For example, we'd need the Hilbert space structure to be defined on the opposite space to define the isomorphism: `(A →ₗ[ℂ] B) ≃ₗ[ℂ] TensorProduct ℂ B Aᵐᵒᵖ`, where `A`, `B` are again finite-dimensional C*-algebras with faithful and positive functionals.



Co-authored-by: Monica Omar <2497250a@research.gla.ac.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! t-analysis Analysis (normed *, calculus)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants