Skip to content

refactor(QM): Improve/golf LRL proofs#1019

Merged
jstoobysmith merged 9 commits intoleanprover-community:masterfrom
gloges:LRL-golf
Apr 2, 2026
Merged

refactor(QM): Improve/golf LRL proofs#1019
jstoobysmith merged 9 commits intoleanprover-community:masterfrom
gloges:LRL-golf

Conversation

@gloges
Copy link
Copy Markdown
Contributor

@gloges gloges commented Apr 2, 2026

Makes progress in improving/golfing the proofs for the LRL vector, taking advantage of the Kronecker delta api (c.f. #979) and commutator simp lemmas (@[simp] added in #994).

@gloges
Copy link
Copy Markdown
Contributor Author

gloges commented Apr 2, 2026

t-quantum-mechanics

@gloges
Copy link
Copy Markdown
Contributor Author

gloges commented Apr 2, 2026

RFC

@github-actions github-actions bot added t-quantum-mechanics Quantum mechanics RFC Request for comment labels Apr 2, 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 - will merge shortly


/-- The operator `𝐱ᵢ𝐩ᵢ` on Schwartz maps. -/
private def positionDotMomentum {d} := ∑ i : Fin d, 𝐱[i] ∘L 𝐩[i]
private def positionDotMomentum (d : ℕ) := ∑ i : Fin d, 𝐱[i] ∘L 𝐩[i]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I wonder if there is a way to define this type of dot product in general, so we wouldn't need a separate definition for each of them.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You mean to subsume not only positionDotMomentum but also ∑ i, 𝐩[i] ∘L 𝐩[i], ∑ i, ∑ j, 𝐋[i,j] ∘L 𝐋[i,j], etc? Yeah, that could be nice - I will think on how to do this.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah exactly. If you can get all three with the same definition it would be great, but even just the first two would be nice.

@jstoobysmith jstoobysmith added ready-to-merge This PR is approved and will be merged shortly and removed RFC Request for comment labels Apr 2, 2026
@jstoobysmith jstoobysmith merged commit 269f77b into leanprover-community:master Apr 2, 2026
5 checks passed
@gloges gloges deleted the LRL-golf branch April 3, 2026 01:32
@gloges gloges changed the title refactor(QR): Improve/golf LRL proofs refactor(QM): Improve/golf LRL proofs Apr 3, 2026
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