Skip to content

feat: a⁺ = 2⁻¹ • (CFC.abs a + a) on selfadjoint elements and the latter is continuous everywhere. - #46670

Open
j-loreaux wants to merge 2 commits into
leanprover-community:masterfrom
j-loreaux:posPartRetract
Open

j-loreaux wants to merge 2 commits into
leanprover-community:masterfrom
j-loreaux:posPartRetract

Conversation

@j-loreaux

@j-loreaux j-loreaux commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

This is useful for working with C⋆-algebras with finite spectrum (to be defined in a forthcoming PR). The map a ↦ a⁺ (for C⋆-algebras, this is defined in terms of CFC.posPart) is only continuous on selfadjoint elements because it is defined in terms of the real continuous functional calculus. However, 2⁻¹ • (CFC.abs a + a) coincides with a⁺ on selfadjoint elements, and this function is continuous everywhere.

Upstreamed from LeanOA


@j-loreaux j-loreaux added the t-analysis Analysis (normed *, calculus) label Nov 28, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

PR summary a10e423bc7

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Analysis.SpecialFunctions.ContinuousFunctionalCalculus.PosPart.Isometric 2598 2601 +3 (+0.12%)
Import changes for all files
Files Import difference
Mathlib.Analysis.CStarAlgebra.SpecialFunctions.PosPart Mathlib.Analysis.SpecialFunctions.ContinuousFunctionalCalculus.PosPart.Isometric 3

Declarations diff (regex)

+ continuousOn_negPart
+ continuousOn_posPart
+ continuous_halfAbsAddSelf
+ halfAbsAddSelf
+ halfAbsAddSelf_add_halfAbsAddSelf_neg
+ halfAbsAddSelf_def
+ halfAbsAddSelf_eq_posPart
+ halfAbsAddSelf_neg_eq_negPart
+ halfAbsAddSelf_sub_halfAbsAddSelf_neg
+ halfAbsAddSelf_zero

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

  • +11 new declarations
  • −0 removed declarations
+CFC.continuous_halfAbsAddSelf
+CFC.halfAbsAddSelf
+CFC.halfAbsAddSelf.congr_simp
+CFC.halfAbsAddSelf_add_halfAbsAddSelf_neg
+CFC.halfAbsAddSelf_def
+CFC.halfAbsAddSelf_eq_posPart
+CFC.halfAbsAddSelf_neg_eq_negPart
+CFC.halfAbsAddSelf_sub_halfAbsAddSelf_neg
+CFC.halfAbsAddSelf_zero
+continuousOn_negPart
+continuousOn_posPart

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

Current commit a10e423bc7
Reference commit 4e3e35e177

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

@github-actions

Copy link
Copy Markdown

🚨 PR Title Needs Formatting

Please update the title to match our commit style conventions.

Errors from script:

⚠ [214/319] Replayed «check-title-labels»
warning: scripts/check-title-labels.lean: missing `module` header as required by the `requiresModuleSystem` option
⚠ [215/319] Ran «check-title-labels»:irArts
warning: scripts/check-title-labels.lean: missing `module` header as required by the `requiresModuleSystem` option
labels are []
error: the PR title should not end with a full stop
Details on the required title format

The title should fit the following format:

<kind>(<optional-scope>): <subject>

<kind> is:

  • feat (feature)
  • fix (bug fix)
  • doc (documentation)
  • style (formatting, missing semicolons, ...)
  • refactor
  • test (when adding missing tests)
  • chore (maintain)
  • perf (performance improvement, optimization, ...)
  • ci (changes to continuous integration, repo automation, ...)

<optional-scope> is a name of module or a directory which contains changed modules.
This is not necessary to include, but may be useful if the <subject> is insufficient.
The Mathlib directory prefix is always omitted.
For instance, it could be

  • Data/Nat/Basic
  • Algebra/Group/Defs
  • Topology/Constructions

<subject> has the following constraints:

  • do not capitalize the first letter
  • no dot(.) at the end
  • use imperative, present tense: "change" not "changed" nor "changes"

@themathqueen themathqueen added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Nov 28, 2026
@j-loreaux j-loreaux removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Nov 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.

Thanks!

maintainer merge

@github-actions

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 Nov 28, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. t-analysis Analysis (normed *, calculus)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants