:: BINARI_3 semantic presentation
theorem Th1: :: BINARI_3:1
theorem Th2: :: BINARI_3:2
proof
defpred S
1[ non
empty Nat] means for b
1, b
2 being
Tuple of a
1,
BOOLEAN holds
(
Absval b
1 = Absval b
2 implies b
1 = b
2 );
E3:
S
1[1]
E4:
for b
1 being non
empty Nat holds
( S
1[b
1] implies S
1[b
1 + 1] )
proof
let c
1 be non
empty Nat;
assume E5:
for b
1, b
2 being
Tuple of c
1,
BOOLEAN holds
(
Absval b
1 = Absval b
2 implies b
1 = b
2 )
;
let c
2, c
3 be
Tuple of
(c1 + 1),
BOOLEAN ;
consider c
4 being
Tuple of c
1,
BOOLEAN , c
5 being
Element of
BOOLEAN such that E6:
c
2 = c
4 ^ <*c5*>
by FINSEQ_2:137;
consider c
6 being
Tuple of c
1,
BOOLEAN , c
7 being
Element of
BOOLEAN such that E7:
c
3 = c
6 ^ <*c7*>
by FINSEQ_2:137;
assume E8:
Absval c
2 = Absval c
3
;
E9:
(Absval c4) + (IFEQ c5,FALSE ,0,(2 to_power c1)) =
Absval c
2
by E6, BINARITH:46
.=
(Absval c6) + (IFEQ c7,FALSE ,0,(2 to_power c1))
by E7, E8, BINARITH:46
;
E10:
c
5 = c
7
proof
assume E11:
c
5 <> c
7
;
per cases
( c5 = FALSE or c5 = TRUE )
by MARGREL1:39;
suppose E12:
c
5 = FALSE
;
then E13:
IFEQ c
7,
FALSE ,0,
(2 to_power c1) = 2
to_power c
1
by E11, CQC_LANG:def 1;
IFEQ c
5,
FALSE ,0,
(2 to_power c1) = 0
by E12, CQC_LANG:def 1;
then
Absval c
4 >= 2
to_power c
1
by E9, E13, NAT_1:29;
hence
not verum
by Th1;
end;
suppose E12:
c
5 = TRUE
;
then
c
7 = FALSE
by E11, MARGREL1:39;
then E13:
IFEQ c
7,
FALSE ,0,
(2 to_power c1) = 0
by CQC_LANG:def 1;
IFEQ c
5,
FALSE ,0,
(2 to_power c1) = 2
to_power c
1
by E12, CQC_LANG:def 1, MARGREL1:38;
then
Absval c
6 >= 2
to_power c
1
by E9, E13, NAT_1:29;
hence
not verum
by Th1;
end;
end;
end;
then
Absval c
4 = Absval c
6
by E9;
hence
c
2 = c
3
by E5, E6, E7, E10;
end;
thus
for b
1 being non
empty Nat holds
S
1[b
1]
from BINARITH:sch 1(E3, E4);
end;
theorem Th3: :: BINARI_3:3
theorem Th4: :: BINARI_3:4
theorem Th5: :: BINARI_3:5
theorem Th6: :: BINARI_3:6
proof
let c
1 be
Nat;
let c
2 be
Tuple of c
1,
BOOLEAN ;
assume E6:
c
2 = 0* c
1
;
E7:
len ('not' c2) =
c
1
by FINSEQ_2:109
.=
len (c1 |-> 1)
by FINSEQ_2:69
;
now
let c
3 be
Nat;
assume that E8:
1
<= c
3
and E9:
c
3 <= len ('not' c2)
;
E10:
(
len ('not' c2) = c
1 &
len c
2 = c
1 )
by FINSEQ_2:109;
then E11:
c
3 in Seg c
1
by E8, E9, FINSEQ_1:3;
E12: c
2 . c
3 =
(c1 |-> 0) . c
3
by E6
.=
FALSE
by E11, FUNCOP_1:13, MARGREL1:36
;
thus ('not' c2) . c
3 =
('not' c2) /. c
3
by E8, E9, FINSEQ_4:24
.=
'not' (c2 /. c3)
by E11, BINARITH:def 4
.=
'not' FALSE
by E8, E9, E10, E12, FINSEQ_4:24
.=
1
by MARGREL1:36, MARGREL1:41
.=
(c1 |-> 1) . c
3
by E11, FUNCOP_1:13
;
end;
hence
'not' c
2 = c
1 |-> 1
by E7, FINSEQ_1:18;
end;
theorem Th7: :: BINARI_3:7
proof
defpred S
1[
Nat] means for b
1 being
Tuple of a
1,
BOOLEAN holds
( b
1 = 0* a
1 implies
Absval b
1 = 0 );
E7:
S
1[1]
E8:
for b
1 being non
empty Nat holds
( S
1[b
1] implies S
1[b
1 + 1] )
proof
let c
1 be non
empty Nat;
assume E9:
for b
1 being
Tuple of c
1,
BOOLEAN holds
( b
1 = 0* c
1 implies
Absval b
1 = 0 )
;
let c
2 be
Tuple of
(c1 + 1),
BOOLEAN ;
0* c
1 in BOOLEAN *
by Th5;
then E10:
0* c
1 is
FinSequence of
BOOLEAN
by FINSEQ_1:def 11;
len (0* c1) = c
1
by FINSEQ_2:109;
then reconsider c
3 =
0* c
1 as
Tuple of c
1,
BOOLEAN by E10, FINSEQ_2:110;
assume
c
2 = 0* (c1 + 1)
;
hence Absval c
2 =
Absval (c3 ^ <*FALSE *>)
by Th4, MARGREL1:36
.=
(Absval c3) + (IFEQ FALSE ,FALSE ,0,(2 to_power c1))
by BINARITH:46
.=
0
+ (IFEQ FALSE ,FALSE ,0,(2 to_power c1))
by E9
.=
0
by CQC_LANG:def 1
;
end;
thus
for b
1 being non
empty Nat holds
S
1[b
1]
from BINARITH:sch 1(E7, E8);
end;
theorem Th8: :: BINARI_3:8
theorem Th9: :: BINARI_3:9
theorem Th10: :: BINARI_3:10
theorem Th11: :: BINARI_3:11
theorem Th12: :: BINARI_3:12
theorem Th13: :: BINARI_3:13
theorem Th14: :: BINARI_3:14
theorem Th15: :: BINARI_3:15
theorem Th16: :: BINARI_3:16
theorem Th17: :: BINARI_3:17
theorem Th18: :: BINARI_3:18
theorem Th19: :: BINARI_3:19
theorem Th20: :: BINARI_3:20