Abstract
We prove that if a valuation domain has Krull dimension then for every finitely generated ideal I of the trailing terms ideal of I (that is, the ideal generated by the trailing terms of the nonzero polynomials in I) is also finitely generated. Heinzer and Papick (1989) and then Lombardi, Schuster and Yengui (2012) have shown the analogous result for leading terms ideals. The proof we give is both simple and constructive. The same result is valid for Prüfer domains.