Skip to content

refactor: Weyl fermions#1360

Open
jstoobysmith wants to merge 2 commits into
leanprover-community:masterfrom
jstoobysmith:WeylFermionRefactor
Open

refactor: Weyl fermions#1360
jstoobysmith wants to merge 2 commits into
leanprover-community:masterfrom
jstoobysmith:WeylFermionRefactor

Conversation

@jstoobysmith

Copy link
Copy Markdown
Member

Refactoring Weyl fermions. All of the changes with content take place in ../Weyl/Basic.lean (and one or two changes in ../Weyl/Module.lean). Everything downstream of that is just fixing what broke.

Idea here is to improve the naming around Weyl fermions, and to improve the structure of the API.

@github-actions

github-actions Bot commented Jul 3, 2026

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.

@nateabr nateabr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi I went through this, very very minor comments but apart from that looks great.

- fromPairT (DualRightHandedWeyl.basis 1 ⊗ₜ[ℂ] DualRightHandedWeyl.basis 0) := by
rw [dualRightMetric_eq_fromPairT, dualRightMetricVal_expand_tmul]
simp

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A little unsure about this but the names for the lemma's you've provided above, wont having the declaration as you've written with a dot (eg. dualRightMetric_eq_DualRightHandedWeyl.basis ) automatically register the prefix as namespace within this environment?

Was this your intention? Might be better to use an underscore if not?

∑ i, fromPairT (RightHandedWeyl.basis i ⊗ₜ[ℂ] DualRightHandedWeyl.basis i) := by
rw [rightDualRightUnit_eq_fromPairT, rightDualRightUnitVal_expand_tmul]
rfl

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same issue as my prior comment.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants