def as_reduction(AS, fct): '''Simplify rational function fct as a function in the function field of AS, so that z[i] appear in powers