Repository navigation
Central force integrability #2001
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Sudo-RR
wants to merge
14
commits into
leanprover-community:master
Choose a base branch
from
Sudo-RR:central-force-integrability
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
16f74e6
feat(ClassicalMechanics): add the Poisson bracket
Sudo-RR b38cf4f
feat(PhyslibAlpha): Liouville integrable systems
Sudo-RR cbd88d2
feat(PhyslibAlpha): calculus rules for HasGradientAt
Sudo-RR 4e03862
feat(PhyslibAlpha): central forces
Sudo-RR b07c1bb
feat(PhyslibAlpha): angular momentum is conserved under a central force
Sudo-RR 3e9d3b5
feat(PhyslibAlpha): analytic functions are non-zero on a dense set
Sudo-RR 2f5fc62
feat(PhyslibAlpha): central-force systems are Liouville integrable
Sudo-RR a718260
Add analytic nonvanishing and an open dense central-force domain
Sudo-RR 37de52f
Establish central-force Liouville integrability on the dense domain
Sudo-RR 8ec61c0
Merge branch 'leanprover-community:master' into central-force-integra…
Sudo-RR 93a0c5b
Merge upstream Hamiltonian systems into central-force integrability
Sudo-RR ddab82d
Connect central-force integrability to Hamiltonian systems
Sudo-RR be47ee4
Fix Liouville integrability module contents indentation
Sudo-RR 2d6617e
Name Hamiltonian system integrability data fields
Sudo-RR File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| /- | ||
| Copyright (c) 2026 Rithwik Ranganathan. All rights reserved. | ||
| Released under Apache 2.0 license as described in the file LICENSE. | ||
| Authors: Rithwik Ranganathan | ||
| -/ | ||
| module | ||
|
|
||
| -- `Uniqueness` imports this module privately; the auxiliary analyticity lemmas need its public API. | ||
| public import Mathlib.Analysis.Analytic.Constructions | ||
| public import Mathlib.Analysis.Analytic.Uniqueness | ||
| public import Mathlib.Analysis.InnerProductSpace.PiL2 | ||
| /-! | ||
|
|
||
| # Analyticity and dense non-vanishing sets | ||
|
|
||
| Analytic coordinate functions and density of the non-vanishing set of an analytic function. | ||
|
|
||
| ## i. Overview | ||
|
|
||
| By the identity principle, an analytic function on a connected normed space which vanishes on a | ||
| non-empty open set vanishes everywhere. Hence an analytic function which is non-zero at one point | ||
| is non-zero on a dense set. | ||
|
|
||
| The coordinate functionals on Euclidean space are registered with `fun_prop` to automate proofs of | ||
| analyticity for polynomial expressions in the coordinates. Combined with the density lemma, this | ||
| shows that the non-vanishing set of such an expression is dense whenever it is non-zero at some | ||
| point. Applications include domains in phase space used in proofs of Liouville integrability. | ||
|
|
||
| ## ii. Key results | ||
|
|
||
| - `AnalyticOnNhd.dense_setOf_ne_zero` : a function analytic on a connected space and non-zero at | ||
| some point is non-zero on a dense set. | ||
| - `analyticAt_euclideanSpace_apply` : coordinate functionals on Euclidean space are analytic. | ||
|
|
||
| ## iii. Table of contents | ||
|
|
||
| - A. Density of the non-vanishing set | ||
| - B. Analyticity of coordinate functionals | ||
|
|
||
| ## iv. References | ||
|
|
||
| The density proof uses the identity principle in `Mathlib.Analysis.Analytic.Uniqueness`. | ||
| -/ | ||
|
|
||
| @[expose] public section | ||
|
|
||
| open Filter Topology | ||
|
|
||
| /-! | ||
|
|
||
| ## A. Density of the non-vanishing set | ||
|
|
||
| -/ | ||
|
|
||
| /-- A function analytic on a connected space, and non-zero at some point, is non-zero on a dense | ||
| set. -/ | ||
| lemma AnalyticOnNhd.dense_setOf_ne_zero {𝕜 E F : Type*} [NontriviallyNormedField 𝕜] | ||
| [NormedAddCommGroup E] [NormedSpace 𝕜 E] [NormedAddCommGroup F] [NormedSpace 𝕜 F] | ||
| [PreconnectedSpace E] {f : E → F} (hf : AnalyticOnNhd 𝕜 f Set.univ) {x₀ : E} | ||
| (hx₀ : f x₀ ≠ 0) : Dense {x | f x ≠ 0} := by | ||
| rw [dense_iff_inter_open] | ||
| rintro W hW ⟨z, hz⟩ | ||
| by_contra h | ||
| have hzero : f =ᶠ[𝓝 z] 0 := by | ||
| filter_upwards [hW.mem_nhds hz] with y hy | ||
| by_contra hne | ||
| exact h ⟨y, hy, hne⟩ | ||
| exact hx₀ (congrFun (hf.eq_of_eventuallyEq analyticOnNhd_const hzero) x₀) | ||
|
|
||
| /-! | ||
|
|
||
| ## B. Analyticity of coordinate functionals | ||
|
|
||
| -/ | ||
|
|
||
| /-- The coordinate functionals on Euclidean space are analytic. -/ | ||
| @[fun_prop] | ||
| lemma analyticAt_euclideanSpace_apply {𝕜 ι : Type*} [RCLike 𝕜] [Fintype ι] (i : ι) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the reason behind having this lemma? Seems like one could just use |
||
| (z : EuclideanSpace 𝕜 ι) : AnalyticAt 𝕜 (fun x : EuclideanSpace 𝕜 ι => x i) z := | ||
| (EuclideanSpace.proj (𝕜 := 𝕜) i).analyticAt z | ||
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would remove this line.