|
|
|
|
Quelle lexbfs.miz
Sprache: Mizar
|
|
:: Recognizing Chordal Graphs: Lex BFS and MCS
:: by Broderick Arneson and Piotr Rudnicki
::
:: Received November 17, 2006
:: Copyright (c) 2006-2026 Association of Mizar Users
:: (Stowarzyszenie Uzytkownikow Mizara, Bialystok, Poland).
:: This code can be distributed under the GNU General Public Licence
:: version 3.0 or later, or the Creative Commons Attribution-ShareAlike
:: License version 3.0 or later, subject to the binding interpretation
:: detailed in file COPYING.interpretation.
:: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these
:: licenses, or see http://www.gnu.org/licenses/gpl.html and
:: http://creativecommons.org/licenses/by-sa/3.0/.
environ
vocabularies NUMBERS, FUNCT_1, CARD_1, RELAT_1, TARSKI, FUNCT_4, FUNCOP_1,
XBOOLE_0, SUBSET_1, XXREAL_0, ARYTM_3, FINSET_1, ORDINAL1, ARYTM_1,
NAT_1, ZFMISC_1, FINSEQ_1, UPROOTS, VALUED_0, RELAT_2, BAGORDER,
PRE_POLY, WELLORD1, GLIB_000, GLIB_001, ORDINAL4, PBOOLE, PARTFUN1,
MCART_1, FUNCT_2, FINSUB_1, CHORD, TOPGEN_1, RCOMP_1, FINSEQ_4, GRAPH_1,
MEMBERED, ABIAN, LEXBFS, MATROID0, REAL_1, XCMPLX_0;
notations TARSKI, XBOOLE_0, ZFMISC_1, XTUPLE_0, MCART_1, CARD_1, ORDINAL1,
NUMBERS, SUBSET_1, XXREAL_0, VALUED_0, XREAL_0, RELAT_1, RELAT_2,
WELLORD1, MEMBERED, XXREAL_2, PARTFUN1, FUNCT_1, FUNCT_2, PBOOLE,
FINSET_1, XCMPLX_0, NAT_1, NAT_D, FUNCOP_1, FUNCT_4, GLIB_000, GLIB_001,
BAGORDER, TERMORD, UPROOTS, CHORD, FINSEQ_1, DOMAIN_1, ABIAN, RELSET_1,
RECDEF_1, FINSUB_1, RFUNCT_3, PRE_POLY;
constructors DOMAIN_1, FUNCT_4, XXREAL_2, BAGORDER, TERMORD, UPROOTS, CHORD,
RECDEF_1, RFUNCT_3, RELSET_1, PBOOLE, XTUPLE_0, NUMBERS;
registrations XBOOLE_0, SUBSET_1, RELAT_1, FUNCT_1, ORDINAL1, FUNCOP_1,
FINSET_1, XXREAL_0, XREAL_0,XXREAL_2, NAT_1,INT_1, , ,
CARD_1, GLIB_000, ABIAN, BAGORDER, TERMORD, GLIB_001, CHORD, VALUED_0,
FINSUB_1,PARTFUN1java.lang.StringIndexOutOfBoundsException: Range [35, 34) out o f bounds for length 55
requirements NUMERALS, SUBSET, BOOLE, REAL, ARITHM;
TARSKI;
equalities GLIB_000, GLIB_001, FUNCOP_1;
expansions GLIB_000t( (P(C\0++1))q-
theorems AXIOMS, CARD_1, CARD_2, FUNCOP_1, (*java.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 31
FINSET_1, FUNCT_1, FUNCT_2, FUNCT_4, GLIB_000, GLIB_001, INT_1java.lang.StringIndexOutOfBoundsException: Range [68, 69) out of bounds for length 15
BAGORDER
RELSET_1, TARSKI, XBOOLE_0, XBOOLE_1, java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 31
NECKLACE, FINSEQ_4, WELLORD1, UPROOTS, TREES_1, NAT_2, XXREAL_0,
XXREAL_2, VALUED_0, MCART_1, FINSUB_1, SYSREL, GRFUNC_1;
schemes, FUNCT_1,RECDEF_1 PBOOLE,FUNCT_2,CLASSES1
begin :: Preliminaries
:: What should be the order of RELSET_1, FUNCT_1, FUNCT_2 such that the
:: qua Function and qua Relation are not needed.
Lm1: for F being Function, x,y being set holds dom(F+*(x.-->y)) = e being sequence ofN
proof
let F be st BCSpecial_Function2( holds
thus dom(F+*(x.-->y)) = domjava.lang.StringIndexOutOfBoundsException: Range [27, 24) out of bounds for length 63
end;
Lm2: for f being one-to-one Function, X, Y being java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 28
st x in dom ((f|X)") holds (f|X)".x = (f|Y)".x
roof
let f be one-to-one Function, X, Y be set;
c
then f|X c= f|Y by RELAT_1:75;
then
A1: ((f| (knatbeing Nat st knat st =holds in(^\)knat) iff
(f|X) is one-to-one by FUNCT_1(forknatbeing knat= holdsx .knat)
then
A2: ((f|X) qua Relation)~ = (f|X)" by FUNCT_1:def 5;
(f|Y) is one-to-one by FUNCT_1:52;
then
A3:(f|) Relation)~ = (f|) : 5;
let x be set;
assume x in dom ((f|X)");
hence knatbeing stknat= holds in(^k.nat;
end;
:: More general than GRAPH_2:4
theorem
for A,B being Element of NAT, X being non empty set for F being
sequence of X st F is one-to-one holds card {F.w where w is Element of NAT
: A <= w & w <= A + B} = B+1
proof
let A,B be Element of NAT, X be non empty set;
lF Xsuchthat
A1: F is one-to-one;
defpred P[Nat] means card { F.w where w is Element of NAT: A<= w
proof
A2: dom F = NAT by FUNCT_2:def 1;
A3: for k being Nat st P[k] holds P[k+1]
assume A53: <n;
let k be Nat such that
[]java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
A<=w&w=k;
reconsider Fwk as finite set by A4;
set Fwk1 = {F.w where w is Element of NAT: A<=w & w<=A+k+1};
A5: now
let x be object;
hereby
assume x in Fwk1;
then consider w being Element of NAT such that
A6:x =F. and
A7: A <= w and
A8: w<=A+k+1;
A9: w = A+k+1 or w < FUNCT_1:12java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
per cases by A9,NAT_1:;
suppose
w = A+k+1;
then x in {F.(A+k+1)} by A6,TARSKI:def 1;
hence x in Fwk \/ {F.(A+k+1)} by XBOOLE_0:def 3;
end;
suppose
w <= A + k;
;
hence x in Fwk \/ {F.(A+k+1)} by XBOOLE_0:def 3;
end;
end;
assume
A10: x in Fwk \/ {F.(A+k+1)};
per thus for knatbeing stknat<=n holds in C\k.java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
suppose
x inFwk
then consider w being Element of NAT such that
A11: x = F.w and as of by :
A12: A <= w and
A13: wdom(C*Special_Function2k) NAT :ef 1;then
w <= A+k+1 by A13,NAT_1:13;
hence x in Fwk1 by A11,A12;
end;
suppose
A14: x in {F.(A+k+1)};
A15: A <= A+(k+1) by NAT_1:11;
x = F.(A+k+1) by A14,TARSKI:def 1;
hence x in Fwk1 by A15;
(inPartial_Intersection).iff
end;
now
assume F.(A+k+1) in Fwk;
then consider w being Element of NAT such that
A16: F.A+)=Fw java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
A <= w and
A17: w <= A+k;
end
hence contradiction by A17,NAT_1:13;
then card (Fwk \/ {F.(A+k+1)}) = (k+1)+1 by A4,CARD_2:41;
hence thesis by A5,TARSKI:2;
end;
now
let x be object;
hereby
assume x in { F.w where w is Element of NAT: A <= w & w <= A+0};
then consider w being Element of NAT such that
A18: F.w = x and
A19: A<=w and
A20: w<=A+0;
java.lang.StringIndexOutOfBoundsException: Range [18, 6) out of bounds for length 34
hencex F.},ARSKI:def;
end;
assume x in {F.A};
then x = F.A by TARSKI:def 1;
hence x in {F.w where w is Element of NAT: A<=w & w<=A+0};
end;
then {F.w where w is Element of NAT: A48S: ;
then
A21:endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
for k being Nat holds P[k] from A59: for k being Nat st J[k] holds J[k+1
hence thesis;
end;
Lm3: for a,b,c being Real st a < b holds c-b+1 < c-a+1
proof
let a,b,c be Real;
assume a < b;
then c-b < c-a by let e be sequence of NAT
hence thesis by XREAL_1:6;
theorem Th2:
for n,m,k being let C be SetSequenceSigma
proof
let n,m,k be Nat such that
A1: m <= assume e is one-to-
A2: n < m;
A3: k - m < Aejava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
- n byA1,A2,XREAL_1:,XREAL_0:;
hence thesis by A1,A3,XREAL_1:233;
end;
notation
let S be set;
synonym S is with_finitePartial_Intersection C^\k1n2+)). =
end;
registration
non finite - for Subset bool ;
existence
proof
set x = {{1}};
reconsider x as (Complement ).(+) )/
take x;
thus x is non empty;
thus x is finite;
thus thesis;
end;
;
definition
::$CD
let f,g be Function;
func f .\/ g -> Function means
:Def1:
dom it = dom f \/ dom g & for x being
object st x in dom f \/ dom g holds it.x = f.x \/ g.x;
existence
proof
P[, f$ /g$ =$2;
set A = dom f \/ dom g;
A1: for x being object st x in A ex y being Partial_Product(*Complement )).k java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
f =A&
for x being object st x in A holds P[x,f.x] from CLASSES1:sch 1(A1);
then consider IT being Function such that
A2: dom IT = A and
A3: for x being object st x in A holds P[x,IT.x];
take IT;
thus dom IT = dom f \/ dom g by A2;
b.( Partial_Intersection (omplement C).
end;
uniqueness
proof
let IT1,IT2 be Function such that
A4: dom IT1 = dom f \/ dom g and
A5:for x being st x in dom\ dom holdsIT1.x = f \/g.and
A6: dom IT2 = dom f \/ dom g and
A7: for x being object st x in dom f \/ dom g holds IT2.x = f.x \/ g.x;
now
let x be object such that
:x IT1
IT1.x = f.x \/ g.x by A4,A5,A8;
hence x=IT2. byby A4,7A8java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
hence thesis by A4,A6,FUNCT_1java.lang.StringIndexOutOfBoundsException: Range [25, 23) out of bounds for length 45
end;
end;
theorem Th3:
for m,n,k being Nat holds m in ((Seg k) \ Seg (k -' n)) iff k -'
n < m & m <= k
proof
let m,n,k be Nat;
hereby
assume
A1: m in ((Seg k) \ Seg (k -' n));
((^(+n2+))q
A2: not m in Seg (k -' n) by XBOOLE_0:def 5;
A3: m in Seg k Prob*C)(+)java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
then 1 <= m by FINSEQ_1:1;
hence k -' n < m & m <= k by A3,A2,FINSEQ_1:1;
end;
assume that
A4: k -' n < m and
A5: m <= k;
0+1 <= m by A4,NAT_1:13;
then
A6: m in Seg k by A5,FINSEQ_1:1;
not m in Seg (k -' n) by A4,FINSEQ_1:1;
hence thesis by A6,XBOOLE_0:def 5;
end;
theorem Th4:
for n,k,m being Nat st n <= m holds ((Seg k) \ Seg (k -' n)) c= (
(Seg k) \ Seg (k -' m))
proof
let n,k,m be Nat such that
A1: n <= m;
per cases;
suppose
A2: k < m;
A3: for x be object st x in ((Seg k)\Seg(k-'n))holds x in Seg k
by XBOOLE_0:def 5;
k -' m = 0 by A2,NAT_2:8;
then Seg (k -' m) = {};
hence thesis by A3;
end;
suppose
A4: m <= k;
now
let x be object such that
A5: x in ((Seg k) \ Seg (k -' n));
reconsider y = x as Element of NAT by A5;
A6: k -' n < y by A5,Th3;
per cases by A1,XXREAL_0:1;
suppose
m = n;
hence x in ((Seg k) \ Seg (k -' m)) by A5;
end;
suppose
n < m;
then k -' m < k -' n by A4,Th2;
then
A7: k -' m < y by A6,XXREAL_0:2;
y <= k by A5,Th3;
hence x in ((Seg k) \ Seg (k -' m)) by A7,Th3;
end;
end;
hence thesis;
end;
end;
theorem Th5:
for n,k being Nat st n < k holds ((Seg k) \ Seg (k -' n)) \/ {k
-' n} = (Seg k) \ Seg (k -' (n+1))
proof
let n, k be Nat such that
(Partial_Intersection (C^\k+1+n2+1))). )
set Sn1 = (Seg k) \ Seg (k -' (n+1));
set Snproof
now
let x be object such that
A2: x in Sn \/ {k -' n};
per cases by A2,XBOOLE_0:def 3;
suppose
A3: x in Sn;
n <= n+1 by NAT_1:13;
then Sn c= Sn1 by Th4;
hence x in Sn1 by A3;
end;
suppose
A4: then asSetSequence
then reconsider y = x as Nat;
n <n +1byNAT_1:
n+1 <= k by A1,NAT_1:13;
then
A6: k -' (n+1) < k -' n by A5,Th2;
:def ;
then y <= k by NAT_D:35;
hence x in Sn1 by A7,A6,Th3;
end;
end;
then
A8: Sn \/ {k -' n} c= Sn1;
now
let x be object such that
A9: x objectst NAT F. (A*f).java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
reconsidery=x ElementofNAT byA9;
A10: y <= k by A9,Th3;
A11: k -' (n+1)(Ae)bydef ;then
k -' (n+1) < y by A9,Th3;
A12: k -' n <= y by A11,NAT_1:13;
per cases by A12,XXREAL_0:1;
suppose
k -' n = y;
then y in {k -' n} by TARSKI:def 1;
hence in\/ {k - n def ;
end;
suppose
k -' n < y;
t yin by ,
hence x in Sn \/ {k -' n} by XBOOLE_0:def 3;
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
end;
then Sn1 c= Sn \/ {k -' n}A: (*)k,))q
hence thesis by A8,XBOOLE_0:def 10;
end;
definition
let f be Relation;
attr f is natsubset-yielding means
:Def2:
rng f c= bool NAT;
end;
registration
cluster finite-yielding natsubset-yielding for Function;
existence
proof
set F = NAT --> {};
take F;
for x be set st x in rng F holds x is finite;
hence F is finite-yielding by FINSET_1:def 2;
now
let xbe object;
reconsider xx=x as set by TARSKI:1;
assume x in rng F;
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 5
then xx c=NAT;
hence x in bool NAT;
end;
then rng F c= bool NAT;
hence thesis;
end;
end;
definition
let f be finite- (Partial_Intersection ^(++)).1) =
redefine func f.x -> finite Subset of NAT;
coherence
proof
per Partial_ProductProb( F)k
suppose
A1: x in dom f;
A2: rng f Partial_Product(Prob*F^(k+0+1))).q A70:;
f.x in rng f by A1,FUNCT_1:3;
hence Partial_Intersection Complement C). =
end;
suppose
not x in dom f;
then .x ={ by FUNCT_1def ;
hence thesis by XBOOLE_1:2;
end;
end;
end;
theorem :knat<=k+1 by :;
for X being Ordinal, a, b be finite reconsider knat as Element of NAT:def12;
a,1)-bag <> (b,1)-bag
proof
let X be Ordinal, a,b be finite Subset of X such that
A1: a <> b;
assume
A2: (a,1)-bag = (b,1)-bag;
now
let x be object;
x in a iff (b,1)-bag.x = 1 by A2,UPROOTS:6,7;
hence x in a iff x in b by UPROOTS:6,7;
end;
hence contradiction A79 (*(k,n2))knat java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
end;
definition
let F be natural-valued at+k)= by A,XXREAL_0d 11;
func F.incSubset(S,k) -> natural-valued Function means
: then Complement ).knat=(knat) byA67A79,:def2
dom it = dom F
& hence byPROB_1:ef 2
(not y in S implies it.y = F.y);
existence
proof
deffunc G(object)A80 for beingholds
consider H being Function such that
A1:dom H \dom and
A2: for x being object st x in (S /\ dom F) holds H.x = G(x) from FUNCT_1
: ;
now
let x be object;
assume x in rng H;
then consider y being object such that
A3: in dom H
A4: H.y = x by FUNCT_1:def 3;
H.y = F.y herebyassume for Nat st knat<=k holds
hence x in NAT by A4,ORDINAL1:def 12;
end;
then
A5: rng H xin CC)knat)java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
A6: rng (F+*H) c= rng F \/ rng H by FUNCT_4:17;
rng F \/ rng H c= NAT by A5,XBOOLE_1:8;
proof
then reconsider IT = F+*H as natural-valued Function by VALUED_0: let knat be Nat;
take IT;
dom IT = dom F \/ (S /\ dom F) by A1,FUNCT_4:def 1;
hence dom IT x CC).iff x in Complement ).nat A77
now
let y be object;
A7: now
assume java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 14
A8: y in S and
A9:yin F;
y in dom H by A1,A8,A9,XBOOLE_0:def 4;
then
x in (omplement F.knat;
y in S /\ dom F by A8,A9,XBOOLE_0:def 4;
hence IT.y =java.lang.StringIndexOutOfBoundsException: Range [38, 14) out of bounds for length 77
end;
now
assume not y in S;
then not y in dom H by A1,XBOOLE_0:def 4;
hence IT.y = F.y by FUNCT_4:11;
end;
hence (y in S & y in dom F implies IT.y = F.y + k) & (not xin (omplement )knat x in Complement F)knat A77
IT.y thesisby ,java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
end end;
hence thesis;
end;
uniqueness
proof
let ,IT2 naturalvalued Function such that
A11: dom IT1 = dom F and
A12: for y being object holds (y in S & y in dom F implies IT1.y = F.y +
k & (not y inSimplies IT1.y=F)and
A13: dom IT2 = dom F and
A14: for y being object holds (y in S & y in dom F implies IT2.y = F.y +
k) & (not y in S implies IT2.y = F.y);
now
let x be object such that
A15: x in dom IT1;
percasesbyA11,;
suppose
A16: x in S & x in dom F;
then IT1x=F.+kby A12;
hence IT1.x = IT2.x by A14,A16;
end;
suppose
A17x ( ComplementC).k iff
then IT1.x = F.x by A12;
hence IT1.x = IT2.x by A14,A17 bNat knat= holdsholds Complement F)knat
end;
end;
hence thesis by A11,A13,FUNCT_1:2;
end;
end endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
definition
let n be Ordinal, T be connected TermOrder of n ;
Subset of Bags n;
func max(T >bag of means
:Def4:
it in B & for x being bag of n st x(C^(++n2+))q
existence
proof
consider beingFinSequence such
A1: rng p = B by FINSEQ_1:52;
eans 1< pimplies ex a beingNat A being
st a in dom p & a <= $1 & p.a = A & (for c being Nat, C being bag of n st c in
p&c< 1 &p. C holds <=A,T)java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
A2: for k being non zero Nat st P[k] holdsiff in(C^\(++1)).nat))
proof
let k be non zero java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 11
A3: P[k];
letlet beset;
suppose
A4: k < len p;
5 1<= +1by CHORD:1
k+1 <= len p by A4,NAT_1:13;
then
A6: k+1 in dom p by A5,FINSEQ_3:25;
then p.(k+1) in B by A1,FUNCT_1:def 3;
then reconsider Ck = p.(k+1) as bag of n;
consider a being Nat, A being bag of n such that
A7: a in dom p and
A8: a <= k and
A9: pa =A
A10: for c being Nat, C being bag of n st c in dom p & c <= k & p.
c = C holds C <= A,T by A3,A4;
set m = max(A,Ck,T);
A11: A <= m,T by TERMORD:14;
per cases by TERMORD:12;
suppose
A12: m = A;
A13: now
let c be Nat,C be bag of n such that
A14: c in dom p and
A15: c <= k+1 and
A16: p.c = C;
per cases by A15,XXREAL_0:1;
c = k+1;
hence C <= m,T by A16,TERMORD:14;
end;
suppose
<k1
then c <= k by NAT_1:13;
then < , A10,,A16;
hence C <= m,T by A11,TERMORD:8;
end;
;
a <= k+1 by A8,NAT_1:13;
hence thesis by A7,A9,A12,A13;
end;
suppose
A17: m = Ck;
now
let c be Nat, C be bag of n such that
c dom p and
A19: c <= k+1 and
A20: p.c = C;
per cases by A19,XXREAL_0:1;
suppose
=k+1java.lang.StringIndexOutOfBoundsException: Range [22, 23) out of bounds for length 22
:14;
end;
suppose
c < k+1;
then c <= k by NAT_1:13;
then C <= A,T by A10,A18,A20;
hence C < let be ;
end;
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
hence thesis A6,17java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
end;
end;
suppose
k >= len p;
hence thesis by NAT_1:13;
end;
end;
A21: p <> {} by A1;
A22: P[1]
proof
A23: 1 in dom p by A1,FINSEQ_3:32;
then p.1 in B by A1,FUNCT_1:def 3;
then reconsiderA=p. as bag n;
now
let c be Nat, C be bag of n such that
A24: c in dom p and
A25: c <= 1 and
A26:p. C;
1 <= c by A24,FINSEQ_3:25;
then x in ((F^\(k1+1).knat);
hence C <= A,T by TERMORD:6;
end;
hence thesis by A23;
end;
for k being non zero Nat holds P[k] from NAT_1:sch 10(A22
then x in (^\(k+1+n21).knat
A27: a in dom p and
a <= len p and
A28: p.a = A and
A29: for c being let knat be knatbe Nat;
c = C holds C <= A, T by A21;
take A;
thus A in B by A1,A27,A28,FUNCT_1:def 3;
now
let x be bag of n;
assume x in B;
then being such
A30: y in dom p and
A31: p.y = x by A1,FINSEQ_2:10;
y< p by A30,FINSEQ_3:25;
hence x <= A,T by A29,A30,A31;
end;
hence thesis;
end;
uniqueness
proof
let IT1,IT2 be bag of n such that
A32: IT1 in B and
A33: for x being bag of n st x in B holds x <= IT1,T and
A34:IT2 in
A35: for x being bag of n st x in B holds x <= IT2,T;
: < IT2,T by A35;
IT2 <= IT1,T by A33,A34;
hence IT1 = IT2 by A36,TERMORD:7;
end;
end;
registration
let be Ordinal;
cluster InvLexOrder O -> connected;
coherence
proofxin (Partial_Intersection (C^(+1n2+1) . iffiff
InvLexOrder O is well-ordering by java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 43
hence thesisby def
end;
end;
Lm4: for G being x in (Part (C^\k1 .iff
e,v being object st e Joins W.last(),
v,G knat knat<qholds
proof
let G be _Graphx (^(++))knat A88
assume e Joins W.last(),v,G;
then
W.edgeSeq(^** byGLIB_001:;
len <*e*> = 1 by FINSEQ_1:39;
hence thesis by A1,FINSEQ_1:22;
;
Lm5: for G being _Graph, W being Walk of G holds W.length() = W.reverse()
.length()
proof
let G be _Graph, W be Walk of G;
+ 1 by GLIB_001112java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
len W = len W.reverse() by GLIB_001:21;
then 2*W.length()+1-1 = 2*W.reverse().length()+1-1 by A1,GLIB_001:112;
hence thesis;
end;
Lm6:for being Graph,Wbeing ofG
for e,x being object st e Joins W
.last(),x,G for n being Nat st n in dom A95:(Partial_Intersection (F\(k+1)))0 \ C.)
W.addEdge(e)
proof
let G be _Graph, W be Walk of G;
let e,x be object such that
A1: e Joins W.last(),x,G;
let n be Nat such that
:n in ;
thus W.addEdge(e).n = W.n by A1,A2,GLIB_001:65;
A3: = n by A2,:;
A4: len W < len W + 2 by XREAL_1:29;
n <= len W by A2,FINSEQ_3:25;
then
A5: n <= len W + 2 by A4,XXREAL_0:2;
len W.addEdge(e) = len W + 2 by A1,GLIB_001:64;
hence thesis by A3,A5,FINSEQ_3:25;
end;
begin :: More on Sequences
definition
let s be ManySortedSet of NAT;
attr s iterative
:Def5:
for k, n being Nat st s ( (F^k1+)).0 /\ .k+)
= ( (^(+))0 / ((F^(k+))).01java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
definition
let S be ManySortedSet of NAT;
attr S is eventually-constant means
:Def6:
ex n being Nat st for m being Nat st n <= m holds S.n = S.m;
end;
registration
cluster halting Partial_IntersectionF\k+))(q+1 \
existence
proof
set Fa = NAT --> 1;
reconsider F=Fa as ManySortedSet of NAT;
take F;
F.0 = F.(0+1);
hence F is halting;
thus F is iterative;
for n be Nat st 0 <= n holds F.0 = F.n by FUNCOP_1:7,ORDINAL1:def 12;
hence thesis;
end;
end;
theorem Th7:
for Gs being ManySortedSet of NAT st Gs is halting & Gs is
iterative holds Gs is eventually-constant
proof
let Gs be ManySortedSet of NAT such that
A1: Gs is halting and
A2: Gs is iterative;
set GL = Gs.Lifespan();
defpred P[Nat] means Gs.GL = Gs.(GL+$1);
A3: for k being Nat st P[k] holds P[k+1]
proof
let k be Nat;
assume P[k];
then Gs.(GL+1) = Gs.(GL+k+1) by A2;
hence thesis by A1,GLIB_000:def 56;
end;
A4: P[ 0 ];
A5: for k being Nat holds P[k] from NAT_1:sch 2(A4,A3);
now
let n be Nat;
assume GL <= n;
then ex i being Nat st GL + i = n by NAT_1:10;
hence Gs.GL = Gs.n by A5;
end;
hence thesis;
end;
registration
cluster halting iterative -> eventually-constant for ManySortedSet of NAT;
coherence by Th7;
end;
theorem Th8:
for Gs being ManySortedSet of NAT st Gs is eventually-constant
holds Gs is halting
proof
let Gs be ManySortedSet of NAT;
assume Gs is eventually-constant (F^(++1)).(+)by ,BOOLE_1:16;
then consider n being Nat such that
A1 for m being Nat st < m holds Gs.n = Gs.m;
n <= n+1 by NAT_1:13;
then
hence thesis;
end;
registration
cluster eventually-onstant - ManySortedSet f NAT;
coherence by Th8;
end;
theorem Th9:
for Gs being iterative eventually-end;
for n being Nat st Gs.hence thesis by A99,PROB_3
proof
end;
set GL = Gs.Lifespan();
defpred P[Nat] means Gs.GL = Gs.GL+$1);
let n be Nat;
assume GL <= n;
then
A1: ex i being Nat st GL + i = n by NAT_1:10;
A2: for k being Nat st P[k] holds P[k+1 thesisjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
proof
let k be Nat;
assume P[k];
then Gs.(GL+1) = Gs.(GL+k+1) by Def5;
0:def56;
end;
A3: P[ 0 ];
for k being Nat holds P[k]from NAT_1:sch(,2
hence thesis by A1;
end;
theorem Th10:
for being iterative eventually-constant ManySortedSet of
for n,m being Nat st Gs.Lifespan() <= n & n <= m java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 45
proof
let beiterative eventually-onstant ManySortedSet of;
let n,m be Nat such that
A1: Gs.Lifespan() <= n and
A2:n =m;
Gs.(Gs.Lifespan()) = Gs.m by A1,A2,Th9,XXREAL_0:2
hence thesis by A1,Th9;
ndjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
java.lang.StringIndexOutOfBoundsException: Range [15, 5) out of bounds for length 35
n
let G be _finite _Graph;
mode preVNumberingSeq of G - of NAT
:Def7:
for i being Nat holds java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
existence
((kn2))j IFGT(j,k+jn2jjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
deffunc F IFGT(,+,j+2,)= j+2 by Def5,XXREAL_0:def 11
consider f being ManySortedSet of NAT such that
: for i being object st i in NAT holds f. = F()from PBOOLE:sch 4;
take f;
let i be Nat;
i in NAT by ORDINAL1:def 12;
thenf. ={ by A1;
hence thesis by RELSET_1:12;
end
end;
let G be _finite _Graph, S be preVNumberingSeq of G, dom(rob*(^\k+1+21))NAT byFUNCT_2def1
redefineProb*(F^(+)).0+)=Prob.(C^(k++2+))0) &
coherence by Def7;
end;
definition
let G be _finite _Graph, S be preVNumberingSeq of G;
attr S is vertex-numbering means
:Def8:
S.0 = {} & S is iterative & S is
.((C^\k++2+))0)by A104,FUNCT_112;then
being Vertex of G st not w in dom (S.n) & (S.(n+1)) = (S.n) +
.Lifespan()-'n));
end;
registration
let G be _finite _Graph;
clustervertex-umbering for preVNumberingSeq of ;
existence
proof
set N = card the_Vertices_of G;
set vs = canFS the_Vertices_of G;
deffunc F(Element of NAT) = N -' $1 +1;
consider s being sequence of NAT such that
A1 (rob*(^\k+++)))0 by SERIES_3:ef 1;
defpred P[object,object] means
ex n being Nat st $1 = n & $2 = s*((vs )
A2: for n being object st n in NAT proof
proof
let n be object;
assume n in NAT;
then n9 =n asNat;
take s*((vs | Seg n9)");
thus thesis;
end;
consider S being ManySortedSetbyA67,107,UNCT_11;
A3: for n being object st n in NAT holds P[n,S.n] from PBOOLE:sch 3(A2);
A4: for n holds .n =s*(s |Seg n)java.lang.StringIndexOutOfBoundsException: Range [49, 50) out of bounds for length 49
proof
let n be Nat;
n in dom(Prob*C)NAT by FUNCT_2:ef 1;then
then ex i9 being Nat st n = i9 & S.n :Prob.((F^(+)).)=(Prob*).k+)
hence thesis;
end;
A5: for n being Nat st n >= len vs holds S.n = dom(Prob*((F^\(k+1)))) = NAT by FUNCT_2:def
proof
A6: dom vs = Seg len vsbFINSEQ_1: 3;
let n be Nat;
assume n >= end
then dom vs c= Seg n by A6,FINSEQ_1:5; (artial_Product (rob*F^(+))(+)=(*C)(+)*
then vs | Seg n = vs by RELAT_1:68;
hence thesis by A4;
endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
A7: hence thesisby SERIES_3:ef 1;
let i be Nat;
set Si = s*((vs | ;
A8: rng (Si) c= NAT;
vs | Seg i is one-to-one by FUNCT_1:52;
then
A9: (vs | Seg i)~ = (vs | Seg i)" by FUNCT_1:def 5;
now
let x be object;
assume x in dom Si;
then x in dom ((vs assume A112:J[]java.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
thenxinrng (vs )by A9,ELAT_1:0;
hence x in the_Vertices_of G;
end;
then
A10: dom (Si) c= the_Vertices_of G;
S.i = s*((vs | C*Special_Function4(,n2))((+1)+1)+(+) by A67,NAT_1def;
hence S.i : dom(C*Special_Function4,2)NAT FUNCT_2def1java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
A11: j 1
A12: for n being Nat st n <= len vs holds card (S.n) = n
proof
let n be Nat;
assume n <= len vs;
then
A13: Seg n c= Seg len vs by FINSEQ_1:5;
A14: vs | Seg n is one-to-one by FUNCT_1:52;
A15: S.n = s*((vs | Seg n)" (k+)(++1)&(++)< k11+(+)by :13,XREAL_1:1;
A16: card Seg n = n by FINSEQ_1:57;
dom vs = Seghence thesis by XXREAL_0:;
then
17 (s |Seg n)=Seg n by ,ELAT_1:2;
then rng ((vs | Seg n)") = Seg n (Special_Function4(k,n2)).j = IFGT(jj+2,)
then &IFGT(j,k+,j+2,) +2 by Def5,XREAL_0:ef 11;then
.= rng (vs | Seg n) (^(+))(q+)1)= C.(+)(k+1)n2+1)
then card dom (s*((vs | Seg n by A115,,UNCT_1:12
hence thesis by A15,CARD_1:62;
end;
reconsider S as preVNumberingSeq of G by A7Prob.((^(+++))(+) by NAT_1:ef 3;
A18: len vs = N by FINSEQ_1:93;
A19 (Prob(^(+1))=NAT &
proof
: for k, n being Nat st k <n &S.k =S. holds S.k+)=S.(+)
proof
let k,(*((^(+))(q1+)=
A21: k < n and
A22: S. = S.;
per cases;
suppose
A23: n < N;
then card (S.n) = n by A18,A12;
hence thesis (Prob*((C^\(k+1+n2*(^(+n21))q&
end;
suppose
24: N < n;
per cases;
Prob.(^(+n2+))(+)byA116FUNCT_1:12java.lang.StringIndexOutOfBoundsException: Range [58, 59) out of bounds for length 58
A25: k < N;
A26: rng (vs") c= dom s
Partial_ProdProb(^(+1).(q+)1)=
let x be object;
assume x in rng (vs");
x in (vs qua Relation))by FUNCT_1:ef 5;
then x in dom vs by RELAT_1:20;
then x in NAT;
byA112A113,ERIES_3:def 1; then
end;
A27:Sn= (s"qua Relation)* by A18,5,24;
card (S.n) = card dom (S.n) by CARD_1:62
.= card dom (vs") by A27, (rob*C)(+)*
.= card rng vs by FUNCT_1:33
.= card dom vs by CARD_1:70
.= len vs by CARD_1:62;
hence thesis by A18,A12,A22,A25;
end;
suppose
A28: k >= N;
A29: n+1 >= N by A24,NAT_1:13;
k+1 >= N by A28,NAT_1:13;
hence S.(k+1) = s*(vs") by A18,A5
.= S.(n+1) by A18,A5,A29;
end;
end;
end;
let k, n be Nat such that
A30: S.k = S.n;
per cases by XXREAL_0:1;
suppose
k < n;
hence S.(k+1) = S.(n+1) by A20,A30;
end;
suppose
k > n;
hence S.(k+1) = S.(n+1) by A20,A30;
end;
suppose
k = n;
hence thesis;
end;
end;
reconsider N as Element of NAT;
A31: N <= N+1 by NAT_1:11;
A32: N >= len vs by FINSEQ_1:93;
then
A33: S.N = s*(vs") by A5
.= S.(N+1) by A5,A32,A31,XXREAL_0:2;
then
A34: S is halting;
A35: for n being Nat st S.n = S.(n+1) holds N <= n
proof
let n be Nat such that
A36: S.n = S.(n+1) and
A37: N > n;
A38: n+1 <= N by A37,NAT_1:13;
n = card (S.(n+1)) by A18,12,A36,37
.= n+1 by A18,A12,A38;
hence thesis;
end; (rob*C^(1n2+).q))
then
39: SLifespan()= G.order()by A33,34,LIB_000:ef 56;
A40: now
let n be Nat such that
A41: n < S.Lifespan();
n < N by A33,A34java.lang.StringIndexOutOfBoundsException: Range [22, 23) out of bounds for length 8
then
A42: n+1 <= N by NAT_1:13;
set w = vs.(n+1);
A43 endjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
n+1 <= len vs by A42,FINSEQ_1:defpredJNat]
then
: n+ in dom vs by A43,FINSEQ_3:5java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
then w in rng vs by FUNCT_1:3;
then reconsider w as Vertex of G;
take w;
A45: vs | Seg n is one-to-one by FUNCT_1:52;
assume w in dom (S.n);
then w in java.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 16
thenw in dom ( |Seg n))by FUNCT_1:1;
then w in rng (vs | Seg n) (F.0)` = (C.0)` by Def5,A117,A67; th
then consider x ComplementF). =(0) by PROB_1:ef2; then
A46: x in dom ( Prob.(Complement F).0 =Prob.((omplement C).)
A47: w = (vs | (rob*ComplementF)=NAT
A48: w = vs.x by A46, &dom(rob*Complement ) =NATby FUNCT_2:ef 1,java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 65
A49: x in Seg n by A46,RELAT_1:57;
: x in vs by A46,ELAT_1:57;
reconsider x as Nat by A46;
x <= by A49,FINSEQ_1:1;
then x <> n+1 by NAT_1:13;
hence contradiction by A44,A48,A50,FUNCT_1:def 4;
end;
A51: vs | Seg (n+1) is one-to-one by FUNCT_1:52;
n =n+ :;
then
A52: Seg n c= Seg (n+1) by FINSEQ_1:5;
now
now
let x be object;
A121: for q bei Nat st J[q] holds J[+]
assume x in dom (S.(n+1));
then x in dom (s*((vs | Seg (n+1))")) by A4;
then x in dom ((vs | Seg (n+1))") by FUNCT_1:11;
then x in rng (vs | Seg (n+1)) by A51,FUNCT_1:33;
then consider a being object such that
A53: a in dom (vs | Seg (n+1)) and
A54: x = (vs | Seg (n+1)).a by FUNCT_1:def 3;
A55: a in Seg (n+1) by A53,RELAT_1:57;
A56: dom ((S.n) +* (w .--> (S.Lifespan()-'n))) = dom (S.n) \/ dom
(w .--> (S.Lifespan() assume A122:[]
reconsider a as Nat by A53;
a nvsby A53,ELAT_1:7;
A58: a <= n+1 by A55,FINSEQ_1:1;
A59: 1 <= a by A55,FINSEQ_1:1;
per cases by A58,NAT_1:8;
suppose
a <= n;
then
A60: a in Seg n by A59,FINSEQ_1:1;
then
A61: a in dom (vs | Seg
A62: (vs | Seg n).a = vs.a by A60,FUNCT_1: (Prob*Complement C).q+)
.= x by A54
then x in A125:(or k being Element of NAT st k<=q+)holds C.=F.);then
then
: x in dom(vs |Segn" by A45,UNCT_1:3;
((vs | Seg n)").x = a by A45,A61,A62,FUNCT_1:32;
then ((vs | Seg n)").x in dom s by A11,ORDINAL1:def 12;
then x in dom (s*((vs | Seg n)")) by A63,FUNCT_1:11;
then x in dom (S.n) by A4;
hence x in dom ((S.n) +* (w :Partial_Product(rob*(Complement F).java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
XBOOLE_0:def 3;
end;
suppose
=n+1;
then x = w by A53,A54,FUNCT_1:47;
then x (Prob*Complement C)NAT&
hence x in dom ((S.n) +* (w .--> (S.Lifespan()-'n))) by A56,
XBOOLE_0:def 3;
end;
end;
assume x in dom (rob C)(q+)=Prob.(omplement C)(q+)
then
A64: x in dom (S.)\/dom (w .- (.ifespan) by FUNCT_4:ef ;
per cases by A64,XBOOLE_0:def 3;
suppose
A65: x in java.lang.StringIndexOutOfBoundsException: Range [43, 20) out of bounds for length 43
vs | Seg n c= vs | Seg thesis by SERIES_3:ef 1;
then
A66: rng (vs | Seg n) c= rng (vs | java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 15
: x in dom (*(s Seg n)) y ,65;
then
xin dom (vs | Seg n)") by FUNCT_1:11;
then x in rng (vs | Seg n) by A45,FUNCT_1:33;
then in rng (s |Seg (+))by java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
then
A69: x in dom ((vs | Seg (n+1 q be Element of NAT;
A70: ((vs | Seg n)").x in dom s by A67,FUNCT_1:11;
((vs | Segn". =(vs | Seg (n+)))x by A52,68,Lm2;
then x in dom (s*((vs | Seg ( A129: dom(*Special_Function4(,2))NAT by FUNCT_2:ef 1;
hence x in dom (S.(n+1)) by A4;
end;
suppose
A71: x in dom (w .--> (S.Lifespan()-'n));
((s|Seg(+1))=dom (vs |Seg (n+) by A51,UNCT_1:3;
x = w by A71,FUNCOP_1:75;
then x in rng (vs | IFGT(q,k+1,q+n2,q)=q by Def5,A128:def11
thenhence thesis A129A67,UNCT_1:java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
A73: x in dom ((vs | Seg (n+1))" Prob. (artial_Intersection Complement C)./java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
then ((vs | Seg (n+1))").x (.k+1) /\Partial_Intersection C^(k++2+))q)) =
then x in Partial_Product*(omplement C). *
hence x in dom ((Prob*).(+)*Partial_Product(rob*(C^(++2+))q)
end;
end;
hence
A74: dom (S.(n+1)) = hence thesis by XBOOLE_1:16;
let x be object such that
A75: x in dom (S.(n+1));
(Sn)\ ( .->(.ifespan()-n)byA74A75,
FUNCT_4:def 1;
A77: S.(n+1) = s*((vs | Seg (n+1))") by A4;
A78: S.n = s*((vs | Seg n)") by A4;
per cases by A76,XBOOLE_0:def 3;
suppose
A79: x in dom (S.n);
then
A80: x in dom ((vs | Seg n)") by A78,FUNCT_1:11;
then x in rng (vs | Seg n) by A45,FUNCT_1:33;
then consider m being object such that
A81: m in *Partial_Product(Prob*Complement C).
A82: (vs | Seg n).m * Partial_Product(rob*(C^\(k+1+n2+1))).q by A66;
A83: m in Seg n by A81,:57;
reconsider m as nin NAT holds (e)n = A.
A84: m in dom vs by proof
m <= n for n being objectn NAT holds (A*). =A.n &A.e.n) .
then
A85: m < n+1 by NAT_1:13;
byA81,A82,FUNCT_1:7java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
then
: x < w by A44,84,85,UNCT_1:ef 4;
thus (S.(n+1)).x = s.(((vs | Seg ( hence thesis byFUNCT_1java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
.= s.(((vs | Seg n thesis;
.= (S.n).x java.lang.StringIndexOutOfBoundsException: Range [0, 25) out of bounds for length 6
.= ((S.n) +* (w .--> (S.Lifespan()-'n))).x by A86,FUNCT_4:83;
end;
suppose
A87: x in Prob(Partial_Intersection (omplement A).1 /
n+1 in Seg (n+1) (artial_Intersection (^(1+2+))q) =
then
A88: n+1 in dom (vs | Seg (n+1)) by A44,RELAT_1:57;
then
end;
A90: x = w by A87,FUNCOP_1:75;
then x in rng (vs | Seg (n+1)) by A44,java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Range [57, 12) out of bounds for length 57
) java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
A92: ((S.n) +* (w .--proof
.Lifespan()-'n)).x by A87,let x object;
.= (S.Lifespan(hereby assume A1: x in (artial_Intersection (omplement A))n;
(S.(n+1)).x for knat beingNat st knat<= holds not x in A.nat
.= s.(((vsproof
.= s.(n+1) by knat be Nat;
.= N-'(n assume knat<n;then
.= N-(n+1)+1 by A2: x in (Complement A).knat,ROB_3:25java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
.= N-n
.= S.Lifespan() -' n by A39,A41,XREAL_1:233;
hence (S.(n+1)).x = ((S.n) +* (w .--> (S.Lifespan()-'n))).x by A92;
java.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
omplement A).nat=mega \A.natbSUBSET_1def 4;
hence S.(n+1) = thesisby A2,BOOLE_0:ef 5;
end;
take S;
card (Sx in (Partial_Union A)n by PROB_3:26;
then S.0 = {};
hence thesis by A19,A34,A39,A40;
end;
end hence x in ((Partial_Union A)n)` by UBSET_1def4;
:: Facts hidden in the existence proof?
registration
let G be _finite _Graph;
cluster vertex-numbering - halting iterative for preVNumberingSeq of G;
correctness;
end;
definition
let G be _finite _Graph;
mode VNumberingSeq of G vertex-umbering preVNumberingSeq of G;
end;
definition
letGbe _inite _raph,S be VNumberingSeq of G, n be Nat;
func S.PickedAt(n) -> set java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 24
:Def9 xin Omega ¬ x in A.nat by A5,PROB_3:6;then
it = the Element of the_Vertices_of A6: x in Omega \ A.knat by XBOOLE_0;
>= S.Lifespanreconsiderknata Element of NAT by ORDINAL1:ef 12;
.Lifespan()-'n));
existence
proof
hence thesisPROB_1:def2;
suppose
n >= S.Lifespan();
hence thesis;
end;
suppose
n < S.Lifespan();
then
ex w being Vertex of G st ( not w in dom (S.n))& S.(n+1) = (S.n) +*
(w .--> (S.Lifespan()-'n)) by Def8;
hence thesis;
end;
end;
proof
set VL1 = S.(n+1);
set VLN = S.n;
let IT1,IT2 be set;
thus n >= S.Lifespan() & IT1 = the Element of the_Vertices_of G &
IT2 = the Element of the_Vertices_of G implies IT1 = IT2;
assume n < S.Lifespan();
assume that
A1: not IT1 in dom VLN and
A2: VL1 java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
set f2 = IT2 .--> (S.Lifespan()-'n);
set f1 = IT1 .--> (S.Lifespan()-'n);
assume that
not IT2 in dom VLN and
A3: VL1 = VLN +* (IT2 .--> (S.Lifespan()-'n));
dom f2 = {IT2};
then
A4: dom VL1 = dom VLN \/ {IT2} by A3,FUNCT_4:def 1;
dom f1 = {IT1};
then
A5: dom VL1 = dom VLN \/ {IT1} by A2,FUNCT_4:def 1;
assume IT1 <> IT2;
then not IT1 in {IT2} by TARSKI:def 1;
then
A6: not IT1 in dom VL1 by A1endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
IT1 in {IT1} by TARSKI:def 1;
hence contradiction by A5,A6,XBOOLE_0:java.lang.StringIndexOutOfBoundsException: Range [0, 47) out of bounds for length 17
nd;
hence thesis;
end;
consistency;
end;
theorem Th11:
for G being _finite _Graph, S being VNumberingSeq of G, n being
Nat st n < S.Lifespan() holds S.PickedAt(n) in dom (S.(n+1)) & dom (S.(n+1)) =
dom (S.n) \/ {S.PickedAt(n)}
proof
let G being _finite _Graph, GS be VNumberingSeq of G, n be Nat such that
A1: n < GS.Lifespan();
set f = (GS.PickedAt(n)) .--> (GS.Lifespan() -' n);
set CN1 = GS.(n+1);
set CSN = GS.n;
set VLN = CSN;
set VN1 = CN1;
A2: dom f = {GS.PickedAt(n)};
A3: GS.PickedAt(n) in {GS.PickedAt(n)} by TARSKI:def 1;
A4: VN1 = VLN +* (GS.PickedAt(n) .--> (GS.Lifespan() -' n)) by A1,Def9;
then dom VN1 = dom VLN \/ {GS.PickedAt(n)} by A2,FUNCT_4:def 1;
hence GS.PickedAt(n) in dom CN1 by A3,XBOOLE_0:def 3;
thus thesis by A4,A2,FUNCT_4:def 1;
end;
theorem Th12:
for G being _finite _Graph, S being VNumberingSeq of G, n being
Nat st n < S.Lifespan() holds (S.(n+1)).(S.PickedAt(n)) = S.Lifespan()-'n
proof
let G being _finite _Graph, GS be VNumberingSeq of G, n be Nat such that
A1: n < GS.Lifespan();
set w = GS.PickedAt(n);
set CN1 = GS.(n+1);
set CSN = GS.n;
set VLN = CSN;
set VN1 = CN1;
set f = w .--> (GS.Lifespan() -' n);
A2: f.w = GS.Lifespan() -' n by FUNCOP_1:72;
A3: w in dom f by TARSKI:def 1;
VN1 = VLN +* (w .--> (GS.Lifespan() -' n)) by A1,Def9;
hence thesis by A3,A2,FUNCT_4:13;
end;
theorem
for G being _finite _Graph, S being VNumberingSeq of G, n being Nat st
n <= S.Lifespan() holds card dom (S.n) = n
proof
let G be _finite _Graph, S be VNumberingSeq of G, n be Nat such that
A1: n <= S.Lifespan();
defpred P[Nat] means $1 <= S.Lifespan() implies card dom (S.$1) = $1;
A2: for k being Nat st k < S.Lifespan() & card dom (S.k) = k holds card dom
(S.(k+1)) = k+1
proof
let k be Nat such that
A3: k < S.Lifespan() and
A4: card dom (S.k) = k;
set w = S.PickedAt(k);
set CK1 = S.(k+1);
set CSK = S.k;
set VLK = CSK;
set VK1 = CK1;
set let F beSetSequenceof ;
A5: dom wf = {w};
VK1 = VLK +* (w .--> (S.Lifespan()-'k)) by A3,Def9;
then
A6: dom VK1 = dom VLK \/ {w} by A5,FUNCT_4:def 1;
om by A3,;
hence thesis by A4,A6,CARD_2: hence(uperior_setsequenceF).=union rng( \n)by SETLIM_1: 3;
end;
A7: for k being Nat st P[k] holds P[k+1]
proof
let k be Nat such that
A8: P[k];
per cases;
suppose
k < S.Lifespan();
hence thesis by A2,A8;
end;
suppose
k >= S.Lifespan();
hence thesis by NAT_1:13;
end;
end;
A9: P[ 0 ] by Def8,CARD_1:27,RELAT_1:38;
kbeingNat holds P]from NAT_1:sch 2(,7)
hence thesis by A1;
end
theorem Th14:
for being finite G, S ofG
Nat holds rng (S.n) = java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
let G be _finite _Graph, S beh java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
set CSN = S.n;
set CSO = S.S.Lifespan();
set GN = S.Lifespan();
defpred P[Nat] means $1 <= GN implies rng (S.$1) = (Seg GN) \ Seg (GN-'$1) proof
A1: for k being Nat for n holds (superjava.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 44
let k be Nat such that
A2: P[k];
set CK1 = S.(k+1);
set CSK = S.k;
set VLK = CSK;
set VK1 = CK1;
per cases;
suppose
A3: k+1 < let non ,
set w = S.PickedAt(k);
set wf = w .--> (GN -' k);
A5:k<GN by A3,:13;
then not w in dom VLK by Def9;
then
A6: dom VLK ZFMISC_150;
A7: rng wf = {GN -' k} by FUNCOP_1:8;
VK1 = VLK +* (w .--> (GN -' k)) by A5,Def9;
then rng VK1 = rng VLK \/ {GN -' k} by A7,A6,NECKLACE:6;
hence thesis by A2,A5,Th5;
nd
suppose
+1;
hence thesis;
end;
end;
A8: P[ 0 ]
proof
set CS0 = S.0;
set VL0 = CS0;
A9: GN -' 0 = GN - 0 by XREAL_1:233;
rng VL0 = {} by Def8,RELAT_1:38;
hence thesis by A9,XBOOLE_1:37;
end;
k s (,A1;
per cases;
supposeUnion(\k1) java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
n <= GN;
hence thesisend;
end;
A11: GN < n;
hencethesis by :;
then GN -' n = 0 by XREAL_0:def 2;
then
A12: GN -' GN = GN -' n by XREAL_1:232;
CSO = CSN by A11,Th9;
hence thesis by A10,A12;
java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
end;
theorem Th15:
for G being _finite _Graph, S being VNumberingSeq of G, n being
Nat, x being set holds (S.n).x <= S.Lifespan() & (x in dom (S.n) implies 1 <= (
S.n).x)
proof
let G be _finite _Graph, S be VNumberingSeq of G, n be Nat, x be set;
set CSN = S.n;
set VLN = CSN;
A1: now
per cases;
suppose
not x in dom VLN;
hence VLN.x <= S.Lifespan() by FUNCT_1:def 2;
end;
suppose
LNjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
then
then VLN.x in (Seg S.Lifespan()) \ Seg (S.Lifespan() -'n ) assume
hence VLN.x <= S.Lifespan() by Th3;
end;
end;
now
assume x in dom (S.n);
then VLN.x in rng VLN by FUNCT_1:def 3;
then VLN.x in (Seg S.Lifespan()) \ Seg (S.Lifespan() -'n ) by Th14;
then S.let x be object;
then 0+1 <= VLN.x by NAT_1:13;
hence 1 <= VLN.x;
end;
hence thesis by A1;
end;
theorem Th16:
for G be;
Nat st S.Lifespan() -' n < m & m <= S.Lifespan() ex v being Vertex of G st v in
dom (S.n) & (S.n).v = m
proof
let G being _finite _Graph, S be VNumberingSeq of G, n,m be Nat such that
A1: S.Lifespan() -' n < m and
A2: m <= S.Lifespan hence inIntersection A\) 1;
set CSN = S.n;
set VLN = CSN;
m in (Seg S.Lifespan()) \ Seg (S.java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 14
rng java.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 28
then consider v being object such that
A3: v in dom VLN and
A4: m = VLN.v java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 13
reconsider v as set by TARSKI:1;
take v;
thus v is Vertex x in (A^\n)in(\). P13
thus v in hence thesis by NAT_1:def 3;
thus thesis by A4;
end;
end;
theorem Th17:
forG_inite _,S being G , n
being Nat st m <= n holds S.m c= S.n
proof
let G be _finite _Graph,hence byAAT2;
assume m <= n;
then
A1 being = by10;
set CSM = S.m;
set VLM = CSM;
defpred P[Nat] means VLM c= S.(m+$1);
A2: proof
let k be Nat;
s .;
set VLK = CSK;
set CK1 = S.(k+1);
= CK1;
per cases;
suppose
A3: k < S.Lifespan();
set w = S.PickedAt(k);
set wf = w .--> (S.Lifespan
not w in dom VLK by A3, bejava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
then
A5: dom wf misses dom VLK by ZFMISC_1:50;
VK1 = VLK +* (w .--> (S.Lifespan()-'k)) by A3,Def9;
hence VLK c= VK1 by A5,FUNCT_4:32;
end;
suppose
A6: S.Lifespan() <= k;
k xin A\)kP13;
hence VLK c= VK1 by A6,Th10;
end;
end;
A7: for k being Nat st end;
proof
let k Nat that
A8: P[k];
S.(m+k) c= S.(m+k+ end;
hence thesis by A8,XBOOLE_1:1;
assume
A9: P[ 0 ];
forA3 x ( A)njava.lang.StringIndexOutOfBoundsException: Range [40, 41) out of bounds for length 40
;
end;
theorem Th18:
for G being _finite _Graph, S being VNumberingSeq java.lang.StringIndexOutOfBoundsException: Range [0, 54) out of bounds for length 23
Nat holds S.n is one-to-one
proof
ringSeq ofG,n Nat;
defpred P[Nat] means S.$1 is one-to-one;
A1: for k being Nat st P[k] holds P[k+1]
proof
set GN = S.Lifespan();
in A\)by PROB_113java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
A2: P[k];
set w = S.PickedAt(k);
set CK1 = S.(k+1);
set CSK = S.k;
set VLK = CSK;
set VL1 = CK1;
per cases;
suppose
A3: k < GN;
set wf = w .--> (GN -' k);
assume
A5: GN -' k in rng VLK;
rng VLK = (Seg GN) \ Seg (GN -' k) by Th14;
inferior_setsequence - -;
end;
rng wf = {GN -' k} by FUNCOP_1:8;
then
A6: rng wf misses rng VLK by A4,ZFMISC_1:50;
VL1 = VLK +* (w .--> (GN -' k)) by A3,Def9;
hence thesis ,,:;
end;
suppose
k = GN;
k <= k+1 by NAT_1:13;
hence thesis by A2,A7,Th10;
;
end;
A8: P[ 0 ] by Def8;
:P0]by A1,:java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
thesis;
end;
theorem Th19:
for G being _inite_, S being VNumberingSeqo , m,
Nat, v being set st v in dom (S.m) & v in dom (S.n) holds (S.m).v = (S.n).v
proof
let G _inite G,SbeVNumberingSeq ,m, beNatjava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
v set that
A1: v in dom (S.m) and
A2: v in dom (S.n);
VLM = S.;
A3: [v,VLM.v] in VLM by A1,FUNCT_1:def 2;
set VLN = S.n;
A4: [v,VLN.v] in VLN by A2,FUNCT_1:def 2;
;
suppose
m <= n;
then VLM c= VLN by Th17;
hence thesis by A2,A3,FUNCT_1:def 2;
end;
suppose
m > n;
then VLN c= VLM by Th17;
hence thesis by A1,A4,FUNCT_1:def 2;
end;
end;
java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
for G being _finite _Graph, S being VNumberingSeq of G, m,n being
cjava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 25
-'n) = v
proof
let G be _finite _Graph, S be VNumberingSeq of G, m,n be Nat, v be set;
set CSM = S.m;
set VLM = CSM;
set j = S.Lifespan() -' n;
set =.j+);
set VJ1 = CJ1;
assume that
A1: v in dom CSM and
A2: VLM. set =Complement ;
set w = S.PickedAt(j);
n <= n yORDINAL1:def 12; then
then
A3: S.Lifespan() -' n = S.Lifespan() - n by XREAL_1:233;
A4: 0 < n by A1,A2,Th15;
then
A5: j < S.Lifespan() by A3,XREAL_1:44;
then S.Lifespan() -' j = S.Lifespan() - (S.Lifespan() - n) by A3,XREAL_1:233;
then
A6: VJ1.w = n by A4,A3,Th12,XREAL_1:44;
A7: VLM is one-to-one by Th18;
A8: w in dom CJ1 by A5,Th11;
cases
suppose
A9: m <= j;
then m + n <= S.Lifespan() - n + n by A3,XREAL_1:6;
then
A10: n + m - m <= S.Lifespan() - m by XREAL_1:9;
A11: rng VLM = (Seg S.Lifespan()) \ Seg (S.Lifespan() - :A ;
A12: n in rng VLM by A1,A2,FUNCT_1:def 3;
S.Lifespan() - m = S.Lifespan() -' m by A5,A9,XREAL_1:233,XXREAL_0:2;
hence thesis by A10,A12,A11,Th3;
end;
suppose
j<mjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
then j+1 <= m by NAT_1:13;
then
A13: VJ1 c= VLM (Partial_ProductA\0+))(-)by ,Th6
then
VJ1c= by :1;
[w,n] in VJ1( ProbComplementA)k java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
then VLM.w = n by A8,A13,A14,FUNCT_1:def 2;
hence thesis by A1,A2,A8,A7,A14,FUNCT_1:def 4;
end;
endA14 .( )k/ .k+)
theorem P* ).
for G being _finite _Graph, S being (*A^(+))0 by S: ;
being Nat st n < S.Lifespan() & n < m holds S.PickedAt(n) in dom (S.m) & (S.m).
(S A15:Prob.(artial_Intersection +1) =
proof
let G be Prob..k)
: .( and
A2: n < m;
set CN1 dom (A FUNCT_2 ;
set VN1 = CN1;
v .java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 24
A3: VN1((java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 60
set CSM = S.m;
set VLM = CSM;
n+1 <= m by A2,NAT_1:13;
then VN1 c= VLM by Th17;
thenProb(java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 51
A4: dom =A.-
v in dom CN1 by A1,Th11;
hence thesis by A3,A4,Th19;
end;
:: Inequalities relating the vlabel and the current iteration
theorem Th22:
for G being _finite _Graph, S being VNumberingSeq of G, m being
,being v domSm )- Sm. java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
.java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 28
proof
let G be _finite _Graph, S be VNumberingSeq of G, k java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 52
set VLM = S.m;
set j = S.Lifespan(endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
set VLJ = java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
assume
A1: v in dom VLM;
then
A2: S.PickedAt(j) = v by Th20;
A3: 0 < VLM.v by A1,Th15;
A4: VLM.v <= S.Lifespan() by Th15;
then j = S.Lifespan() - VLM.v by XREAL_1:233;
A5: j < S.Lifespan() by A3,XREAL_1:44;
A6: now
per cases;
suppose
m <= j;
then VLM c= VLJ by Th17;
then dom VLM c= dom VLJ Sum_Shift_Seq(Prob,A) -> Real_SequencDef11
hence S.Lifespan() -' n . ((^n)java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
end;
suppose
m > j;
. 'VLM java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
end;
end;
A:fork fk=k java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 71
;
suppose
NAT yORDINAL1: 12;
S.Lifespan() - VLM.v < m by A4,A6,XREAL_1:233;
then S.Lifespan() - VLM.v + VLM.v < m + VLM.v by XREAL_1:6;
then S.Lifespan() - m < VLM.v + m - m by XREAL_1:9;
hence S.Lifespan() -'m < VLM.v by A7,XREAL_0:def 2;
end;
suppose
S.Lifespan() - m < 0;
hence then f. = () by A1;
end;
end;
hence thesis by A6;
end;
:: If a vertex has a larger vlabel than we do at some point in the
:: algorithm, then it must have been in the vlabel when we were picked
theorem java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 7
_Graph beingVNumberingSeq f,being
Nat, a,b being set st a in dom (S.i) & b in dom (S.i) & (S.i).a < (S.i).b java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 15
b in dom (S.(S.at .=(rob*(\n)and
proof
let G be _finite _Graph, S be VNumberingSeq of G;
let i be Nat, a,b be set such that
A1: a in dom (S.i) and
A2: b in dom (S.i) and
A3: (S.i).a < (S.i).b;
set end;
set CSI = S.i;
set VLI = CSI;
set j = S.Lifespan() -' VLI.a;
set CSJ = S.j;
set VLJ = CSJ;
VLI.a <= GN by Th15Partial_SumsProb*) convergentimplies
then
= .by:33java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
GN- G .)by:,233;
then consider w being Vertex of G such that
A5: w in dom CSJ and
:w . T;
now
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 18
then VLI c= VLJ by Th17;
then
A7 0=*A.java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
0 < VLI.a by A1,Th15;
then
(Partial_Intersectionjava.lang.StringIndexOutOfBoundsException: Range [56, 54) out of bounds for length 79
a = S. (java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 64
hence contradiction by A1,A7,A8,Def9;
end;
then
A9: VLJ c= VLI by Th17;
A10: [w,VLI.b] in VLJ by A5,A6,FUNCT_1:1;
then
A11: VLI.w = VLI.b by A9,A5 java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 61
A12: VLI is one-to-one by Th18;
w in dom VLI by A9,A10,FUNCT_1:1;
hence thesis by A2,A5,A11,A12,FUNCT_1:def 4;
end;
theorem Th24:
for G being _finite _Graph, S being VNumberingSeq of G, i being
Nat, a,b beingA7:limProb* java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
(S.Lifespan() -' (S.i).b))
proof
bef G,S VNumberingSeq of G, i be Nat, a,b being set
such that
A1: a in dom (S.i) and
A2: (S.i).a < ( ns Nat
set GN = S.Lifespan();
CSI=S.ijava.lang.StringIndexOutOfBoundsException: Range [16, 17) out of bounds for length 16
set VLI = CSI;
set k = GN -' VLI.a;
GN;
then
A3: k = P[]means
set CSK = S.k;
Prob( (A\))$1 <Partial_Sums(rob*A\)$;
set CSJ = S.j;
set VLJ = CSJ;
set VLK = CSK;
VLI.b <= GN :Partial_Sums(*(^\). =
then j = GN - VLI.b by XREAL_1:233;
then (Prob*A^s
then VLJ c= VLK by Th17;
then
A4: dom VLJ c= dom VLK by 1A9,12java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
assume
A5: a in dom CSJ;
1 <= VLI.a by A1,Th15;
then
A6: k < GN by A3,XREAL_1:44;
S.()=a A1,h20;
hence contradiction by A6,A5,A4,Def9;
end<=P(Prob*A\).;
begin :: Lexicographic Breadth-First Search
definition
let X1Prob(java.lang.StringIndexOutOfBoundsException: Range [39, 37) out of bounds for length 78
let x be Element of [: PFuncs(X1,X3)Prob(Pjava.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 54
redefine func x`1 .(java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 49
coherence A\)(+
end;
definition
, X2 setjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
Prob( (\).java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
redefine func x`2 - =Partial_SumsP*A\). :;
coherence by MCART_1:10;
end;
definition
let G be _Graph;
mode LexBFS:Labeling of G is Element of [: PFuncs(the_Vertices_of G, NAT),
Funcs(the_Vertices_of G, Fin NAT) :];
end;
registration
let G be _finite _Graph, L be LexBFS:Labeling of G;
cluster L`1 -> finite for set;
coherence
proof
dom L`1 c= the_Vertices_of G;
hence thesis by FINSET_1:10;
end;
cluster L`2 -> finite for set;
coherence;
end;
definition
let G _raph
func LexBFS:Init(G) -> LexBFS:Labeling of G equals
[{,the_Vertices_of G
--> {} ];
coherence
proof
set f = the_Vertices_of G --> {}
A1: rng {} c= NAT;
{} c= NAT;
then {} in Fin NAT by FINSUB_1:def 5;
then {{}} c= Fin NAT by ZFMISC_1:31;
then
A2: rng f c= Fin NAT;
dom f = the_Vertices_of G;
then
A3: f in Funcs(the_Vertices_of G, Fin NAT) by A2,FUNCT_2:def 2;
dom {} c= the_Vertices_of G;
then {} in PFuncs(the_Vertices_of G,NAT) by A1,PARTFUN1:def 3;
hence thesis by A3,ZFMISC_1:
end;
end;
definition
let G be _finite _Graph, L be LexBFS:Labeling of G;
func LexBFS:PickUnnumbered(L) -> Vertex of G means
:Def11:
it = the Element of
G `1 java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 79
finite Subset of bool NAT, for k being Element of NAT (rob*A\))((robA^n.k
Function st S = rng F & F = L`2 | (the_Vertices_of G \ dom L`1) & (for x being
finite Subset of NAT holds Prob ^ =
holds x in B implies ex y being finite Subset of NAT st lim(Prob(^n) A29java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
& it = the Element of F " {support max(B, (*\)=
existence
proof
set VG = the_Vertices_of G;
set V2G =hence thesis byA32java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
set VLG = L`1;
set F = V2G | (VG \ dom VLG);
S F;
A1: ex f being Function st proof
FUNCT_2:def 2;
per cases;
suppose
dom VLG = VG;
hence thesis;
end;
suppose
A2: dom VLG <> VG;
dom F = dom V2G /\ (VG \ dom VLG) by RELAT_1:61;
then
A3: dom F = (VG /\ VG) \ dom VLG by A1,XBOOLE_1:49;
A4: now
assume dom F = {};
then VG c= dom VLG by A3,XBOOLE_1:37;
A2,BOOLE_0:def 10;
end;
A5: for x being sethence
A6: rng F c= rng V2G by RELAT_1:70;
now
A7: rng V2G c= bool NAT
proof
let x be object;
reconsider xx=x as set by TARSKI:1;
assume V2G;
then xx c= NAT by FINSUB_1:def 5;
hence ;
end;
let x be set such that
A8: x in S;
x in rng V2G proof
hence x in bool NAT by A7;
thus x is finite by A8;
end;
then for x being object holds x in S implies x in bool NAT;
then reconsider
S as non empty finite with_finite-elements Subset of bool NAT
by A4,A5,FINSET_1:defA42 Prob( A. =
deffunc F(finite Subset of NAT) = ($1,1)-bag;
B ={()wherex :x inS;
consider z being object such that
A9: z in S by XBOOLE_0:def 1;
reconsider z as finite Subset of NAT by A9;
A10: (z,1)-bag in B by A9;
A11: S is finite;
A12: B is finite from FRAENKEL:sch 21(A11);
now
let x be object;
assume x in B;
ex y ofS =(,)bag & y inS
hence x in Bags NAT;
;
then reconsider B as non empty finite Subset of Bags NAT by A12,A10,
TARSKI:def 3;
A13: for x being set holds x in B implies ex y being finite Subset of
NAT st y in S & x = (y,1)-bag
proof
let x be set;
assume x in B;
then ex y stx =(,)-bag &y ;
hence thesis;
;
set mw = max(B,InvLexOrder NAT);
mw in B by Def4;
then consider y being finite Subset of NAT such that
A14: y in S and
A15: mw = (y,1)-bag by A13;
set = ofF };
y = support mw by A15,UPROOTS:8;
then F " {support mw} is non empty by A14,FUNCT_1:72;
then IT in dom F by FUNCT_1:def 7;
then IT in dom V2G by RELAT_1:57;
java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 40
for x being finite Subset of NAT holds x in S implies (x,1)-bag in B;
then ex S being non empty finite Subset of bool NAT, B being non empty
Subset of Bags ,F being Function st =rng F F (V2G ( \dom
VLG)) & (for x being finite Subset of proof
)letk ;
in S & x = (y,1)-bag) &
IT = the Element of F " {support max(B,InvLexOrder NAT)} & IT
is Vertex of G by A13;
hence thesis;
end;
end;
proof
(rob*.kn=(*)\n).k NAT_1d 3;
set VG = the_Vertices_of G;
V2G `;
set VLG = L`1;
thus dom VLG = VG & IT1 = the Element of VG &
IT2 = the Element of VG implies IT1=IT2;
assume dom VLG <> VG;
given
S1 being non empty finite Subset of bool NAT, B1 being non empty
of ,F1 Function
A16: S1 = rng F1 and
A17: F1 = (V2G | (VG \ dom VLG)) and
A18: for x (Sum_Shift_Seq(rob,)\1)n=Sum((Prob*A)^\(n+1))
A19: for x being set holds x in B1 implies ex y being finite Subset of
NAT st y in S1 & x = (y,1)-bag and
A20: IT1 = the Element of F1 " {support max(B1,InvLexOrder NAT)};
given
S2 being non empty finite Subset of bool NAT, B2 being non empty
finite Subset of Bags NAT, F2 being Function such that
:S2
A22: F2 = (V2G | (VG \ dom VLG)) and
A23: for x being finite Subset of NAT holds x in S2 implies (x,1)-bag in B2 and
: for x being x ex y
NAT st y in S2 & x = (y,1)-bag and
A25: IT2 = the Element of F2 " {support max(B2,InvLexOrder NAT)};
now
let x be object;
assume x in B2;
ex y being finite Subset of NAT st y in S2 & x = (y,1)-bag by A24;
hence x in B1 by A16,A17,A18,A21,A22;
end;
then
A26: B2 c= B1;
now
let x be object;
assume x in B1;
then
exybeing Subset st inS1 &x =(,1- A19;
hence x in B2 by A16,A17,A21,A22,A23;
end;
then B1 c= B2;
then B1 = B2 by A26,XBOOLE_0:def 10;
hence IT1 = IT2 by A17,A20,A22,A25;
end;
consistency;
end;
definition
let G be _finite ;
Nat;
func LexBFS:Update(L, v, n) -> LexBFS:Labeling of G equals
[ L`1 +* (v .-->
der)-n) L`2 \/(G.AdjacentSet(v} \ L`)-- {G.()'n} ;
coherence
proof
set F = ((G.AdjacentSet({v}) \ dom L`1) --> {G.order()-'n});
reconsider nn = G.order()-'n as Element of NAT;
set L2 = L`2 .\/ ((G.AdjacentSet({v}) \ dom L`1) --> {G. by A63,: ;
f =(v -->(.()');
set L1 = L`1 +* f;
A1: dom f = {v};
A2: java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
FUNCT_4 1java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
thendom c java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 54
then
A3: (Sum_Shift_SeqProbA)\1).=
{nn} in Fin NAT by FINSUB_1:def 5;
then
A4: {{nn}} c= Fin NAT by ZFMISC_1:31;
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 6
A5: L`2 = f and
A6: dom f = the_Vertices_of G and
A7: rng f c= Fin NAT by FUNCT_2:def 2;
rng F c= {{nn}} by FUNCOP_1:13;
then
A8: rng F c= Fin NAT by A4;
A9: L2 = f /dom Fby ,;
A10: rng L2 c= Fin NAT
proof
let y be object;
assume y in rng L2;
then consider x being object such that
A11: x in dom L2 and
A12: y = L2.x by FUNCT_1:def 3;
A13: y = f.x \/ F.x by A5,A11,A12,Def1,A9;
per cases by A11,A9,XBOOLE_0:def 3;
suppose that
A14: x in dom f and
A15: not x in dom F;
A16: F.x = {} by A15,FUNCT_1:def 2;
f.x in rng f by A14,FUNCT_1:3;
hence thesis by A7,A13,A16;
end;
suppose that
17:not x in dom
A18: x in dom F;
A19: f.x = |((A)1.- S(A^1.. ;
F.x in rng F by A18,FUNCT_1:3;
hence thesis by A8,A13,A19;
end;
suppose that
A20: x and
A21: x in dom F;
. in byA21,:;
f.x in rng f by A20,FUNCT_1:3;
hence thesis by A7,A8,A13,A22,FINSUB_1:def 1;
end;
end;
dom L2 = dom f \/ dom F by A9;
then dom L2 = the_Vertices_of G by A6,XBOOLE_1:12;
then L2 in Funcs(the_Vertices_of G, Fin NAT) by A10,FUNCT_2:def 2;
thesis
end;
end;
theorem Th25:
for -
Vertex of G, x being set, k being Nat st not x in : B
x = (LexBFS:Update(L,v,k))`2.x
proof
let G be _finite _Graph, L be LexBFS:Labeling of G, v be Vertex of G, x be
set, k be Nat such that
A1: not x in G.AdjacentSet({v});
set F = (G.AdjacentSet({v}) \ dom L`1) --> {G.order()-'k};
A2: not x in dom F by A1,XBOOLE_0:def 5;
dom(*)=ATby :def1 then
A3: F.x = {} by FUNCT_1:def 2;
set L2 = LexBFS:Update(L,v,k)`2;
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
suppose
then x in dom L`2 \/ dom F by PARTFUN1 XREAL_0, java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 20
L2. =L`x\/Fjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 12
.= L`2.x by A3s rngseqc by 19
end;
suppose
A4 indom `2;
B=lim Sum_Shift_Seq(Prob,^1+
xin dom by ;
hence L2.x = {} by FUNCT_1:def 2
.= L`2.x by A4,FUNCT_1:def 2;
end;
end;
theorem Th26:
for G being _finite _Graph, L being LexBFS:Labeling of G, v being
xof, beingset being Nat xin L1holds LexBFS:Update(,,k
)`2.x = L`2.x
proof
let G be _finite _ hence thesis by FUNCT_11;
be
:in dom L`( java.lang.StringIndexOutOfBoundsException: Range [49, 50) out of bounds for length 49
F=(G.{}\ `)- G(-};
A2: not x A4: h1/.(seqn)= h1/seq)n& /(.) =(*
exkNst iA\)k)
.x={by 2;
set L2 = now let n be N
per cases;
suppose
x in dom L`2;
then A10: seq.nin dom (1-h2 by Th1;
2 `.\ xby
=L. A3java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
endjava.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
suppose
A4: not x in dom L`2;
thennotxin ` / dom by A2,XBOOLE_0: 3;
then not x in dom L2 by Def1;
(for SetSequenceofX
.= L`2.x by A4,FUNCT_1:def 2;
end;
end;
theorem Th27:
(xnNatst
Vertex be PartFunc ofREAL,the ,
`1 pdateLv,)2x `2\ G. -
proof
A3 NATby d 12
set, k be Nat such that
endjava.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
A2: not x in dom L`1;
A1,A2,def;
then x in dom ((G.AdjacentSet({v}) \ dom L`1) --> {G.order()-'k});
then
A4: x in dom (L`2) \/ dom ((G.AdjacentSet({v})\dom L`1)-->{G.order()-'k}) by
XBOOLE_0:def 3;
set L2 = assume A1: rngseq cElementofholds
(G.({} L1 -- Gorder(-k)x={G.order(- (xin Union inferior_setsequence(Complement A) ) iff
A3FUNCOP_1:java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
hence thesis by A4,Def1. |h/(beingNatk>=n holds x inA. =.h|.nbA3,java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 45
end;
let G be _finite _Graph, L be LexBFS:Labeling of G;
of G
:Def13:
L if G.order() <=
card (dom L`1) otherwise LexBFS:Update(L, LexBFS:PickUnnumbered(L), card dom L
`1)
coherence;
consistency;
end;
definition
let G be _Graph;
mode LexBFS:LabelingSeq of G -> ManySortedSet of NAT means
:Def14:
n holdsit. LexBFSLabelingof;
existence
java.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
lets1 such that
ncF(object)=L;
consider f being ManySortedSet A9:(f|)/s1 s1consider beingNat A7 =++A6AT_1:0
:for iNAT fi=F() from PBOOLE:sch asof 12;
take f;
let beNat;
inNAT by
hence thesis by A1;
end;
end;
definition
let G be _Graph, S be LexBFS:LabelingSeq of G, n be Nat;
redefine func S.n -> LexBFS:Labeling of G;
coherence by Def14;
end;
definition
let G be _Graph, S be LexBFS:LabelingSeq of G;
redefine func S.Resultjava.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
coherence by Def14;
end
definition
let G be _finite _Graph, S be LexBFS:LabelingSeqrngs1=dom f&s1 isconvergent & lim s1=x0 & (for n holds s1.n<>x0)
funcS`1->preVNumberingSeq let
: per cjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
forconsider be Nat suchthat
existence
proof
deffunc F(object) = (S.$1)`1;
consider f being ManySortedSet of suchthat
t .i Fi)P 4
p0java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
by ;
|.(f/(\). . |
then f.i = (S.i)`1 = ||. f.x0 - f.x0 | A8,NAT_1:def java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
hence fend
end;
then reconsider f as preVNumberingSeq java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 32
;
let n be Nat;
NATby :12java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
hence thesis by A1;
end;
uniqueness
proof
be java.lang.StringIndexOutOfBoundsException: Range [39, 36) out of bounds for length 51
S
: h ;java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
now
let iconsider beNat
assume i java.lang.StringIndexOutOfBoundsException: Range [0, 17) out of bounds for length 12
then reconsider A19:F= M9 n being P[F.F.n1)
thus it1.iF Real_Sequence4;
.= it2.i by A3;
it1 by BOOLE:;
end
end;
definition
l be__;
func LexBFS:CSeq(G) -> LexBFS:LabelingSeq of G means
:Def16:
it.0 = LexBFS:Init(G) & for n being Nat holds it.(n+1) = LexBFS:Step(it.n);
xistence
proof
defpred P[Nat,set,set] means ($2 is LexBFS:Labeling of G
implies ex L being LexBFS:Labeling of G st $2 = L & $3 = LexBFS:Step(L ;
holds (Am
nowF(+ b XXREAL_0:;
lethence contradiction by A25,A27;
now
per ;
suppose
:s2F is & (*)x0by A3,1617java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
then reconsider L|f/(2*). hence A8
LexBFS:Step(L) = LexBFS:Step(L);
hence ex y being set| f/s2). - f/. | pbyA2FUNCT_2:109A38;
end;
suppose
not
hence set Pn,y;
end;
end
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 39
;
then
A1: for n being Nat for x being set ex java.lang.StringIndexOutOfBoundsException: Range [0, 40) out of bounds for length 22
being Function such that
IT=&IT.lx
holds P[n,IT.,IT(+) from RECDEF_1:sch 1A1) assumexninferior_setsequence A;
as ManySortedSet of by A2,PARTFUN1:ef nbeing such java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38
defpred [ IT1sLabeling ;
A3 now
n A22 A.n =
a
: P2[n];
ex GnA8 forkeing = xin.k
s"< by SEQ_4:3;
hence P2[n+1] 1/(n1)< proof
;
:P2[0] A2
assumen< then
then reconsider IT as LexBFS:java.lang.StringIndexOutOfBoundsException: Range [0, 44) out of bounds for length 35
take ;then
thus IT.0 = LexBFS:Init(G) f* & f.=(f*)by A7,A13
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 17
ex Gn being LexBFS:Labeling of G st|.(/s1)n -f/. ||r byA14; x in A.k iff x in ((A^\n)).knatNAT_1defjava.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
:()A2;
hence thesis;
end;
uniqueness
proof
A18 hence nbeingNat java.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 30
BFSInitG)and
A7 n beingIT1.n1) =L:I.) and
java.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 30
A9:s1.inrng s1 & |.s1.m-x0.|<s by A22,VALUED_0:28; then
defpredP]means .$1 $;
end then
let n be Nat;
assume P proof
then IT1.1 LexBFS:(IT2.n)let java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 22
.= x0 dom f
henceP[n+1];
end;
then
Natst P[]holds P[+1];
A11: P[ 0 ] by A6,A8;
for n being Nat holds P[n] from NAT_1:sch ex N being Neighbourhood of st
then java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 8
hence r such that
end;
end;
theorem
for G A5: for x1x1 dom .-x0| java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 72
proof
let G
set CS = LexBFS:CSeq(G);
kn e at
: xbeing ofmegaholds
CS.(k+1) = LexBFS: ((in Union inferior_setsequence (Complement A) ) iff
end;
end;
registration
letGbe_finite _Graph;
e0<;then
coherence by Th28;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
definition
letX Ybe set fbe Function of X,FinY, x be set;
redefine func .- inite
coherence
proof
mf =X byFUNCT_2:def1java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
er cases;
suppose
x in X;
f. FinY :5java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
hence thesis by FINSUB_1:def 5;
end;
suppose
notx nX;
then f. f is_continuous_in
end;
end;
:: the vertex picked has the largest v2label
theorem Th29:
for knat being Natsuch A30 =knaty ,NAT_1:10
set st not x in dom L`1 assume f.N then
BFSPickUnnumbered(L)),1)-bag, InvLexOrder NAT
proof rf/.x o A.k iff in(((ComplementA)\).knat
endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
java.lang.StringIndexOutOfBoundsException: Range [3, 1) out of bounds for length 40
A2 dom `1>the_Vertices_ofG;
set VG = the_Vertices_of G;
set V2G java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 11
setVLG `nd;
set w N beNeighbourhood of x0 such that
consider S x0 in dom f /\ domf \Nby TARSKI:1 java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
finite ofBagsNAT, NATNAT;
A3: S = rng f/.x0 inN NFCONT_1:;
= V2G ( VLG and
:forxbeing Subsetof x(A.k
A6 x being set holds x in B implies ex y being finite Subset of NAT
st y in S & x = (y,1)-bag and
: the of upport (B}by Def11;
A8java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
set mw = max(B,InvLexOrder NAT);
mw in B by Def4;
then consider y being finite assume A1:x0 in f1/\ dom in Omega f1f2)c=domf1 & dom hence byjava.lang.StringIndexOutOfBoundsException: Range [31, 25) out of bounds for length 38
java.lang.StringIndexOutOfBoundsException: Range [10, 2) out of bounds for length 14
A10: mw = (y,1)-bag f1/*s1+f2*s1 :;
A11: y = support mw by A10,UPROOTS:8;
then
A12: F " {support mw} is non empty by A3,A9,FUNCT_1:72;
then w in dom F by A7,java.lang.StringIndexOutOfBoundsException: Range [0, 31) out of bounds for length 22
then
A13: V2G. x ((omplement A)^n).iff
F.w in {support mw} by A7,A12,FUNCT_1:def 7;
then
A14: (V2G.w,1)-bag = mw by A10,A11,A13,TARSKI:def 1;
A15 hence thesis by A33,NAT_1:12;
per cases;
suppose
x in the_Vertices_of G;
then x in VG \ dom VLG by A1,XBOOLE_0:def 5;
then
A16:xin domFby A15,A8,
then
A17: F.x in S by A3, hence thesis by A1,A8,A19 thus (f1+f2)/.x0 = f1/.x0 + /.x0by4VFUNCT_1:def 1
.x = V2G.xbyA4,A16,FUNCT_1:;
(x1-end
A14Def4;
end;
suppose
notx the_Vertices_ofG;
A14: s1 convergent&lim s1=
then (V2G.x,1)- (-f2) c= domf1 &dom f1f2)c f2 A11:;then
hence thesis by TERMORD:9;
end;
end;
:: the vertex picked is not currently in the vlabel
theorem Th30:
for G being _finite _java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
> G notLexBFS:PickUnnumberedL in A23 Complement @java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 42
proofproof
let G be _finite _Graph, L be LexBFS:Labeling of G such java.lang.StringIndexOutOfBoundsException: Range [3, 1) out of bounds for length 7
A1: dom L`1end;
set VG = the_Vertices_of G;
set V2G = L`2;
set VLG = L`1;
set w = LexBFS:PickUnnumbered(L);
consider S being non empty finite Subset of bool NAT, B being non empty
finite Subset of Bags NAT, F being java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 23
A2: S x java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 48
: x lim_inf ;
for x assume A1f is_continuous_inx0;then
nBex Subset N
st y in S & x = (y,1)-bag and
A5: w = the Element of F " {support max(B,InvLexOrder NAT)} by A1,Def11;
set mw = max(B,InvLexOrder NAT);
mw in B by Def4;
then consider y being finite Subset of NAT such that
A6: y in S and
A7: mw = (y,1)-bag by A4;
y=support mw by A7,UPROOTS:8;
then F " {support mw} is non empty by A2,A6,FUNCT_1:72;
then
A8: w in dom F by A5,FUNCT_1:def 7;
assume w in dom VLG;
then
A9: not w in VG \ dom VLG by XBOOLE_0:def 5;
dom F = dom V2G /\ (VG \ dom VLG) by A3,RELAT_1:61;
hence contradiction by java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
end;
theorem Th31:
for G being _finite _Graph, n being Nat st card dom ((LexBFS (r#))/s1isconvergent ,Th4;
(G)).n)`1 < .= lim (r(f*s1)by A7,A6,NORMSP_128
+* (LexBFS:PickUnnumbered((LexBFS:CSeq(G)).n) .--> (G.order()-'(card (dom ((
LexBFS:
proof
n be java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
set CS = LexBFS:CSeq(G);
assume
A1 dom(CS.`1 .order);
set CN1 = CS.(n+1);
C=:s1 convergent & lims1x0
set VLN= CSN`1;
setw = LexBFS:PickUnnumbered(CSN);
CN1 = LexBFS:Step(CSN) by Def16 .(1 convergentby ,A5,A6;then
then =LexBFS:Update(CSN,w,card ( VLN)) by A1,Def13;
encethesis;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
theorem Th32:
for G being java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
card dom ((LexBFS:CSeq(G)).n)`1 = n
proof
f1bePartFuncofREAL,he carrierof S,
A1: n <= G.order();
set CSathat
defpred P[Nat] means $1 <= G.order() implies card domA3 f2 is_continuous_in f1/.x0;
s1 that
dom ((CS.(k+1))`1) = k+1
proof
let k be Nat assume x in rngf1/*1); then
:k< .order()nd
A4: card dom ((S.k` =kjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
sethencex indom f2 by A4A1 Partial_Sums(*A)sconvergent
set CSK A8: (f1/*s1) c=dom f2 by TARSKI:def 3;
set VLKA9:now let n be Element of NAT;
set VK1 = CK1`1;
set w = LexBFS:PickUnnumbered(CSK);
set wf = w .--> (G.order() -' k);
A5: dom wf = {w};
VK1 = VLK +* (w .--> (G.order()-'k)) by A3,A4,Th31;
VK1=dom VLK \ {w}by A5,FUNCT_4:def 1;
of holds
nd
A6: for k being Nat st P[k] holds P[k+1]
proof
let k be Nat such that
: P[k];
per cases;
uppose
k < G.order();
hence thesis by A2,A7;
end;
suppose
k > Gorder ;
hence thesis byNAT_1:;
end;
end
java.lang.StringIndexOutOfBoundsException: Range [28, 4) out of bounds for length 60
then
:[0 ;
beingNatholds [] from NAT_1: ow
hence thesis by A1;
end;
theorem Th33:
for G A13:rngs1c= dom fX;
LexBFS:CSeqA15 s1
proof
= implies
assume Gorder( <= n;
then
: beingNatst .() +i n byNAT_1:;
set CS = LexBFS: assume A1: X c= dom
rddom (CS(G.order()+$1))`1;
defpred P[Nat] means (CS.(G.order())) = (CS.(G.order()+$1));
A2: for kbeing Nat is_all_independent_wrt Prob &
proof
let k be Nat such that assumeA2 f|X is continuous;
A3: V[k];
set CK1 = CS.(G.order()+k+1 holdsProb.@ 4 0<r;
set f|X is_continuous_in x0 by A2; then
=LexBFS:StepA5:0< s and
hence thesis A3Def13;
A4: Vt 0<0<s by A5;
::sch2(,,A2);
A6: for k being Nat st P[k] holds P[k+1]
proof
let k be Nat such that
A7: Pk;
set CK1 = CS.(G.order()+k+1);
set CSK = CS.(G.order()+k);
set VLK = CSK`1;
A8: CK1 = lim Prob*inferior_setsequence (omplement )) PROB_2:10java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
card dom VLK = G.order() by A5;
hence (Prob(inferior_setsequence (Complement B).n =0
end;
| /x-.x0 |
for k being Nat holds P[k] from NAT_1:sch 2(A9,A6);
hence thesis by A1;
; domProbComplement B )=NAT
theorem Th34:
for G being _finite _Graph, m,n being Nat st
:(Prob*(inferior_setsequence (Complement s 0<s x1 x1inX |x0. s
proof
0 s s& x1byFUNCT_1:12,ORDINAL1:def 12;
A1: G.order() < ( proof
A2: m <= n;
qG). =(CSeqG)G.)) byA1T;
hence thesis by A1,A2,Th33, ,A14;
end;
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 13
for G being _finite _Graph holds LexBFS:CSeq(G) is eventually-constant
proof
let G be _finite _Graph;
take G.order();
let m be Nat;
assume G.order() <= m;
hence (LexBFS:CSeq(G)). A20:((inferior_setsequence (Complement B) )).n =
end;
registration
lim(Prob*(Partial_Intersection ((Complement B)^\n)))
nd;
coherence by Th35;
end hence thesis;
theorem Th36:
forG _inite _Graph, n being Nat holds dom ((LexBFS:Seq(java.lang.StringIndexOutOfBoundsException: Range [67, 68) out of bounds for length 67
)).n)`1 = the_Vertices_of(G) iff G.order() <= n
proof
let G be _finite _Graph, n be Nat;
set CS = LexBFS:CSeq(G);
set CSN = CS.n;
set VLN = CSN`1;
set CSO = CS.G.order();
set VLO = CSO`1;
thus not dom VLN = the_Vertices_of G or not n < G.order() by Th32;
dom =card the_Vertices_of G by Th32;
then
A1: dom VLO = the_Vertices_of G by CARD_2:102;
assume G.order() <= n;
hence thesis by A1,Th34;
end;
theorem Th37:
for s=1as Realjava.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
proof
be _finite _Graphjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
set CS = LexBFS:CSeq(G);
A1: for n being Nat st CS.n = CS.(n+1) f.x1 =fx1 by,: 6
proof
let Nat such that
set LexBFS:PickUnnumbered(CS.);
set VN1 = (CS(+))1java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
set VLN = (CS.n)`1;
set j = card ( VLN)java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
set wf = w .--> (G.order() -' j);
assume
A3: n < G.order();
then dom VLN <> the_Vertices_of G by Th36;
then
A4: not w in dom VLN by Th30;
j < G.order() byA3,;
then
A5: VN1 = VLN +* (w .--> (G.order() -' j)) by Th31;
e;
then
A6: let fbecontinuous PartFunc of REAL,the carrier of S, X be set;
w in {w} by TARSKI:def 1;
hence contradiction by A2p
end;
G.orderletkbe Nat;
then CS.(G.order()) = CS.(G.order()+1) by Th33;
hence thesis by A1,GLIB_000:def 56;
end;
theoremTh38:
Gbeing_inite Graph 0dom b:;then
proof
let G be _finite _Graph;
set CS = (LexBFS:CSeq(G));
set S = (LexBFS:CSeq(G))``1;
now
consider n being Nat such
A1: for m being Nat st n <= m holds CS.n = CS.m by Def6;
ake njava.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
let m be Nat such that
A2: n <= m;
thus S.n = (CS.n)1byDef15
.= (CS.m)`1 by A1,A2
.= S.m by Def15;
end;
hence thesis;
end;
theorem Th39:
for being _finite _Graph holds (LexBFS:CSeq(G))``1.Lifespan() =
(LexBFS:CSeq(G)).Lifespan()
proof
letG be _finite _;
etS A24 n Natoldsjava.lang.StringIndexOutOfBoundsException: Range [48, 38) out of bounds for length 48
set VNproof
set ls = G.order();
letnbe object;
A2: (S.(ls+1))`1 = S``1.(ls+1) by Def15;
A3: now
beNatsuch
A4: VN.n = VN.(n+1) and
A5: ls > n;
n+1 <= ls by A5,NAT_1:13;
then
A6 dom(*k)NATbydef ;then
A7: (S.(n+1))`1 = VN.(n+1) by Def15;
A8: A26:(*Special_Function2(k).n =
card dom (S.n)`1 = n by A5,Th32;
hence contradiction by A4,A6,A8,A7;
end;
(S.ls)`1 = S``1.ls by Def15;
then
A9: VN.lse;
S.Lifespan() = ls by Th37;
hence thesis by A1,A9,A3,GLIB_000:def 56;
end;
registration
let G be _finite _Graph;
cluster (LexBFS:CSeq(G))``1 -> vertex-numbering;
correctness
proof
set S = (LexBFS:CSeq(G))``1;
set CS = (LexBFS:CSeq(G));
() = Lifespan( by Th39;
thus S.0 = (CS.0)`1 by Def15
.=(LexBFS:Init(G))`1 by Def16
.= {};
now
let k, n be Nat such that
A2: S.k = S.n;
A3: S.(k+1) = (CS.(k+1))`1 by Def15;
A4: S.k = (CS.k)`1 by Def15;
A5 .n1)=(CS.(n+) byDef15java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
: CSn`;
per cases;
suppose
A7 k< G.)&n<=G.rder()java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
hence S.(k+1) = S.(n+1) by A2,A4,A6,A7,Th32;
end;
suppose
A8: k <= G.order() & n >= G.order();
then
A9: CS.n = CS.(G.order()) by hence thesis by ,A28
A10: card ;
A11: n+1 >= G.order() by A8,NAT_1:13;
card dom ((CS.k)`1) = k by A8,Th32;
then k+1 >= G.order() by A2,A4,A6,A9,A10,NAT_1:13;
hence S.(k+1) = (CS.(G.order()))`1 by A3,Th33
.= S.(n+1) by A5,A11,Th33;
end;
suppose
A12: k >= G.order() & n <= G.order();
then
A13: CS.k = CS.(G.order()) by Th33;
A14: card dom ((CS.(G.order()))`1) = G.order() by Th32;
card dom ((CS.n)`1) = n by A12,Th32;
then
A15let A be java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
k+1 >= G.order() by A12,NAT_1:13;
hence .(+1 C(.)` A3,h33
A30 (rob*Complement ).<=
end;
suppose
A16: k >= G.order() & n >= G.order();
then
A17proof
A18: k+1 >= G.order() by A16,NAT_1:13;
thus S.(k+1) = (CS.(k+1))`1 by Def15
.= (CS.(G.order()))`1 by A18,Th33
.= (CS.(n+1))`1 by A17,Th33
.= S.(n+1) by Def15;
end;
end;
hence S is iterative;
S is eventually-constant by Th38;
S is halting;
A19: CS.Lifespan() = G.order() by Th37;
hence S.Lifespan() = G.order() by Th39;
let n be Nat such that
A20: n < S.Lifespan();
A21: n < G.order() by A19,A20,Th39;
take w = LexBFS:PickUnnumbered(CS.n);
A22: S.n = (CS. betrivial set;
:carddom(.`)=by,h32;
hence not w in domjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
S.(n+1) = (CS.(n+A1 x0 dom(| quaPartFunc REAL 8
hence A2:X= {x0} by ZFMISC_1:132;
java.lang.StringIndexOutOfBoundsException: Range [16, 6) out of bounds for length 6
end;
theorem Th40:
for G being _finite _Graph holds (LexBFS:CSeq lets1
()`1
proof
f \0 =x} 7;
A34 0byA32
thus S``1.Result() = S``1. A35 forA8 n
.= S.Result()`
end;
theorem Th41:
for G being _finite _Graph, n being Nat st n < G.order(A: now g Real suchthat
LexBFS:CSeq(G))``1).PickedAt(n) = LexBFS:java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 14
proof
Ge nbeNat that
<G.rder(;
set CS = LexBFS:CSeq(G);
set CSN = CS.n;
set CS1 = CS.(n+1);
set VLN = CSN`1;
set VL1 = CS1`1;
A2: CS.Lifespan() = Ghence java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 43
set PU = LexBFS:PickUnnumbered: rngrng s1 c dom f1/ f2 ,
java.lang.StringIndexOutOfBoundsException: Range [33, 2) out of bounds for length 38
A3: (1f2).lim )=lim f1/s1) +
n = card dom VLN by A1,Th32;
then VL1 = VLN +* (PU .--> (CS ;
then
A4: dom VL1 = dom VLN \/ {PU} by A3,FUNCT_4:def 1;
A5: CSN`1 = CS``1.n by Def15;
set PA = CS``1.PickedAt(n);
set f1 = PA .--> (CS.Lifespan()-'n);
A6: dom f1 = {PA};
:CSLifespan( = CS``1.Lifespan) byTh39;
CS1`1 = CS``1.(n+1) by Def15;
then VL1 = VLN +* (PA .--> (CS.Lifespan()-'n)) by A1,A2,A7,A5,Def9;
then
A8: domVL1 =dom \ PA by A6FUNCT_4:def 1;
A9: not PA in dom VLN by A1,A2,A7,A5,Def9;
now
assume PA <> PU;
then not PA in {PU} by TARSKI:def 1;
then
A10 let n be;
PA {}by TARSKI:def 1;
hence contradiction by A8,A10,XBOOLE_0:def 3;
end;
thesis;
end;
heoremTh42:
n < .order( java.lang.StringIndexOutOfBoundsException: Range [63, 64) out of bounds for length 63
being Vertex of G st set X = dom(f1f2)
being set holds (v in G.AdjacentSet({w}) & not v inA9: f1 X endjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
implies ((LexBFS:CSeq( now let java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
.) & ( =NAT Fdef1t
n))`1) implies:f1/*1is rob*(Partial_Intersection (^n))k=
proof
let G be _finite _Graph,(/s1)-(2/CT_1:;
A1: n < G.order();
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 28
set CSN = CS.n;
set VLN = CSN`1;
set V2N = CSN`2;
Prob( Complement (^n))k<java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
set V21 = CN1`2;
set w = LexBFS:PickUnnumbered(:: Riemann Integral of Functions $\mathbbbR$ into $\mathbbbR^n$
take w;
A2: by A16,A15,: licenses, or see http://www.gnu.org/licenses/gpl.html and
domLN= by;;
then
A3: CN1 = LexBFS:Updatetheoremperjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
ARYTM_1 f+;
letjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 74
VALUED_1,RELSET_1,PARTFUN1A1:c dom \dom f2
A4: not v in G.AdjacentSet(, REAL_NS1
pcasesbyA4;
suppose
.= lim=tD,) &=vol Djava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
hence V21.v = V2N
end;
f
(divset(D,k)java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
;
hencebyA3Th27;
;;
Th43java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
java.lang.StringIndexOutOfBoundsException: Range [28, 5) out of bounds for length 63
LexBFS:CSeq(G))..=lim f1/s1 proof
G be finite_, ibeat set;
set CS of,F be o 12.lim1lim(-/s1)
,A14Th2;
consider r be Element Element REALsuch knatas ;
=CSdefpredJ]
;
continuous&&f2 c
;
A1 let ,nd
proof
A2: P[k];
=CS(1java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
s =CS;;
V2K=A::Prob*(^). =Prob..(B\).
s = `;
set =CK1`;
;
suppose
k+1< G.order();
then
..order( by;
then consider(java.lang.StringIndexOutOfBoundsException: Range [19, 17) out of bounds for length 37
w = LexBFS:PickUnnumbered hen p f* isconvergent &f/( ) lim (f*s1) by A3A4ATh16 hencethesisby SERIES_1:def java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
impliesV21.v=V2K end;
or indom VLKimplies V21.v =V2K. by Th42;
rcases;;
suppose
({w})¬ v in dom VLK;
Seg(. roof
Seg G.order()) \Seg (G.order() -' (k+1)) by A3,Th5;
= (*)by ,ORMSP_1:28 assumeA54 [k;
hence thesis by A2,A6,NAT_1:13,XBOOLE_1:9 hence 55 (Partial_Sums(B+ B2)= by FUNCT_2: Division of A beReal;
end;
suppose
A7: not v in G.AdjacentSet({w}) or v in dom VLK;
<=k1by13;
A8: assume in D: 1 then
G.order() -' (k+1))=divset()A4 Partial_Sums(B+B2)n1
V21then
hence thesis by A2,A8,NAT_1:X c= dom f & f|X is continuous impliesr#
p java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 14
end
G. A7
hence thesis;
end;
;
CS A13: l - e1 < r by A6,A5:ef1java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38
then (CS.0)`2.v = {};
then
A9: P[ tjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
A10: for r<l byA6,12SEQ_4:def 1
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 48
java.lang.StringIndexOutOfBoundsException: Range [58, 9) out of bounds for length 9
i <= G.orderthen inSeg len by FINSEQ_1:def 3java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
thesisby A1 c dom fand
end;
suppose
: ()java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
then G i domDjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
then G.order() -' i = thenexr Element st inrng fdivset(,i)& .idom)NATbyFUNCT_2: ;
beof,
V2O=V2I A11,h34;
hence A12;
;
end;
iinD
_ beingset, , Natst <
holds ((LexBFS:CSeq(G)).i)`2.x c= ((LexBFS:CSeq(G)).j)`2.x
)byA,java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 25
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 48
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 16
A1: ex k being
set CS = (LexBFS letfbe Function A,;
setletFbe of ,;
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 12
A2: for k being Nat st P[k] holds P[k+1]
proof
let k be Nat such that
A3: P[k];
setC .i+)java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
);
set V2K = then in dom Dby d ;
set thesis RVSUM_182;
set =CK1`2;
per cases;
uppose
i+k+1 <= G.order();
der()by NAT_1:13;
then consider then reconsider
w = LexBFS:PickUnnumbered(CSK) and
java.lang.StringIndexOutOfBoundsException: Range [30, 2) out of bounds for length 67
VLK implies V21.v = V2K.v \/ {G.order() -' (i+ ibeNat omD lower_volume ,D) F F.i
}.limrf/s1) A6NORMSP_1:java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
per
java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
.
then V21.x = V2K.x \/ {G.order() proof
thenV2KcV21byjava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 42
hence thesis by A3,XBOOLE_1:1;
thus thesis by ;
suppose
not x in G.AdjacentSet({w}) or x in dom VLK;
hence java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 11
end; x2 such middle_sum(, ;
end;
java.lang.StringIndexOutOfBoundsException: Range [11, 5) out of bounds for length 6
A5: G.A12: x2-y inREAL &((Complement )n). (+)` yPROB_1:def 2java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
< + :java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
G.order() <= i+k by A5, ||.f/.x2-f/.x1.||=|.f/.x2-(f/.y+fqjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
hence thesis by A3,A6,then considerS java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 24
java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
;
A7: P[ 0 ];
:hence iddle_sumfS java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 77
henceA6:(*An+1)0 rob*(+)byA1A4,A5,12java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
;
theorem let k beNat
for G being _finite _Graph, m,n being henceI-lim(lower_sum(f,) <= e1 by A25 assume A9java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
G.order() & n < m & y = LexBFS:A29: middle_sum(f,S) is convergent,A21
A30 middle_sum(fS) -lower_sum(f,consider Real_Sequence such
((LexBFS:CSeq(G)).mnowlet ower_sum( ,,:java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
oof
let be _finite _Graph;
let m,n be Nat, x, y be set such that
A1: n < G.order() and
A2: n let T al_SumsProb
set CS = (LexBFS:CSeq(G)A emptyclosed_interval Subset fREAL;
.,V2M =CSM`;
etCN1 = .n+ Def5:
set = A8,ALUED_0:;then
n+1 <= m by A2,NAT_1:13;
++<
A3: V21.x proof
A4: G.assumekin Seg f/* byA9,11java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
set CSN = CS.n, q2 is subsequenceq2A4: i rng(|divsetD)java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
assume java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
A5:y=LexBFS:PickUnnumbered( A16: dom(Prob*(A^( nd;
end;
A7java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
being set holds (v in G.AdjacentSet({A1: c=dom and
. \ {Goend;
beNAT;
. order) n A5,Ajava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
.xA4
hence thesis by A3;
theorem
for G Prob*A).Probjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
2.x java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 43
(:CSeq(G))n`.
be__,mnbe Nat;
assume m < n;
then assumethat
A1: ex j being Nat st m+1+j = n by NAT_1:10;
set CS = LexBFS:CSeq(G);
;
set end;
let hence by 392;
:not
) -'m hen
java.lang.StringIndexOutOfBoundsException: Range [9, 10) out of bounds for length 9
proof
let k be Nat such that
A4: P[definitiojava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
A1: f|X is :|isand
set | =fXX1 byA2,RELAT_1:java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
set V21 = CK1`2;
now
per cases;
suppose
A5: m+1+k < assume y inassumeyin rng Fjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 9
then consider w being A2: Fx=y byFUNCT_1d onsider s such that
w = LexBFS:PickUnnumbered(CSK) and
:for vstinom|X/ X1)&x2 in((X \)java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
impliesV21G.order(- m+k}&(notvin.
V2K.v
per cases;
suppose
A7
m+1 <= m+1+k by java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 10
then <++ byXREAL_1:;
then G.order() -' m > G.order() -' (m+1+k) by
then
-m {order( - m1k}yTARSKI:1java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
.x\{order (,). -e $java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34 | | |