defpred S2[ Nat] means for X being non empty finite Subset of (BinFinTrees IndexedREAL) st card X = $1 holds
ex r being finite binary DecoratedTree of IndexedREAL st S1[X,r];
A1: S2[ 0 ] ;
A2: for n being Nat st S2[n] holds
S2[n + 1]
proof
let n be Nat; :: thesis: ( S2[n] implies S2[n + 1] )
assume A3: S2[n] ; :: thesis: S2[n + 1]
let X be non empty finite Subset of (BinFinTrees IndexedREAL); :: thesis: ( card X = n + 1 implies ex r being finite binary DecoratedTree of IndexedREAL st S1[X,r] )
assume A4: card X = n + 1 ; :: thesis: ex r being finite binary DecoratedTree of IndexedREAL st S1[X,r]
consider p being object such that
A5: p in X by XBOOLE_0:def 1;
reconsider p = p as DecoratedTree of IndexedREAL by A5;
A6: ( dom p is finite & p is binary ) by A5, Def2;
reconsider p = p as finite binary DecoratedTree of IndexedREAL by A6, FINSET_1:10;
per cases ( n = 0 or n <> 0 ) ;
suppose A8: n <> 0 ; :: thesis: ex r being finite binary DecoratedTree of IndexedREAL st S1[X,r]
set Y = X \ {p};
A9: card {p} = 1 by CARD_2:42;
A10: card (X \ {p}) = (card X) - (card {p}) by ZFMISC_1:31, A5, CARD_2:44
.= n by A9, A4 ;
A11: X \ {p} c= X by XBOOLE_1:36;
reconsider Y = X \ {p} as non empty finite Subset of (BinFinTrees IndexedREAL) by A10, A8;
A12: X = Y \/ {p} by XBOOLE_1:45, ZFMISC_1:31, A5;
consider q being finite binary DecoratedTree of IndexedREAL such that
A13: S1[Y,q] by A10, A3;
per cases ( Vrootr p <= Vrootr q or not Vrootr p <= Vrootr q ) ;
end;
end;
end;
end;
A18: for n being Nat holds S2[n] from NAT_1:sch 2(A1, A2);
card X is Nat ;
hence ex b1 being finite binary DecoratedTree of IndexedREAL st
( b1 in X & ( for q being finite binary DecoratedTree of IndexedREAL st q in X holds
Vrootr b1 <= Vrootr q ) ) by A18; :: thesis: verum