Description: Define the fourth Gödel operation. This function takes two
arguments and returns the first argument restricted to the second
argument (see df-res ). Based on the fourth case of Definition 14.2
of TakeutiZaring p. 144. (Contributed by BTernaryTau, 2-Sep-2026)