Not a concrete answer, but some ideas that might help you
Use the `weight` property
See for example Sec. 10.1 of Leo Brewin's paper ---Notice that from arXiv you can even get the source files---, all the necessary properties
and algorithms
are already functional in cadabra2.
Use the trick `k**4 -> 0`
If you have a function depending on k
, you can use in the post_process
algorithm the substitution:
def post_process(ex):
expand_power(ex)
substitute(ex, $k k k k -> 0$)
along with your extra post_process
manipulations
Use another software
You can always try to compute the quantity you need using another software, and then manually input the result on Cadabra2.
Notice that for example you can use python functions within Cadabra2, see my question
Cheers.