deffunc H1( Element of S) -> Subset of ( the Sorts of (ParsedTermsOSA X) . $1) = PTVars ($1,X);
set PTA = ParsedTermsOSA X;
consider f being Function such that
A1: ( dom f = the carrier of S & ( for s being Element of S holds f . s = H1(s) ) ) from FUNCT_1:sch 4();
reconsider f = f as ManySortedSet of the carrier of S by A1, PARTFUN1:def 2, RELAT_1:def 18;
f c= the Sorts of (ParsedTermsOSA X)
proof
let x be object ; :: according to PBOOLE:def 2 :: thesis: ( not x in the carrier of S or f . x c= the Sorts of (ParsedTermsOSA X) . x )
assume x in the carrier of S ; :: thesis: f . x c= the Sorts of (ParsedTermsOSA X) . x
then reconsider s = x as Element of S ;
f . s = PTVars (s,X) by A1;
hence f . x c= the Sorts of (ParsedTermsOSA X) . x ; :: thesis: verum
end;
then reconsider f = f as MSSubset of (ParsedTermsOSA X) by PBOOLE:def 18;
take f ; :: thesis: for s being Element of S holds f . s = PTVars (s,X)
thus for s being Element of S holds f . s = PTVars (s,X) by A1; :: thesis: verum