defpred S1[ set ] means ex k being Element of NAT st $1 = 2 * k; deffunc H1( set ) -> Element of S = b; deffunc H2( set ) -> Element of S = a; consider f being Function such that A1:
( dom f =NAT & ( for x being set st x inNAT holds ( ( S1[x] implies f . x = H2(x) ) & ( not S1[x] implies f . x = H1(x) ) ) ) )
fromPARTFUN1:sch 1(); A2:
rng f c={a,b}