feat(QM): AddZeroClass for UnboundedOperator#999
Merged
jstoobysmith merged 5 commits intoleanprover-community:masterfrom Mar 21, 2026
Merged
feat(QM): AddZeroClass for UnboundedOperator#999jstoobysmith merged 5 commits intoleanprover-community:masterfrom
jstoobysmith merged 5 commits intoleanprover-community:masterfrom
Conversation
Contributor
Author
|
t-quantum-mechanics |
Contributor
Author
|
RFC |
Member
jstoobysmith
left a comment
There was a problem hiding this comment.
Looks mainly good to me. Couple of comments
Member
|
awaiting-author |
Contributor
Author
|
I realized that |
Contributor
Author
|
-awaiting-author |
jstoobysmith
approved these changes
Mar 21, 2026
Member
jstoobysmith
left a comment
There was a problem hiding this comment.
Approved - many thanks. Will merge shortly
ready-to-merge
Member
|
ready-to-merge |
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.
Defines zero as the zero map with full domain.
Defines addition of unbounded operators, using two junk values:
D(U1) ∩ D(U2)is not dense, use the zero with full domain.D(U1) ∩ D(U2)is dense butU1 + U2is not closable, use the zero map onD(U1) ∩ D(U2).This second junk value will be needed so that smul distributes over addition in all cases. It ensures that
c • (U1 + U2) = c • U1 + c • U2holds for(c : ℂ) = 0whenD(U1) ∩ D(U2)is dense, since the RHS is the zero map onD(U1) ∩ D(U2)regardless of whetherU1 + U2is closable or not.add_assocproves associativity holds when no junk values are encountered(cf. #957, #978)