reconsider N = NAT as Subset of REAL by NUMBERS:19;
canceled;
scheme
NatInd{
P1[
Nat] } :
for
k being
Nat holds
P1[
k]
provided
A1:
P1[
0 ]
and A2:
for
k being
Nat st
P1[
k] holds
P1[
k + 1]
scheme
DefbyInd{
F1()
-> Nat,
F2(
Nat,
Nat)
-> Nat,
P1[
Nat,
Nat] } :
( ( for
k being
Nat ex
n being
Nat st
P1[
k,
n] ) & ( for
k,
n,
m being
Nat st
P1[
k,
n] &
P1[
k,
m] holds
n = m ) )
provided
A1:
for
k,
n being
Nat holds
(
P1[
k,
n] iff ( (
k = 0 &
n = F1() ) or ex
m,
l being
Nat st
(
k = m + 1 &
P1[
m,
l] &
n = F2(
k,
l) ) ) )
scheme
CompInd{
P1[
Nat] } :
for
k being
Nat holds
P1[
k]
provided
A1:
for
k being
Nat st ( for
n being
Nat st
n < k holds
P1[
n] ) holds
P1[
k]
scheme
Min{
P1[
Nat] } :
ex
k being
Nat st
(
P1[
k] & ( for
n being
Nat st
P1[
n] holds
k <= n ) )
provided
A1:
ex
k being
Nat st
P1[
k]
scheme
Max{
P1[
Nat],
F1()
-> Nat } :
ex
k being
Nat st
(
P1[
k] & ( for
n being
Nat st
P1[
n] holds
n <= k ) )
provided
A1:
for
k being
Nat st
P1[
k] holds
k <= F1()
and A2:
ex
k being
Nat st
P1[
k]
scheme
Regr{
P1[
Nat] } :
provided
A1:
ex
k being
Nat st
P1[
k]
and A2:
for
k being
Nat st
k <> 0 &
P1[
k] holds
ex
n being
Nat st
(
n < k &
P1[
n] )
theorem
for
m being
Nat st
0 < m holds
for
n being
Nat ex
k,
t being
Nat st
(
n = (m * k) + t &
t < m )
theorem
for
n,
m,
k,
t,
k1,
t1 being
natural Number st
n = (m * k) + t &
t < m &
n = (m * k1) + t1 &
t1 < m holds
(
k = k1 &
t = t1 )
scheme
Ind1{
F1()
-> Nat,
P1[
Nat] } :
for
i being
Nat st
F1()
<= i holds
P1[
i]
provided
A1:
P1[
F1()]
and A2:
for
j being
Nat st
F1()
<= j &
P1[
j] holds
P1[
j + 1]
scheme
CompInd1{
F1()
-> Nat,
P1[
Nat] } :
for
k being
Nat st
k >= F1() holds
P1[
k]
provided
A1:
for
k being
Nat st
k >= F1() & ( for
n being
Nat st
n >= F1() &
n < k holds
P1[
n] ) holds
P1[
k]
scheme
Indfrom1{
P1[
Nat] } :
for
k being non
zero Nat holds
P1[
k]
provided
A1:
P1[1]
and A2:
for
k being non
zero Nat st
P1[
k] holds
P1[
k + 1]
canceled;
scheme
RecUn{
F1()
-> object ,
F2()
-> Function,
F3()
-> Function,
P1[
object ,
object ,
object ] } :
provided
A1:
dom F2()
= NAT
and A2:
F2()
. 0 = F1()
and A3:
for
n being
Nat holds
P1[
n,
F2()
. n,
F2()
. (n + 1)]
and A4:
dom F3()
= NAT
and A5:
F3()
. 0 = F1()
and A6:
for
n being
Nat holds
P1[
n,
F3()
. n,
F3()
. (n + 1)]
and A7:
for
n being
Nat for
x,
y1,
y2 being
set st
P1[
n,
x,
y1] &
P1[
n,
x,
y2] holds
y1 = y2
scheme
RecUnD{
F1()
-> non
empty set ,
F2()
-> Element of
F1(),
P1[
object ,
object ,
object ],
F3()
-> sequence of
F1(),
F4()
-> sequence of
F1() } :
provided
A1:
F3()
. 0 = F2()
and A2:
for
n being
Nat holds
P1[
n,
F3()
. n,
F3()
. (n + 1)]
and A3:
F4()
. 0 = F2()
and A4:
for
n being
Nat holds
P1[
n,
F4()
. n,
F4()
. (n + 1)]
and A5:
for
n being
Nat for
x,
y1,
y2 being
Element of
F1() st
P1[
n,
x,
y1] &
P1[
n,
x,
y2] holds
y1 = y2
scheme
MinIndex{
F1(
Nat)
-> Nat } :
ex
k being
Nat st
(
F1(
k)
= 0 & ( for
n being
Nat st
F1(
n)
= 0 holds
k <= n ) )
provided
A1:
for
k being
Nat holds
(
F1(
(k + 1))
< F1(
k) or
F1(
k)
= 0 )
Lm1:
for s being ManySortedSet of NAT
for k being natural Number holds rng (s ^\ k) c= rng s
scheme
MinPred{
F1(
Nat)
-> Nat,
P1[
object ] } :
ex
k being
Nat st
(
P1[
k] & ( for
n being
Nat st
P1[
n] holds
k <= n ) )
provided
A1:
for
k being
Nat holds
(
F1(
(k + 1))
< F1(
k) or
P1[
k] )
theorem
for
k,
n being
Nat st
k <= n holds
not not
k = 0 & ... & not
k = n
theorem
for
k,
m,
i being
Nat st
m <= i &
i <= m + k holds
not not
i = m + 0 & ... & not
i = m + k
registration
let A be non
zero object ;
coherence
{A} is with_non-empty_elements
by TARSKI:def 1;
let B be non
zero object ;
coherence
{A,B} is with_non-empty_elements
by TARSKI:def 2;
let C be non
zero object ;
coherence
{A,B,C} is with_non-empty_elements
by ENUMSET1:def 1;
let D be non
zero object ;
coherence
{A,B,C,D} is with_non-empty_elements
by ENUMSET1:def 2;
let E be non
zero object ;
coherence
{A,B,C,D,E} is with_non-empty_elements
by ENUMSET1:def 3;
let F be non
zero object ;
coherence
{A,B,C,D,E,F} is with_non-empty_elements
by ENUMSET1:def 4;
let G be non
zero object ;
coherence
{A,B,C,D,E,F,G} is with_non-empty_elements
by ENUMSET1:def 5;
let H be non
zero object ;
coherence
{A,B,C,D,E,F,G,H} is with_non-empty_elements
by ENUMSET1:def 6;
let I be non
zero object ;
coherence
{A,B,C,D,E,F,G,H,I} is with_non-empty_elements
by ENUMSET1:def 7;
let J be non
zero object ;
coherence
{A,B,C,D,E,F,G,H,I,J} is with_non-empty_elements
by ENUMSET1:def 8;
end;