begin
theorem Th1:
for
i,
j being
Nat st
0 < i holds
j mod i < i
scheme
Euklides{
F1(
Nat)
-> Nat,
F2()
-> Nat,
F3()
-> Nat } :
provided
A1:
(
0 < F3() &
F3()
< F2() )
and A2:
(
F1(
0)
= F2() &
F1(1)
= F3() )
and A3:
for
n being
Element of
NAT holds
F1(
(n + 2))
= F1(
n)
mod F1(
(n + 1))
theorem
for
k being
Nat st
k > 1 holds
1
mod k = 1
begin
theorem Th24:
for
k,
n being
Nat st
k < n holds
k mod n = k
theorem Th27:
for
i,
j being
Nat st
i < j holds
i div j = 0
theorem Th34:
for
i,
j being
Nat holds
(i + j) -' j = i
theorem Th35:
for
a,
b being
Nat holds
a -' b <= a
theorem Th36:
for
n,
i being
Nat st
n -' i = 0 holds
n <= i
theorem
for
i,
j,
k being
Nat st
i <= j holds
(j + k) -' i = (j -' i) + k
theorem Th39:
for
i,
i1 being
Nat st (
i -' i1 >= 1 or
i - i1 >= 1 ) holds
i -' i1 = i - i1
theorem
for
i1,
i2,
n being
Nat st
i1 <= i2 holds
n -' i2 <= n -' i1
theorem Th42:
for
i1,
i2,
n being
Nat st
i1 <= i2 holds
i1 -' n <= i2 -' n
theorem Th43:
for
i,
i1 being
Nat st (
i -' i1 >= 1 or
i - i1 >= 1 ) holds
(i -' i1) + i1 = i
theorem
for
i1,
i2 being
Nat st
i1 <= i2 holds
i1 -' 1
<= i2
theorem Th46:
for
i1,
i2 being
Nat st
i1 + 1
<= i2 holds
(
i1 -' 1
< i2 &
i1 -' 2
< i2 &
i1 <= i2 )
theorem
for
i1,
i2 being
Nat st (
i1 + 2
<= i2 or
(i1 + 1) + 1
<= i2 ) holds
(
i1 + 1
< i2 &
(i1 + 1) -' 1
< i2 &
(i1 + 1) -' 2
< i2 &
i1 + 1
<= i2 &
(i1 -' 1) + 1
< i2 &
((i1 -' 1) + 1) -' 1
< i2 &
i1 < i2 &
i1 -' 1
< i2 &
i1 -' 2
< i2 &
i1 <= i2 )
theorem
for
i1,
i2 being
Nat st (
i1 <= i2 or
i1 <= i2 -' 1 ) holds
(
i1 < i2 + 1 &
i1 <= i2 + 1 &
i1 < (i2 + 1) + 1 &
i1 <= (i2 + 1) + 1 &
i1 < i2 + 2 &
i1 <= i2 + 2 )
theorem
for
i1,
i2 being
Nat st (
i1 < i2 or
i1 + 1
<= i2 ) holds
i1 <= i2 -' 1
theorem Th50:
for
i,
i1,
i2 being
Nat st
i >= i1 holds
i >= i1 -' i2
theorem
for
i,
i1 being
Nat st 1
<= i & 1
<= i1 -' i holds
i1 -' i < i1
theorem Th52:
for
i,
k,
j being
Nat st
i -' k <= j holds
i <= j + k
theorem
for
i,
j,
k being
Nat st
i <= j + k holds
i -' k <= j
theorem
for
i,
j,
k being
Nat st
i <= j -' k &
k <= j holds
i + k <= j
theorem
for
j,
k,
i being
Nat st
j + k <= i holds
k <= i -' j
theorem
for
k,
i,
j being
Nat st
k <= i &
i < j holds
i -' k < j -' k
theorem
for
i,
j,
k being
Nat st
i < j &
k < j holds
i -' k < j -' k
theorem
for
i,
j being
Nat st
i <= j holds
j -' (j -' i) = i
theorem
for
n,
k being
Nat st
n < k holds
(k -' (n + 1)) + 1
= k -' n