mathlib4 review helperopen PRs by @themathqueen on leanprover-community/mathlib4

← queue

#46919 feat(CStarAlgebra/Extreme): extreme points of the self-adjoint closed unit ball is the set of self-adjoint unitaries

t-analysis CI success

+80 −0 · 1 file · 1 commit · head 2a91a1a · updated 2 days ago · Files changed on GitHub

PR description

In a C⋆-algebra, the extreme points of the self-adjoint closed unit ball is exactly the set of self-adjoint unitaries. Our main reference for this is Sakai's "C⋆-algebras and W⋆-algebras" 1.6.3.

Co-authored-by: Jon Bannon <59937998+JonBannon@users.noreply.github.com> Co-authored-by: Jireh Loreaux <loreaujy@gmail.com>


Conversation on GitHub 1
github-actions[bot] · comment · 2026-12-03
PR summary 2a91a1a35c
Import changes for modified files

No significant changes to the import graph

<details><summary>Import changes for all files</summary>

|Files|Import difference| |-|-|

</details>


<details><summary>

Declarations diff (regex)

</summary>

+ isStarProjection_negPart_of_mem_extremePoints_isSelfAdjoint_inter_unitClosedBall + isStarProjection_posPart_and_negPart_of_mem_extremePoints + isStarProjection_posPart_of_mem_extremePoints_isSelfAdjoint_inter_unitClosedBall + mem_extremePoints_isSelfAdjoint_inter_unitClosedBall_iff_isSelfAdjoint_and_mem_unitary + selfAdjoint.mem_extremePoints_unitClosedBall_iff_coe_mem_unitary <details> <summary>You can run this locally as follows</summary>

## 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>

</details>

The doc-module for scripts/pr_summary/declarations_diff.sh in the undefined repository contains some details about this script.

</details>

Declarations diff (Lean)

✅ Lean-aware diff — post-build, computed from the Lean environment (commit 2a91a1a).

  • +4 new declarations
  • −0 removed declarations
+isStarProjection_negPart_of_mem_extremePoints_isSelfAdjoint_inter_unitClosedBall
+isStarProjection_posPart_of_mem_extremePoints_isSelfAdjoint_inter_unitClosedBall
+mem_extremePoints_isSelfAdjoint_inter_unitClosedBall_iff_isSelfAdjoint_and_mem_unitary
+selfAdjoint.mem_extremePoints_unitClosedBall_iff_coe_mem_unitary

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

Current commit 2a91a1a35c Reference commit 7569ed00f9

This script lives in the undefined 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).

Mathlib/Analysis/CStarAlgebra/Extreme.lean +80 −0

import Mathlib.Analysis.CStarAlgebra.ApproximateUnit
14import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Projection
15import Mathlib.Analysis.CStarAlgebra.GelfandDuality
16import Mathlib.Analysis.SpecialFunctions.ContinuousFunctionalCalculus.Abs
17import Mathlib.Analysis.SpecialFunctions.ContinuousFunctionalCalculus.PosPart.Isometric
19/-! # Extreme points of the closed unit ball in C⋆-algebras
theorem isStarProjection_iff_mem_extremePoints_setOfPred_nonneg_inter_unitClosed
320@[deprecated (since := "2026-07-09")]
321alias isStarProjection_iff_mem_extremePoints_setOf_nonneg_inter_unitClosedBall :=
322 isStarProjection_iff_mem_extremePoints_setOfPred_nonneg_inter_unitClosedBall
theorem isStarProjection_posPart_and_negPart_of_mem_extremePoints newL324–351
324private theorem isStarProjection_posPart_and_negPart_of_mem_extremePoints
325 {e : A} (he : e ∈ extremePoints ℝ ({x | IsSelfAdjoint x} ∩ closedBall 0 1)) :
326 IsStarProjection (e⁺ : A) ∧ IsStarProjection (e⁻ : A) := by
327 let := spectralOrder A
328 let := spectralOrderedRing A
329 simp_rw [isStarProjection_iff_mem_extremePoints_setOfPred_nonneg_inter_unitClosedBall]
330 simp only [mem_closedBall_zero_iff, mem_extremePoints_iff_left, mem_ofPred_eq,
331 mem_inter_iff] at he ⊢
332 refine ⟨⟨⟨posPart_nonneg e, ?_⟩, ?_⟩, ⟨⟨negPart_nonneg e, ?_⟩, ?_⟩⟩
333 on_goal 2 4 => intro x hx y hy ⟨α, β, hα, hβ, hαβ, h⟩
334 on_goal 1 => grw [norm_posPart_le, he.1.2]
335 on_goal 2 => grw [norm_negPart_le, he.1.2]
336 all_goals have hpn := by simpa [sub_eq_iff_eq_add] using posPart_sub_negPart e he.1.1
337 on_goal 1 =>
338 have (x) (hx : 0 ≤ x) (hx0 : ‖x‖ ≤ 1) : ‖x - e⁻‖ ≤ 1 := by
339 grw [norm_sub_le_max_of_nonneg hx (negPart_nonneg e), norm_negPart_le]; simp [hx0, he]
340 have := he.2 _ ⟨hx.1.isSelfAdjoint.sub (negPart_nonneg e).isSelfAdjoint, this x hx.1 hx.2⟩ _
341 ⟨hy.1.isSelfAdjoint.sub (negPart_nonneg e).isSelfAdjoint, this y hy.1 hy.2⟩
342 refine hpn ▸ sub_eq_iff_eq_add.mp <| this ⟨α, β, hα, hβ, hαβ, ?_⟩
343 on_goal 2 =>
344 rw [add_comm, ← sub_eq_iff_eq_add] at hpn
345 have (x) (hx : 0 ≤ x) (hx0 : ‖x‖ ≤ 1) : ‖e⁺ - x‖ ≤ 1 := by
346 grw [norm_sub_le_max_of_nonneg (posPart_nonneg e) hx, norm_posPart_le]; simp [hx0, he]
347 have := he.2 _ ⟨(posPart_nonneg e).isSelfAdjoint.sub hx.1.isSelfAdjoint, this x hx.1 hx.2⟩ _
348 ⟨(posPart_nonneg e).isSelfAdjoint.sub hy.1.isSelfAdjoint, this y hy.1 hy.2⟩
349 rw [sub_eq_iff_eq_add', ← sub_eq_iff_eq_add, eq_comm, hpn] at this
350 refine this ⟨α, β, hα, hβ, hαβ, ?_⟩
351 all_goals simp [smul_sub, sub_add_sub_comm, ← add_smul, hαβ, sub_eq_iff_eq_add, ← hpn, h]
theorem isStarProjection_posPart_of_mem_extremePoints_isSelfAdjoint_inter_unitClosedBall newL353–355
353theorem isStarProjection_posPart_of_mem_extremePoints_isSelfAdjoint_inter_unitClosedBall
354 {e : A} (he : e ∈ Set.extremePoints ℝ ({x | IsSelfAdjoint x} ∩ closedBall 0 1)) :
355 IsStarProjection (e⁺ : A) := isStarProjection_posPart_and_negPart_of_mem_extremePoints he |>.1
theorem isStarProjection_negPart_of_mem_extremePoints_isSelfAdjoint_inter_unitClosedBall newL357–359
357theorem isStarProjection_negPart_of_mem_extremePoints_isSelfAdjoint_inter_unitClosedBall
358 {e : A} (he : e ∈ Set.extremePoints ℝ ({x | IsSelfAdjoint x} ∩ closedBall 0 1)) :
359 IsStarProjection (e⁻ : A) := isStarProjection_posPart_and_negPart_of_mem_extremePoints he |>.2
theorem mem_extremePoints_isSelfAdjoint_inter_unitClosedBall_iff_isSelfAdjoint_and_mem_unitary newL361–391
361/-- The extreme points of the self-adjoint closed unit ball is exactly the set of self-adjoint
362unitaries. -/
363theorem mem_extremePoints_isSelfAdjoint_inter_unitClosedBall_iff_isSelfAdjoint_and_mem_unitary
364 {A : Type*} [CStarAlgebra A] {e : A} :
365 e ∈ extremePoints ℝ ({x | IsSelfAdjoint x} ∩ closedBall 0 1) ↔
366 IsSelfAdjoint e ∧ e ∈ unitary A := by
367 refine ⟨fun he ↦ ⟨he.1.1, ?_⟩, fun he ↦ ?_⟩
368 · have h1 := isStarProjection_negPart_of_mem_extremePoints_isSelfAdjoint_inter_unitClosedBall he
369 have h2 := isStarProjection_posPart_of_mem_extremePoints_isSelfAdjoint_inter_unitClosedBall he
370 simp only [mem_extremePoints_iff_left, mem_inter_iff, mem_ofPred_eq, mem_closedBall_zero_iff]
371 at he
372 rw [Unitary.mem_iff, he.1.1, and_self, ← posPart_sub_negPart e he.1.1]
373 simp only [mul_sub, sub_mul, h2.isIdempotentElem.eq, negPart_mul_posPart, sub_zero,
374 posPart_mul_negPart, h1.isIdempotentElem.eq, zero_sub, sub_neg_eq_add]
375 rw [eq_comm, ← sub_eq_zero]
376 set x := 1 - (e⁺ + e⁻)
377 have hx : IsStarProjection x := (h2.add h1 (by simp)).one_sub
378 have : e * x = 0 := by
379 rw [← posPart_sub_negPart e he.1.1]
380 simp [x, mul_add, h1.isIdempotentElem.eq, h2.isIdempotentElem.eq, sub_eq_add_neg, add_mul]
381 refine add_eq_left.mp <| he.2 _ ⟨he.1.1.add hx.isSelfAdjoint, ?_⟩ _
382 ⟨he.1.1.sub hx.isSelfAdjoint, ?_⟩ ⟨2⁻¹, 2⁻¹, ?_⟩
383 · grw [(he.1.1.isStarOrtho_iff_mul_eq_zero hx.isSelfAdjoint).mpr this |>.norm_add, he.1.2,
384 hx.norm_le, max_self]
385 · grw [(he.1.1.isStarOrtho_iff_mul_eq_zero hx.isSelfAdjoint).mpr this |>.norm_sub, he.1.2,
386 hx.norm_le, max_self]
387 simp [← one_div, smul_add, smul_sub, ← two_smul ℝ, smul_smul, mul_one_div_cancel]
388 · refine inter_extremePoints_subset_extremePoints_of_subset inter_subset_right
389 ⟨⟨he.1, ?_⟩, by simpa using unitary_subset_extremePoints_unitClosedBall _ he.2⟩
390 nontriviality A
391 simp [he, CStarRing.norm_of_mem_unitary]
theorem selfAdjoint.mem_extremePoints_unitClosedBall_iff_coe_mem_unitary newL393–401
393/-- An alternate statement for
394`mem_extremePoints_isSelfAdjoint_inter_unitClosedBall_iff_isSelfAdjoint_and_mem_unitary`. -/
395theorem selfAdjoint.mem_extremePoints_unitClosedBall_iff_coe_mem_unitary
396 {A : Type*} [CStarAlgebra A] {e : selfAdjoint A} :
397 e ∈ extremePoints ℝ (closedBall 0 1) ↔ (e : A) ∈ unitary A := by
398 rw [show (e : A) ∈ unitary A ↔ (IsSelfAdjoint (e : A) ∧ (e : A) ∈ unitary A) by simp,
399 ← mem_extremePoints_isSelfAdjoint_inter_unitClosedBall_iff_isSelfAdjoint_and_mem_unitary]
400 simp [mem_extremePoints, selfAdjoint.mem_iff, ← isSelfAdjoint_iff]
401 simp [Subtype.ext_iff, openSegment]
0/5 declarations checked

Your review, as Markdown

Paste it as a comment or a review on the PR. Line links to the head commit unfold into code snippets on GitHub.