Skip to content

feat(QuantumMechanics): LinearPMap state observables#1094

Merged
jstoobysmith merged 22 commits into
leanprover-community:masterfrom
or4nge19:LinearPMap-Observables
May 19, 2026
Merged

feat(QuantumMechanics): LinearPMap state observables#1094
jstoobysmith merged 22 commits into
leanprover-community:masterfrom
or4nge19:LinearPMap-Observables

Conversation

@or4nge19
Copy link
Copy Markdown
Collaborator

@or4nge19 or4nge19 commented May 13, 2026

This is PR 1 of 3 and it adapts a small portion of a larger state-observable and canonical-CCR development from Axiomatic-AI developments into physlib.
This file/PR defines the expectation value, centered vector, variance, and standard deviation of T in the state ψ, for a partial linear map T on a complex inner product space and a vector ψ ∈ T.domain, building on Unbounded_v2 proposal in #1090.
Subsequent PRs will specialize this API to the position and momentum partial maps, and port the abstract CCR uncertainty and equality-condition lemmas.

gloges and others added 14 commits May 11, 2026 23:02
This file/PR defines the expectation value, centered vector, variance, and standard deviation of `T` in the state `ψ`, for a partial linear map `T` on a complex inner product space and a vector `ψ ∈ T.domain`, building on Unbounded_v2 proposal.

This is PR 1 of 3 and adapts a small portion of a larger state-observable and canonical-CCR development (being carried-out at Axiomatic-AI) into physlib.
Subsequent PRs will specialize this API to the position and momentum partial maps, and port the CCR uncertainty and equality-condition lemmas.
Depends on leanprover-community#1090
@jstoobysmith
Copy link
Copy Markdown
Member

Nice! Will likely have to wait for #1090 to be cleaned up and merged before this.

@jstoobysmith
Copy link
Copy Markdown
Member

blocked-by-PR

@jstoobysmith
Copy link
Copy Markdown
Member

Actually the changes of this PR seem logically independent from the changes in #1090. Could separate them out and make this PR now

@jstoobysmith
Copy link
Copy Markdown
Member

(Sorry maybe not, missed some props used)

@morrison-daniel morrison-daniel added merge-conflict The PR has a merge conflict with master and removed blocked-by-PR This PR depends on another PR labels May 15, 2026
@morrison-daniel
Copy link
Copy Markdown
Collaborator

#1090 is merged and this is unblocked after resolving merge conflicts

@matteo-ax
Copy link
Copy Markdown

matteo-ax commented May 17, 2026

merge-conflict

@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master label May 17, 2026
@jstoobysmith
Copy link
Copy Markdown
Member

Opps sorry, some of my comments on #1095 where meant for here.

Comment thread Physlib/QuantumMechanics/DDimensions/Operators/StateObservables/SecondOrder.lean Outdated
or4nge19 added a commit to or4nge19/HepLean that referenced this pull request May 19, 2026
address review's suggestions and update changes from leanprover-community#1094
Consolidated on expectedValue, variance (‖centered‖²), and standardDeviation. The second-order formula is now a lemma, variance_eq_re_inner_sub_expectedValue_sq under the usual hypotheses, not a second definition.
@or4nge19 or4nge19 changed the title feat(QuantumMechanics): LineaPMap state observables feat(QuantumMechanics): LinearPMap state observables May 19, 2026
or4nge19 added a commit to or4nge19/HepLean that referenced this pull request May 19, 2026
updated after latest changes to leanprover-community#1094
Comment thread Physlib/QuantumMechanics/DDimensions/Operators/StateObservables/SecondOrder.lean Outdated
@or4nge19
Copy link
Copy Markdown
Collaborator Author

t-quantum-mechanics

@github-actions github-actions Bot added the t-quantum-mechanics Quantum mechanics label May 19, 2026
Copy link
Copy Markdown
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.

Approved - many thanks for iterating with me. Will merge when it finishes the linters (assuming it passes).

@jstoobysmith jstoobysmith added the ready-to-merge This PR is approved and will be merged shortly label May 19, 2026
@or4nge19
Copy link
Copy Markdown
Collaborator Author

Thank you for the patient review!

@jstoobysmith jstoobysmith merged commit bcfd208 into leanprover-community:master May 19, 2026
4 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.

5 participants