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

← queue

#28972 feat(LinearAlgebra/Matrix): star-algebra automorphisms on matrices are unitarily inner

awaiting-author t-analysis t-algebra CI none

+138 −0 · 2 files · 87 commits · head 37101ef · updated 263 days ago · Files changed on GitHub

In plain words

New file Analysis/Matrix/StarAlgEquiv.lean. It proves a Skolem–Noether statement for full matrix algebras: every -algebra automorphism of is conjugation by an invertible matrix. Its star version says every -algebra automorphism of ( or ) is conjugation by a unitary matrix. The bridge is a general lemma: when the range of a star-preserving map has trivial centralizer, conjugating by a unit and conjugating by a unitary give the same family of maps. The PR builds on Unitary.conjStarAlgAut and MulSemiringAction.toAlgEquiv for ConjAct. Two proof_wanted statements cover isomorphisms .

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

Characterization of star-algebra automorphisms on matrices: for any star-algebra automorphism f on matrices, there exists a unitary matrix U such that f x = U * x * star U.

More generally, this shows that given star-homomorphisms f and g from B to a star-algebra A and that the centralizer of range g is trivial, then f x = U * g x * U⁻¹ for some invertible element U if and only if f x = U * g x * star U for some unitary U.

Then a corollary to this and AlgEquiv.eq_linearEquivConjAlgEquiv is that star-algebra automorphisms on matrices are unitarily inner.

Another quick corollary to this and ContinuousAlgEquiv.eq_continuousLinearEquivConjContinuousAlgEquiv is that star-algebra automorphisms on endomorphisms in ℂ-Hilbert spaces are unitarily inner. (See #33066 for the more general version of this.)


![Open in Gitpod](gitpod.io/from-referrer/)

Conversation on GitHub 4
github-actions[bot] · comment · 2025-08-26
PR summary a06e2b664a
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.StarAlgEquiv (new file)|2146|

</details>


Declarations diff

No declarations were harmed in the making of this PR! 🐙 <details> <summary>You can run this locally as follows</summary>

## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

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

</details>

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


<details><summary>No changes to technical debt.</summary>

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

</details>

themathqueen · comment · 2025-09-16

@eric-wieser, @Whysoserioushah, since #28100 is no longer a thing and we're waiting for Skolem-Noether to get upstreamed. Should I generalize this to:

variable {𝕜 A B : Type*} [RCLike 𝕜]
  [Ring A] [Algebra 𝕜 A] [Algebra.IsCentral 𝕜 A] [IsSimpleRing A] [StarRing A]
  [StarModule 𝕜 A] [PartialOrder A] [StarOrderedRing A]
  [Semiring B] [Algebra 𝕜 B] [Star B]

/-- Given ⋆-algebra homomorphisms `f` and `g`, where `f` is surjective,
`f` and `g` differ by a unit iff they differ by a unitary. -/
theorem StarAlgHom.coe_eq_units_conjugate_iff_coe_eq_unitary_conjugate
    (f g : B →⋆ₐ[𝕜] A) (hf : Function.Surjective f) :
    (∃ (x : Aˣ), ⇑g = fun b => ↑x * f b * ↑x⁻¹) ↔
    ∃ (u : unitary A), ⇑g = fun b => u * f b * (star u : A) := by

Not sure if this can be generalized any further.

(the proof is analogous to the one for matrices)

mathlib4-merge-conflict-bot · comment · 2025-11-11

This pull request has conflicts, please merge master and resolve them.

mathlib4-dependent-issues-bot · comment · 2025-12-08

This PR/issue depends on:

  • ~~leanprover-community/mathlib4#28100~~
  • ~~leanprover-community/mathlib4#28182~~
  • ~~leanprover-community/mathlib4#28881~~

By Dependent Issues (🤖). Happy coding!

Mathlib.lean +1 −0

public import Mathlib.Analysis.Matrix.Normed
1860public import Mathlib.Analysis.Matrix.Order
1861public import Mathlib.Analysis.Matrix.PosDef
1862public import Mathlib.Analysis.Matrix.Spectrum
1863public import Mathlib.Analysis.Matrix.StarAlgEquiv
1864public import Mathlib.Analysis.MeanInequalities
1865public import Mathlib.Analysis.MeanInequalitiesPow
1866public import Mathlib.Analysis.MellinInversion

Mathlib/Analysis/Matrix/StarAlgEquiv.lean +137 −0 new file

1/-
2Copyright (c) 2025 Monica Omar. All rights reserved.
3Released under Apache 2.0 license as described in the file LICENSE.
4Authors: Monica Omar
5-/
6module
7
8public import Mathlib.Algebra.Algebra.Subalgebra.Basic
9public import Mathlib.Algebra.Order.Ring.Star
10public import Mathlib.Algebra.Star.UnitaryStarAlgAut
11public import Mathlib.Analysis.RCLike.Basic
12public import Mathlib.LinearAlgebra.Matrix.GeneralLinearGroup.Defs
13public import Mathlib.LinearAlgebra.UnitaryGroup
15import Mathlib.Algebra.Central.Basic
16import Mathlib.Algebra.Central.Matrix
17import Mathlib.Analysis.Matrix.Order
18import Mathlib.Analysis.SpecialFunctions.Pow.Real
19import Mathlib.LinearAlgebra.GeneralLinearGroup.AlgEquiv
21/-!
23# Star algebra equivalences on matrices are unitarily inner
25-/
27open scoped ComplexOrder
29variable {𝕜 A B F : Type*} [RCLike 𝕜] [Ring A] [Algebra 𝕜 A] [StarRing A] [StarModule 𝕜 A]
30 [PartialOrder A] [StarOrderedRing A] [Star B] [FunLike F B A] [StarHomClass F B A]
theorem StarHom.coe_eq_units_conjugate_iff_coe_eq_unitary_conjugate newL32–92
32/-- Given ⋆-homomorphisms `f` and `g`, where the centralizer of the range of `f` is trivial,
33`f` and `g` differ by a unit iff they differ by a unitary. -/
34public theorem StarHom.coe_eq_units_conjugate_iff_coe_eq_unitary_conjugate
themathqueen · 2025-12-19

This could go in another file with relatively lower imports:


public import Mathlib.Algebra.Order.Ring.Star
public import Mathlib.Algebra.Algebra.Subalgebra.Basic
public import Mathlib.Analysis.RCLike.Basic

import Mathlib.Analysis.SpecialFunctions.Pow.Real

But I'm not sure we'd use this outside of this file (and its dependents).

35 (f g : F) (hf : Subalgebra.centralizer 𝕜 (Set.range f) = ⊥) :
36 (∃ (x : Aˣ), ⇑g = fun b ↦ ↑x * f b * ↑x⁻¹) ↔
37 ∃ (u : unitary A), ⇑g = fun b ↦ u * f b * (star u : A) := by
38 refine ⟨fun ⟨y, hy⟩ ↦ ?_, fun ⟨u, hu⟩ ↦ ⟨Unitary.toUnits u, hu⟩⟩
39 nontriviality A
40 have (x : B) : star (g x) = g (star x) := map_star _ _ |>.symm
41 simp_rw [hy, star_mul] at this
42 replace this (x : B) : star (y : A) * (y : A) * star (f x) * ↑y⁻¹ = star (f x) * star ↑y := by
43 simp_rw [mul_assoc, ← mul_assoc (y : A), ← map_star f, ← this, ← mul_assoc,
44 ← star_mul, Units.inv_mul, mul_one, map_star, star_mul]
45 replace this (x : B) : Commute (f x) (star ↑y * y) := by
46 specialize this (star x)
47 simp only [map_star, star_star] at this
48 simp_rw [Commute, SemiconjBy, ← mul_assoc, ← this, mul_assoc, Units.inv_mul, mul_one]
49 replace this (x : A) (hx : x ∈ Set.range f) : Commute x (star ↑y * y) :=
50 have ⟨a, ha⟩ := hx
51 ha ▸ this _
52 simp_rw [Commute, SemiconjBy, ← Subalgebra.mem_centralizer_iff 𝕜, hf] at this
53 obtain ⟨α, hα⟩ := this
54 simp only [AlgHom.toRingHom_eq_coe, Algebra.toRingHom_ofId, Algebra.algebraMap_eq_smul_one] at hα
55 have this : IsUnit (star (y : A) * y) := isUnit_iff_exists.mpr
56 ⟨y⁻¹ * star ((y⁻¹ : Aˣ) : A), by simp [← mul_assoc, ← star_mul, mul_assoc _ _ (star (y : A))]⟩
57 have thisα : α = RCLike.re α := by
58 have this10 := by simpa [IsSelfAdjoint, ← hα] using IsSelfAdjoint.star_mul_self (y : A)
59 rwa [(smul_left_injective _ one_ne_zero).eq_iff, RCLike.conj_eq_iff_re, eq_comm] at this10
60 have thisα' : α ≠ 0 := fun h ↦ by simp [h, ← hα] at this
61 have this2 : 0 ≤ α := by
62 rw [thisα, RCLike.ofReal_nonneg]
63 by_contra! this2
64 exact one_ne_zero <| (IsUnit.mk0 _ thisα').smul_eq_zero.mp (thisα.symm ▸ le_antisymm
65 (smul_zero (RCLike.re α : 𝕜) (A := A) ▸ smul_le_smul_of_nonpos_left zero_le_one
66 (by simpa using this2.le))
67 (thisα ▸ hα ▸ star_mul_self_nonneg (y : A)))
68 replace this2 := RCLike.ofReal_pos.mp <| thisα ▸ (lt_of_le_of_ne' this2 thisα')
69 have thisU : y * star (y : A) = α • (1 : A) := by simp [← Units.mul_left_inj y, mul_assoc, ← hα]
70 set αa := (((RCLike.re α : ℝ) ^ (-(1 / 2 : ℝ)) : ℝ) : 𝕜)
71 have isU : αa • (y : A) ∈ unitary A := by
72 simp_rw [Unitary.mem_iff, star_smul, RCLike.star_def, smul_mul_smul, αa, RCLike.conj_ofReal,
73 ← RCLike.ofReal_mul, ← Real.rpow_add this2, ← hα, thisU]
74 norm_num
75 nth_rw 2 [thisα]
76 simp [smul_smul, ← RCLike.ofReal_mul, ← Real.rpow_add_one (NeZero.of_pos this2).out]
77 set U : unitary A := ⟨_, isU⟩
78 have Uinv : ((((RCLike.re α : ℝ) ^ ((1 / 2 : ℝ)) : ℝ) : 𝕜) • ((y⁻¹ : Aˣ) : A)) =
79 (U⁻¹ : unitary A) := by
80 rw [← neg_neg (1 / 2 : ℝ), Real.rpow_neg_eq_inv_rpow, Real.inv_rpow this2.le]
81 set α' : 𝕜ˣ := Units.mk0 αa <| by
82 simp only [one_div, ne_eq, map_eq_zero, αa]
83 rw [Real.rpow_eq_zero this2.le (by simp)]
84 exact ne_of_gt this2
85 rw [RCLike.ofReal_inv, show ↑(RCLike.re α ^ (-(1 / 2 : ℝ))) = αa by rfl]
86 have := by simpa only [Units.val_smul] using congr(($(Units.smul_inv α' y) : A))
87 rw [show α' • y = Unitary.toUnits U by ext; simp [α', αa, U]] at this
88 rw [show ((U⁻¹ : unitary A) : A) = ((Unitary.toUnits U)⁻¹ : Aˣ) by rfl, this]
89 congr
90 use U
91 rw [← Unitary.coe_star, Unitary.star_eq_inv, ← Uinv]
92 simp [αa, Algebra.smul_mul_assoc, U, smul_smul, ← RCLike.ofReal_mul, ← Real.rpow_add this2, hy]
94section
95open Matrix
96variable {m n : Type*} [Fintype n] [Fintype m] [DecidableEq m] [DecidableEq n]
98-- TODO: wait for other PR
proof_wanted Matrix.AlgEquiv.coe_eq_conjugate newL99–101
99proof_wanted Matrix.AlgEquiv.coe_eq_conjugate {K : Type*} [Field K]
100 (f : Matrix m m K ≃ₐ[K] Matrix n n K) :
101 ∃ (U : Matrix n m K) (V : Matrix m n K) (hUV : U * V = 1), ⇑f = fun x ↦ U * x * V
103-- TODO: change `Matrix` to any central and simple finite algebra
104-- and then also add the `AlgHom` version of this
105-- and then also move this file outside of the `Matrix` folder
theorem AlgEquiv.eq_mulSemiringActionToAlgEquiv_conjAct newL106–120
106public theorem AlgEquiv.eq_mulSemiringActionToAlgEquiv_conjAct {K : Type*} [Field K]
107 (f : Matrix n n K ≃ₐ[K] Matrix n n K) :
108 ∃ U : GL n K, f = MulSemiringAction.toAlgEquiv K (G := ConjAct (GL n K)) _ U := by
109 obtain ⟨U, hU⟩ := ((toLinAlgEquiv'.symm.trans f).trans toLinAlgEquiv').eq_linearEquivConjAlgEquiv
110 use GeneralLinearGroup.toLin.symm (.ofLinearEquiv U)
111 ext1 x
112 have := by simpa using congr((toLinAlgEquiv'.trans $hU).trans toLinAlgEquiv'.symm x)
113 simp only [this, LinearMap.toMatrixAlgEquiv', toLinAlgEquiv', AlgEquiv.ofLinearEquiv_symm,
114 LinearMap.toMatrix'_symm, AlgEquiv.ofLinearEquiv_apply, LinearEquiv.conjAlgEquiv_apply,
115 LinearMap.toMatrix'_comp, LinearMap.toMatrix'_toLin', ← mul_assoc,
116 MulSemiringAction.toAlgEquiv_apply, ConjAct.units_smul_def, coe_units_inv]
117 congr
118 refine (inv_eq_right_inv ?_).symm
119 simp [ConjAct.ofConjAct, GeneralLinearGroup.toLin, LinearMap.GeneralLinearGroup.ofLinearEquiv,
120 LinearMap.toMatrixAlgEquiv', ← LinearMap.toMatrix'_comp]
122open ComplexOrder MatrixOrder
124-- TODO: change `Matrix` to any central, simple and star-ordered finite algebra
125-- and then also add the `StarAlgHom` version of this
theorem StarAlgEquiv.eq_unitaryConjStarAlgAut newL126–131
126public theorem StarAlgEquiv.eq_unitaryConjStarAlgAut (f : Matrix n n 𝕜 ≃⋆ₐ[𝕜] Matrix n n 𝕜) :
127 ∃ U : unitaryGroup n 𝕜, f = Unitary.conjStarAlgAut 𝕜 _ U := by
128 obtain ⟨g, hg⟩ := f.toAlgEquiv.eq_mulSemiringActionToAlgEquiv_conjAct
129 have := StarHom.coe_eq_units_conjugate_iff_coe_eq_unitary_conjugate (𝕜 := 𝕜) 1 f (by simp)
130 obtain ⟨U, hU⟩ := this.mp ⟨g, congr($hg)⟩
131 exact ⟨U, StarAlgEquiv.ext <| congrFun hU⟩
133-- TODO: wait for other PR
proof_wanted Matrix.StarAlgEquiv.coe_eq_conjugate newL134–135
134proof_wanted Matrix.StarAlgEquiv.coe_eq_conjugate (f : Matrix m m 𝕜 ≃ₐ[𝕜] Matrix n n 𝕜) :
135 ∃ (U : Matrix n m 𝕜) (hUV : U * Uᴴ = 1), ⇑f = fun x ↦ U * x * Uᴴ
137end
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.