Skip to content

feat: Refactor downstream use away from FieldStrengthMatrix#1288

Open
NicolaBernini wants to merge 23 commits into
leanprover-community:masterfrom
NicolaBernini:feat/refactor-downstream-use-away-from-fieldStrengthMatrix-27June2026
Open

feat: Refactor downstream use away from FieldStrengthMatrix#1288
NicolaBernini wants to merge 23 commits into
leanprover-community:masterfrom
NicolaBernini:feat/refactor-downstream-use-away-from-fieldStrengthMatrix-27June2026

Conversation

@NicolaBernini

Copy link
Copy Markdown
Contributor

Overview

feat: Refactor downstream use away from FieldStrengthMatrix

@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.

Co-authored-by: Claude Opus 4.8 <no-reply+claude-opus-4-8@anthropic.com>
@jstoobysmith

Copy link
Copy Markdown
Member

@NicolaBernini I think this now has a merge conflict with your other PR

NicolaBernini and others added 6 commits June 26, 2026 18:52
Co-authored-by: Claude Opus 4.8 <no-reply+claude-opus-4-8@anthropic.com>
Co-authored-by: Claude Opus 4.8 <no-reply+claude-opus-4-8@anthropic.com>
Co-authored-by: Claude Opus 4.8 <no-reply+claude-opus-4-8@anthropic.com>
Co-authored-by: Claude Opus 4.8 <no-reply+claude-opus-4-8@anthropic.com>
Co-authored-by: Claude Opus 4.8 <no-reply+claude-opus-4-8@anthropic.com>
Co-authored-by: Claude Opus 4.8 <no-reply+claude-opus-4-8@anthropic.com>
@NicolaBernini

Copy link
Copy Markdown
Contributor Author

@NicolaBernini I think this now has a merge conflict with your other PR

Hi @jstoobysmith should be fixed now

-/

/-- The field-strength component obtained by evaluating both tensor indices. -/
noncomputable abbrev fieldStrengthComponent {d} (A : ElectromagneticPotential d) (x : SpaceTime d)

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.

This I'm not so sure about as it seems to be just a rewriting of fieldStrengthMatrix. I think what is needed here is to write the results in terms of toField {toFieldStrength A [mu] [nu]} (not quite the right syntax but hopefully obvious what I mean).

I think the idea is to base everything more concretely on toFieldStrength A rather than introducing a new version of it.

@jstoobysmith jstoobysmith added the awaiting-author A reviewer has asked the author a question or requested changes label Jun 27, 2026
NicolaBernini and others added 10 commits June 28, 2026 18:40
Co-authored-by: Claude Opus 4.8 <no-reply+claude-opus-4-8@anthropic.com>
Co-authored-by: Claude Opus 4.8 <no-reply+claude-opus-4-8@anthropic.com>
Co-authored-by: Claude Opus 4.8 <no-reply+claude-opus-4-8@anthropic.com>
Co-authored-by: Claude Opus 4.8 <no-reply+claude-opus-4-8@anthropic.com>
Co-authored-by: Claude Opus 4.8 <no-reply+claude-opus-4-8@anthropic.com>
Co-authored-by: Claude Opus 4.8 <no-reply+claude-opus-4-8@anthropic.com>
Co-authored-by: Claude Opus 4.8 <no-reply+claude-opus-4-8@anthropic.com>
Co-authored-by: Claude Opus 4.8 <no-reply+claude-opus-4-8@anthropic.com>
Co-authored-by: Claude Opus 4.8 <no-reply+claude-opus-4-8@anthropic.com>
Co-authored-by: Claude Opus 4.8 <no-reply+claude-opus-4-8@anthropic.com>
/-- The horizontal position `x₁` of the support mass. -/
supportPosition : ℝ
/-- The angle `φ` that the string makes with the vertical. -/
angle : ℝ

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 think I would make this [Real.Angle](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Analysis/SpecialFunctions/Trigonometric/Angle.html#Real.Angle) rather then Real.

NicolaBernini and others added 5 commits June 30, 2026 14:07
Co-authored-by: Claude Opus 4.8 <no-reply+claude-opus-4-8@anthropic.com>
Co-authored-by: Claude Opus 4.8 <no-reply+claude-opus-4-8@anthropic.com>
Co-authored-by: Claude Opus 4.8 <no-reply+claude-opus-4-8@anthropic.com>
Co-authored-by: Claude Opus 4.8 <no-reply+claude-opus-4-8@anthropic.com>
Co-authored-by: Claude Opus 4.8 <no-reply+claude-opus-4-8@anthropic.com>
@jstoobysmith

Copy link
Copy Markdown
Member

(Think we should remove the sliding pendulum changes from this PR)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-author A reviewer has asked the author a question or requested changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants