deffunc H1() -> Subset of (n -Matrices_over R) = n -invertible_Matrices_over R;
defpred S1[ object , object ] means ex X being invertible Matrix of n,R st
( $1 = X & $2 = X ~ );
A1: for x being object st x in H1() holds
ex y being object st
( y in H1() & S1[x,y] )
proof
let x be object ; :: thesis: ( x in H1() implies ex y being object st
( y in H1() & S1[x,y] ) )

assume x in H1() ; :: thesis: ex y being object st
( y in H1() & S1[x,y] )

then reconsider X = x as invertible Matrix of n,R by Th145;
take y = X ~ ; :: thesis: ( y in H1() & S1[x,y] )
thus y in H1() by Th145; :: thesis: S1[x,y]
thus S1[x,y] ; :: thesis: verum
end;
consider f being Function of H1(),H1() such that
A2: for x being object st x in H1() holds
S1[x,f . x] from FUNCT_2:sch 1(A1);
take f ; :: thesis: for x being Element of n -invertible_Matrices_over R
for X being invertible Matrix of n,R st x = X holds
f . x = X ~

thus for x being Element of n -invertible_Matrices_over R
for X being invertible Matrix of n,R st x = X holds
f . x = X ~ :: thesis: verum
proof
let x be Element of n -invertible_Matrices_over R; :: thesis: for X being invertible Matrix of n,R st x = X holds
f . x = X ~

let X be invertible Matrix of n,R; :: thesis: ( x = X implies f . x = X ~ )
assume A3: x = X ; :: thesis: f . x = X ~
S1[x,f . x] by A2;
hence f . x = X ~ by A3; :: thesis: verum
end;