reconsider n = n as non zero natural number by A1;
set f = { [k,((n - k) mod n)] where k is Element of NAT : k < n } ;
A2:
{ [k,((n - k) mod n)] where k is Element of NAT : k < n } is Relation-like
{ [k,((n - k) mod n)] where k is Element of NAT : k < n } is Function-like
proof
for
x,
y1,
y2 being
set st
[x,y1] in { [k,((n - k) mod n)] where k is Element of NAT : k < n } &
[x,y2] in { [k,((n - k) mod n)] where k is Element of NAT : k < n } holds
y1 = y2
proof
let x,
y1,
y2 be
set ;
:: thesis: ( [x,y1] in { [k,((n - k) mod n)] where k is Element of NAT : k < n } & [x,y2] in { [k,((n - k) mod n)] where k is Element of NAT : k < n } implies y1 = y2 )
assume A4:
(
[x,y1] in { [k,((n - k) mod n)] where k is Element of NAT : k < n } &
[x,y2] in { [k,((n - k) mod n)] where k is Element of NAT : k < n } )
;
:: thesis: y1 = y2
then consider k being
Element of
NAT such that A5:
(
[x,y1] = [k,((n - k) mod n)] &
k < n )
;
consider k' being
Element of
NAT such that A6:
(
[x,y2] = [k',((n - k') mod n)] &
k' < n )
by A4;
A7:
k =
[x,y1] `1
by A5, MCART_1:def 1
.=
x
by MCART_1:def 1
.=
[k',((n - k') mod n)] `1
by A6, MCART_1:def 1
.=
k'
by MCART_1:def 1
;
A8:
y1 =
[k,((n - k) mod n)] `2
by A5, MCART_1:def 2
.=
(n - k) mod n
by MCART_1:def 2
;
y2 =
[k',((n - k') mod n)] `2
by A6, MCART_1:def 2
.=
(n - k') mod n
by MCART_1:def 2
;
hence
y1 = y2
by A7, A8;
:: thesis: verum
end;
hence
{ [k,((n - k) mod n)] where k is Element of NAT : k < n } is
Function-like
by FUNCT_1:def 1;
:: thesis: verum
end;
then reconsider f = { [k,((n - k) mod n)] where k is Element of NAT : k < n } as Function by A2;
A9:
dom f = Segm n
rng f c= Segm n
then reconsider f = f as UnOp of (Segm n) by A9, FUNCT_2:def 1, RELSET_1:11;
for k being Element of Segm n holds f . k = (n - k) mod n
hence
ex b1 being UnOp of (Segm n) st
for k being Element of Segm n holds b1 . k = (n - k) mod n
; :: thesis: verum