let n be Nat; ( n is odd implies ex a being non empty positive at_most_one FinSequence of REAL st
( len a = n & ( for f being non empty FinSequence of NAT st f = OnlinePacking (a,(NextFit a)) holds
( n = card (rng f) & n = (2 * (Opt a)) - 1 ) ) ) )
assume L010:
n is odd
; ex a being non empty positive at_most_one FinSequence of REAL st
( len a = n & ( for f being non empty FinSequence of NAT st f = OnlinePacking (a,(NextFit a)) holds
( n = card (rng f) & n = (2 * (Opt a)) - 1 ) ) )
L020:
1 <= n
by L010, NF992;
set epsilon = 1 / (n + 1);
defpred S1[ Nat, object ] means ( ( $1 is odd implies $2 = 2 * (1 / (n + 1)) ) & ( $1 is even implies $2 = 1 - (1 / (n + 1)) ) );
L100:
for i being Nat st i in Seg n holds
ex x being object st S1[i,x]
consider a0 being FinSequence such that
L200:
dom a0 = Seg n
and
L210:
for i being Nat st i in Seg n holds
S1[i,a0 . i]
from FINSEQ_1:sch 1(L100);
for i being Nat st i in dom a0 holds
a0 . i in REAL
then reconsider a0 = a0 as non empty FinSequence of REAL by NF315, L010, L200;
L500:
a0 is positive
for i being Nat st 1 <= i & i <= len a0 holds
a0 . i <= 1
then
a0 is at_most_one
;
then reconsider a0 = a0 as non empty positive at_most_one FinSequence of REAL by L500;
take
a0
; ( len a0 = n & ( for f being non empty FinSequence of NAT st f = OnlinePacking (a0,(NextFit a0)) holds
( n = card (rng f) & n = (2 * (Opt a0)) - 1 ) ) )
L649:
Seg (len a0) = Seg n
by FINSEQ_1:def 3, L200;
hence
len a0 = n
by FINSEQ_1:6; for f being non empty FinSequence of NAT st f = OnlinePacking (a0,(NextFit a0)) holds
( n = card (rng f) & n = (2 * (Opt a0)) - 1 )
let f be non empty FinSequence of NAT ; ( f = OnlinePacking (a0,(NextFit a0)) implies ( n = card (rng f) & n = (2 * (Opt a0)) - 1 ) )
assume
f = OnlinePacking (a0,(NextFit a0))
; ( n = card (rng f) & n = (2 * (Opt a0)) - 1 )
hence
n = card (rng f)
by L010, L649, FINSEQ_1:6, L210, NF993; n = (2 * (Opt a0)) - 1
thus
n = (2 * (Opt a0)) - 1
by L010, L649, FINSEQ_1:6, L210, NF997; verum