gen_F function

Generate the F product operator.