Skip to content

feat(QuantumMechanics): Sobolev submodules of SpaceDHilbertSpace#1434

Merged
gloges merged 7 commits into
leanprover-community:masterfrom
adambornemann-glitch:feat/spacedhilbert-sobolev
Jul 23, 2026
Merged

feat(QuantumMechanics): Sobolev submodules of SpaceDHilbertSpace#1434
gloges merged 7 commits into
leanprover-community:masterfrom
adambornemann-glitch:feat/spacedhilbert-sobolev

Conversation

@adambornemann-glitch

Copy link
Copy Markdown
Contributor

Add Mathematics/Distribution/Tempered.lean with the general API for the embedding Lp → 𝓢': Lp.toTemperedDistribution_injective, the _add/_smul/_zero simp lemmas, and Lp.smulLeftCLM_toTemperedDistribution_eq_iff (for a temperate-growth symbol g, the distributional identity g · φ = u holds iff g • φ =ᵐ u).

Add SpaceD/SobolevSubmodule.lean defining sobolevSubmodule d s (H^s as a submodule of SpaceDHilbertSpace d), with Schwartz-map membership, density, and antitonicity in s. Add the schwartzIncl_apply rfl-lemma to SchwartzSubmodule.lean.

@github-actions

Copy link
Copy Markdown
Contributor

Thank you for this PR, which will now be reviewed. If submitting to ./Physlib or ./QuantumInfo, please see our review guidelines if you are not familiar with the process. You should expect a back and forth with a reviewer before your PR is merged. See also that link for how to add appropriate labels to your PR. The PR will also go through a number of automated checks. You can learn more about these here, including how to run them locally.

If you are submitting to ./PhyslibAlpha there will be a lighter review process, though your PR must still pass the automated checks.

If you want to bring attention to this PR, please write a message on this thread of the Lean Zulip.

Important: If a reviewer adds an awaiting-author label to your PR, once you have addressed the review comments, please remove that label by adding a comment with -awaiting-author. This helps us keep track of reviews.

@gloges gloges self-assigned this Jul 18, 2026
@gloges gloges added t-mathematics Mathematics t-quantum-mechanics Quantum mechanics labels Jul 18, 2026

@gloges gloges left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks, the Sobolev results look good! A few minor suggested changes collect them into a SobolevSubmodule namespace. I have more reservations about some of the distribution lemmas and schwartzIncl_apply; please let me know what you think.

@jstoobysmith would you mind having a look at (or suggesting someone else to check) the tempered distribution parts which I am less familiar with? For example, should we be using Physlib.Distribution instead of Mathlib's TemperedDistribution?

Comment thread Physlib/QuantumMechanics/HilbertSpaces/SpaceD/SchwartzSubmodule.lean Outdated
Comment thread Physlib/QuantumMechanics/HilbertSpaces/SpaceD/SobolevSubmodule.lean Outdated
Comment thread Physlib/Mathematics/Distribution/Tempered.lean Outdated
Comment thread Physlib/QuantumMechanics/HilbertSpaces/SpaceD/SobolevSubmodule.lean Outdated
Comment thread Physlib/QuantumMechanics/HilbertSpaces/SpaceD/SobolevSubmodule.lean Outdated
Comment thread Physlib/QuantumMechanics/HilbertSpaces/SpaceD/SobolevSubmodule.lean Outdated
Comment thread Physlib/QuantumMechanics/HilbertSpaces/SpaceD/SobolevSubmodule.lean Outdated
Comment thread Physlib/Mathematics/Distribution/Tempered.lean Outdated
Comment thread Physlib/QuantumMechanics/HilbertSpaces/SpaceD/SobolevSubmodule.lean Outdated
Comment thread Physlib/Mathematics/Distribution/Tempered.lean Outdated
@gloges gloges added the awaiting-author A reviewer has asked the author a question or requested changes label Jul 18, 2026
@adambornemann-glitch

Copy link
Copy Markdown
Contributor Author

-awaiting-author

@github-actions github-actions Bot removed the awaiting-author A reviewer has asked the author a question or requested changes label Jul 19, 2026
@adambornemann-glitch

Copy link
Copy Markdown
Contributor Author

awaiting-author

@github-actions github-actions Bot added the awaiting-author A reviewer has asked the author a question or requested changes label Jul 19, 2026
@adambornemann-glitch
adambornemann-glitch force-pushed the feat/spacedhilbert-sobolev branch from 04e7a66 to db59f12 Compare July 19, 2026 14:42
@github-actions github-actions Bot removed the awaiting-author A reviewer has asked the author a question or requested changes label Jul 19, 2026
@adambornemann-glitch

Copy link
Copy Markdown
Contributor Author

Okay, I think this takes care of the mathlib/physlib distribution issue? Happy to change it if there are further edits to make.

@gloges gloges left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Two minor suggestions to rehome the tempered distribution stuff (which has wider applicability than just Sobolev spaces), but otherwise looks good to me.

Comment thread Physlib/QuantumMechanics/HilbertSpaces/SpaceD/SobolevSubmodule.lean Outdated
Comment thread Physlib/QuantumMechanics/HilbertSpaces/SpaceD/SobolevSubmodule.lean Outdated
@gloges gloges added the awaiting-author A reviewer has asked the author a question or requested changes label Jul 20, 2026
adambornemann-glitch and others added 5 commits July 21, 2026 15:37
Add Mathematics/Distribution/Tempered.lean with the general API for the
embedding Lp → 𝓢': Lp.toTemperedDistribution_injective, the _add/_smul/_zero
simp lemmas, and Lp.smulLeftCLM_toTemperedDistribution_eq_iff (for a
temperate-growth symbol g, the distributional identity g · φ = u holds iff
g • φ =ᵐ u).

Add SpaceD/SobolevSubmodule.lean defining sobolevSubmodule d s (H^s as a
submodule of SpaceDHilbertSpace d), with Schwartz-map membership, density,
and antitonicity in s. Add the schwartzIncl_apply rfl-lemma to
SchwartzSubmodule.lean.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Per review: collect the Sobolev lemmas into a SobolevSubmodule namespace
and stop breaking out of the SpaceDHilbertSpace abstraction. Add
toTemperedDistribution / toTemperedDistributionCLM aliases (E = Space d,
F = ℂ, p = 2 fixed, mirroring MemHS) with the bridge lemma
SchwartzSubmodule.toTemperedDistribution_schwartzIncl_eq, and remove
schwartzIncl_apply. Define the submodule via the CLM so map_* applies,
dropping the toTemperedDistribution_add/smul/zero restatements; remove
toTemperedDistribution_injective.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Reformat per the style guide.
The Sobolev submodule now rests entirely on Mathlib's Lp and MemSobolev
API; the smulLeftCLM lemmas move to the momentum PR where they are used.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…ion API

The tempered-distribution aliases have wider applicability than Sobolev
spaces, so they move out of SobolevSubmodule.lean:

- `toTemperedDistribution` / `toTemperedDistributionCLM` land in a new
  section A.5 (Tempered Distribution) of HilbertSpaces/SpaceD/Basic.lean,
  between A.4 (Coersions) and Misc. (now A.6).
- `SchwartzSubmodule.toTemperedDistribution_schwartzIncl_eq` lands in
  section A of HilbertSpaces/SpaceD/SchwartzSubmodule.lean, dropping an
  unneeded `[μ.IsOpenPosMeasure]` hypothesis on the way.
- SobolevSubmodule.lean keeps only the Sobolev submodule itself; its
  remaining section renumbers to A and the module docstring is trimmed.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@adambornemann-glitch
adambornemann-glitch force-pushed the feat/spacedhilbert-sobolev branch from 435ccd7 to f3a11fa Compare July 21, 2026 21:12
@adambornemann-glitch

Copy link
Copy Markdown
Contributor Author

-awaiting-author

@github-actions github-actions Bot removed the awaiting-author A reviewer has asked the author a question or requested changes label Jul 21, 2026

@gloges gloges left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Sorry, just a few minor nitpicks to clean things up.

Comment thread Physlib/QuantumMechanics/HilbertSpaces/SpaceD/Basic.lean Outdated
Comment thread Physlib/QuantumMechanics/HilbertSpaces/SpaceD/Basic.lean Outdated
Comment thread Physlib/QuantumMechanics/HilbertSpaces/SpaceD/Basic.lean Outdated
Comment thread Physlib/QuantumMechanics/HilbertSpaces/SpaceD/Basic.lean Outdated
Comment thread Physlib/QuantumMechanics/HilbertSpaces/SpaceD/Basic.lean Outdated
@gloges gloges added awaiting-author A reviewer has asked the author a question or requested changes and removed t-mathematics Mathematics labels Jul 22, 2026
@adambornemann-glitch

Copy link
Copy Markdown
Contributor Author

I think I got everything.
-awaiting-author

@github-actions github-actions Bot removed the awaiting-author A reviewer has asked the author a question or requested changes label Jul 22, 2026

@gloges gloges left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good - thanks again!

@gloges gloges added the ready-to-merge This PR is approved and will be merged shortly label Jul 22, 2026
@gloges
gloges merged commit f69d4c5 into leanprover-community:master Jul 23, 2026
6 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.

2 participants