Lm1:
for k being Nat st 2 <= k holds
SD_Add_Carry ((Radix k) - 1) = 1
Lm2:
for n, k, i being Nat st k >= 2 & i in Seg n holds
SD_Add_Carry (DigA ((DecSD (1,n,k)),i)) = 0
theorem Th14:
for
n being
Nat st
n >= 1 holds
for
k being
Nat st
k >= 2 holds
for
tx,
ty,
tz,
tw being
Tuple of
n,
k -SD st ( for
i being
Nat holds
( not
i in Seg n or (
DigA (
tx,
i)
= DigA (
tz,
i) &
DigA (
ty,
i)
= DigA (
tw,
i) ) or (
DigA (
ty,
i)
= DigA (
tz,
i) &
DigA (
tx,
i)
= DigA (
tw,
i) ) ) ) holds
(SDDec tz) + (SDDec tw) = (SDDec tx) + (SDDec ty)
theorem
for
n,
k being
Nat st
n >= 1 &
k >= 2 holds
for
tx,
ty,
tz being
Tuple of
n,
k -SD st ( for
i being
Nat holds
( not
i in Seg n or (
DigA (
tx,
i)
= DigA (
tz,
i) &
DigA (
ty,
i)
= 0 ) or (
DigA (
ty,
i)
= DigA (
tz,
i) &
DigA (
tx,
i)
= 0 ) ) ) holds
(SDDec tz) + (SDDec (DecSD (0,n,k))) = (SDDec tx) + (SDDec ty)
definition
let n,
m,
k be
Nat;
existence
ex b1 being Tuple of n,k -SD st
for i being Nat st i in Seg n holds
DigA (b1,i) = SDMinDigit (m,k,i)
uniqueness
for b1, b2 being Tuple of n,k -SD st ( for i being Nat st i in Seg n holds
DigA (b1,i) = SDMinDigit (m,k,i) ) & ( for i being Nat st i in Seg n holds
DigA (b2,i) = SDMinDigit (m,k,i) ) holds
b1 = b2
end;
definition
let n,
m,
k be
Nat;
existence
ex b1 being Tuple of n,k -SD st
for i being Nat st i in Seg n holds
DigA (b1,i) = SDMaxDigit (m,k,i)
uniqueness
for b1, b2 being Tuple of n,k -SD st ( for i being Nat st i in Seg n holds
DigA (b1,i) = SDMaxDigit (m,k,i) ) & ( for i being Nat st i in Seg n holds
DigA (b2,i) = SDMaxDigit (m,k,i) ) holds
b1 = b2
end;
definition
let n,
m,
k be
Nat;
existence
ex b1 being Tuple of n,k -SD st
for i being Nat st i in Seg n holds
DigA (b1,i) = FminDigit (m,k,i)
uniqueness
for b1, b2 being Tuple of n,k -SD st ( for i being Nat st i in Seg n holds
DigA (b1,i) = FminDigit (m,k,i) ) & ( for i being Nat st i in Seg n holds
DigA (b2,i) = FminDigit (m,k,i) ) holds
b1 = b2
end;
definition
let n,
m,
k be
Nat;
existence
ex b1 being Tuple of n,k -SD st
for i being Nat st i in Seg n holds
DigA (b1,i) = FmaxDigit (m,k,i)
uniqueness
for b1, b2 being Tuple of n,k -SD st ( for i being Nat st i in Seg n holds
DigA (b1,i) = FmaxDigit (m,k,i) ) & ( for i being Nat st i in Seg n holds
DigA (b2,i) = FmaxDigit (m,k,i) ) holds
b1 = b2
end;