#35249 feat(Analysis/Matrix): linear functional on matrices is positive iff its weight is positive semi-definite
In plain words
Adds a new file Analysis/Matrix/GNS.lean. It defines the weight of a linear functional on matrices: the matrix with . It then shows two things. First, is star-preserving iff is Hermitian. Second, is monotone and star-preserving iff is positive semidefinite; over , monotone alone is enough. So positive functionals on correspond to PSD matrices, which is the setting of the GNS inner product . The existing toMatrixInnerProductSpace constructions move unchanged from Analysis/Matrix/Order.lean into the new file.
Transcriptions are drafted with an LLM from the diff and are a reading aid, not a verified statement: the Lean code is the reference.
PR description
No comments yet, I'm still thinking of the best thing to do here.
Conversation on GitHub 6
PR summary 32af1e5dd5
Import changes for modified files
No significant changes to the import graph
<details><summary>Import changes for all files</summary>
|Files|Import difference|
|-|-|
| Mathlib.Analysis.Matrix.GNS (new file)|2440|
</details>
<details><summary>
Declarations diff
</summary>
+ Module.Dual.eq_trace_mul_weight
+ Module.Dual.isSelfAdjoint_toConv_iff_isHermitian_weight
+ Module.Dual.monotone_and_isSelfAdjoint_toConv_iff_posSemidef_weight
+ Module.Dual.monotone_iff_posSemidef_weight
+ Module.Dual.weight
+ isHermitian_iff_star_dotProduct
+ posSemidef_iff_complex
<details>
<summary>You can run this locally as follows</summary>
## summary with just the declaration names:
./scripts/pr_summary/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/pr_summary/declarations_diff.sh long <optional_commit>
</details>
The doc-module for scripts/pr_summary/declarations_diff.sh contains some details about this script.
</details>
<details><summary>No changes to technical debt.</summary>
You can run this locally as
./scripts/reporting/technical-debt-metrics.sh pr_summary
- The
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
</details>
This pull request has conflicts, please merge master and resolve them.
This pull request has conflicts, please merge master and resolve them.
This pull request has conflicts, please merge master and resolve them.
This pull request has conflicts, please merge master and resolve them.
This pull request has conflicts, please merge master and resolve them.
Mathlib.lean +1 −0
public import Mathlib.Analysis.LocallyConvex.WeakOperatorTopologyMathlib/Analysis/Matrix/GNS.lean +166 −0 new file
Mathlib/Analysis/Matrix/Order.lean +0 −60
This allows us to use more general results from C⋆-algebras, like `CFC.sqrt`.def tracePositiveLinearMap : Matrix n n 𝕜 →ₚ[α] 𝕜 :=