Hi everybody!
I can not figure out why drop_weight command doesn't work in the following code
{\alpha, \beta, \rho, \mu, \nu, \sigma, \lambda, \theta, \gamma}::Indices(position=fixed).
\partial{#}::PartialDerivative.
{\partial{#}}::WeightInherit(label=all, type=Multiplicative).
{h^{\mu \nu}, h_{\mu \nu}, h, g_{\mu \nu}, g^{\mu \nu}}::Depends(\partial).
\Gamma^{\alpha}_{\beta \rho}::Depends(\partial, \nabla).
\Gamma^{\alpha}_{\beta \rho}::TableauSymmetry(shape={2}, indices={1,2}).
k::Weight(label=expan, value=1).
{k, h, \eta^{\mu \nu}, h^{\mu \nu}, \partial{#}}::SortOrder.
invMetric:=g^{\mu \nu}->\eta^{\mu \nu} -k h^{\mu \nu};
metric:=g_{\mu \nu}->\eta_{\mu \nu} +k h_{\mu \nu};
jac:=g->1+\frac{k}{2}h;
gamma:=\Gamma^{\alpha}_{\beta \rho} -> \frac{1}{2} g^{\alpha \theta} [ \partial_{\rho}{g_{\theta \beta}}
+ \partial_{\beta}{g_{\theta \rho}}-\partial_{\theta}{g_{\beta \rho}}];
@substitute!(gamma)(@(metric)):
@substitute!(gamma)(@(invMetric)):
@distribute!(%):
@unwrap!(%):
@prodsort!(%):
@collect_factors!(%);
@drop_weight!(%){expan}{2};
Cheers!