:: ARYTM_3 semantic presentation  Show TPTP formulae Show IDV graph for whole article:: Showing IDV graph ... (Click the Palm Trees again to close it)

Lm1: one in omega
by ORDINAL1:41, ORDINAL2:19;

registration
let A be Ordinal;
cluster -> ordinal Element of A;
coherence
for b1 being Element of A holds b1 is ordinal
proof end;
end;

registration
cluster empty -> natural set ;
coherence
for b1 being Ordinal st b1 is empty holds
b1 is natural
by ORDINAL2:19, ORDINAL2:def 21;
cluster one -> natural ;
coherence
( one is natural & not one is empty )
by Lm1, ORDINAL2:def 21;
cluster -> ordinal natural Element of omega ;
coherence
for b1 being Element of omega holds b1 is natural
by ORDINAL2:def 21;
end;

registration
cluster non empty natural set ;
existence
ex b1 being Ordinal st
( not b1 is empty & b1 is natural )
proof end;
end;

registration
let a be natural Ordinal;
cluster succ a -> natural ;
coherence
succ a is natural
proof end;
end;

scheme :: ARYTM_3:sch 1
OmegaInd{ P1[ set ] } :
for a being natural Ordinal holds P1[a]
provided
A1: P1[ {} ] and
A2: for a being natural Ordinal st P1[a] holds
P1[ succ a]
proof end;

registration
let a, b be natural Ordinal;
cluster a +^ b -> natural ;
coherence
a +^ b is natural
proof end;
end;

theorem Th1: :: ARYTM_3:1  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for a, b being Ordinal st a +^ b is natural holds
( a in omega & b in omega )
proof end;

registration
let a, b be natural Ordinal;
cluster a -^ b -> natural ;
coherence
a -^ b is natural
proof end;
cluster a *^ b -> natural ;
coherence
a *^ b is natural
proof end;
end;

theorem Th2: :: ARYTM_3:2  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for a, b being Ordinal st a *^ b is natural & not a *^ b is empty holds
( a in omega & b in omega )
proof end;

theorem Th3: :: ARYTM_3:3  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for a, b being natural Ordinal holds a +^ b = b +^ a
proof end;

theorem Th4: :: ARYTM_3:4  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for a, b being natural Ordinal holds a *^ b = b *^ a
proof end;

definition
let a, b be natural Ordinal;
:: original: +^
redefine func a +^ b -> set ;
commutativity
for a, b being natural Ordinal holds a +^ b = b +^ a
by Th3;
:: original: *^
redefine func a *^ b -> set ;
commutativity
for a, b being natural Ordinal holds a *^ b = b *^ a
by Th4;
end;

definition
let a, b be Ordinal;
pred a,b are_relative_prime means :Def1: :: ARYTM_3:def 1
for c, d1, d2 being Ordinal st a = c *^ d1 & b = c *^ d2 holds
c = one ;
symmetry
for a, b being Ordinal st ( for c, d1, d2 being Ordinal st a = c *^ d1 & b = c *^ d2 holds
c = one ) holds
for c, d1, d2 being Ordinal st b = c *^ d1 & a = c *^ d2 holds
c = one
;
end;

:: deftheorem Def1 defines are_relative_prime ARYTM_3:def 1 :
for a, b being Ordinal holds
( a,b are_relative_prime iff for c, d1, d2 being Ordinal st a = c *^ d1 & b = c *^ d2 holds
c = one );

theorem Th5: :: ARYTM_3:5  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
not {} , {} are_relative_prime
proof end;

theorem Th6: :: ARYTM_3:6  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for A being Ordinal holds one ,A are_relative_prime
proof end;

theorem Th7: :: ARYTM_3:7  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for A being Ordinal st {} ,A are_relative_prime holds
A = one
proof end;

defpred S1[ set ] means ex B being Ordinal st
( B c= $1 & $1 in omega & $1 <> {} & ( for c, d1, d2 being natural Ordinal holds
( not d1,d2 are_relative_prime or not $1 = c *^ d1 or not B = c *^ d2 ) ) );

theorem :: ARYTM_3:8  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for a, b being natural Ordinal st ( a <> {} or b <> {} ) holds
ex c, d1, d2 being natural Ordinal st
( d1,d2 are_relative_prime & a = c *^ d1 & b = c *^ d2 )
proof end;

registration
let m, n be natural Ordinal;
cluster m div^ n -> natural ;
coherence
m div^ n is natural
proof end;
cluster m mod^ n -> natural ;
coherence
m mod^ n is natural
proof end;
end;

definition
let k, n be Ordinal;
pred k divides n means :Def2: :: ARYTM_3:def 2
ex a being Ordinal st n = k *^ a;
reflexivity
for k being Ordinal ex a being Ordinal st k = k *^ a
proof end;
end;

:: deftheorem Def2 defines divides ARYTM_3:def 2 :
for k, n being Ordinal holds
( k divides n iff ex a being Ordinal st n = k *^ a );

theorem Th9: :: ARYTM_3:9  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for a, b being natural Ordinal holds
( a divides b iff ex c being natural Ordinal st b = a *^ c )
proof end;

theorem Th10: :: ARYTM_3:10  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for m, n being natural Ordinal st {} in m holds
n mod^ m in m
proof end;

theorem Th11: :: ARYTM_3:11  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for n, m being natural Ordinal holds
( m divides n iff n = m *^ (n div^ m) )
proof end;

theorem :: ARYTM_3:12  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
canceled;

theorem Th13: :: ARYTM_3:13  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for n, m being natural Ordinal st n divides m & m divides n holds
n = m
proof end;

theorem Th14: :: ARYTM_3:14  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for n being natural Ordinal holds
( n divides {} & one divides n )
proof end;

theorem Th15: :: ARYTM_3:15  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for n, m being natural Ordinal st {} in m & n divides m holds
n c= m
proof end;

theorem Th16: :: ARYTM_3:16  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for n, m, l being natural Ordinal st n divides m & n divides m +^ l holds
n divides l
proof end;

definition
let k, n be natural Ordinal;
func k lcm n -> Element of omega means :Def3: :: ARYTM_3:def 3
( k divides it & n divides it & ( for m being natural Ordinal st k divides m & n divides m holds
it divides m ) );
existence
ex b1 being Element of omega st
( k divides b1 & n divides b1 & ( for m being natural Ordinal st k divides m & n divides m holds
b1 divides m ) )
proof end;
uniqueness
for b1, b2 being Element of omega st k divides b1 & n divides b1 & ( for m being natural Ordinal st k divides m & n divides m holds
b1 divides m ) & k divides b2 & n divides b2 & ( for m being natural Ordinal st k divides m & n divides m holds
b2 divides m ) holds
b1 = b2
proof end;
commutativity
for b1 being Element of omega
for k, n being natural Ordinal st k divides b1 & n divides b1 & ( for m being natural Ordinal st k divides m & n divides m holds
b1 divides m ) holds
( n divides b1 & k divides b1 & ( for m being natural Ordinal st n divides m & k divides m holds
b1 divides m ) )
;
end;

:: deftheorem Def3 defines lcm ARYTM_3:def 3 :
for k, n being natural Ordinal
for b3 being Element of omega holds
( b3 = k lcm n iff ( k divides b3 & n divides b3 & ( for m being natural Ordinal st k divides m & n divides m holds
b3 divides m ) ) );

theorem Th17: :: ARYTM_3:17  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for m, n being natural Ordinal holds m lcm n divides m *^ n
proof end;

theorem Th18: :: ARYTM_3:18  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for n, m being natural Ordinal st n <> {} holds
(m *^ n) div^ (m lcm n) divides m
proof end;

definition
let k, n be natural Ordinal;
func k hcf n -> Element of omega means :Def4: :: ARYTM_3:def 4
( it divides k & it divides n & ( for m being natural Ordinal st m divides k & m divides n holds
m divides it ) );
existence
ex b1 being Element of omega st
( b1 divides k & b1 divides n & ( for m being natural Ordinal st m divides k & m divides n holds
m divides b1 ) )
proof end;
uniqueness
for b1, b2 being Element of omega st b1 divides k & b1 divides n & ( for m being natural Ordinal st m divides k & m divides n holds
m divides b1 ) & b2 divides k & b2 divides n & ( for m being natural Ordinal st m divides k & m divides n holds
m divides b2 ) holds
b1 = b2
proof end;
commutativity
for b1 being Element of omega
for k, n being natural Ordinal st b1 divides k & b1 divides n & ( for m being natural Ordinal st m divides k & m divides n holds
m divides b1 ) holds
( b1 divides n & b1 divides k & ( for m being natural Ordinal st m divides n & m divides k holds
m divides b1 ) )
;
end;

:: deftheorem Def4 defines hcf ARYTM_3:def 4 :
for k, n being natural Ordinal
for b3 being Element of omega holds
( b3 = k hcf n iff ( b3 divides k & b3 divides n & ( for m being natural Ordinal st m divides k & m divides n holds
m divides b3 ) ) );

theorem Th19: :: ARYTM_3:19  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for a being natural Ordinal holds
( a hcf {} = a & a lcm {} = {} )
proof end;

theorem Th20: :: ARYTM_3:20  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for a, b being natural Ordinal st a hcf b = {} holds
a = {}
proof end;

theorem Th21: :: ARYTM_3:21  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for a being natural Ordinal holds
( a hcf a = a & a lcm a = a )
proof end;

theorem Th22: :: ARYTM_3:22  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for a, c, b being natural Ordinal holds (a *^ c) hcf (b *^ c) = (a hcf b) *^ c
proof end;

theorem Th23: :: ARYTM_3:23  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for b, a being natural Ordinal st b <> {} holds
( a hcf b <> {} & b div^ (a hcf b) <> {} )
proof end;

theorem Th24: :: ARYTM_3:24  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for a, b being natural Ordinal st ( a <> {} or b <> {} ) holds
a div^ (a hcf b),b div^ (a hcf b) are_relative_prime
proof end;

theorem Th25: :: ARYTM_3:25  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for a, b being natural Ordinal holds
( a,b are_relative_prime iff a hcf b = one )
proof end;

definition
let a, b be natural Ordinal;
func RED a,b -> Element of omega equals :: ARYTM_3:def 5
a div^ (a hcf b);
coherence
a div^ (a hcf b) is Element of omega
by ORDINAL2:def 21;
end;

:: deftheorem defines RED ARYTM_3:def 5 :
for a, b being natural Ordinal holds RED a,b = a div^ (a hcf b);

theorem Th26: :: ARYTM_3:26  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for a, b being natural Ordinal holds (RED a,b) *^ (a hcf b) = a
proof end;

theorem Th27: :: ARYTM_3:27  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for a, b being natural Ordinal st ( a <> {} or b <> {} ) holds
RED a,b, RED b,a are_relative_prime by Th24;

theorem Th28: :: ARYTM_3:28  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for a, b being natural Ordinal st a,b are_relative_prime holds
RED a,b = a
proof end;

theorem Th29: :: ARYTM_3:29  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for a being natural Ordinal holds
( RED a,one = a & RED one ,a = one )
proof end;

theorem Th30: :: ARYTM_3:30  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for b, a being natural Ordinal st b <> {} holds
RED b,a <> {} by Th23;

theorem Th31: :: ARYTM_3:31  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for a being natural Ordinal holds
( RED {} ,a = {} & ( a <> {} implies RED a,{} = one ) )
proof end;

theorem Th32: :: ARYTM_3:32  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for a being natural Ordinal st a <> {} holds
RED a,a = one
proof end;

theorem Th33: :: ARYTM_3:33  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for c, a, b being natural Ordinal st c <> {} holds
RED (a *^ c),(b *^ c) = RED a,b
proof end;

set RATplus = { [a,b] where a, b is Element of omega : ( a,b are_relative_prime & b <> {} ) } ;

reconsider 01 = one as Element of omega by ORDINAL2:def 21;

( 01 <> {} & 01,01 are_relative_prime )
by Th6;

then [01,01] in { [a,b] where a, b is Element of omega : ( a,b are_relative_prime & b <> {} ) }
;

then reconsider RATplus = { [a,b] where a, b is Element of omega : ( a,b are_relative_prime & b <> {} ) } as non empty set ;

Lm2: for a, b being natural Ordinal st [a,b] in RATplus holds
( a,b are_relative_prime & b <> {} )
proof end;

definition
func RAT+ -> set equals :: ARYTM_3:def 6
({ [i,j] where i, j is Element of omega : ( i,j are_relative_prime & j <> {} ) } \ { [k,one ] where k is Element of omega : verum } ) \/ omega ;
correctness
coherence
({ [i,j] where i, j is Element of omega : ( i,j are_relative_prime & j <> {} ) } \ { [k,one ] where k is Element of omega : verum } ) \/ omega is set
;
;
end;

:: deftheorem defines RAT+ ARYTM_3:def 6 :
RAT+ = ({ [i,j] where i, j is Element of omega : ( i,j are_relative_prime & j <> {} ) } \ { [k,one ] where k is Element of omega : verum } ) \/ omega ;

theorem Th34: :: ARYTM_3:34  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
omega c= RAT+ by XBOOLE_1:7;

registration
cluster RAT+ -> non empty ;
coherence
not RAT+ is empty
;
end;

registration
cluster non empty ordinal Element of RAT+ ;
existence
ex b1 being Element of RAT+ st
( not b1 is empty & b1 is ordinal )
by Lm1, Th34;
end;

theorem Th35: :: ARYTM_3:35  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being Element of RAT+ holds
( x in omega or ex i, j being Element of omega st
( x = [i,j] & i,j are_relative_prime & j <> {} & j <> one ) )
proof end;

theorem Th36: :: ARYTM_3:36  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for i, j being set holds [i,j] is not Ordinal
proof end;

theorem Th37: :: ARYTM_3:37  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for A being Ordinal st A in RAT+ holds
A in omega
proof end;

registration
cluster ordinal -> ordinal natural Element of RAT+ ;
coherence
for b1 being ordinal Element of RAT+ holds b1 is natural
proof end;
end;

theorem Th38: :: ARYTM_3:38  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for i, j being set holds not [i,j] in omega
proof end;

theorem Th39: :: ARYTM_3:39  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for i, j being Element of omega holds
( [i,j] in RAT+ iff ( i,j are_relative_prime & j <> {} & j <> one ) )
proof end;

definition
let x be Element of RAT+ ;
func numerator x -> Element of omega means :Def7: :: ARYTM_3:def 7
it = x if x in omega
otherwise ex a being natural Ordinal st x = [it,a];
existence
( ( x in omega implies ex b1 being Element of omega st b1 = x ) & ( not x in omega implies ex b1 being Element of omega ex a being natural Ordinal st x = [b1,a] ) )
proof end;
correctness
consistency
for b1 being Element of omega holds verum
;
uniqueness
for b1, b2 being Element of omega holds
( ( x in omega & b1 = x & b2 = x implies b1 = b2 ) & ( not x in omega & ex a being natural Ordinal st x = [b1,a] & ex a being natural Ordinal st x = [b2,a] implies b1 = b2 ) )
;
by ZFMISC_1:33;
func denominator x -> Element of omega means :Def8: :: ARYTM_3:def 8
it = one if x in omega
otherwise ex a being natural Ordinal st x = [a,it];
existence
( ( x in omega implies ex b1 being Element of omega st b1 = one ) & ( not x in omega implies ex b1 being Element of omega ex a being natural Ordinal st x = [a,b1] ) )
proof end;
correctness
consistency
for b1 being Element of omega holds verum
;
uniqueness
for b1, b2 being Element of omega holds
( ( x in omega & b1 = one & b2 = one implies b1 = b2 ) & ( not x in omega & ex a being natural Ordinal st x = [a,b1] & ex a being natural Ordinal st x = [a,b2] implies b1 = b2 ) )
;
by ZFMISC_1:33;
end;

:: deftheorem Def7 defines numerator ARYTM_3:def 7 :
for x being Element of RAT+
for b2 being Element of omega holds
( ( x in omega implies ( b2 = numerator x iff b2 = x ) ) & ( not x in omega implies ( b2 = numerator x iff ex a being natural Ordinal st x = [b2,a] ) ) );

:: deftheorem Def8 defines denominator ARYTM_3:def 8 :
for x being Element of RAT+
for b2 being Element of omega holds
( ( x in omega implies ( b2 = denominator x iff b2 = one ) ) & ( not x in omega implies ( b2 = denominator x iff ex a being natural Ordinal st x = [a,b2] ) ) );

theorem Th40: :: ARYTM_3:40  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being Element of RAT+ holds numerator x, denominator x are_relative_prime
proof end;

theorem Th41: :: ARYTM_3:41  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being Element of RAT+ holds denominator x <> {}
proof end;

theorem Th42: :: ARYTM_3:42  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being Element of RAT+ st not x in omega holds
( x = [(numerator x),(denominator x)] & denominator x <> one )
proof end;

theorem Th43: :: ARYTM_3:43  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being Element of RAT+ holds
( x <> {} iff numerator x <> {} )
proof end;

theorem :: ARYTM_3:44  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being Element of RAT+ holds
( x in omega iff denominator x = one ) by Def8, Th42;

definition
let i, j be natural Ordinal;
func i / j -> Element of RAT+ equals :Def9: :: ARYTM_3:def 9
{} if j = {}
RED i,j if RED j,i = one
otherwise [(RED i,j),(RED j,i)];
coherence
( ( j = {} implies {} is Element of RAT+ ) & ( RED j,i = one implies RED i,j is Element of RAT+ ) & ( not j = {} & not RED j,i = one implies [(RED i,j),(RED j,i)] is Element of RAT+ ) )
proof end;
consistency
for b1 being Element of RAT+ st j = {} & RED j,i = one holds
( b1 = {} iff b1 = RED i,j )
by Th31;
end;

:: deftheorem Def9 defines / ARYTM_3:def 9 :
for i, j being natural Ordinal holds
( ( j = {} implies i / j = {} ) & ( RED j,i = one implies i / j = RED i,j ) & ( not j = {} & not RED j,i = one implies i / j = [(RED i,j),(RED j,i)] ) );

notation
let i, j be natural Ordinal;
synonym quotient i,j for i / j;
end;

theorem Th45: :: ARYTM_3:45  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being Element of RAT+ holds (numerator x) / (denominator x) = x
proof end;

theorem Th46: :: ARYTM_3:46  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for b, a being natural Ordinal holds
( {} / b = {} & a / one = a )
proof end;

theorem Th47: :: ARYTM_3:47  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for a being natural Ordinal st a <> {} holds
a / a = one
proof end;

theorem Th48: :: ARYTM_3:48  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for b, a being natural Ordinal st b <> {} holds
( numerator (a / b) = RED a,b & denominator (a / b) = RED b,a )
proof end;

theorem Th49: :: ARYTM_3:49  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for i, j being Element of omega st i,j are_relative_prime & j <> {} holds
( numerator (i / j) = i & denominator (i / j) = j )
proof end;

theorem Th50: :: ARYTM_3:50  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for c, a, b being natural Ordinal st c <> {} holds
(a *^ c) / (b *^ c) = a / b
proof end;

theorem Th51: :: ARYTM_3:51  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for l, j, i, k being natural Ordinal st j <> {} & l <> {} holds
( i / j = k / l iff i *^ l = j *^ k )
proof end;

definition
let x, y be Element of RAT+ ;
func x + y -> Element of RAT+ equals :: ARYTM_3:def 10
(((numerator x) *^ (denominator y)) +^ ((numerator y) *^ (denominator x))) / ((denominator x) *^ (denominator y));
coherence
(((numerator x) *^ (denominator y)) +^ ((numerator y) *^ (denominator x))) / ((denominator x) *^ (denominator y)) is Element of RAT+
;
commutativity
for b1, x, y being Element of RAT+ st b1 = (((numerator x) *^ (denominator y)) +^ ((numerator y) *^ (denominator x))) / ((denominator x) *^ (denominator y)) holds
b1 = (((numerator y) *^ (denominator x)) +^ ((numerator x) *^ (denominator y))) / ((denominator y) *^ (denominator x))
;
func x *' y -> Element of RAT+ equals :: ARYTM_3:def 11
((numerator x) *^ (numerator y)) / ((denominator x) *^ (denominator y));
coherence
((numerator x) *^ (numerator y)) / ((denominator x) *^ (denominator y)) is Element of RAT+
;
commutativity
for b1, x, y being Element of RAT+ st b1 = ((numerator x) *^ (numerator y)) / ((denominator x) *^ (denominator y)) holds
b1 = ((numerator y) *^ (numerator x)) / ((denominator y) *^ (denominator x))
;
end;

:: deftheorem defines + ARYTM_3:def 10 :
for x, y being Element of RAT+ holds x + y = (((numerator x) *^ (denominator y)) +^ ((numerator y) *^ (denominator x))) / ((denominator x) *^ (denominator y));

:: deftheorem defines *' ARYTM_3:def 11 :
for x, y being Element of RAT+ holds x *' y = ((numerator x) *^ (numerator y)) / ((denominator x) *^ (denominator y));

theorem Th52: :: ARYTM_3:52  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for l, j, i, k being natural Ordinal st j <> {} & l <> {} holds
(i / j) + (k / l) = ((i *^ l) +^ (j *^ k)) / (j *^ l)
proof end;

theorem Th53: :: ARYTM_3:53  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for k, i, j being natural Ordinal st k <> {} holds
(i / k) + (j / k) = (i +^ j) / k
proof end;

registration
cluster empty natural Element of RAT+ ;
existence
ex b1 being Element of RAT+ st b1 is empty
by Th34, ORDINAL2:19;
end;

definition
:: original: {}
redefine func {} -> empty Element of RAT+ ;
coherence
{} is empty Element of RAT+
by Th34, ORDINAL2:19;
:: original: one
redefine func one -> non empty ordinal Element of RAT+ ;
coherence
one is non empty ordinal Element of RAT+
by Lm1, Th34;
end;

theorem Th54: :: ARYTM_3:54  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being Element of RAT+ holds x *' {} = {}
proof end;

theorem Th55: :: ARYTM_3:55  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for l, i, j, k being natural Ordinal holds (i / j) *' (k / l) = (i *^ k) / (j *^ l)
proof end;

theorem Th56: :: ARYTM_3:56  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being Element of RAT+ holds x + {} = x
proof end;

theorem Th57: :: ARYTM_3:57  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x, y, z being Element of RAT+ holds (x + y) + z = x + (y + z)
proof end;

theorem Th58: :: ARYTM_3:58  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x, y, z being Element of RAT+ holds (x *' y) *' z = x *' (y *' z)
proof end;

theorem Th59: :: ARYTM_3:59  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being Element of RAT+ holds x *' one = x
proof end;

theorem Th60: :: ARYTM_3:60  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being Element of RAT+ st x <> {} holds
ex y being Element of RAT+ st x *' y = one
proof end;

theorem Th61: :: ARYTM_3:61  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x, y being Element of RAT+ st x <> {} holds
ex z being Element of RAT+ st y = x *' z
proof end;

theorem Th62: :: ARYTM_3:62  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x, y, z being Element of RAT+ st x <> {} & x *' y = x *' z holds
y = z
proof end;

theorem Th63: :: ARYTM_3:63  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x, y, z being Element of RAT+ holds x *' (y + z) = (x *' y) + (x *' z)
proof end;

theorem Th64: :: ARYTM_3:64  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for i, j being ordinal Element of RAT+ holds i + j = i +^ j
proof end;

theorem :: ARYTM_3:65  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for i, j being ordinal Element of RAT+ holds i *' j = i *^ j
proof end;

theorem Th66: :: ARYTM_3:66  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being Element of RAT+ ex y being Element of RAT+ st x = y + y
proof end;

definition
let x, y be Element of RAT+ ;
pred x <=' y means :Def12: :: ARYTM_3:def 12
ex z being Element of RAT+ st y = x + z;
connectedness
for x, y being Element of RAT+ st ( for z being Element of RAT+ holds not y = x + z ) holds
ex z being Element of RAT+ st x = y + z
proof end;
end;

:: deftheorem Def12 defines <=' ARYTM_3:def 12 :
for x, y being Element of RAT+ holds
( x <=' y iff ex z being Element of RAT+ st y = x + z );

notation
let x, y be Element of RAT+ ;
antonym y < x for x <=' y;
end;

theorem :: ARYTM_3:67  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
canceled;

theorem :: ARYTM_3:68  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for y being set holds not [{} ,y] in RAT+
proof end;

theorem Th69: :: ARYTM_3:69  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for s, t, r being Element of RAT+ st s + t = r + t holds
s = r
proof end;

theorem Th70: :: ARYTM_3:70  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for r, s being Element of RAT+ st r + s = {} holds
r = {}
proof end;

theorem Th71: :: ARYTM_3:71  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for s being Element of RAT+ holds {} <=' s
proof end;

theorem :: ARYTM_3:72  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for s being Element of RAT+ st s <=' {} holds
s = {}
proof end;

theorem Th73: :: ARYTM_3:73  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for r, s being Element of RAT+ st r <=' s & s <=' r holds
r = s
proof end;

theorem Th74: :: ARYTM_3:74  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for r, s, t being Element of RAT+ st r <=' s & s <=' t holds
r <=' t
proof end;

theorem :: ARYTM_3:75  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for r, s being Element of RAT+ holds
( r < s iff ( r <=' s & r <> s ) ) by Th73;

theorem :: ARYTM_3:76  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for r, s, t being Element of RAT+ st ( ( r < s & s <=' t ) or ( r <=' s & s < t ) ) holds
r < t by Th74;

theorem :: ARYTM_3:77  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for r, s, t being Element of RAT+ st r < s & s < t holds
r < t by Th74;

theorem Th78: :: ARYTM_3:78  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x, y being Element of RAT+ st x in omega & x + y in omega holds
y in omega
proof end;

theorem Th79: :: ARYTM_3:79  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being Element of RAT+
for i being ordinal Element of RAT+ st i < x & x < i + one holds
not x in omega
proof end;

theorem Th80: :: ARYTM_3:80  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for t being Element of RAT+ st t <> {} holds
ex r being Element of RAT+ st
( r < t & not r in omega )
proof end;

theorem :: ARYTM_3:81  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for t being Element of RAT+ holds
( { s where s is Element of RAT+ : s < t } in RAT+ iff t = {} )
proof end;

theorem :: ARYTM_3:82  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for A being Subset of RAT+ st ex t being Element of RAT+ st
( t in A & t <> {} ) & ( for r, s being Element of RAT+ st r in A & s <=' r holds
s in A ) holds
ex r1, r2, r3 being Element of RAT+ st
( r1 in A & r2 in A & r3 in A & r1 <> r2 & r2 <> r3 & r3 <> r1 )
proof end;

theorem Th83: :: ARYTM_3:83  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for s, t, r being Element of RAT+ holds
( s + t <=' r + t iff s <=' r )
proof end;

theorem :: ARYTM_3:84  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
canceled;

theorem :: ARYTM_3:85  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for s, t being Element of RAT+ holds s <=' s + t
proof end;

theorem Th86: :: ARYTM_3:86  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for r, s being Element of RAT+ holds
( not r *' s = {} or r = {} or s = {} )
proof end;

theorem Th87: :: ARYTM_3:87  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for r, s, t being Element of RAT+ st r <=' s *' t holds
ex t0 being Element of RAT+ st
( r = s *' t0 & t0 <=' t )
proof end;

theorem :: ARYTM_3:88  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for t, s, r being Element of RAT+ st t <> {} & s *' t <=' r *' t holds
s <=' r
proof end;

theorem :: ARYTM_3:89  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for r1, r2, s1, s2 being Element of RAT+ holds
( not r1 + r2 = s1 + s2 or r1 <=' s1 or r2 <=' s2 )
proof end;

theorem Th90: :: ARYTM_3:90  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for s, r, t being Element of RAT+ st s <=' r holds
s *' t <=' r *' t
proof end;

theorem :: ARYTM_3:91  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for r1, r2, s1, s2 being Element of RAT+ holds
( not r1 *' r2 = s1 *' s2 or r1 <=' s1 or r2 <=' s2 )
proof end;

theorem :: ARYTM_3:92  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for r, s being Element of RAT+ holds
( r = {} iff r + s = s )
proof end;

theorem :: ARYTM_3:93  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for s1, t1, s2, t2 being Element of RAT+ st s1 + t1 = s2 + t2 & s1 <=' s2 holds
t2 <=' t1
proof end;

theorem Th94: :: ARYTM_3:94  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for r, s, t being Element of RAT+ st r <=' s & s <=' r + t holds
ex t0 being Element of RAT+ st
( s = r + t0 & t0 <=' t )
proof end;

theorem :: ARYTM_3:95  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for r, s, t being Element of RAT+ st r <=' s + t holds
ex s0, t0 being Element of RAT+ st
( r = s0 + t0 & s0 <=' s & t0 <=' t )
proof end;

theorem :: ARYTM_3:96  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for r, s, t being Element of RAT+ st r < s & r < t holds
ex t0 being Element of RAT+ st
( t0 <=' s & t0 <=' t & r < t0 )
proof end;

theorem :: ARYTM_3:97  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for r, s, t being Element of RAT+ st r <=' s & s <=' t & s <> t holds
r <> t by Th73;

theorem :: ARYTM_3:98  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for s, r, t being Element of RAT+ st s < r + t & t <> {} holds
ex r0, t0 being Element of RAT+ st
( s = r0 + t0 & r0 <=' r & t0 <=' t & t0 <> t )
proof end;

theorem :: ARYTM_3:99  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for A being non empty Subset of RAT+ st A in RAT+ holds
ex s being Element of RAT+ st
( s in A & ( for r being Element of RAT+ st r in A holds
r <=' s ) )
proof end;

theorem :: ARYTM_3:100  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for r, s being Element of RAT+ ex t being Element of RAT+ st
( r + t = s or s + t = r )
proof end;

theorem :: ARYTM_3:101  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for r, s being Element of RAT+ st r < s holds
ex t being Element of RAT+ st
( r < t & t < s )
proof end;

theorem :: ARYTM_3:102  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for r being Element of RAT+ ex s being Element of RAT+ st r < s
proof end;

theorem :: ARYTM_3:103  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for t, r being Element of RAT+ st t <> {} holds
ex s being Element of RAT+ st
( s in omega & r <=' s *' t )
proof end;

scheme :: ARYTM_3:sch 2
DisNat{ F1() -> Element of RAT+ , F2() -> Element of RAT+ , F3() -> Element of RAT+ , P1[ set ] } :
ex s being Element of RAT+ st
( s in omega & P1[s] & P1[s + F2()] )
provided
A1: F2() = one and
A2: F1() = {} and
A3: F3() in omega and
A4: P1[F1()] and
A5: P1[F3()]
proof end;