Skip to content

refactor(QuantumMechanics): rename SelfAdjoint to Symmetric#1449

Merged
gloges merged 1 commit into
leanprover-community:masterfrom
KrystianNowakowski:rename-onedim-isselfadjoint-to-issymmetric
Jul 21, 2026
Merged

refactor(QuantumMechanics): rename SelfAdjoint to Symmetric#1449
gloges merged 1 commit into
leanprover-community:masterfrom
KrystianNowakowski:rename-onedim-isselfadjoint-to-issymmetric

Conversation

@KrystianNowakowski

@KrystianNowakowski KrystianNowakowski commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

QuantumMechanics.OneDimension.UnboundedOperator.IsSelfAdjoint in Physlib/QuantumMechanics/Operators/OneDimension/Unbounded.lean is defined as

∀ ψ1 ψ2 : S, ⟪U ψ1, ι ψ2⟫_ℂ = ⟪ι ψ1, U ψ2⟫_ℂ

which is the Hermicity — i.e. symmetry. It has no domain or density hypothesis, so it does not capture genuine self-adjointness, (A† = A, including equality of domains). For an unbounded operator on a proper dense core the two are not equivalent (The DDimensions operator API already draws this line correctly.)

Therefore, the PR renames to IsSymmetric and updates the three lemmas built on it, plus docstring/headings.

…elfAdjoint to IsSymmetric

`QuantumMechanics.OneDimension.UnboundedOperator.IsSelfAdjoint` is defined as the Hermitian pairing `∀ ψ1 ψ2, ⟪U ψ1, ι ψ2⟫ = ⟪ι ψ1, U ψ2⟫` — i.e. symmetry (formal self-adjointness). It carries no domain/density hypothesis, so it does not establish genuine self-adjointness (`A† = A` with equal domains), which for an unbounded operator on a proper dense core is strictly stronger. The old name invites that stronger reading.

Rename the definition and the three lemmas built on it (momentum/position/parityOperatorUnbounded_isSelfAdjoint → _isSymmetric), and update the docstring and section headings to match. Verified with a clean `lake build` of the four affected modules.
@github-actions

Copy link
Copy Markdown
Contributor

Thank you for this PR, which will now be reviewed. If submitting to ./Physlib or ./QuantumInfo, please see our review guidelines if you are not familiar with the process. You should expect a back and forth with a reviewer before your PR is merged. See also that link for how to add appropriate labels to your PR. The PR will also go through a number of automated checks. You can learn more about these here, including how to run them locally.

If you are submitting to ./PhyslibAlpha there will be a lighter review process, though your PR must still pass the automated checks.

If you want to bring attention to this PR, please write a message on this thread of the Lean Zulip.

Important: If a reviewer adds an awaiting-author label to your PR, once you have addressed the review comments, please remove that label by adding a comment with -awaiting-author. This helps us keep track of reviews.

@github-actions github-actions Bot added the t-quantum-mechanics Quantum mechanics label Jul 20, 2026

@gloges gloges left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @KrystianNowakowski, thanks for making your first PR and correcting this error in nomenclature. These changes look good to me!

@gloges gloges added the ready-to-merge This PR is approved and will be merged shortly label Jul 20, 2026
@gloges
gloges merged commit 7293135 into leanprover-community:master Jul 21, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR is approved and will be merged shortly t-quantum-mechanics Quantum mechanics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants