let F be Element of QC-WFF ; for t, t9 being Element of dom (tree_of_subformulae F) st t is_a_proper_prefix_of t9 holds
len (@ ((tree_of_subformulae F) . t9)) < len (@ ((tree_of_subformulae F) . t))
let t, t9 be Element of dom (tree_of_subformulae F); ( t is_a_proper_prefix_of t9 implies len (@ ((tree_of_subformulae F) . t9)) < len (@ ((tree_of_subformulae F) . t)) )
set G = (tree_of_subformulae F) . t;
set H = (tree_of_subformulae F) . t9;
assume A1:
t is_a_proper_prefix_of t9
; len (@ ((tree_of_subformulae F) . t9)) < len (@ ((tree_of_subformulae F) . t))
then A2:
t is_a_prefix_of t9
by XBOOLE_0:def 8;
A3:
now consider r being
FinSequence such that A4:
t9 = t ^ r
by A2, TREES_1:1;
reconsider r =
r as
FinSequence of
NAT by A4, FINSEQ_1:36;
A5:
1
<= len r
defpred S1[
set ,
set ]
means ex
t1 being
Element of
dom (tree_of_subformulae F) ex
r1 being
FinSequence ex
m being
Nat st
(
m = $1 &
r1 = r | (Seg m) &
t1 = t ^ r1 & $2
= (tree_of_subformulae F) . t1 );
A7:
for
k being
Nat st
k in Seg (len r) holds
ex
x being
set st
S1[
k,
x]
ex
L being
FinSequence st
(
dom L = Seg (len r) & ( for
k being
Nat st
k in Seg (len r) holds
S1[
k,
L . k] ) )
from FINSEQ_1:sch 1(A7);
then consider L being
FinSequence such that
dom L = Seg (len r)
and A11:
for
k being
Nat st
k in Seg (len r) holds
ex
t1 being
Element of
dom (tree_of_subformulae F) ex
r1 being
FinSequence ex
m being
Nat st
(
m = k &
r1 = r | (Seg m) &
t1 = t ^ r1 &
L . k = (tree_of_subformulae F) . t1 )
;
for
k being
Element of
NAT st 1
<= k &
k <= len r holds
ex
t1 being
Element of
dom (tree_of_subformulae F) ex
r1 being
FinSequence st
(
r1 = r | (Seg k) &
t1 = t ^ r1 &
L . k = (tree_of_subformulae F) . t1 )
then consider t1 being
Element of
dom (tree_of_subformulae F),
r1 being
FinSequence such that A12:
r1 = r | (Seg 1)
and A13:
t1 = t ^ r1
and
L . 1
= (tree_of_subformulae F) . t1
by A5;
set H1 =
(tree_of_subformulae F) . t1;
A14:
(tree_of_subformulae F) . t1 is_immediate_constituent_of (tree_of_subformulae F) . t
r1 is_a_prefix_of r
by A12, TREES_1:def 1;
then
t1 is_a_prefix_of t9
by A4, A13, FINSEQ_6:13;
then A15:
len (@ ((tree_of_subformulae F) . t9)) <= len (@ ((tree_of_subformulae F) . t1))
by Th28, Th42;
assume
len (@ ((tree_of_subformulae F) . t9)) = len (@ ((tree_of_subformulae F) . t))
;
contradictionhence
contradiction
by A15, A14, QC_LANG2:51;
verum end;
len (@ ((tree_of_subformulae F) . t9)) <= len (@ ((tree_of_subformulae F) . t))
by A2, Th28, Th42;
hence
len (@ ((tree_of_subformulae F) . t9)) < len (@ ((tree_of_subformulae F) . t))
by A3, XXREAL_0:1; verum