Let X, f and g be given.
An exact proof term for the current goal is (graph_domain_subset_graph X (λx0 : setapply_fun g (apply_fun f x0))).