:: RADIX_5 semantic presentation
theorem Th1: :: RADIX_5:1
theorem Th2: :: RADIX_5:2
theorem Th3: :: RADIX_5:3
theorem Th4: :: RADIX_5:4
theorem Th5: :: RADIX_5:5
theorem Th6: :: RADIX_5:6
theorem Th7: :: RADIX_5:7
theorem Th8: :: RADIX_5:8
theorem Th9: :: RADIX_5:9
theorem Th10: :: RADIX_5:10
theorem Th11: :: RADIX_5:11
Lemma10:
for b1 being Nat st 2 <= b1 holds
SD_Add_Carry ((Radix b1) - 1) = 1
Lemma11:
for b1, b2, b3 being Nat st b2 >= 2 & b3 in Seg b1 holds
SD_Add_Carry (DigA (DecSD 1,b1,b2),b3) = 0
theorem Th12: :: RADIX_5:12
theorem Th13: :: RADIX_5:13
theorem Th14: :: RADIX_5:14
for
b1 being
Nat st
b1 >= 1 holds
for
b2 being
Nat st
b2 >= 2 holds
for
b3,
b4,
b5,
b6 being
Tuple of
b1,
(b2 -SD ) st ( for
b7 being
Nat holds
( not
b7 in Seg b1 or (
DigA b3,
b7 = DigA b5,
b7 &
DigA b4,
b7 = DigA b6,
b7 ) or (
DigA b4,
b7 = DigA b5,
b7 &
DigA b3,
b7 = DigA b6,
b7 ) ) ) holds
(SDDec b5) + (SDDec b6) = (SDDec b3) + (SDDec b4)
theorem Th15: :: RADIX_5:15
for
b1,
b2 being
Nat st
b1 >= 1 &
b2 >= 2 holds
for
b3,
b4,
b5 being
Tuple of
b1,
(b2 -SD ) st ( for
b6 being
Nat holds
( not
b6 in Seg b1 or (
DigA b3,
b6 = DigA b5,
b6 &
DigA b4,
b6 = 0 ) or (
DigA b4,
b6 = DigA b5,
b6 &
DigA b3,
b6 = 0 ) ) ) holds
(SDDec b5) + (SDDec (DecSD 0,b1,b2)) = (SDDec b3) + (SDDec b4)
:: deftheorem Def1 defines SDMinDigit RADIX_5:def 1 :
definition
let c1,
c2,
c3 be
Nat;
func SDMin c1,
c2,
c3 -> Tuple of
a1,
(a3 -SD ) means :
Def2:
:: RADIX_5:def 2
for
b1 being
Nat st
b1 in Seg a1 holds
DigA a4,
b1 = SDMinDigit a2,
a3,
b1;
existence
ex b1 being Tuple of c1,(c3 -SD ) st
for b2 being Nat st b2 in Seg c1 holds
DigA b1,b2 = SDMinDigit c2,c3,b2
uniqueness
for b1, b2 being Tuple of c1,(c3 -SD ) st ( for b3 being Nat st b3 in Seg c1 holds
DigA b1,b3 = SDMinDigit c2,c3,b3 ) & ( for b3 being Nat st b3 in Seg c1 holds
DigA b2,b3 = SDMinDigit c2,c3,b3 ) holds
b1 = b2
end;
:: deftheorem Def2 defines SDMin RADIX_5:def 2 :
:: deftheorem Def3 defines SDMaxDigit RADIX_5:def 3 :
definition
let c1,
c2,
c3 be
Nat;
func SDMax c1,
c2,
c3 -> Tuple of
a1,
(a3 -SD ) means :
Def4:
:: RADIX_5:def 4
for
b1 being
Nat st
b1 in Seg a1 holds
DigA a4,
b1 = SDMaxDigit a2,
a3,
b1;
existence
ex b1 being Tuple of c1,(c3 -SD ) st
for b2 being Nat st b2 in Seg c1 holds
DigA b1,b2 = SDMaxDigit c2,c3,b2
uniqueness
for b1, b2 being Tuple of c1,(c3 -SD ) st ( for b3 being Nat st b3 in Seg c1 holds
DigA b1,b3 = SDMaxDigit c2,c3,b3 ) & ( for b3 being Nat st b3 in Seg c1 holds
DigA b2,b3 = SDMaxDigit c2,c3,b3 ) holds
b1 = b2
end;
:: deftheorem Def4 defines SDMax RADIX_5:def 4 :
:: deftheorem Def5 defines FminDigit RADIX_5:def 5 :
for
b1,
b2,
b3 being
Nat st
b3 >= 2 holds
( (
b1 = b2 implies
FminDigit b2,
b3,
b1 = 1 ) & ( not
b1 = b2 implies
FminDigit b2,
b3,
b1 = 0 ) );
definition
let c1,
c2,
c3 be
Nat;
func Fmin c1,
c2,
c3 -> Tuple of
a1,
(a3 -SD ) means :
Def6:
:: RADIX_5:def 6
for
b1 being
Nat st
b1 in Seg a1 holds
DigA a4,
b1 = FminDigit a2,
a3,
b1;
existence
ex b1 being Tuple of c1,(c3 -SD ) st
for b2 being Nat st b2 in Seg c1 holds
DigA b1,b2 = FminDigit c2,c3,b2
uniqueness
for b1, b2 being Tuple of c1,(c3 -SD ) st ( for b3 being Nat st b3 in Seg c1 holds
DigA b1,b3 = FminDigit c2,c3,b3 ) & ( for b3 being Nat st b3 in Seg c1 holds
DigA b2,b3 = FminDigit c2,c3,b3 ) holds
b1 = b2
end;
:: deftheorem Def6 defines Fmin RADIX_5:def 6 :
:: deftheorem Def7 defines FmaxDigit RADIX_5:def 7 :
definition
let c1,
c2,
c3 be
Nat;
func Fmax c1,
c2,
c3 -> Tuple of
a1,
(a3 -SD ) means :
Def8:
:: RADIX_5:def 8
for
b1 being
Nat st
b1 in Seg a1 holds
DigA a4,
b1 = FmaxDigit a2,
a3,
b1;
existence
ex b1 being Tuple of c1,(c3 -SD ) st
for b2 being Nat st b2 in Seg c1 holds
DigA b1,b2 = FmaxDigit c2,c3,b2
uniqueness
for b1, b2 being Tuple of c1,(c3 -SD ) st ( for b3 being Nat st b3 in Seg c1 holds
DigA b1,b3 = FmaxDigit c2,c3,b3 ) & ( for b3 being Nat st b3 in Seg c1 holds
DigA b2,b3 = FmaxDigit c2,c3,b3 ) holds
b1 = b2
end;
:: deftheorem Def8 defines Fmax RADIX_5:def 8 :
theorem Th16: :: RADIX_5:16
theorem Th17: :: RADIX_5:17
theorem Th18: :: RADIX_5:18
theorem Th19: :: RADIX_5:19