Skip to content

fix bug in colorSimplifyGeneric - #369

Open
eriks245 wants to merge 1 commit into
FeynCalc:masterfrom
eriks245:fix-sunsimplify-bug
Open

fix bug in colorSimplifyGeneric#369
eriks245 wants to merge 1 commit into
FeynCalc:masterfrom
eriks245:fix-sunsimplify-bug

Conversation

@eriks245

@eriks245 eriks245 commented Sep 3, 2026

Copy link
Copy Markdown

This should fix a wrong replacement rule in colorSimplifyGeneric and resolve the bug described in #368

(* f_2^bcad f^ace = - N/2 f^bde *)
colorSimplifyGeneric[rest_. sunf2[b_, a_SUNIndex, c_SUNIndex, d_] sunf[r1___,a_SUNIndex,r2___,c_SUNIndex,r3___]] :=
(* f_2^bcad f^ace = N/2 f^bde *)
colorSimplifyGeneric[rest_. sunf2[b_, c_SUNIndex, a_SUNIndex, d_] sunf[r1___,a_SUNIndex,r2___,c_SUNIndex,r3___]] :=

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This is the actual bug fix. Looks like a copy paste error from the case above. All other changes are just to sync the comment with the actual rule

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.

Looks good. Can you please also add a couple of unit tests to

https://github.com/FeynCalc/feyncalc/blob/master/Tests/SUN/SUNSimplify.test

that cover this case?

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