Skip to content
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

Joining gamma matrices with different index types is buggy/incomplete #261

Open
kpeeters opened this issue Aug 20, 2022 · 0 comments
Open
Labels
bug An actual bug

Comments

@kpeeters
Copy link
Owner

Should either make the checks solid so that joins never work with mixed indices, or make it always do the same thing consistently.

{a,b}::Indices(flat, position=fixed).
{\mu, \nu}::Indices(curved, position=fixed).
\gamma{#}::GammaMatrix(metric=\eta);

and I would like to signal the following behavior of join_gamma.

Calling join_gamma on the following expression does nothing

ex:=\gamma_{a} \gamma_{\mu};

join_gamma(_);

while join_gamma works fine on expressions containing only one type of
indices. This implies that it is hard to manipulate these terms since
sort_spinors does not work if previously the gamma has not been joined.

Furthermore acting on a term like

ex2:=\gamma_{a}\gamma_{\mu}\gamma_{\nu}\gamma_{b};

it produces

(\gamma_{a  \mu}+\eta_{a \mu})\gamma_{\nu}\gamma_{b};
@kpeeters kpeeters added the bug An actual bug label Aug 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An actual bug
Projects
None yet
Development

No branches or pull requests

1 participant