-
Notifications
You must be signed in to change notification settings - Fork 7
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
Bug when multiplying the metric by a sum of derivatives #3
Comments
Thank you. I guess the bug originates in these two lines, where It should be corrected to, for example,
or more likely
I am not sure the intention of this code, but for I've sent an email to the author. |
Hi, Thanks for pointing this out. I have fixed it here: FeynRules/FeynRules@97b0798 Cheers, Benjamin |
IIUC, the effect of the condition
Thanks for taking care of this! |
Hi,
If you perforn an expansion, then it will be done.
Cheers,
Benj
… On 12 Dec 2024, at 02:05, ahamaline ***@***.***> wrote:
It should be corrected to, for example,
ME[mu_,nu_] ff_[indx___,del[f_,mu_],indy___]/; FreeQ[{indx, indy}, mu] ^:=ff[indx,del[f,nu],indy];
ME[nu_,mu_] ff_[indx___,del[f_,mu_],indy___]/; FreeQ[{indx, indy}, mu] ^:=ff[indx,del[f,nu],indy];
IIUC, the effect of the condition /; FreeQ[{indx, indy}, mu] is that the replacement will not be done at all if there is more than one occurrence of mu. Is that what we want? Shouldn't we do the replacement for each summand?
I am not sure the intention of this code, but for ff_ = Plus the latter option and for Times the former option seems better, respectively.
I don't think the Times case is relevant: if the same Lorentz index appears in two factors then they should be contracted with each other. If the same index also appears in ME, then there's already some error.
Hi,
Thanks for pointing this out. I have fixed it here: ***@***.*** <FeynRules/FeynRules@97b0798>
Cheers,
Benjamin
Thanks for taking care of this!
I think you forgot to comment out the second line:
ME[nu_,mu_] ff_[indx___,del[f_,mu_],indy___]^:=ff[indx,del[f,nu],indy];
which gives the bug when contracting with the second index.
Also, as above, I'm not sure that FreeQ gives the desired behavior.
—
Reply to this email directly, view it on GitHub <#3 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIWJNJ6H6DPPI7R4HEGGQ2L2FB5HDAVCNFSM6AAAAABTLH6JOWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMZWG4ZDMMZZGY>.
You are receiving this because you commented.
|
Ah ok, I get it now. Since we are always working with a Lagrangian that will eventually be expanded into monomials, we can just let the And I see I was also mistaken about commenting out the second line. I apologize for the annoyance. A big thank you to you and your co-authors for creating this highly useful tool! |
Hi, I know this is not the official repo for FeynRules, but I don't see any other place to report bugs. So I'll report this here in the hope that someone relevant will get the information.
The metric
ME[a,b]
is contracted automatically with partial derivatives:del[phi,a] ME[a,b]
becomesdel[phi,b]
. However, if we instead try to multiply the metric by a sum of different derivative terms, like(del[phi1,a] + del[phi2,a]) ME[a,b]
, this is treated wrongly: the metric is only contracted with the first summand, yieldingdel[phi1,b] + del[phi2,a]
which is not valid.The text was updated successfully, but these errors were encountered: