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