feat(QuantumMechanics): LinearPMap state observables#1094
Merged
jstoobysmith merged 22 commits intoMay 19, 2026
Conversation
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
Member
|
Nice! Will likely have to wait for #1090 to be cleaned up and merged before this. |
Member
|
blocked-by-PR |
Member
|
Actually the changes of this PR seem logically independent from the changes in #1090. Could separate them out and make this PR now |
Member
|
(Sorry maybe not, missed some props used) |
Collaborator
|
#1090 is merged and this is unblocked after resolving merge conflicts |
|
merge-conflict |
Member
|
Opps sorry, some of my comments on #1095 where meant for here. |
also added co-authors
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
added a commit
to or4nge19/HepLean
that referenced
this pull request
May 19, 2026
updated after latest changes to leanprover-community#1094
Collaborator
Author
|
t-quantum-mechanics |
jstoobysmith
approved these changes
May 19, 2026
Member
jstoobysmith
left a comment
There was a problem hiding this comment.
Approved - many thanks for iterating with me. Will merge when it finishes the linters (assuming it passes).
Collaborator
Author
|
Thank you for the patient review! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Tin the stateψ, for a partial linear mapTon 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.