Skip to content

feat(ClassicalMechanics/HarmonicOsciallator): a few refactors and a new lemma#1079

Merged
jstoobysmith merged 8 commits intoleanprover-community:masterfrom
Bergschaf:Harmonic
May 5, 2026
Merged

feat(ClassicalMechanics/HarmonicOsciallator): a few refactors and a new lemma#1079
jstoobysmith merged 8 commits intoleanprover-community:masterfrom
Bergschaf:Harmonic

Conversation

@Bergschaf
Copy link
Copy Markdown
Contributor

Hi,
I am an undergraduate physics student with a bit of lean experience and I just came across physlib. I was looking around the files and found a few things that could be expressed a bit cleaner (namely using @[ext] annotations).
I also added a new lemma about the periodicity of the trajectory of a harmonic oscillator. For this, i introduced the definition of the period T of a harmonic oscillator. Please give me some feedback if this is desirable here or if there are better design choices.

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.

Couple of comments, but looks like a very nice PR :).

Comment thread Physlib/ClassicalMechanics/HarmonicOscillator/Solution.lean Outdated
Comment thread Physlib/ClassicalMechanics/HarmonicOscillator/Solution.lean Outdated
Comment thread Physlib/ClassicalMechanics/HarmonicOscillator/Solution.lean Outdated
Comment thread Physlib/ClassicalMechanics/HarmonicOscillator/Solution.lean Outdated
Comment thread Physlib/ClassicalMechanics/HarmonicOscillator/Solution.lean Outdated
Comment thread Physlib/ClassicalMechanics/HarmonicOscillator/Solution.lean Outdated
Comment thread Physlib/ClassicalMechanics/HarmonicOscillator/Solution.lean
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 - many thanks and congrats on your first PR :). Will merge shortly.

@jstoobysmith jstoobysmith added ready-to-merge This PR is approved and will be merged shortly t-classical-mechanics Classical mechanics labels May 5, 2026
@jstoobysmith jstoobysmith merged commit 386bad2 into leanprover-community:master May 5, 2026
4 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-classical-mechanics Classical mechanics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants