let R be Ring; :: thesis: for n being Nat
for X being invertible Matrix of n,R st n <> 1 holds
( X in center (GL (n,R)) iff ex z being Element of R st
( z in center R & z in UnitGroup R & X = z * (1. (R,n)) ) )

let n be Nat; :: thesis: for X being invertible Matrix of n,R st n <> 1 holds
( X in center (GL (n,R)) iff ex z being Element of R st
( z in center R & z in UnitGroup R & X = z * (1. (R,n)) ) )

let X be invertible Matrix of n,R; :: thesis: ( n <> 1 implies ( X in center (GL (n,R)) iff ex z being Element of R st
( z in center R & z in UnitGroup R & X = z * (1. (R,n)) ) ) )

assume A1: n <> 1 ; :: thesis: ( X in center (GL (n,R)) iff ex z being Element of R st
( z in center R & z in UnitGroup R & X = z * (1. (R,n)) ) )

reconsider g = X as Element of (GL (n,R)) by Th126;
hereby :: thesis: ( ex z being Element of R st
( z in center R & z in UnitGroup R & X = z * (1. (R,n)) ) implies X in center (GL (n,R)) )
assume A2: X in center (GL (n,R)) ; :: thesis: ex z being Element of R st
( z in center R & z in UnitGroup R & X = z * (1. (R,n)) )

for Y being invertible Matrix of n,R holds X * Y = Y * X
proof
let Y be invertible Matrix of n,R; :: thesis: X * Y = Y * X
reconsider h = Y as Element of (GL (n,R)) by Th126;
thus X * Y = g * h by Th127
.= h * g by A2, GROUP_5:77
.= Y * X by Th127 ; :: thesis: verum
end;
then consider z being Element of R such that
A3: ( z in center R & z in UnitGroup R & X = z * (1. (R,n)) ) by A1, Th123;
take z = z; :: thesis: ( z in center R & z in UnitGroup R & X = z * (1. (R,n)) )
thus z in center R by A3; :: thesis: ( z in UnitGroup R & X = z * (1. (R,n)) )
thus z in UnitGroup R by A3; :: thesis: X = z * (1. (R,n))
thus X = z * (1. (R,n)) by A3; :: thesis: verum
end;
given z being Element of R such that A4: ( z in center R & z in UnitGroup R & X = z * (1. (R,n)) ) ; :: thesis: X in center (GL (n,R))
for h being Element of (GL (n,R)) holds g * h = h * g
proof
let h be Element of (GL (n,R)); :: thesis: g * h = h * g
reconsider Y = h as invertible Matrix of n,R by Th126;
thus g * h = X * Y by Th127
.= Y * (z * (1. (R,n))) by A4, Th100
.= h * g by A4, Th127 ; :: thesis: verum
end;
hence X in center (GL (n,R)) by GROUP_5:77; :: thesis: verum