Skip to content

Conversation

@NicolaBernini
Copy link
Contributor

@NicolaBernini NicolaBernini commented Dec 20, 2025

Overview

Addressing TODOs in PhysLean/QuantumMechanics/OneDimension/HarmonicOscillator/Basic.lean

Details

Refactoring

  • Removed redundant local definitions of momentumOperator and positionOperator in HarmonicOscillator/Basic.lean.
  • Updated the file to import the standard operator definitions from PhysLean.QuantumMechanics.OneDimension.Operators.Momentum and .Position.
  • Updated the scoped notations Pᵒᵖ and Xᵒᵖ to alias these imported operators.

New Features/Proofs

  • Implemented proofs for the linearity of the schrodingerOperator.

  • Added schrodingerOperator_add: Proves the operator preserves addition.

  • Added schrodingerOperator_smul: Proves the operator preserves scalar multiplication.

  • Addressed and removed the corresponding TODO items from the file.

@NicolaBernini NicolaBernini requested a review from a team as a code owner December 20, 2025 12:58
Copy link
Member

@jstoobysmith jstoobysmith left a comment

Choose a reason for hiding this comment

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

This looks good to me! Many thanks! I will merge shortly

@jstoobysmith jstoobysmith merged commit da305f5 into HEPLean:master Dec 20, 2025
2 checks passed
@jstoobysmith
Copy link
Member

Merged - many thanks

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants