-
Notifications
You must be signed in to change notification settings - Fork 153
refactor: Weyl fermions #1360
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
refactor: Weyl fermions #1360
Changes from all commits
b68e970
2c8be46
a8b443e
2abd84c
0f08a27
b06d706
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -177,26 +177,26 @@ lemma contrCoUnit_eq_complexContrBasisFin4_complexCoBasisFin4 : δ = | |
| simp [complexContrBasisFin4, complexCoBasisFin4] | ||
|
|
||
| open Fermion in | ||
| lemma dualLeftLeftUnit_eq_dualLeftBasis_leftBasis : δL' = | ||
| ∑ i, fromPairT (dualLeftBasis i ⊗ₜ[ℂ] leftBasis i) := by | ||
| lemma dualLeftLeftUnit_eq_basis : δL' = | ||
| ∑ i, fromPairT (DualLeftHandedWeyl.basis i ⊗ₜ[ℂ] LeftHandedWeyl.basis i) := by | ||
| rw [dualLeftLeftUnit_eq_fromPairT, dualLeftLeftUnitVal_expand_tmul] | ||
| rfl | ||
|
|
||
| open Fermion in | ||
| lemma leftDualLeftUnit_eq_leftBasis_dualLeftBasis : δL = | ||
| ∑ i, fromPairT (leftBasis i ⊗ₜ[ℂ] dualLeftBasis i) := by | ||
| lemma leftDualLeftUnit_eq_basis : δL = | ||
| ∑ i, fromPairT (LeftHandedWeyl.basis i ⊗ₜ[ℂ] DualLeftHandedWeyl.basis i) := by | ||
| rw [leftDualLeftUnit_eq_fromPairT, leftDualLeftUnitVal_expand_tmul] | ||
| rfl | ||
|
|
||
| open Fermion in | ||
| lemma dualRightRightUnit_eq_dualRightBasis_rightBasis : δR' = | ||
| ∑ i, fromPairT (dualRightBasis i ⊗ₜ[ℂ] rightBasis i) := by | ||
| lemma dualRightRightUnit_eq_basis : δR' = | ||
| ∑ i, fromPairT (DualRightHandedWeyl.basis i ⊗ₜ[ℂ] RightHandedWeyl.basis i) := by | ||
| rw [dualRightRightUnit_eq_fromPairT, dualRightRightUnitVal_expand_tmul] | ||
| rfl | ||
|
|
||
| open Fermion in | ||
| lemma rightDualRightUnit_eq_rightBasis_dualRightBasis : δR = | ||
| ∑ i, fromPairT (rightBasis i ⊗ₜ[ℂ] dualRightBasis i) := by | ||
| lemma rightDualRightUnit_eq_basis : δR = | ||
| ∑ i, fromPairT (RightHandedWeyl.basis i ⊗ₜ[ℂ] DualRightHandedWeyl.basis i) := by | ||
| rw [rightDualRightUnit_eq_fromPairT, rightDualRightUnitVal_expand_tmul] | ||
| rfl | ||
|
|
||
|
Collaborator
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. Same issue as my prior comment.
Member
Author
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. Ugh - good spot! yes this was unintentional, and was down to over use of ctrl-f. (Btw would help if you could put a awaiting-author label on these PRs after you sent a message, I get too many notifications from GitHub that it is hard to spot the important ones) |
||
|
|
@@ -228,43 +228,43 @@ lemma contrCoUnit_eq_basis : δ = | |
| rw [fromPairT_apply_basis_repr] | ||
| rfl | ||
|
|
||
| lemma dualLeftLeftUnit_eq_basis : δL' = | ||
| lemma dualLeftLeftUnit_eq_tensor_basis : δL' = | ||
| ∑ i, Tensor.basis (S := complexLorentzTensor) | ||
| ![Color.downL, Color.upL] (fun | 0 => i | 1 => i) := by | ||
| rw [dualLeftLeftUnit_eq_dualLeftBasis_leftBasis] | ||
| rw [dualLeftLeftUnit_eq_basis] | ||
| conv_lhs => | ||
| enter [2, x] | ||
| change fromPairT ((complexLorentzTensor.basis .downL x) ⊗ₜ[ℂ] | ||
| (complexLorentzTensor.basis .upL _)) | ||
| rw [fromPairT_apply_basis_repr] | ||
| rfl | ||
|
|
||
| lemma leftDualLeftUnit_eq_basis : δL = | ||
| lemma leftDualLeftUnit_eq_tensor_basis : δL = | ||
| ∑ i, Tensor.basis (S := complexLorentzTensor) | ||
| ![Color.upL, Color.downL] (fun | 0 => i | 1 => i) := by | ||
| rw [leftDualLeftUnit_eq_leftBasis_dualLeftBasis] | ||
| rw [leftDualLeftUnit_eq_basis] | ||
| conv_lhs => | ||
| enter [2, x] | ||
| change fromPairT ((complexLorentzTensor.basis .upL x) ⊗ₜ[ℂ] | ||
| (complexLorentzTensor.basis .downL _)) | ||
| rw [fromPairT_apply_basis_repr] | ||
| rfl | ||
|
|
||
| lemma dualRightRightUnit_eq_basis : δR' = | ||
| lemma dualRightRightUnit_eq_tensor_basis : δR' = | ||
| ∑ i, Tensor.basis (S := complexLorentzTensor) | ||
| ![Color.downR, Color.upR] (fun | 0 => i | 1 => i) := by | ||
| rw [dualRightRightUnit_eq_dualRightBasis_rightBasis] | ||
| rw [dualRightRightUnit_eq_basis] | ||
| conv_lhs => | ||
| enter [2, x] | ||
| change fromPairT ((complexLorentzTensor.basis .downR x) ⊗ₜ[ℂ] | ||
| (complexLorentzTensor.basis .upR _)) | ||
| rw [fromPairT_apply_basis_repr] | ||
| rfl | ||
|
|
||
| lemma rightDualRightUnit_eq_basis : δR = | ||
| lemma rightDualRightUnit_eq_tensor_basis : δR = | ||
| ∑ i, Tensor.basis (S := complexLorentzTensor) | ||
| ![Color.upR, Color.downR] (fun | 0 => i | 1 => i) := by | ||
| rw [rightDualRightUnit_eq_rightBasis_dualRightBasis] | ||
| rw [rightDualRightUnit_eq_basis] | ||
| conv_lhs => | ||
| enter [2, x] | ||
| change fromPairT ((complexLorentzTensor.basis .upR x) ⊗ₜ[ℂ] | ||
|
|
@@ -300,7 +300,7 @@ lemma contrCoUnit_eq_ofRat : δ = ofRat fun f => | |
|
|
||
| lemma dualLeftLeftUnit_eq_ofRat : δL' = ofRat fun f => | ||
| if f 0 = f 1 then 1 else 0 := by | ||
| rw [dualLeftLeftUnit_eq_basis] | ||
| rw [dualLeftLeftUnit_eq_tensor_basis] | ||
| conv_lhs => | ||
| enter [2, x] | ||
| rw [basis_eq_ofRat] | ||
|
|
@@ -310,7 +310,7 @@ lemma dualLeftLeftUnit_eq_ofRat : δL' = ofRat fun f => | |
|
|
||
| lemma leftDualLeftUnit_eq_ofRat : δL = ofRat fun f => | ||
| if f 0 = f 1 then 1 else 0 := by | ||
| rw [leftDualLeftUnit_eq_basis] | ||
| rw [leftDualLeftUnit_eq_tensor_basis] | ||
| conv_lhs => | ||
| enter [2, x] | ||
| rw [basis_eq_ofRat] | ||
|
|
@@ -320,7 +320,7 @@ lemma leftDualLeftUnit_eq_ofRat : δL = ofRat fun f => | |
|
|
||
| lemma dualRightRightUnit_eq_ofRat : δR' = ofRat fun f => | ||
| if f 0 = f 1 then 1 else 0 := by | ||
| rw [dualRightRightUnit_eq_basis] | ||
| rw [dualRightRightUnit_eq_tensor_basis] | ||
| conv_lhs => | ||
| enter [2, x] | ||
| rw [basis_eq_ofRat] | ||
|
|
@@ -330,7 +330,7 @@ lemma dualRightRightUnit_eq_ofRat : δR' = ofRat fun f => | |
|
|
||
| lemma rightDualRightUnit_eq_ofRat : δR = ofRat fun f => | ||
| if f 0 = f 1 then 1 else 0 := by | ||
| rw [rightDualRightUnit_eq_basis] | ||
| rw [rightDualRightUnit_eq_tensor_basis] | ||
| conv_lhs => | ||
| enter [2, x] | ||
| rw [basis_eq_ofRat] | ||
|
|
||
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.
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?