let n be Nat; for X being natural-membered set holds addRel (X,n) = ((curry addnat) . n) |_2 X
let X be natural-membered set ; addRel (X,n) = ((curry addnat) . n) |_2 X
set g = (curry addnat) . n;
now for x, y being object holds
( ( [x,y] in addRel (X,n) implies [x,y] in ((curry addnat) . n) |_2 X ) & ( [x,y] in ((curry addnat) . n) |_2 X implies [x,y] in addRel (X,n) ) )let x,
y be
object ;
( ( [x,y] in addRel (X,n) implies [x,y] in ((curry addnat) . n) |_2 X ) & ( [x,y] in ((curry addnat) . n) |_2 X implies [x,y] in addRel (X,n) ) )reconsider a =
x,
b =
y as
set by TARSKI:1;
hereby ( [x,y] in ((curry addnat) . n) |_2 X implies [x,y] in addRel (X,n) )
assume A1:
[x,y] in addRel (
X,
n)
;
[x,y] in ((curry addnat) . n) |_2 Xthen
[a,b] in addRel (
X,
n)
;
then
(
a in X &
b in X )
by MMLQUER2:4;
then reconsider a =
a,
b =
b as
Integer ;
[a,b] in addRel (
X,
n)
by A1;
then A2:
(
a in X &
b in X &
b = n + a )
by Th11;
then
(
n in NAT &
a in NAT )
by ORDINAL1:def 12;
then
[n,a] in [:NAT,NAT:]
by ZFMISC_1:87;
then A3:
[n,a] in dom addnat
by FUNCT_2:def 1;
A4:
b =
addnat . (
n,
a)
by A2, BINOP_2:def 23
.=
((curry addnat) . n) . a
by A3, FUNCT_5:20
;
a in dom ((curry addnat) . n)
by A3, FUNCT_5:20;
hence
[x,y] in ((curry addnat) . n) |_2 X
by A2, A4, FUNCT_1:1, MMLQUER2:4;
verum
end; assume
[x,y] in ((curry addnat) . n) |_2 X
;
[x,y] in addRel (X,n)then
[a,b] in ((curry addnat) . n) |_2 X
;
then A5:
(
a in X &
b in X &
[a,b] in (curry addnat) . n )
by MMLQUER2:4;
then reconsider a =
a,
b =
b as
Integer ;
A6:
(
n in NAT &
a in NAT )
by A5, ORDINAL1:def 12;
then
[n,a] in [:NAT,NAT:]
by ZFMISC_1:87;
then A7:
[n,a] in dom addnat
by FUNCT_2:def 1;
(
a in dom ((curry addnat) . n) &
((curry addnat) . n) . a = b )
by A5, FUNCT_1:1;
then b =
addnat . (
n,
a)
by A7, FUNCT_5:20
.=
n + a
by A6, BINOP_2:def 23
;
hence
[x,y] in addRel (
X,
n)
by A5, Th11;
verum end;
hence
addRel (X,n) = ((curry addnat) . n) |_2 X
by RELAT_1:def 2; verum