feat: Uniqueness of variational gradient#614
feat: Uniqueness of variational gradient#614jstoobysmith merged 12 commits intoleanprover-community:masterfrom
Conversation
|
Thank you for your PR! The following checklist can be used to ensure that the PR is as helpful as possible and to help maintain the quality of the project. This checklist is experimental and can be ignored if you wish. Documentation
Lemmas and theorems
Layout
Usage of AI Please tick one that applies to this PR:
|
|
Ugh I can't git and I didn't branch from |
|
Yeah this happens :(. I think rebasing works |
504d8cd to
953ed21
Compare
|
Fixed! |
|
|
||
|
|
||
| -- The assumption `IsTestFunction f` can be weakened to `Continuous f` | ||
| proof_wanted fundamental_theorem_of_variational_calculus' {f : X → V} |
There was a problem hiding this comment.
If you use
semiformal_result "FIE3I" fundamental_theorem_of_variational_calculus' {f : X → V}
(μ : Measure X) [IsFiniteMeasureOnCompacts μ] [μ.IsOpenPosMeasure]
[OpensMeasurableSpace X]
(hf : Continuous f) (hg : ∀ g, IsTestFunction g → ∫ x, ⟪f x, g x⟫_ℝ ∂μ = 0) :
f = 0(where the "FIE3I" is just a unique identifier) with the import
import PhysLean.Meta.Informal.SemiFormal
then this will be added to the TODO list.
There was a problem hiding this comment.
semiformal_result is a thin wrapper around proof_wanted just to make the TODO list work.
There was a problem hiding this comment.
How am I supposed to come up with the unique identifiers?
There was a problem hiding this comment.
"FIE3I" is unique :), but generally lake exe make_tag
There was a problem hiding this comment.
Hmm id does not work. I'm getting unexpected token 'semiformal_result'; expected command
There was a problem hiding this comment.
Sorry - my bad, the semi-formal result is required to have a doc-string (which is the thing which will actually appear in the TODO list).
|
|
||
| /-- Variation of `S(x) = ∫ 1/2*m*‖ẋ‖² - V(x)` gives Newton's law of motion `δS(x) = - m*ẍ - V'(x)`-/ | ||
| example (m : ℝ) (u V : ℝ → ℝ) (hu : ContDiff ℝ ∞ u) (hV : ContDiff ℝ ∞ V) : | ||
| lemma euler_lagrange_particle_1d (m : ℝ) (u V : ℝ → ℝ) |
There was a problem hiding this comment.
Maybe we could put this in the ClassicalMechanics directory?
There was a problem hiding this comment.
Yes this needs to be moved. I'm drafting PR where I show that variational gradient of action are Euler-Lagrange equations. This will be just a corollary.
The main theorem of this PR is that variational gradient is unique
Slightly weaker result holds for variational adjoint which is true only point wise on test functions.