Define the factorial function on integers (with the value zero for negative arguments) as the iteration of a functional, using the well-founded relation Zwf.