feat(Analysis/CStarAlgebra/CStarMatrix): operator-monotone rpow/log/sqrt specializations#39734
Conversation
…qrt specializations Adds 3 shortcut instances (ContinuousFunctionalCalculus ℝ, NonUnitalContinuousFunctionalCalculus ℝ, NonnegSpectrumClass ℝ) for CStarMatrix n n A to bypass a typeclass-diamond issue that prevents automatic discovery through the Matrix diamond. Then specializes CFC.monotone_rpow / CFC.log_monotoneOn / CFC.monotone_sqrt to CStarMatrix n n A for discoverability via the CStarMatrix namespace.
Welcome new contributor!Thank you for contributing to Mathlib! If you haven't done so already, please review our contribution guidelines, as well as the style guide and naming conventions. In particular, we kindly remind contributors that we have guidelines regarding the use of AI when making pull requests. We use a review queue to manage reviews. If your PR does not appear there, it is probably because it is not successfully building (i.e., it doesn't have a green checkmark), has the If you haven't already done so, please come to https://leanprover.zulipchat.com/, introduce yourself, and mention your new PR. Thank you again for joining our community. |
PR summary a3bf4892dbImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
Adds three discoverability lemmas for operator-monotonicity on
CStarMatrix n n A, specializing the existing C*-algebra-level results fromCFC.monotone_rpow/CFC.log_monotoneOn/CFC.monotone_sqrt:In the course of implementing these specializations, three shortcut instances are also registered to bypass a typeclass-diamond issue.
CStarMatrix n n AderivesCStarAlgebrafrom the underlyingCStarAlgebra A, but the typeclass search forContinuousFunctionalCalculus ℝ (CStarMatrix n n A) IsSelfAdjointdoes not find the path through theMatrixdiamond automatically. Explicit shortcut instances enable ergonomic use ofCFC.rpow,CFC.log, etc.:Reviewer note: I am NOT attached to this PR — if reviewers prefer that downstream users call
CFC.monotone_rpowdirectly and accept the typeclass-search cost, please close. The PR is offered as a convenience on the assumption that matrix-shaped users may search the matrix namespace first and benefit from the diamond shortcut. The shortcut instances may also belong in a separate PR if reviewers prefer.Extracted from LTFP-Lean (mechanical formalization of Bach's Learning Theory from First Principles), where matrix-side ergonomics matter for downstream proofs.
AI-assistance disclosure
Per the Mathlib AI-use policy:
lake build Mathlib.Analysis.CStarAlgebra.CStarMatrix.OperatorMonotone. I reviewed the final code.CStarMatrix.leanCFC.*directly