defpred S1[ Nat] means for k being Nat
for tx, ty being Tuple of $1,(k -SD ) st ( for i being Nat st i in Seg $1 holds
DigA tx,i = DigA ty,i ) holds
SDDec tx = SDDec ty;
A1:
S1[1]
proof
let k be
Nat;
:: thesis: for tx, ty being Tuple of 1,(k -SD ) st ( for i being Nat st i in Seg 1 holds
DigA tx,i = DigA ty,i ) holds
SDDec tx = SDDec tylet tx,
ty be
Tuple of 1,
(k -SD );
:: thesis: ( ( for i being Nat st i in Seg 1 holds
DigA tx,i = DigA ty,i ) implies SDDec tx = SDDec ty )
assume A2:
for
i being
Nat st
i in Seg 1 holds
DigA tx,
i = DigA ty,
i
;
:: thesis: SDDec tx = SDDec ty
A3:
1
in Seg 1
by FINSEQ_1:3;
A4:
SDDec tx = DigA tx,1
by Th4;
SDDec ty = DigA ty,1
by Th4;
hence
SDDec tx = SDDec ty
by A2, A3, A4;
:: thesis: verum
end;
A5:
for n being Nat st n >= 1 & S1[n] holds
S1[n + 1]
proof
let n be
Nat;
:: thesis: ( n >= 1 & S1[n] implies S1[n + 1] )
assume A6:
(
n >= 1 &
S1[
n] )
;
:: thesis: S1[n + 1]
let k be
Nat;
:: thesis: for tx, ty being Tuple of (n + 1),(k -SD ) st ( for i being Nat st i in Seg (n + 1) holds
DigA tx,i = DigA ty,i ) holds
SDDec tx = SDDec tylet tx,
ty be
Tuple of
(n + 1),
(k -SD );
:: thesis: ( ( for i being Nat st i in Seg (n + 1) holds
DigA tx,i = DigA ty,i ) implies SDDec tx = SDDec ty )
assume A7:
for
i being
Nat st
i in Seg (n + 1) holds
DigA tx,
i = DigA ty,
i
;
:: thesis: SDDec tx = SDDec ty
deffunc H1(
Nat)
-> Element of
K404() =
DigB tx,$1;
consider txn being
FinSequence of
INT such that A8:
len txn = n
and A9:
for
i being
Nat st
i in dom txn holds
txn . i = H1(
i)
from FINSEQ_2:sch 1();
A10:
dom txn = Seg n
by A8, FINSEQ_1:def 3;
rng txn c= k -SD
then reconsider txn =
txn as
FinSequence of
k -SD by FINSEQ_1:def 4;
A15:
for
i being
Nat st
i in Seg n holds
txn . i = tx . i
deffunc H2(
Nat)
-> Element of
K404() =
DigB ty,$1;
consider tyn being
FinSequence of
INT such that A18:
len tyn = n
and A19:
for
i being
Nat st
i in dom tyn holds
tyn . i = H2(
i)
from FINSEQ_2:sch 1();
A20:
dom tyn = Seg n
by A18, FINSEQ_1:def 3;
rng tyn c= k -SD
then reconsider tyn =
tyn as
FinSequence of
k -SD by FINSEQ_1:def 4;
A25:
for
i being
Nat st
i in Seg n holds
tyn . i = ty . i
reconsider n =
n as
Element of
NAT by ORDINAL1:def 13;
reconsider txn =
txn as
Tuple of
n,
(k -SD ) by A8, FINSEQ_2:110;
reconsider tyn =
tyn as
Tuple of
n,
(k -SD ) by A18, FINSEQ_2:110;
A28:
(SDDec txn) + (((Radix k) |^ n) * (DigA tx,(n + 1))) = SDDec tx
by A15, RADIX_2:10;
A29:
(SDDec tyn) + (((Radix k) |^ n) * (DigA ty,(n + 1))) = SDDec ty
by A25, RADIX_2:10;
for
i being
Nat st
i in Seg n holds
DigA txn,
i = DigA tyn,
i
proof
let i be
Nat;
:: thesis: ( i in Seg n implies DigA txn,i = DigA tyn,i )
assume A30:
i in Seg n
;
:: thesis: DigA txn,i = DigA tyn,i
then A31:
DigA txn,
i =
txn . i
by RADIX_1:def 3
.=
DigB tx,
i
by A9, A30, A10
.=
DigA tx,
i
by RADIX_1:def 4
;
DigA tyn,
i =
tyn . i
by A30, RADIX_1:def 3
.=
DigB ty,
i
by A19, A30, A20
.=
DigA ty,
i
by RADIX_1:def 4
;
hence
DigA txn,
i = DigA tyn,
i
by A7, A30, A31, FINSEQ_2:9;
:: thesis: verum
end;
then
SDDec txn = SDDec tyn
by A6;
hence
SDDec tx = SDDec ty
by A7, A28, A29, FINSEQ_1:6;
:: thesis: verum
end;
for n being Nat st n >= 1 holds
S1[n]
from NAT_1:sch 8(A1, A5);
hence
for n being Nat st n >= 1 holds
for k being Nat
for tx, ty being Tuple of n,(k -SD ) st ( for i being Nat st i in Seg n holds
DigA tx,i = DigA ty,i ) holds
SDDec tx = SDDec ty
; :: thesis: verum