:: BINARI_3 semantic presentation
:: Showing IDV graph ... (Click the Palm Trees again to close it)
theorem Th1: :: BINARI_3:1
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th2: :: BINARI_3:2
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem :: BINARI_3:3
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th4: :: BINARI_3:4
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th5: :: BINARI_3:5
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th6: :: BINARI_3:6
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th7: :: BINARI_3:7
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem :: BINARI_3:8
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem :: BINARI_3:9
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem :: BINARI_3:10
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th11: :: BINARI_3:11
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th12: :: BINARI_3:12
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th13: :: BINARI_3:13
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th14: :: BINARI_3:14
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th15: :: BINARI_3:15
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem :: BINARI_3:16
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem :: BINARI_3:17
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th18: :: BINARI_3:18
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem :: BINARI_3:19
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th20: :: BINARI_3:20
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th21: :: BINARI_3:21
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th22: :: BINARI_3:22
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th23: :: BINARI_3:23
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th24: :: BINARI_3:24
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th25: :: BINARI_3:25
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
definition
let n,
k be
Nat;
func n -BinarySequence k -> Tuple of
n,
BOOLEAN means :
Def1:
:: BINARI_3:def 1
for
i being
Nat st
i in Seg n holds
it /. i = IFEQ ((k div (2 to_power (i -' 1))) mod 2),0,
FALSE ,
TRUE ;
existence
ex b1 being Tuple of n,BOOLEAN st
for i being Nat st i in Seg n holds
b1 /. i = IFEQ ((k div (2 to_power (i -' 1))) mod 2),0,FALSE ,TRUE
uniqueness
for b1, b2 being Tuple of n,BOOLEAN st ( for i being Nat st i in Seg n holds
b1 /. i = IFEQ ((k div (2 to_power (i -' 1))) mod 2),0,FALSE ,TRUE ) & ( for i being Nat st i in Seg n holds
b2 /. i = IFEQ ((k div (2 to_power (i -' 1))) mod 2),0,FALSE ,TRUE ) holds
b1 = b2
end;
:: deftheorem Def1 defines -BinarySequence BINARI_3:def 1 :
theorem Th26: :: BINARI_3:26
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th27: :: BINARI_3:27
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th28: :: BINARI_3:28
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
Lm1:
for n being non empty Nat holds (n + 1) -BinarySequence (2 to_power n) = (0* n) ^ <*TRUE *>
Lm2:
for n being non empty Nat
for k being Nat st 2 to_power n <= k & k < 2 to_power (n + 1) holds
((n + 1) -BinarySequence k) . (n + 1) = TRUE
Lm3:
for n being non empty Nat
for k being Nat st 2 to_power n <= k & k < 2 to_power (n + 1) holds
(n + 1) -BinarySequence k = (n -BinarySequence (k -' (2 to_power n))) ^ <*TRUE *>
Lm4:
for n being non empty Nat
for k being Nat st k < 2 to_power n holds
for x being Tuple of n,BOOLEAN st x = 0* n holds
( n -BinarySequence k = 'not' x iff k = (2 to_power n) - 1 )
theorem Th29: :: BINARI_3:29
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem :: BINARI_3:30
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th31: :: BINARI_3:31
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th32: :: BINARI_3:32
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th33: :: BINARI_3:33
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th34: :: BINARI_3:34
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem :: BINARI_3:35
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem Th36: :: BINARI_3:36
:: Showing IDV graph ... (Click the Palm Tree again to close it) 
theorem :: BINARI_3:37
:: Showing IDV graph ... (Click the Palm Tree again to close it) 