let T, T1 be finite Tree; for p being Element of T holds (card (T with-replacement (p,T1))) + (card (T | p)) = (card T) + (card T1)
let p be Element of T; (card (T with-replacement (p,T1))) + (card (T | p)) = (card T) + (card T1)
defpred S1[ Element of T] means not p is_a_prefix_of $1;
defpred S2[ Element of T] means p is_a_prefix_of $1;
set A = { t where t is Element of T : S1[t] } ;
set B = { t where t is Element of T : S2[t] } ;
set C = { (p ^ t1) where t1 is Element of T1 : verum } ;
A1:
{ t where t is Element of T : S1[t] } is Subset of T
from DOMAIN_1:sch 7();
A2:
{ t where t is Element of T : S2[t] } is Subset of T
from DOMAIN_1:sch 7();
A3:
T1, { (p ^ t1) where t1 is Element of T1 : verum } are_equipotent
reconsider A = { t where t is Element of T : S1[t] } , B = { t where t is Element of T : S2[t] } as finite set by A1, A2;
now for x being object holds
( ( not x in T or x in A or x in B ) & ( ( x in A or x in B ) implies x in T ) )let x be
object ;
( ( not x in T or x in A or x in B ) & ( ( x in A or x in B ) implies x in T ) )hereby ( ( x in A or x in B ) implies x in T )
end; assume
(
x in A or
x in B )
;
x in Thence
x in T
by A1, A2;
verum end;
then A11:
T = A \/ B
by XBOOLE_0:def 3;
A12:
A misses { (p ^ t1) where t1 is Element of T1 : verum }
A15:
A misses B
A18:
T with-replacement (p,T1) = A \/ { (p ^ t1) where t1 is Element of T1 : verum }
by Th9;
reconsider C = { (p ^ t1) where t1 is Element of T1 : verum } as finite set by A3, CARD_1:38;
A19:
card T1 = card C
by A3, CARD_1:5;
T | p,B are_equipotent
by Th8;
then
card (T | p) = card B
by CARD_1:5;
hence (card (T with-replacement (p,T1))) + (card (T | p)) =
((card A) + (card C)) + (card B)
by A18, A12, CARD_2:40
.=
((card A) + (card B)) + (card C)
.=
(card T) + (card T1)
by A11, A15, A19, CARD_2:40
;
verum