:: BINTREE1 semantic presentation
:: deftheorem Def1 defines root-label BINTREE1:def 1 :
theorem Th1: :: BINTREE1:1
theorem Th2: :: BINTREE1:2
:: deftheorem Def2 defines binary BINTREE1:def 2 :
theorem Th3: :: BINTREE1:3
canceled;
theorem Th4: :: BINTREE1:4
canceled;
theorem Th5: :: BINTREE1:5
theorem Th6: :: BINTREE1:6
theorem Th7: :: BINTREE1:7
:: deftheorem Def3 defines binary BINTREE1:def 3 :
theorem Th8: :: BINTREE1:8
theorem Th9: :: BINTREE1:9
proof
let c
1, c
2 be
Tree;
let c
3 be
Element of
tree c
1,c
2;
set c
4 =
tree c
1,c
2;
hereby
assume E6:
c
3 = {}
;
E7:
succ c
3 = { (c3 ^ <*b1*>) where B is Nat : c3 ^ <*b1*> in tree c1,c2 }
by TREES_2:def 5;
(
{} in c
1 &
<*0*> = <*0*> ^ {} )
by FINSEQ_1:47, TREES_1:47;
then
<*0*> in tree c
1,c
2
by TREES_3:71;
then E8:
c
3 ^ <*0*> in tree c
1,c
2
by E6, FINSEQ_1:47;
(
{} in c
2 &
<*1*> = <*1*> ^ {} )
by FINSEQ_1:47, TREES_1:47;
then
<*1*> in tree c
1,c
2
by TREES_3:71;
then E9:
c
3 ^ <*1*> in tree c
1,c
2
by E6, FINSEQ_1:47;
hence
succ c
3 = {(c3 ^ <*0*>),(c3 ^ <*1*>)}
by TARSKI:2;
end;
let c
5 be
Element of c
2;
assume E6:
c
3 = <*1*> ^ c
5
;
let c
6 be
FinSequence;
set c
7 =
<*1*> ^ c
6;
assume
<*1*> ^ c
6 in succ c
3
;
then
<*1*> ^ c
6 in { (c3 ^ <*b1*>) where B is Nat : c3 ^ <*b1*> in tree c1,c2 }
by TREES_2:def 5;
then consider c
8 being
Nat such that E7:
(
<*1*> ^ c
6 = c
3 ^ <*c8*> & c
3 ^ <*c8*> in tree c
1,c
2 )
;
<*1*> ^ (c5 ^ <*c8*>) in tree c
1,c
2
by E6, E7, FINSEQ_1:45;
then
c
5 ^ <*c8*> in c
2
by TREES_3:73;
then
c
5 ^ <*c8*> in { (c5 ^ <*b1*>) where B is Nat : c5 ^ <*b1*> in c2 }
;
then E8:
c
5 ^ <*c8*> in succ c
5
by TREES_2:def 5;
<*1*> ^ c
6 = <*1*> ^ (c5 ^ <*c8*>)
by E6, E7, FINSEQ_1:45;
hence
c
6 in succ c
5
by E8, FINSEQ_1:46;
end;
theorem Th10: :: BINTREE1:10
proof
let c
1, c
2 be
Tree;
set c
3 =
tree c
1,c
2;
hereby
assume E7:
( c
1 is
binary & c
2 is
binary )
;
now
let c
4 be
Element of
tree c
1,c
2;
assume E8:
not c
4 in Leaves (tree c1,c2)
;
per cases
not ( not c4 = {} & ( for b1 being FinSequence holds
( not ( b1 in c1 & c4 = <*0*> ^ b1 ) & not ( b1 in c2 & c4 = <*1*> ^ b1 ) ) ) )
by TREES_3:71;
suppose
not for b
1 being
FinSequence holds
( not ( b
1 in c
1 & c
4 = <*0*> ^ b
1 ) & not ( b
1 in c
2 & c
4 = <*1*> ^ b
1 ) )
;
then consider c
5 being
FinSequence such that E9:
( ( c
5 in c
1 & c
4 = <*0*> ^ c
5 ) or ( c
5 in c
2 & c
4 = <*1*> ^ c
5 ) )
;
E10:
now
assume E11:
( c
5 in c
1 & c
4 = <*0*> ^ c
5 )
;
then reconsider c
6 = c
5 as
Element of c
1 ;
per cases
not ( not c6 in Leaves c1 & c6 in Leaves c1 )
;
suppose
not c
6 in Leaves c
1
;
then E12:
succ c
6 = {(c6 ^ <*0*>),(c6 ^ <*1*>)}
by E7, Def2;
now
let c
7 be
set ;
hereby
assume E13:
c
7 in succ c
4
;
then
c
7 in { (c4 ^ <*b1*>) where B is Nat : c4 ^ <*b1*> in tree c1,c2 }
by TREES_2:def 5;
then consider c
8 being
Nat such that E14:
( c
7 = c
4 ^ <*c8*> & c
4 ^ <*c8*> in tree c
1,c
2 )
;
E15:
c
7 = <*0*> ^ (c6 ^ <*c8*>)
by E11, E14, FINSEQ_1:45;
then reconsider c
9 = c
6 ^ <*c8*> as
Element of c
1 by E14, TREES_3:72;
c
9 in succ c
6
by E11, E13, E15, Th9;
then
( c
9 = c
6 ^ <*0*> or c
9 = c
6 ^ <*1*> )
by E12, TARSKI:def 2;
then
( c
7 = c
4 ^ <*0*> or c
7 = c
4 ^ <*1*> )
by E14, FINSEQ_1:46;
hence
c
7 in {(c4 ^ <*0*>),(c4 ^ <*1*>)}
by TARSKI:def 2;
end;
assume
c
7 in {(c4 ^ <*0*>),(c4 ^ <*1*>)}
;
then
( c
7 = (<*0*> ^ c6) ^ <*0*> or c
7 = (<*0*> ^ c6) ^ <*1*> )
by E11, TARSKI:def 2;
then E13:
( c
7 = <*0*> ^ (c6 ^ <*0*>) or c
7 = <*0*> ^ (c6 ^ <*1*>) )
by FINSEQ_1:45;
( c
6 ^ <*0*> in succ c
6 & c
6 ^ <*1*> in succ c
6 )
by E12, TARSKI:def 2;
hence
c
7 in succ c
4
by E11, E13, Th9;
end;
hence
succ c
4 = {(c4 ^ <*0*>),(c4 ^ <*1*>)}
by TARSKI:2;
end;
end;
end;
<