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

Kronecker delta behavior #4

Open
rjrosati opened this issue Jul 16, 2020 · 0 comments
Open

Kronecker delta behavior #4

rjrosati opened this issue Jul 16, 2020 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@rjrosati
Copy link
Owner

rjrosati commented Jul 16, 2020

At the moment, the upstream contract_metric will transform KD(-i,-j) metric(j,k) into KD(-i,k).
This isn't what the Kronecker delta means to me (i.e. always the identity matrix). Is this actually standard somewhere?

Okay, even avoiding this issue, any expression with Kronecker deltas, after enough manipulation, will be a mess of several deltas contracted with each other. canon_bp and contract_metric don't seem to simplify this at all. Should we have a new function, contract_delta or equivalent that reduces these expressions?

For example, here is the Ricci scalar I calculated from the metric 6*α*delta(-i,-j) / (1-F(i)*F(j)*delta(-i,-j))^2:

(-24)*α*(-1)*(ts1 - 1)**(-3)*KD(f_0, -f_0)*KD(f_1, -f_1) + 24*α*(-1)*(ts1 - 1)**(-3)*KD(f_0, f_1)*KD(-f_0, -f_1) + (-864)*α**2*(ts1 - 1)**(-6)*F(f_0)*F(f_1)*KD(-f_0, f_2)*KD(-f_1, f_3)*KD(-f_2, f_4)*KD(-f_3, -f_4) + (-144)*α*(ts1 - 1)**2*1/(ts1**6 - 6*ts1**5 + 15*ts1**4 - 20*ts1**3 + 15*ts1**2 - 6*ts1 + 1)*F(f_0)*F(f_1)*KD(-f_0, f_2)*KD(-f_1, -f_2)*KD(f_3, -f_3) + (-144)*α**2*(ts1 - 1)**(-6)*F(f_0)*F(f_1)*KD(-f_0, f_2)*KD(-f_1, -f_2)*KD(f_3, -f_3)*KD(f_4, -f_4) + 144*α*(ts1 - 1)**2*1/(ts1**6 - 6*ts1**5 + 15*ts1**4 - 20*ts1**3 + 15*ts1**2 - 6*ts1 + 1)*F(f_0)*F(f_1)*KD(-f_0, f_2)*KD(-f_1, f_3)*KD(-f_2, -f_3) + 432*α**2*(ts1 - 1)**(-6)*F(f_0)*F(f_1)*KD(-f_0, f_2)*KD(-f_1, -f_2)*KD(f_3, f_4)*KD(-f_3, -f_4) + 576*α**2*(ts1 - 1)**(-6)*F(f_0)*F(f_1)*KD(-f_0, f_2)*KD(-f_1, f_3)*KD(-f_2, -f_3)*KD(f_4, -f_4))

The correct answer should only depend on α and the TensorIndexType dimension.

@rjrosati rjrosati added bug Something isn't working enhancement New feature or request labels Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant