SSL glcolo00.miz
Sprache: Mizar
|
|
:: Introduction to Graph Colorings
:: by Sebastian Koch
::
:: Received July 23, 2022
:: Copyright (c) 2022-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, SUBSET_1, RELAT_1, FUNCT_1, XXREAL_0, TARSKI, ARYTM_3,
CARD_1, XBOOLE_0, NAT_1, ARYTM_1, GLIB_000, PARTFUN1, FINSET_1, ZFMISC_1,
FUNCOP_1, GLIB_009, MOD_4, GLIB_006, GLIB_007, FUNCT_4, CARD_2, SCMYCIEL,
GLIB_010, SIMPLEX0, XCMPLX_0, MCART_1, SETFAM_1, FACIRC_1, ORDINAL1,
PBOOLE, CHORD, RING_3, REWRITE1, GLIB_013, GLCOLO00;
notations TARSKI, XBOOLE_0, XTUPLE_0, ZFMISC_1, SUBSET_1, SETFAM_1, RELAT_1,
FUNCT_1, ORDINAL1, RELSET_1, PARTFUN1, WELLORD2, FUNCT_2, BINOP_1,
DOMAIN_1, FUNCT_3, FUNCOP_1, FUNCT_4, FINSET_1, CARD_1, PBOOLE, PARTFUN2,
CARD_3, NUMBERS, XCMPLX_0, XXREAL_0, XREAL_0, NAT_1, INT_1, VALUED_0,
NAT_D, CARD_2, FINSEQ_1, EQREL_1, FINSEQ_2, NEWTON, FUNCT_7, GLIB_000,
STRUCT_0, ALGSTR_0, ORDERS_2, GROUP_1, GROUP_2, GROUP_6, YELLOW_1,
SGRAPH1, MATRIX11, GLIB_001, CHORD, AOFA_I00, GLIB_006, GLIB_007,
GLIB_008, GLIB_009, GLIB_010, GLIB_013;
constructors DOMAIN_1, FUNCT_4, XXREAL_0, NAT_1, NAT_D, BINOP_2, CARD_2,
FINSEQ_4, PBOOLE, ORDINAL3, WELLORD2, PARTFUN1, RELSET_1, GLIB_000,
STRUCT_0, RELAT_1, FUNCT_1, FUNCT_2, ALGSTR_0, GROUP_1, GLIB_001, ABIAN,
CARD_3, FINSEQ_1, GLIB_002, GLIB_003, SETFAM_1, EQREL_1, GROUP_2,
GROUP_6, GLIB_006, GLIB_007, PARTFUN2, CHORD, XTUPLE_0, MATRIX11,
GLIB_008, FUNCT_7, GLIB_009, GLIB_010, SQUARE_1, NEWTON, YELLOW_1,
VALUED_0, SGRAPH1, ORDERS_2, AOFA_I00, GLIB_013, FUNCT_3;
registrations XBOOLE_0, RELAT_1, FUNCT_1, ORDINAL1, FUNCOP_1, FINSET_1,
NUMBERS, XREAL_0, NAT_1, MEMBERED, FINSEQ_1, GLIB_000, GLIB_002,
GLIB_003, INT_1, VALUED_0, CARD_1, FUNCT_2, PARTFUN1, RELSET_1, XTUPLE_0,
CARD_3, GROUP_1, STRUCT_0, GLIB_001, ABIAN, FINSEQ_4, GROUP_2, GLIB_006,
EQREL_1, GLIB_007, GLIB_008, CHORD, NECKLACE, FUNCT_7, GLIB_009,
MATRIX11, GLIB_010, SQUARE_1, NEWTON, SETFAM_1, FINSEQ_2, CARD_2,
GLIB_012, RAMSEY_1, MSAFREE5, GRFUNC_1, SGRAPH1, CARD_5, FUNCT_4,
WELLORD2, GLIBPRE0, YELLOW_1, ORDINAL7, RVSUM_4, AOFA_I00, GLIB_013,
FUNCT_3, GLIBPRE1;
requirements ARITHM, BOOLE, NUMERALS, REAL, SUBSET;
definitions GLIB_000;
equalities ORDINAL1, GLIB_000, GLIB_010;
theorems TARSKI, XBOOLE_0, XBOOLE_1, ENUMSET1, RELAT_1, ZFMISC_1, SETFAM_1,
XREGULAR, XTUPLE_0, FUNCT_1, PARTFUN1, ORDINAL1, CARD_1, CARD_2,
XXREAL_0, NAT_1, FUNCOP_1, FUNCT_4, GLIB_000, CHORD, GLIB_006, GLIB_007,
GLIB_008, GLIB_009, GLIB_010, GLIBPRE0, GLIB_013, FUNCT_3, CARD_3,
XREAL_1, ORDINAL3, GLIBPRE1, FIELD_5;
begin :: Vertex Colorings
reserve E,V for set, G,G1,G2 for _Graph, c,c1,c2 for Cardinal, n for Nat;
definition
let G;
mode VColoring of G is ManySortedSet of the_Vertices_of G;
end;
registration
let G;
cluster -> non empty for VColoring of G;
coherence
proof
let f be VColoring of G;
dom f = the_Vertices_of G by PARTFUN1:def 2;
hence thesis;
end;
end;
reserve f for VColoring of G;
theorem Th1:
for f9 being Function st rng f c= dom f9 holds f9*f is VColoring of G
proof
let f9 be Function;
assume rng f c= dom f9;
then dom(f9*f) = dom f by RELAT_1: 27
.= the_Vertices_of G by PARTFUN1:def 2;
hence thesis by PARTFUN1:def 2;
end;
definition
let G, f; let f9 be ManySortedSet of rng f;
redefine func f9*f -> VColoring of G;
coherence
proof
rng f = dom f9 by PARTFUN1:def 2;
hence thesis by Th1;
end;
end;
:: might need Proof outside this article
theorem
for v being Vertex of G, x being object holds f+*(v.-->x) is VColoring of G;
theorem Th3:
for H being Subgraph of G holds f | the_Vertices_of H is VColoring of H
proof
let H be Subgraph of G;
set f9 = f | the_Vertices_of H;
the_Vertices_of H c= the_Vertices_of G;
then the_Vertices_of H c= dom f by PARTFUN1:def 2;
then dom f9 = the_Vertices_of H by RELAT_1: 62;
hence thesis by PARTFUN1:def 2;
end;
theorem Th4:
for G1 being addVertices of G2, V, f being VColoring of G2
for h being Function st dom h = V \ the_Vertices_of G2
holds f +* h is VColoring of G1
proof
let G1 be addVertices of G2, V;
let f be VColoring of G2, h being Function;
assume A1: dom h = V \ the_Vertices_of G2;
dom(f+*h) = dom f \/ dom h by FUNCT_4:def 1
.= the_Vertices_of G2 \/ (V \ the_Vertices_of G2) by A1, PARTFUN1:def 2
.= the_Vertices_of G2 \/ V by XBOOLE_1: 39
.= the_Vertices_of G1 by GLIB_006:def 10;
hence f+*h is VColoring of G1 by RELAT_1:def 18, PARTFUN1:def 2;
end;
:: since the vertices do not change for addEdge, no extra theorem is provided
theorem
for v,e,x being object, w being Vertex of G2
for G1 being addAdjVertex of G2,v,e,w, f being VColoring of G2
st not e in the_Edges_of G2 & not v in the_Vertices_of G2
holds f +* (v .--> x) is VColoring of G1
proof
let v,e,x be object, w be Vertex of G2, G1 be addAdjVertex of G2,v,e,w;
let f be VColoring of G2;
assume not e in the_Edges_of G2 & not v in the_Vertices_of G2;
then the_Vertices_of G1 = the_Vertices_of G2 \/ {v} by GLIB_006:def 12
.= dom f \/ {v} by PARTFUN1:def 2
.= dom f \/ dom{[v,x]} by RELAT_1: 9
.= dom f \/ dom(v .--> x) by FUNCT_4: 82
.= dom(f +* (v .--> x)) by FUNCT_4:def 1;
hence thesis by RELAT_1:def 18, PARTFUN1:def 2;
end;
theorem Th6:
for v being Vertex of G2, e,w,x being object
for G1 being addAdjVertex of G2,v,e,w, f being VColoring of G2
st not e in the_Edges_of G2 & not w in the_Vertices_of G2
holds f +* (w .--> x) is VColoring of G1
proof
let v be Vertex of G2, e,w,x be object, G1 be addAdjVertex of G2,v,e,w;
let f be VColoring of G2;
assume not e in the_Edges_of G2 & not w in the_Vertices_of G2;
then the_Vertices_of G1 = the_Vertices_of G2 \/ {w} by GLIB_006:def 12
.= dom f \/ {w} by PARTFUN1:def 2
.= dom f \/ dom{[w,x]} by RELAT_1: 9
.= dom f \/ dom(w .--> x) by FUNCT_4: 82
.= dom(f +* (w .--> x)) by FUNCT_4:def 1;
hence thesis by RELAT_1:def 18, PARTFUN1:def 2;
end;
theorem Th7:
for v,x being object, V being Subset of the_Vertices_of G2
for G1 being addAdjVertexAll of G2,v,V, f2 being VColoring of G2
st not v in the_Vertices_of G2 holds f2+*(v.-->x) is VColoring of G1
proof
let v,x be object, V be Subset of the_Vertices_of G2;
let G1 be addAdjVertexAll of G2,v,V, f2 be VColoring of G2;
set f1 = f2 +* (v .--> x);
assume not v in the_Vertices_of G2;
then A1: the_Vertices_of G1 = the_Vertices_of G2 \/ {v} by GLIB_007:def 4;
dom f1 = dom f2 \/ dom(v .--> x) by FUNCT_4:def 1
.= dom f2 \/ dom{[v,x]} by FUNCT_4: 82
.= dom f2 \/ {v} by RELAT_1: 9
.= the_Vertices_of G1 by A1, PARTFUN1:def 2;
hence thesis by RELAT_1:def 18, PARTFUN1:def 2;
end;
theorem Th8:
for F being PGraphMapping of G1,G st dom F_V = the_Vertices_of G1
holds f*F_V is VColoring of G1
proof
let F be PGraphMapping of G1,G;
assume A1: dom F_V = the_Vertices_of G1;
rng F_V c= the_Vertices_of G;
then rng F_V c= dom f by PARTFUN1:def 2;
then dom(f*(F_V)) = dom F_V by RELAT_1: 27;
hence thesis by A1, PARTFUN1:def 2;
end;
theorem Th9:
for F being PGraphMapping of G1,G st F is total
holds f*F_V is VColoring of G1
proof
let F be PGraphMapping of G1, G;
assume F is total;
then dom F_V = the_Vertices_of G1 by GLIB_010:def 11;
hence thesis by Th8;
end;
definition
let G, f;
attr f is proper means
for v,w being Vertex of G st v,w are_adjacent holds f.v <> f.w;
end;
theorem Th10:
f is proper iff for e,v,w being object st e Joins v,w,G holds f.v <> f.w
proof
hereby
assume A1: f is proper;
let e,v,w be object;
assume A2: e Joins v,w,G;
then reconsider v0=v,w0=w as Vertex of G by GLIB_000: 13;
v0,w0 are_adjacent by A2, CHORD:def 3;
hence f.v <> f.w by A1;
end;
assume A3: for e,v,w being object st e Joins v,w,G holds f.v <> f.w;
let v,w be Vertex of G;
assume v,w are_adjacent;
then consider e being object such that
A4: e Joins v,w,G by CHORD:def 3;
thus thesis by A3, A4;
end;
theorem Th11:
f is proper iff for e,v,w being object st e DJoins v,w,G holds f.v <> f.w
proof
hereby
assume A1: f is proper;
let e,v,w be object;
assume e DJoins v,w,G;
then e Joins v,w,G by GLIB_000: 16;
hence f.v <> f.w by A1, Th10;
end;
assume A2: for e,v,w being object st e DJoins v,w,G holds f.v <> f.w;
now
let e,v,w be object;
assume e Joins v,w,G;
then per cases by GLIB_000: 16;
suppose e DJoins v,w,G;
hence f.v <> f.w by A2;
end;
suppose e DJoins w,v,G;
hence f.v <> f.w by A2;
end;
end;
hence thesis by Th10;
end;
theorem Th12:
for f9 being one-to-one Function, f2 being VColoring of G
st f2 = f9*f & f is proper & rng f c= dom f9 holds f2 is proper
proof
let f9 be one-to-one Function, f2 be VColoring of G;
assume A1: f2 = f9*f & f is proper & rng f c= dom f9;
now
let e,v,w be object;
assume A2: e Joins v,w,G;
then v in the_Vertices_of G & w in the_Vertices_of G by GLIB_000: 13;
then A3: v in dom f & w in dom f by PARTFUN1:def 2;
then A4: f2.v = f9.(f.v) & f2.w = f9.(f.w) by A1, FUNCT_1: 13;
A5: f.v in rng f & f.w in rng f by A3, FUNCT_1: 3;
f.v <> f.w by A1, A2, Th10;
hence f2.v <> f2.w by A1, A4, A5, FUNCT_1:def 4;
end;
hence thesis by Th10;
end;
theorem
for f9 being one-to-one ManySortedSet of rng f
holds f is proper implies f9*f is proper
proof
let f9 be one-to-one ManySortedSet of rng f;
rng f c= dom f9 by PARTFUN1:def 2;
hence thesis by Th12;
end;
theorem Th14:
( ex f st f is proper) implies G is loopless
proof
given f such that
A1: f is proper;
now
given v,e being object such that
A2: e Joins v,v,G;
f.v = f.v;
hence contradiction by A1, A2, Th10;
end;
hence thesis by GLIB_000: 18;
end;
registration
let G be non loopless _Graph;
cluster -> non proper for VColoring of G;
coherence by Th14;
end;
registration
let G be loopless _Graph;
cluster one-to-one -> proper for VColoring of G;
coherence
proof
let f be VColoring of G;
assume A1: f is one-to-one;
now
let e,v,w be object;
assume A2: e Joins v,w,G;
then A3: v <> w by GLIB_000: 18;
v in the_Vertices_of G & w in the_Vertices_of G by A2, GLIB_000: 13;
then v in dom f & w in dom f by PARTFUN1:def 2;
hence f.v <> f.w by A1, A3, FUNCT_1:def 4;
end;
hence thesis by Th10;
end;
end;
registration
let G be loopless _Graph;
cluster one-to-one proper for VColoring of G;
existence
proof
take id the_Vertices_of G;
thus thesis;
end;
end;
theorem Th15:
for H being Subgraph of G, f9 being VColoring of H
st f9 = f | the_Vertices_of H & f is proper holds f9 is proper
proof
let H be Subgraph of G, f9 be VColoring of H;
assume A1: f9 = f | the_Vertices_of H & f is proper;
now
let e,v,w be object;
assume A2: e Joins v,w,H;
v is set & w is set by TARSKI: 1;
then A3: f.v <> f.w by A1, A2, Th10, GLIB_000: 72;
v in the_Vertices_of H & w in the_Vertices_of H by A2, GLIB_000: 13;
then v in dom f9 & w in dom f9 by PARTFUN1:def 2;
then f.v = f9.v & f.w = f9.w by A1, FUNCT_1: 47;
hence f9.v <> f9.w by A3;
end;
hence thesis by Th10;
end;
theorem Th16:
for f1 being VColoring of G1, f2 being VColoring of G2
st G1 == G2 & f1 = f2 & f1 is proper holds f2 is proper
proof
let f1 be VColoring of G1, f2 be VColoring of G2;
assume A1: G1 == G2 & f1 = f2 & f1 is proper;
now
let e,v,w be object;
assume e Joins v,w,G2;
then e Joins v,w,G1 by A1, GLIB_000: 88;
hence f2.v <> f2.w by A1, Th10;
end;
hence thesis by Th10;
end;
theorem Th17:
for f1 being VColoring of G1, f2 being VColoring of G2
for v being Vertex of G1, x being object
st G1 == G2 & f2 = f1 +* (v .--> x) & not x in rng f1 & f1 is proper
holds f2 is proper
proof
let f1 be VColoring of G1, f2 be VColoring of G2;
let v be Vertex of G1, x be object;
assume A1: G1 == G2 & f2 = f1 +* (v .--> x) & not x in rng f1 & f1 is proper;
now
let e,u,w be object;
assume e Joins u,w,G2;
then A2: e Joins u,w,G1 by A1, GLIB_000: 88;
u in the_Vertices_of G1 & w in the_Vertices_of G1 by A2, GLIB_000: 13;
then u in dom f1 & w in dom f1 by PARTFUN1:def 2;
then A3: f1.u in rng f1 & f1.w in rng f1 by FUNCT_1: 3;
per cases;
suppose u <> v & w <> v;
then f2.u = f1.u & f2.w = f1.w by A1, FUNCT_4: 83;
hence f2.u <> f2.w by A1, A2, Th10;
end;
suppose u = v & w <> v;
then f2.u = x & f2.w = f1.w by A1, FUNCT_4: 83, FUNCT_4: 113;
hence f2.u <> f2.w by A1, A3;
end;
suppose u <> v & w = v;
then f2.u = f1.u & f2.w = x by A1, FUNCT_4: 83, FUNCT_4: 113;
hence f2.u <> f2.w by A1, A3;
end;
suppose u = v & w = v;
then G1 is non loopless by A2, GLIB_000: 18;
hence f2.u <> f2.w by A1; :: by contradiction
end;
end;
hence thesis by Th10;
end;
Lm1:
for G2 being reverseEdgeDirections of G1, E
for f1 being VColoring of G1, f2 being VColoring of G2
st f1 = f2 & f1 is proper holds f2 is proper
proof
let G2 be reverseEdgeDirections of G1, E;
let f1 be VColoring of G1, f2 be VColoring of G2;
assume f1 = f2 & f1 is proper;
then for e,v,w being object st e Joins v,w,G2 holds f2.v <> f2.w
by Th10, GLIB_007: 9;
hence thesis by Th10;
end;
theorem Th18:
for G2 being reverseEdgeDirections of G1, E
for f1 being VColoring of G1, f2 being VColoring of G2
st f1 = f2 holds f1 is proper iff f2 is proper
proof
let G2 be reverseEdgeDirections of G1, E;
let f1 be VColoring of G1, f2 be VColoring of G2;
assume A1: f1 = f2;
hence f1 is proper implies f2 is proper by Lm1;
G1 is reverseEdgeDirections of G2, E by GLIB_007: 3;
hence thesis by A1, Lm1;
end;
theorem Th19:
for G1 being addVertices of G2, V
for f1 being VColoring of G1, f2 being VColoring of G2, h being Function
st dom h = V \ the_Vertices_of G2 & f1 = f2 +* h & f2 is proper
holds f1 is proper
proof
let G1 be addVertices of G2, V;
let f1 be VColoring of G1, f2 be VColoring of G2, h being Function;
assume A1: dom h = V \ the_Vertices_of G2 & f1 = f2 +* h & f2 is proper;
now
let e,v,w be object;
assume e Joins v,w,G1;
then A2: e Joins v,w,G2 by GLIB_006: 87;
v in the_Vertices_of G2 & w in the_Vertices_of G2 by A2, GLIB_000: 13;
then not v in dom h & not w in dom h by A1, XBOOLE_0:def 5;
then f1.v = f2.v & f1.w = f2.w by A1, FUNCT_4: 11;
hence f1.v <> f1.w by A1, A2, Th10;
end;
hence f1 is proper by Th10;
end;
theorem Th20:
for v,w being Vertex of G2, e being object, G1 being addEdge of G2,v,e,w
for f1 being VColoring of G1, f2 being VColoring of G2
st f1 = f2 & v,w are_adjacent & f2 is proper holds f1 is proper
proof
let v,w be Vertex of G2, e be object, G1 be addEdge of G2,v,e,w;
let f1 be VColoring of G1, f2 be VColoring of G2;
assume A1: f1 = f2 & v,w are_adjacent & f2 is proper;
per cases;
suppose A2: not e in the_Edges_of G2;
now
let e9,v9,w9 be object;
assume A3: e9 Joins v9,w9,G1;
then per cases by GLIB_006: 72;
suppose e9 Joins v9,w9,G2;
hence f1.v9 <> f1.w9 by A1, Th10;
end;
suppose not e9 in the_Edges_of G2;
then A4: (v9 = v & w9 = w) or(v9 = w & w9 = v) by A2, A3, GLIB_006: 107;
consider e1 being object such that
A5: e1 Joins v,w,G2 by A1, CHORD:def 3;
e1 Joins v9,w9,G2 by A4, A5, GLIB_000: 14;
hence f1.v9 <> f1.w9 by A1, Th10;
end;
end;
hence thesis by Th10;
end;
suppose e in the_Edges_of G2;
then G1 == G2 by GLIB_006:def 11;
hence thesis by A1, Th16;
end;
end;
theorem Th21:
for v being Vertex of G2, e,w being object, G1 being addEdge of G2,v,e,w
for f1 being VColoring of G1, f2 being VColoring of G2, x being object
st f1=f2+*(v.-->x) & v<>w & not x in rng f2 & f2 is proper holds f1 is proper
proof
let v being Vertex of G2, e,w be object, G1 be addEdge of G2,v,e,w;
let f1 be VColoring of G1, f2 be VColoring of G2, x be object;
assume A1: f1 = f2 +* (v.-->x) & v <> w & not x in rng f2 & f2 is proper;
per cases;
suppose A2: not e in the_Edges_of G2 & v in the_Vertices_of G2 &
w in the_Vertices_of G2;
set h = v .--> x;
now
let e9,v9,w9 be object;
assume A3: e9 Joins v9,w9,G1;
per cases;
suppose e9 in the_Edges_of G2;
then A4: e9 Joins v9,w9,G2 by A3, GLIB_006: 72;
v9 in the_Vertices_of G2 & w9 in the_Vertices_of G2 by A4, GLIB_000: 13;
then v9 in dom f2 & w9 in dom f2 by PARTFUN1:def 2;
then A5: f2.v9 in rng f2 & f2.w9 in rng f2 by FUNCT_1: 3;
per cases;
suppose v9 <> v & w9 <> v;
then f1.v9 = f2.v9 & f1.w9 = f2.w9 by A1, FUNCT_4: 83;
hence f1.v9 <> f1.w9 by A1, A4, Th10;
end;
suppose v9 = v & w9 <> v;
then f1.v9 = x & f1.w9 = f2.w9 by A1, FUNCT_4: 83, FUNCT_4: 113;
hence f1.v9 <> f1.w9 by A1, A5;
end;
suppose v9 <> v & w9 = v;
then f1.v9 = f2.v9 & f1.w9 = x by A1, FUNCT_4: 83, FUNCT_4: 113;
hence f1.v9 <> f1.w9 by A1, A5;
end;
suppose v9 = v & w9 = v;
then G2 is non loopless by A4, GLIB_000: 18;
hence f1.v9 <> f1.w9 by A1; :: by contradiction
end;
end;
suppose A6: not e9 in the_Edges_of G2;
w in dom f2 by A2, PARTFUN1:def 2;
then A7: f2.w in rng f2 by FUNCT_1: 3;
per cases by A2, A3, A6, GLIB_006: 107;
suppose A8: v9 = w & w9 = v;
then f1.v9 = f2.v9 & f1.w9 = x by A1, FUNCT_4: 83, FUNCT_4: 113;
hence f1.v9 <> f1.w9 by A1, A8, A7;
end;
suppose A9: v9 = v & w9 = w;
then f1.v9 = x & f1.w9 = f2.w9 by A1, FUNCT_4: 83, FUNCT_4: 113;
hence f1.v9 <> f1.w9 by A1, A9, A7;
end;
end;
end;
hence f1 is proper by Th10;
end;
suppose not(not e in the_Edges_of G2 & v in the_Vertices_of G2 &
w in the_Vertices_of G2);
then G1 == G2 by GLIB_006:def 11;
hence thesis by A1, Th17;
end;
end;
theorem Th22:
for v,e being object, w being Vertex of G2, G1 being addEdge of G2,v,e,w
for f1 being VColoring of G1, f2 being VColoring of G2, x being object
st f1=f2+*(w.-->x) & v<>w & not x in rng f2 & f2 is proper holds f1 is proper
proof
let v,e be object, w being Vertex of G2, G1 be addEdge of G2,v,e,w;
let f1 be VColoring of G1, f2 be VColoring of G2, x be object;
assume A1: f1 = f2 +* (w.-->x) & v <> w & not x in rng f2 & f2 is proper;
per cases;
suppose A2: not e in the_Edges_of G2;
set G3 = the reverseEdgeDirections of G1, {e};
A3: G3 is addEdge of G2,w,e,v by A2, GLIBPRE1: 65;
the_Vertices_of G1 = the_Vertices_of G3 by GLIB_007: 4;
then reconsider f3 = f1 as VColoring of G3;
f3 is proper by A1, A3, Th21;
hence thesis by Th18;
end;
suppose e in the_Edges_of G2;
then G1 == G2 by GLIB_006:def 11;
hence thesis by A1, Th17;
end;
end;
theorem Th23:
for v,e,w being object, G1 being addAdjVertex of G2,v,e,w
for f1 being VColoring of G1, f2 being VColoring of G2, x being object
st not v in the_Vertices_of G2 & f1 = f2 +* (v .--> x) & x <> f2.w
holds f2 is proper implies f1 is proper
proof
let v,e,w be object, G1 be addAdjVertex of G2,v,e,w;
let f1 be VColoring of G1, f2 be VColoring of G2, x be object;
assume that A1: not v in the_Vertices_of G2 & f1 = f2 +* (v .--> x) and
A2: x <> f2.w & f2 is proper;
dom(v .--> x) = dom{[v,x]} by FUNCT_4: 82
.= {v} by RELAT_1: 9;
then v in dom(v .--> x) by TARSKI:def 1;
then v in dom f2 \/ dom(v .--> x) by XBOOLE_0:def 3;
then v in dom f1 by A1, FUNCT_4:def 1;
then A3: v in the_Vertices_of G1;
A4: not e in the_Edges_of G2 & w in the_Vertices_of G2
proof
assume e in the_Edges_of G2 or not w in the_Vertices_of G2;
then G1 == G2 by A1, GLIB_006:def 12;
hence contradiction by A1, A3, GLIB_000:def 34;
end;
now
let e9,v9,w9 be object;
assume A5: e9 DJoins v9,w9,G1;
then per cases by GLIB_006: 71;
suppose A6: e9 DJoins v9,w9,G2;
then e9 Joins v9,w9,G2 by GLIB_000: 16;
then v9 <> v & w9 <> v by A1, GLIB_000: 13;
then f1.v9 = f2.v9 & f1.w9 = f2.w9 by A1, FUNCT_4: 83;
hence f1.v9 <> f1.w9 by A2, A6, Th11;
end;
suppose A7: not e9 in the_Edges_of G2;
A8: the_Edges_of G1 = the_Edges_of G2 \/ {e} by A1, A4, GLIB_006:def 12;
e9 in the_Edges_of G1 by A5, GLIB_000:def 14;
then e9 in {e} by A7, A8, XBOOLE_0:def 3;
then A9: e9 = e by TARSKI:def 1;
e DJoins v,w,G1 by A1, A4, GLIB_006: 132;
then A10: v = v9 & w = w9 by A5, A9, GLIB_000: 125;
f1.v = x & f1.w = f2.w by A1, A4, FUNCT_4: 83, FUNCT_4: 113;
hence f1.v9 <> f1.w9 by A2, A10;
end;
end;
hence thesis by Th11;
end;
theorem Th24:
for v,e,w being object, G1 being addAdjVertex of G2,v,e,w
for f1 being VColoring of G1, f2 being VColoring of G2, x being object
st not w in the_Vertices_of G2 & f1 = f2 +* (w .--> x) & x <> f2.v
holds f2 is proper implies f1 is proper
proof
let v,e,w be object, G1 be addAdjVertex of G2,v,e,w;
let f1 be VColoring of G1, f2 be VColoring of G2, x be object;
assume that A1: not w in the_Vertices_of G2 & f1 = f2 +* (w .--> x) and
A2: x <> f2.v & f2 is proper;
set G3 = the reverseEdgeDirections of G1, {e};
per cases;
suppose not e in the_Edges_of G2;
then A3: G3 is addAdjVertex of G2,w,e,v by GLIBPRE1: 66;
the_Vertices_of G1 = the_Vertices_of G3 by GLIB_007: 4;
then reconsider f3 = f1 as VColoring of G3;
f3 is proper by A1, A2, A3, Th23;
hence thesis by Th18;
end;
suppose e in the_Edges_of G2;
then G1 == G2 by GLIB_006:def 12;
then the_Vertices_of G2 = the_Vertices_of G1 by GLIB_000:def 34
.= dom f1 by PARTFUN1:def 2
.= dom f2 \/ dom(w .--> x) by A1, FUNCT_4:def 1
.= dom f2 \/ dom{[w,x]} by FUNCT_4: 82
.= dom f2 \/ {w} by RELAT_1: 9
.= the_Vertices_of G2 \/ {w} by PARTFUN1:def 2;
hence thesis by A1, ZFMISC_1: 39; :: by contradiction
end;
end;
theorem Th25:
for v,x being object, V being Subset of the_Vertices_of G2
for G1 being addAdjVertexAll of G2,v,V
for f1 being VColoring of G1, f2 being VColoring of G2
st not v in the_Vertices_of G2 & f1=f2+*(v.-->x) & not x in rng f2
holds f2 is proper implies f1 is proper
proof
let v,x be object, V be Subset of the_Vertices_of G2;
let G1 be addAdjVertexAll of G2,v,V;
let f1 be VColoring of G1, f2 be VColoring of G2;
set h = v .--> x;
assume A1: not v in the_Vertices_of G2 & f1=f2 +* h & not x in rng f2;
then A2: the_Vertices_of G1 = the_Vertices_of G2 \/ {v} by GLIB_007:def 4;
assume A3: f2 is proper;
now
let e,u,w be object;
assume A4: e Joins u,w,G1;
per cases;
suppose A5: u <> v & w <> v;
then A6: e Joins u,w,G2 by A1, A4, GLIB_007: 49;
f1.u = f2.u & f1.w = f2.w by A1, A5, FUNCT_4: 83;
hence f1.u <> f1.w by A3, A6, Th10;
end;
suppose A7: u = v;
then A8: w <> v by A1, A4, GLIB_007:def 4;
then A9: f1.u = x & f1.w = f2.w by A1, A7, FUNCT_4: 83, FUNCT_4: 113;
w in the_Vertices_of G1 by A4, GLIB_000: 13;
then w in the_Vertices_of G2 by A2, A8, ZFMISC_1: 136;
then w in dom f2 by PARTFUN1:def 2;
hence f1.u <> f1.w by A1, A9, FUNCT_1: 3;
end;
suppose A10: w = v;
then A11: u <> v by A1, A4, GLIB_007:def 4;
then A12: f1.w = x & f1.u = f2.u by A1, A10, FUNCT_4: 83, FUNCT_4: 113;
u in the_Vertices_of G1 by A4, GLIB_000: 13;
then u in the_Vertices_of G2 by A2, A11, ZFMISC_1: 136;
then u in dom f2 by PARTFUN1:def 2;
hence f1.u <> f1.w by A1, A12, FUNCT_1: 3;
end;
end;
hence thesis by Th10;
end;
theorem Th26:
for F being PGraphMapping of G1,G, f9 being VColoring of G1
st F is total & f9 = f*F_V & f is proper holds f9 is proper
proof
let F be PGraphMapping of G1, G, f9 be VColoring of G1;
assume A1: F is total & f9 = f*(F_V) & f is proper;
now
let e,v,w be object;
assume A2: e Joins v,w,G1;
then e in the_Edges_of G1 & v in the_Vertices_of G1 &
w in the_Vertices_of G1 by GLIB_000:def 13, GLIB_000: 13;
then A3: e in dom F_E & v in dom F_V & w in dom F_V by A1, GLIB_010:def 11;
then F_E.e Joins F_V.v,F_V.w,G by A2, GLIB_010: 4;
then f.(F_V.v) <> f.(F_V.w) by A1, Th10;
then (f*F_V).v <> f.(F_V.w) by A3, FUNCT_1: 13;
hence f9.v <> f9.w by A1, A3, FUNCT_1: 13;
end;
hence thesis by Th10;
end;
definition
let c, G;
attr G is c-vcolorable means
ex f being VColoring of G st f is proper & card rng f c= c;
end;
theorem Th27:
c1 c= c2 & G is c1-vcolorable implies G is c2-vcolorable by XBOOLE_1: 1;
:: might need Proof outside this article
theorem
(ex c st G is c-vcolorable) implies G is loopless;
registration
let c;
cluster c-vcolorable -> loopless for _Graph;
coherence;
cluster loopless c-vertex -> c-vcolorable for _Graph;
coherence
proof
let G be _Graph;
assume A1: G is loopless c-vertex;
reconsider f = id the_Vertices_of G as VColoring of G;
card rng f = G.order()
.= c by A1, GLIB_013:def 3;
hence thesis by A1;
end;
end;
registration
cluster -> non 0-vcolorable for _Graph;
coherence by XBOOLE_1: 3;
end;
theorem Th29:
G is loopless implies G is G.order()-vcolorable
proof
assume A1: G is loopless;
reconsider f = id the_Vertices_of G as VColoring of G;
card rng f = G.order();
hence G is G.order()-vcolorable by A1;
end;
theorem Th30:
G is edgeless iff G is 1-vcolorable
proof
hereby
set x = the object;
set f = the_Vertices_of G --> x;
reconsider f as VColoring of G;
assume G is edgeless;
then for e,v,w being object st e Joins v,w,G holds f.v<>f.w by GLIB_008: 50;
then A1: f is proper by Th10;
card rng f c= card {x} by CARD_1: 11, FUNCOP_1: 13;
then card rng f c= 1 by CARD_1: 30;
hence G is 1-vcolorable by A1;
end;
assume G is 1-vcolorable;
then consider f such that
A2: f is proper & card rng f c= 1;
0 in card rng f by ORDINAL1: 14;
then 1 c= card rng f by ZFMISC_1: 31, CARD_1: 49;
then card rng f = 1 by A2, XBOOLE_0:def 10
.= card {the object} by CARD_1: 30;
then consider x being object such that
A3: rng f = {x} by CARD_1: 29;
A4: f = dom f --> x by A3, FUNCOP_1: 9;
now
set e = the Element of the_Edges_of G;
set v = (the_Source_of G).e, w = (the_Target_of G).e;
assume the_Edges_of G <> {};
then A5: e Joins v,w,G by GLIB_000:def 13;
then v in the_Vertices_of G & w in the_Vertices_of G by GLIB_000: 13;
then v in dom f & w in dom f by PARTFUN1:def 2;
then f.v = x & f.w = x by A4, FUNCOP_1: 7;
hence contradiction by A2, A5, Th10;
end;
hence thesis;
end;
registration
let c be non zero Cardinal;
cluster c-vcolorable for _Graph;
existence
proof
take the edgeless _Graph;
1 c= c
proof
assume not 1 c= c;
then c in { 0} by CARD_1: 49, ORDINAL1: 16;
hence contradiction by TARSKI:def 1;
end;
hence thesis by Th27, Th30;
end;
end;
theorem Th31:
for H being Subgraph of G holds G is c-vcolorable implies H is c-vcolorable
proof
let H be Subgraph of G;
assume G is c-vcolorable;
then consider f being VColoring of G such that
A1: f is proper & card rng f c= c;
reconsider f9 = f | the_Vertices_of H as VColoring of H by Th3;
card rng f9 c= card rng f by RELAT_1: 70, CARD_1: 11;
then card rng f9 c= c by A1, XBOOLE_1: 1;
hence thesis by A1, Th15;
end;
registration
cluster edgeless -> 1-vcolorable for _Graph;
coherence by Th30;
cluster 1-vcolorable -> edgeless for _Graph;
coherence by Th30;
let c be non zero Cardinal;
let G be c-vcolorable _Graph;
cluster -> c-vcolorable for java.lang.StringIndexOutOfBoundsException: Range [65, 35) out of bounds for length 74
coherence by Th31;
end;
theorem Th32:
G1 == G2 & G1 is c-vcolorable implies G2 is c-vcolorable
proof
assume A1: G1 == G2 & G1 is c-vcolorable;
then consider f1 being VColoring of G1 such that
:f1is cardrng c=cjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
FINSEQ_4,,PBOOLE,ORDINAL3,WELLORD2, PARTFUN1,RELSET_1 java.lang.StringIndexOutOfBoundsException: Range [73, 72) out of bounds for length 73
thenGROUP_6GLIB_006 java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 71
f2VALUED_0 SGRAPH1 , java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 63
hencethesisby A2java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 4
Lm2:
for G2 being reverseEdgeDirections of G1, E
holdsG1is vcolorableG2 isc-
,E
G1isc-
thenconsiderjava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 50
:f1 isproper &rngf1 java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
the_Vertices_ofG1 =the_Vertices_of by :4;
reconsiderf2 = f1 asVColoringjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 12
PARTFUN1def2
hence
end;
let ,f letf9 beoff;
for G2 being reverseEdgeDirections of G1, E
holds G1 is c-vcolorable iff G2 is c-vcolorable
proof
let G2 be reverseEdgeDirections of G1, E;
thus G1 is c-vcolorable implies G2 is c-vcolorable by Lm2;
G1 is reverseEdgeDirections of G2, E by GLIB_007:3;
hence thesis by Lm2;
end;
registration
let c be non zero Cardinal;
let G1 be c-vcolorable _Graph;
let E;
cluster -> c-vcolorable for reverseEdgeDirections of G1, E;
coherence by Th33;
end;
Lm3:
for x being object, X being set, f being Function
st x in rng f holds rng(f +* (X --> x)) c= rng f
proof
let x be object, X be set, f be Function;
assume x in rng f;
then rng f \/ {x} = rng f by ZFMISC_1:40;
then A1: rng f \/ rng(X --> x) c= rng f by XBOOLE_1:9;
rng(f +* (X --> x)) c= rng f \/ rng(X --> x) by FUNCT_4:17;
hence rng(f +* (X --> x)) c= rng f by A1, XBOOLE_1:1;
end;
of being
,V
holds G1is c- iff is cvcolorable
proof
G1 be addVerticesofG2 java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
hereby
assume A1: G1 is c-vcolorable;
G2 is Subgraph of G1 by GLIB_006:57;
hence G2 is c-vcolorable by A1, Th31;
end;
assume G2 is c-vcolorable;
:: we choose a proper coloring and color the added vertices
:: in any color of those already taken
then consider f2 being VColoring of G2 such that
A2: f2 is proper & card rng f2 c= c;
set x = the Element of rng f2;
set h = (V \ the_Vertices_of G2) --> x, f1 = f2 +* h;
A3: dom h = V \ the_Vertices_of G2;
then reconsider f1 as VColoring of G1 by Th4;
A4: f1 is proper by A2, A3, Th19;
card rng f1 c= card rng f2 by Lm3, CARD_1:11;
hence thesis by A2, A4, XBOOLE_1:1;
end;
registration
let c be non zero Cardinal;
let G2 be c-vcolorable _Graph;
let V;
cluster -> c-vcolorable for addVertices of G2, V;
coherence by Th34;
end;
theorem
for v,w being Vertex of G2, e being object, G1 being addEdge of G2,v,e,w
st v,w are_adjacent holds G1 is c-vcolorable iff G2 is c-vcolorable
proof
let v,w be Vertex of G2, e be object, G1 be addEdge of G2,v,e,w;
assumeA1 v, ;
hereby
assume A2:assume ,wG1;
G2 is Subgraph of G1 byv &w A2, 13
henceG2is c- A2 ;
end;
assume G2 is c-vcolorable;
G2 such that
A3: f2 is proper & card rng f2 c= c;
the_Vertices_of G1 = the_Vertices_of G2 by GLIB_006:102;
then reconsider f1 = f2 as VColoring of G1;
f1 is proper by A1, A3, Th20;
hence thesis by A3;
end;
theorem Th36:
for v,e,w being object, G1 being addEdge of G2,v,e,w
st v <> w & G2 is c-vcolorable holds G1 is (c+`1)-vcolorable
proof
let v,e,w be object, G1 be addEdge of G2,v,e,w;
assume A1: v <> w & G2 is c-vcolorable;
per cases;
suppose A2: not e in the_Edges_of G2 & v in the_Vertices_of G2 &
w in the_Vertices_of G2;
consider f2 being VColoring of G2 such that
A3: f2 is proper & card rng f2 c= c by A1;
:: given a proper coloring of the subgraph, we
:: color one end of the new edge in a new color
set h = w .--> rng f2, f1 = f2 +* h;
reconsider f1 as VColoring of G2 by A2;
the_Vertices_of G1 = the_Vertices_of G2 by A2, GLIB_006:102;
then reconsider f1 as VColoring of G1;
not rng f2 in rng f2;
then A4: f1 is proper by A1, A2, A3, Th22;
rng f2 \/ rng h = rng f2 \/ rng{[w,rng f2]} by FUNCT_4:82
.= rng f2 \/ {rng f2} by RELAT_1:9;
then A5: card rng f1 c= card(rng f2 \/ {rng f2}) by FUNCT_4:17, CARD_1:11;
card(rng f2 \/ {rng f2}) c= card rng f2 +` card{rng f2} by CARD_2:34;
then card(rng f2 \/ {rng f2}) c= card rng f2 +` 1 by CARD_1:30;
then A6: card rng f1 c= card rng f2 +` 1 by A5, XBOOLE_1:1;
card rng f2 +` 1 c= c +` 1 by A3, CARD_2:83;
hence thesis by A4, A6, XBOOLE_1:1;
end;
suppose not(not e in the_Edges_of G2 & v in the_Vertices_of G2 &
w in the_Vertices_of G2);
then G1 == G2 by GLIB_006:def 11;
then G1 is c-vcolorable by A1, Th32;
hence thesis by Th27, CARD_2:94;
end;
end;
Lm4:
for G2 being non edgeless _Graph, v being Vertex of G2, e,w being object
for G1 being addAdjVertex of G2,v,e,w
st not e in the_Edges_of G2 & not w in the_Vertices_of G2
holds G2 is c-vcolorable implies G1 is c-vcolorable
proof
let G2 be non edgeless _Graph, v be Vertex of G2, e,w be object;
let G1 be addAdjVertex of G2,v,e,w;
assume A1: not e in the_Edges_of G2 & not w in the_Vertices_of G2;
assume G2 is c-vcolorable;
then consider f2 being VColoring of G2 such that
A2: f2 is proper & card rng f2 c= c;
set e0 = the Element of the_Edges_of G2;
set x = the Element of (f2{.};
(rng f2)\{f2.v} <> {}
proof
rf2\f2.}={;
then
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 57
then G2 is 0-vcolorable or G2 is 1-vcolorable by A2;
hence contradiction;
end;
java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
java.lang.StringIndexOutOfBoundsException: Range [8, 4) out of bounds for length 18
reconsider<,;
A4: f1 is suppose v9v& <> ;
rng f2 \/ rng h = rng f2 \/ rng{[w,x]} by FUNCT_4:82
.= rng f2 \/ {x} by RELAT_1:9
.= rng java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 12
then card hencef1. > w9 A1,A5;
,1
nd
theorem Th37:
for G2 suppose note9in java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 44
for G1 being addAdjVertex of G2,v,e,byA2,A3, 107
G1 vcolorableiffG2isc
proof
let G2 be non edgeless _Graph, v,e,w be object;
java.lang.StringIndexOutOfBoundsException: Range [8, 4) out of bounds for length 12
hereby
:G1 c-;
2 G1 by GLIB_006:57;
hence G2 is c-java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 10
end;
assume A2: G2 is c-vcolorable;
per cases;
suppose not e in the_Edges_of G2 & v in the_Vertices_of G2 &
not w in the_Vertices_of G2;
hence thesis by A2, Lm4;
end;
suppose A3: not e in the_Edges_of G2 & not v in the_Vertices_of G2 &
w in the_Vertices_of G2;
set G3 = the reverseEdgeDirections of G1, {e};
G3 is addAdjVertex of G2,w,e,v by A3, GLIBPRE1:66;
then G3 is c-vcolorable by A2, A3, Lm4;
hence thesis by Th33;
end;
suppose not((not e in the_Edges_of G2 & v in the_Vertices_of G2 &
not w in the_Vertices_of G2) or (not e in the_Edges_of G2 &
not v in the_Vertices_of G2 & w in the_Vertices_of G2));
then G1 == G2 by GLIB_006:def 12;
hence thesis by A2, Th32;
end;
end;
Lm5:
for G2 being edgeless _Graph, v being Vertex of G2, e,w being object
for G1 being addAdjVertex of G2,v,e,w
st not w in the_Vertices_of G2 holds G1 is 2-vcolorable
proof
let G2 be edgeless _Graph, v be Vertex of G2, e,w be object;
let G1 be addAdjVertex of G2,v,e,w;
assume A1: not w in the_Vertices_of G2;
A2: not e in the_Edges_of G2;
set x = the object, y = {x};
set h1 = the_Vertices_of G2 --> x, h2 = w .--> y, f = h1 +* h2;
dom f = dom h1 \/ dom h2 by FUNCT_4:def 1
.= the_Vertices_of G2 \/ dom{[w,y]} by FUNCT_4:82
.= the_Vertices_of G2 \/ {w} by RELAT_1:9
.= the_Vertices_of G1 by A1, A2, GLIB_006:def 12;
then reconsider f as VColoring of G1 by RELAT_1:def 18, PARTFUN1:def 2;
now
let e9,v9,w9 be object;
assume A3: e9 DJoins v9,w9,G1;
the_Edges_of G1 = the_Edges_of G2 \/ {e} by A1, GLIB_006:def 12
.= {e};
then e9 in {e} by A3, GLIB_000:def 14;
then A4: e9 = e by TARSKI:def 1;
e DJoins v,w,G1 by A1, A2, GLIB_006:131;
then A5: v = v9 & w = w9 by A3, A4, GLIB_000:125;
v <> w by A1;
then f.v = h1.v & f.w = y by FUNCT_4:83, FUNCT_4:113;
then f.v in f.w;
hence f.v9 <> f.w9 by A5;
end;
then A6: f is proper by Th11;
rng h1 \/ rng h2 = {x} \/ rng h2 by FUNCOP_1:8
.= {x} \/ rng{[w,y]} by FUNCT_4:82
.= {x} \/ {y} by RELAT_1:9
.= {x,y} by ENUMSET1:1;
then A7: card rng f c= card {x,y} by FUNCT_4:17, CARD_1:11;
x in y by TARSKI:def 1;
then x <> y by ORDINAL1:5;
then card rng f c= 2 by A7, CARD_2:57;
hence thesis by A6;
end;
theorem Th38:
for G2 being edgeless _Graph, v,e,w being object
for G1 being addAdjVertex of G2,v,e,w holds G1 is 2-vcolorable
proof
let G2 be edgeless _Graph, v,e,w be object;
let G1 be addAdjVertex of G2,v,e,w;
per cases;
suppose not e in the_Edges_of G2 & v in the_Vertices_of G2 &
not w in the_Vertices_of G2;
hence thesis by Lm5;
end;
suppose A1: not e in the_Edges_of G2 & not v in the_Vertices_of G2 &
w in the_Vertices_of G2;
set G3 = the reverseEdgeDirections of G1, {e};
G3 is addAdjVertex of G2,w,e,v by A1, GLIBPRE1:66;
then G3 is 2-vcolorable by A1, Lm5;
hence thesis by Th33;
end;
suppose not((not e in the_Edges_of G2 & v in the_Vertices_of G2 &
not w in the_Vertices_of G2) or (not e in the_Edges_of G2 &
not v in the_Vertices_of G2 & w in the_Vertices_of G2));
then G1 == G2 & G2 is 1-vcolorable by GLIB_006:def 12;
then G1 is 1-vcolorable by Th32;
hence thesis by Th27, FIELD_5:3;
end;
end;
theorem Th39:
for v being object, G1 being addAdjVertexAll of G2,v,V
st G2 is c-vcolorable holds G1 is (c+`1)-vcolorable
proof
let v be object, G1 be addAdjVertexAll of G2,v,V;
assume A1: G2 is c-vcolorable;
per cases;
suppose A2: not v in the_Vertices_of G2 & V c= the_Vertices_of G2;
consider f2 being VColoring of G2 such that
A3: f2 is proper & card rng f2 c= c by A1;
set h = v .--> rng f2, f1 = f2 +* h;
reconsider f1 as VColoring of G1 by A2, Th7;
not rng f2 in rng f2;
then A4: f1 is proper by A2, A3, Th25;
rng f2 \/ rng h = rng f2 \/ rng{[v,rng f2]} by FUNCT_4:82
.= rng f2 \/ {rng f2} by RELAT_1:9;
then A5: card rng f1 c= card(rng f2 \/ {rng f2}) by FUNCT_4:17, CARD_1:11;
card(rng f2 \/ {rng f2}) c= card rng f2 +` card{rng f2} by CARD_2:34;
then card(rng f2 \/ {rng f2}) c= card rng f2 +` 1 by CARD_1:30;
then A6: card rng f1 c= card rng f2 +` 1 by A5, XBOOLE_1:1;
card rng f2 +` 1 c= c +` 1 by A3, CARD_2:84;
hence thesis by A4, A6, XBOOLE_1:1;
end;
suppose not(not v in the_Vertices_of G2 & V c= the_Vertices_of G2);
then G1 == G2 by GLIB_007:def 4;
then G1 is c-vcolorable by A1, Th32;
hence thesis by Th27, CARD_2:94;
end;
end;
theorem Th40:
for G2 being removeParallelEdges of G1
holds G1 is c-vcolorable iff G2 is c-vcolorable
proof
let G2 be removeParallelEdges of G1;
thus G1 is c-vcolorable implies G2 is c-vcolorable by Th31;
assume G2 is c-vcolorable;
then consider f2 being VColoring of G2 such that
A1: f2 is proper & card rng f2 c= c;
the_Vertices_of G1 = the_Vertices_of G2 by GLIB_000:def 33;
then reconsider f1 = f2 as VColoring of G1;
now
let v,w be Vertex of G1;
reconsider v9=v, w9=w as Vertex of G2 by GLIB_000:def 33;
assume v,w are_adjacent;
then v9,w9 are_adjacent by GLIBPRE1:75;
hence f1.v <> f1.w by A1;
end;
then f1 is proper;
hence thesis by A1;
end;
registration
let c be non zero Cardinal;
let G1 be c-vcolorable _Graph;
cluster -> c-vcolorable for removeParallelEdges of G1;
coherence;
end;
theorem Th41:
for G2 being removeDParallelEdges of G1
holds G1 is c-vcolorable iff G2 is c-vcolorable
proof
let G2 be removeDParallelEdges of G1;
thus G1 is c-vcolorable implies G2 is c-vcolorable by Th31;
assume A1: G2 is c-vcolorable;
set G3 = the removeParallelEdges of G2;
G3 is c-vcolorable & G3 is removeParallelEdges of G1
by A1, Th31, GLIB_009:95;
hence thesis by Th40;
end;
registration
let c be non zero Cardinal;
let G1 be c-vcolorable _Graph;
cluster -> c-vcolorable for removeDParallelEdges of G1;
coherence;
end;
theorem Th42:
for F being PGraphMapping of G1, G2
st F is weak_SG-embedding & G2 is c-vcolorable holds G1 is c-vcolorable
proof
let F be PGraphMapping of G1, G2;
assume A1: F is weak_SG-embedding & G2 is c-vcolorable;
then consider f2 being VColoring of G2 such that
A2: f2 is proper & card rng f2 c= c;
reconsider f1 = f2*F_V as VColoring of G1 by A1, Th9;
card rng f1 c= card rng f2 by RELAT_1:26, CARD_1:11;
then card rng f1 c= c by A2, XBOOLE_1:1;
hence thesis by A1, A2, Th26;
end;
theorem Th43:
for F being PGraphMapping of G1, G2
st F is isomorphism holds G1 is c-vcolorable iff G2 is c-vcolorable
proof
let F be PGraphMapping of G1, G2;
assume A1: F is isomorphism;
then reconsider F0 = F as one-to-one PGraphMapping of G1, G2;
F0" is isomorphism by A1, GLIB_010:75;
hence G1 is c-vcolorable implies G2 is c-vcolorable by Th42;
thus G2 is c-vcolorable implies G1 is c-vcolorable by A1, Th42;
end;
registration
let c be non zero Cardinal;
let G be c-vcolorable _Graph;
cluster G- -> c-for _raph
coherence
proof
let H be _Graph;
assume H is G-isomorphic;
then consider F being PGraphMapping of G, H such that
A1: F is isomorphism by GLIB_010:def 23;
thus thesis by A1, Th43;
end;
end;
definition
let G;
attr G is finite-vcolorable means :: or finitely-vcolorable
:Def3:
ex n st G is n-vcolorable;
end;
registration
st f1=f2*(w.->) &<>w & x in f2&f2is properf1 proper
cluster vertex-finite loopless -> finite-vcolorable for _Graph;
coherence
proof
G _java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
:G is vertex- loopless;
then G is G.order()-vcolorable by Th29;
thesis Th18
;
>finite- Graph;
coherence ;
let n;
n-java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 55
coherence;
end;
registration
cluster finite-vcolorable for _Graph;
existence
proof
take the edgeless _Graph;
thus thesis;
end;
cluster non finite-vcolorable for _Graph;
existence
proof
take the non loopless _Graph;
thus thesis;
end;
end;
registration
let G be finite-vcolorable _Graph;
cluster -> finite-vcolorable for Subgraph of G;
coherence
proof
let H be Subgraph of G;
consider n such that
A1: G is n-vcolorable by Def3;
H is n-vcolorable by A1, Th31;
hence thesis;
end;
end;
registration
let G be non finite-vcolorable _Graph;
cluster -> non finite-vcolorable for Supergraph of G;
coherence
proof
let H be Supergraph of G;
G is Subgraph of H by GLIB_006:57;
hence thesis;
end;
end;
theorem
G1 == G2 & G1 is finite-vcolorable implies G2 is finite-vcolorable
proof
assume A1: G1 == G2 & G1 is finite-vcolorable;
then consider n such that
A2: G1 is n-vcolorable;
G2 is n-vcolorable by A1, A2, Th32;
hence thesis;
end;
Lm6:
for G2 being reverseEdgeDirections of G1, E
st G1 is finite-vcolorable holds G2 is finite-vcolorable
proof
let G2 be reverseEdgeDirections of G1, E;
assume G1 is finite-vcolorable;
then consider n such that
A1: G1 is n-vcolorable;
G2 is n-vcolorable by A1, Lm2;
hence thesis;
end;
theorem Th45:
for G2 being reverseEdgeDirections of G1, E
holds G1 is finite-vcolorable iff G2 is finite-vcolorable
proof
let G2 be reverseEdgeDirections of G1, E;
thus G1 is finite-vcolorable implies G2 is finite-vcolorable by Lm6;
G1 is reverseEdgeDirections of G2, E by GLIB_007:3;
hence thesis by Lm6;
end;
registration
let G1 be finite-vcolorable _Graph; let E;
cluster -> finite-vcolorable for reverseEdgeDirections of G1, E;
coherence by Th45;
end;
registration
let G1 be non finite-vcolorable _Graph; let E;
cluster -> non finite-vcolorable for reverseEdgeDirections of G1, E;
coherence by Th45;
end;
theorem Th46:
for G1 being addVertices java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 27
holdsset e = the Element of the_Edges_of G;
proof
let G1 be addVertices of G2, V;
thus G1 is finite-vcolorable implies G2 is finite-vcolorable;
assume G2 is finite-vcolorable;
then consider n such that
A1: G2 is n-vcolorable;
G1 is n-vcolorable by A1, Th34;
hence thesis;
end;
registration
let G2 be finite-vcolorable _Graph; let V;
cluster -> finite-vcolorable for addVertices of G2, V;
coherence by Th46;
end;
theorem
for v,e,w being object, G1 being addEdge of G2,v,e,w st v <> w
holds G1 is finite-vcolorable iff G2 is finite-vcolorable
proof
let v,e,w be object, G1 be addEdge of G2,v,e,w;
assume A1: v <> w;
thus G1 is finite-vcolorable implies G2 is finite-vcolorable;
assume G2 is finite-vcolorable;
then consider n such that
A2: G2 is n-vcolorable;
G1 is (n+`1)-vcolorable by A1, A2, Th36;
hence thesis;
end;
theorem Th48:
for v,e,w being object, G1 being addAdjVertex of G2,v,e,w
holds G1 is finite-vcolorable iff G2 is finite-vcolorable
proof
let v,e,w be object, G1 be addAdjVertex of G2,v,e,w;
thus G1 is finite-vcolorable implies G2 is finite-vcolorable;
assume G2 is finite-vcolorable;
then consider nn such that
A1: G2 is n-vcolorable;
per cases;
suppose G2 is non edgeless;
then G1 is n-vcolorable by A1, Th37;
hence thesis;
end;
suppose G2 is edgeless;
then G1 is 2-vcolorable by Th38;
hence thesis;
end;
end;
registration
let G2 be finite-vcolorable _Graph, v,e,w be object;
cluster -> finite-vcolorable for addAdjVertex of G2,v,e,w;
coherence by Th48;
end;
theorem Th49:
for v being object, G1 being addAdjVertexAll of G2,v,V
holds G1 is finite-vcolorable iff G2 is finite-vcolorable
proof
c_
thus G1 is finite-proof
assume G2 is finite-vcolorable;
then consider n suchassume not 1 c= c;
A1: G2 is n-vcolorable;
G1 is (n+`1)-vcolorable by A1, Th39;
hence thesis;
end;
registration
letforjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
cluster -> finite-vcolorable for addAdjVertexAll of java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 27
coherence by Th49;
end;
theorem Th50:
for G2 being removeParallelEdges of G1
holds G1 is finite-vcolorable iff G2 java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 46
proof
letG2 java.lang.StringIndexOutOfBoundsException: Range [34, 31) out of bounds for length 38
thus G1 is finite-vcolorable implies G2 is finite-vcolorable;
assume G2 is finite- G1 = &G1 c- impliesG2 c-colorable
then consider n such that
A1: G2 is n-vcolorable;
G1 is n-vcolorable by A1, Th40;
hence thesis;
end;
registration
let G1 be non finite-vcolorable _Graph;
-> non ofG1
coherence by Th50;
end;
Th51
for java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 41
holds assume G1isc-colorable;
proof
let java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 56
thus G1 is finite-vcolorable implies java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 21
assume G2 is finite-vcolorable for beingreverseEdgeDirectionsofG1 java.lang.StringIndexOutOfBoundsException: Range [45, 46) out of bounds for length 45
then considerletG2 reverseEdgeDirections G1,E
A1 -
G1 is is reverseEdgeDirections of G2, E by GLIB_007:3;
hence thesis;
end;
registration
let G1 be non finite-vcolorable _Graph;
cluster -> non finite-vcolorable for removeDParallelEdges of G1;
coherence by Th51;
end;
theorem Th52:
for F being PGraphMapping of G1,G2
st F is weak_SG-embedding & G2 is finite-vcolorable
holds G1 is finite-vcolorable
proof
let F be PGraphMapping of G1, G2;
assume A1: F is weak_SG-embedding & G2 is finite-vcolorable;
then consider n such that
A2: G2 is n-vcolorable;
G1 is n-vcolorable by A1, A2, Th42;
hence thesis;
end;
theorem Th53:
for F being PGraphMapping of G1, G2 st F is isomorphism
holds G1 is finite-vcolorable iff G2 is finite-vcolorable
proof
let F be PGraphMapping of G1, G2;
assume A1: F is isomorphism;
then reconsider F0 = F as one-to-one PGraphMapping of G1, G2;
F0" is isomorphism by A1, GLIB_010:75;
hence G1 is finite-vcolorable implies G2 is finite-vcolorable by Th52;
thus G2 is finite-vcolorable implies G1 is finite-vcolorable by A1, Th52;
end;
registration
let G be finite-vcolorable _Graph;
cluster G-isomorphic -> finite-vcolorable for _Graph;
coherence
proofjava.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 49
assume H is G-
then consider F being PGraphMapping ofhence ,proper by Th11;
A1: F is isomorphism by GLIB_010:def 23;
thus thesis by A1, Th53;
end;
end;
deffunc VColSet(_Graph) =
{ c where c is cardinal Subset of $1.order() : $1 is c-vcolorable };
definition
let G be _Graph;
func G.vChromaticNum() -> Cardinal equals :: chi
meet { c where c is cardinal Subset of G.order() : G is c-vcolorable };
coherence
proof
now
let a be set;
assume a in VColSet(G);
then consider c being cardinal Subset of G.order() such that
A1: a = c & G is c-vcolorable;
thus a is cardinal number by A1;
end;
hence thesis by GLIBPRE0:15;
end;
end;
theorem Th54:
G is loopless implies G is G.vChromaticNum()-vcolorable
proof
assume G is loopless;
then G is G.order()-vcolorable & G.order() c= G.order() by Th29;
then A1: G.order() in VColSet(G);
now
let a be set;
assume a in VColSet(G);
then consider c being cardinal Subset of G.order() such that
A2: a = c & G is c-vcolorable;
thus a is cardinal number by A2;
end;
then consider c being Cardinal such that
A3: c in VColSet(G) & c = G.vChromaticNum() by A1, GLIBPRE0:14;
consider c9 being cardinal Subset of G.order() such that
A4: c = c9 & G is c9-vcolorable by A3;
thus thesis by A3, A4;
end;
theorem Th55:
G is non loopless iff G.vChromaticNum() = 0
proof
hereby
assume A1: G is non loopless;
now
given x being object such that
A2: x in VColSet(G);
consider c being cardinal Subset of G.order() such that
A3: x = c & G is c-vcolorable by A2;
thus contradiction by A1, A3;
end;
hence G.vChromaticNum() = 0 by XBOOLE_0:def 1, SETFAM_1:1;
end;
assume A4: G.vChromaticNum() = 0 & G is loopless;
per cases;
suppose A5: VColSet(G) = {};
G is G.order()-vcolorable & G.order() c= G.order() by A4, Th29;
then G.order() in VColSet(G);
hence contradiction by A5;
end;
suppose A6: VColSet(G) <> {};
now
let a be set;
assume a in VColSet(G);
then consider c being cardinal Subset of G.order() such that
A7: a = c & G is c-vcolorable;
thus a is cardinal number by A7;
end;
then consider c being Cardinal such that
A8: c in VColSet(G) & c = G.vChromaticNum() by A6, GLIBPRE0:14;
consider c9 being cardinal Subset of G.order() such that
A9: c = c9 & G is c9-vcolorable by A8;
thus contradiction by A4, A8, A9;
end;
end;
registration
let G be loopless _Graph;
cluster G.vChromaticNum() -> non zero;
coherence by Th55;
end;
registration
let G be non loopless _Graph;
cluster G.vChromaticNum() -> zero;
coherence by Th55;
end;
theorem Th56:
G.vChromaticNum() c= G.order()
proof
per cases;
suppose G is non loopless;
then G.vChromaticNum() = 0;
hence thesis by XBOOLE_1:2;
end;
suppose G is loopless;
then G is G.order()-vcolorable & G.order() c= G.order() by Th29;
then G.order() in VColSet(G);
hence G.vChromaticNum() c= G.order() by SETFAM_1:3;
end;
end;
theorem Th57:
G is c-vcolorable implies G.vChromaticNum() c= c
proof
assume A1: G is c-vcolorable;
per cases;
suppose not G.order() in c;
then c c= G.order() by ORDINAL1:16;
then c in VColSet(G) by A1;
hence thesis by SETFAM_1:3;
end;
suppose G.order() in c;
then G.vChromaticNum() in c by Th56, ORDINAL1:12;
hence thesis by ORDINAL1:def 2;
end;
end;
=the G2;
(G is c-vcolorable & for d being Cardinal st G is d-java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 29
implies G. G1 be c-vcolorableGraph
proof
assume G is c-vcolorable;
then A1: G.vChromaticNum() c= c & G is loopless by Th57;
assume A2: for d being Cardinal st G is F embedding -java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 73
( .)byA1,Th29;
then A3: G.order() in VColSet(G);
now
let x be set;
assume x in VColSet(G);
then consider d being cardinal Subset of G.order() such that
A4hence thesis by A1, A2,Th26
thuscc=x byA2,
then c c= G.vChromaticNum() by A3, SETFAM_1:5;
hence thesis by A1, XBOOLE_0:def 10;
end;
registration
let G be finite-vcolorable _then reconsider F0 = F as one-to-PGraphMapping of ,G2;
cluster G.vChromaticNum() -> natural;
coherence
proof
consider n such that
A1: G is n-vcolorable by Def3;
G.vChromaticNum() c= n by A1, Th57;
hence thesis;
end;
end;
definition
let G be finite-vcolorable _Graph;
redefine func G.vChromaticNum() -> Nat;
coherence;
end;
theorem Th59:
for G being loopless _Graph holds 1 c= G.vChromaticNum()
proof
let G be loopless _Graph;
assume not 1 c= G.vChromaticNum();
then G.vChromaticNum() in 1 by ORDINAL1:16;
hence contradiction by CARD_1:49, TARSKI:def 1;
end;
theorem Th60:
G is edgeless iff G.vChromaticNum() = 1
proof
hereby
assume A1: G is edgeless;
then A2: G.vChromaticNum() c= 1 by Th57;
1 c= G.vChromaticNum() by A1, Th59;
hence G.vChromaticNum() = 1 by A2, XBOOLE_0:def 10;
end;
assume A3: G.vChromaticNum() = 1;
then G is loopless;
then G is 1-vcolorable by A3, Th54;
hence G is edgeless;
end;
theorem
for G being loopless non edgeless _Graph holds 2 c= G.vChromaticNum()
proof
let G be loopless non edgeless _Graph;
assume not 2 c= G.vChromaticNum();
then G.vChromaticNum() in 2 by ORDINAL1:16;
then G.vChromaticNum() = 1 by CARD_1:50, TARSKI:def 2;
hence contradiction by Th60;
end;
theorem
for G being loopless _Graph
holds G is complete implies G.vChromaticNum() = G.order()
proof
let G be loopless _Graph;
G is G.order()-vcolorable & G.order() c= G.order() by Th29;
then A1: G.order() in VColSet(G);
assume A2: G is complete;
A3: G.vChromaticNum() c= G.order() by Th56;
now
let x be set;
assume x in VColSet(G);
then consider c being cardinal Subset of G.order() such that
A4: x = c & G is c-vcolorable;
consider f being VColoring of G such that
A5: f is proper & card rng f c= c by A4;
thus G.order() c= x
proof
assume not G.order() c= x;
then c in G.order() by A4, ORDINAL1:16;
then card rng f in G.order() by A5, ORDINAL1:12;
then card rng f in card dom f by PARTFUN1:def 2;
then card rng f <> card dom f;
:: use the pigeon hole principle to find two vertices in the same color
then f is non one-to-one by CARD_1:70;
then consider v,w being object such that
A6: v in dom f & w in dom f & f.v = f.w & v <> w by FUNCT_1:def 4;
reconsider v,w as Vertex of G by A6;
v,w are_adjacent by A2, A6, CHORD:def 6;
hence contradiction by A5, A6;
end;
end;
then G.order() c= G.vChromaticNum() by A1, SETFAM_1:5;
hence thesis by A3, XBOOLE_0:def 10;
end;
theorem Th63:
for G being loopless _Graph, H being Subgraph of G
holds H.vChromaticNum() c= G.vChromaticNum()
proof
let G be loopless _Graph, H be Subgraph of G;
G is G.vChromaticNum()-vcolorable by Th54;
hence thesis by Th57;
end;
theorem
G1 == G2 implies G1.vChromaticNum() = G2.vChromaticNum()
proof
assume A1: G1 == G2;
now
let x be object;
hereby
assume x in VColSet(G1);
then consider c being cardinal Subset of G1.order() such that
A2: x = c & G1 is c-vcolorable;
G1.order() = G2.order() & G2 is c-vcolorable
by A1, A2, Th32, GLIB_000:90;
hence x in VColSet(G2) by A2;
end;
assume x in VColSet(G2);
then consider c being cardinal Subset of G2.order() such that
x= c&G2 is -
G1.order() = G2.order() & G1 is c-vcolorable by A1, A3, java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 6
hence x in VColSet(G1) by A3;
end;
hence thesis by TARSKI:2;
end;
theorem
for G2 being reverseEdgeDirections of G1, E
holds G1.vChromaticNum() = G2.vChromaticNum()
proof
let G2 be reverseEdgeDirections of G1, E;
the java.lang.StringIndexOutOfBoundsException: Range [19, 17) out of bounds for length 64
hereby
assume x in VColSet(G1);
then consider c being cardinal Subset of G1.order() such that
x c &G1 cvcolorable;
G1.orderjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
hence x in VColSet(G2) by A1;
end;
assume x in VColSet(G2);
then consider c being cardinal Subset of G2.order() such that
A2:x=c &G2 func G.vChromaticNum ;
G1.order() = G2.order() & G1 is c-vcolorable by A2, Th33,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
byA2;
end;
hence thesis by TARSKI:2;
end;
theorem
for G1 being addVertices of G2, V
holds G1.vChromaticNum() = G2.vChromaticNum()
proof
let G1 be addVertices of G2, V;
per cases;
suppose G2 is non loopless;
then G2.vChromaticNum() = 0 & G1.vChromaticNum() = 0;
hence thesis;
end;
suppose A1: G2 is loopless;
now
G1 is G1.vChromaticNum()-vcolorable by A1, Th54;
hence G2 is G1.vChromaticNum()-vcolorable by Th34;
let c;
assume G2 is c-vcolorable;
then G1 is c-vcolorable by Th34;
hence G1.vChromaticNum() c= c by Th57;
end;
hence thesis by Th58;
end;
end;
theorem
for G2 being non edgeless _Graph, v,e,w being object
for G1 being addAdjVertex of G2,v,e,w
holds G1.vChromaticNum() = G2.vChromaticNum()
proof
let G2 be non edgeless _Graph, v,e,w be object;
let G1 be addAdjVertex of G2,v,e,w;
per cases;
suppose G2 is non loopless;
then G2.vChromaticNum() = 0 & G1.vChromaticNum() = 0;
hence thesis;
end;
suppose A1: G2 is loopless;
now
G1 is G1.vChromaticNum()-vcolorable by A1, Th54;
hence G2 is G1.vChromaticNum()-vcolorable by Th37;
let c;
assume G2 is c-vcolorable;
then G1 is c-vcolorable by Th37;
hence G1.vChromaticNum() c= c by Th57;
end;
hence thesis by Th58;
end;
end;
theorem
for G2 being edgeless _Graph, v being Vertex of G2, e,w being object
for G1 being addAdjVertex of G2,v,e,w
st not w in the_Vertices_of G2 holds G1.vChromaticNum() = 2
proof
let G2 be edgeless _Graph, v be Vertex of G2, e,w be object;
let G1 be addAdjVertex of G2,v,e,w;
assume A1: not w in the_Vertices_of G2;
now
thus G1 is 2-vcolorable by Th38;
let c;
assume A2: G1 is c-vcolorable;
assume not 2 c= c;
then c in {0,1} by ORDINAL1:16, CARD_1:50;
then per cases by TARSKI:def 2;
suppose c = 0;
hence contradiction by A2;
end;
suppose A3: c = 1;
not e in the_Edges_of G2;
then e DJoins v,w,G1 by A1, GLIB_006:131;
then e in the_Edges_of G1 by GLIB_000:def 14;
hence contradiction by A2, A3;
end;
end;
hence thesis by Th58;
end;
theorem
for G2 being edgeless _Graph, v,e being object, w being Vertex of G2
for G1 being addAdjVertex of G2,v,e,w
st not v in the_Vertices_of G2 holds G1.vChromaticNum() = 2
proof
let G2 be edgeless _Graph, v,e be object, w be Vertex of G2;
let G1 be addAdjVertex of G2,v,e,w;
assume A1: not v in the_Vertices_of G2;
now
thus G1 is 2-vcolorable by Th38;
let c;
assume A2: G1 is c-vcolorable;
assume not 2 c= c;
then c in {0,1} by ORDINAL1:16, CARD_1:50;
then per cases by TARSKI:def 2;
suppose c = 0;
hence contradiction by A2;
end;
suppose A3: c = 1;
not e in the_Edges_of G2;
then e DJoins v,w,G1 by A1, GLIB_006:132;
java.lang.StringIndexOutOfBoundsException: Range [5, 10) out of bounds for length 5
hence contradiction by A2, A3;
end;
end;
hence thesis by Th58;
end;
theorem Th70:
for v being object, G1 being addAdjVertexAll of G2,v,V
holds G1.vChromaticNum() c= G2.vChromaticNum() +` 1
proof
let v be object, G1 be addAdjVertexAll of G2,v,V;
per cases;
suppose G2 is non loopless;
then G1.vChromaticNum() = 0;
hence thesis by XBOOLE_1:2;
end;
let x beobject;
G1 is (2.vChromaticNum(+`1)-vcolorable byTh54,Th39;
henceassume x in VColSet(G1);
end;
end;
theorem
for G2 being loopless _Graph, v being object
for G1 being addAdjVertexAll of G2,v st not v in the_Vertices_of G2
by A1,A2,Th32, GLIB_000:90;
proof
let G2 be loopless _Graph, v be object;
let G1 addAdjVertexAllof G2,v;
assume A1: not v in the_Vertices_of G2;
A2: G1.vChromaticNum() c= G2.vChromaticNum() +` 1 by Th70;
A3: G2 is Subgraph of G1 by GLIB_006:57;
= G1.)by Th63
per cases;
suppose G2.vChromaticNum() is finite;
thenreconsider C2 = G2.vChromaticNum() as Nat;
A5: G1.vChromaticNum() c= C2 +` 1 by A2;
then reconsider C1 = G1.vChromaticNum() as Nat;
A6: C1 <= C2 + 1 by A5, FIELD_5:3;
now
assume C1 <> C2 + 1;
:: if C2+1 colors are not the minimum, C2 colors are
then C1 < C2 + 1 by A6, XXREAL_0:1;
then A7: C1 <= C2 by NAT_1:13;
C2 <= C1 by A4, FIELD_5:3;
then C1 = C2 by A7, XXREAL_0:1;
then G1 is C2-vcolorable by Th54;
:: show that for C2 colors and a coloring of G1
:: thenconsider being .order( such that
then consider f1 being VColoring of G1 such that
A8: f1is proper & card rng f1 c= C2;
reconsider R1 = rng f1 as finite set by A8;
reconsider f2 = f1 | the_Vertices_of G2 as proper VColoring of G2
by A3, A8, Th3, Th15;
java.lang.StringIndexOutOfBoundsException: Range [55, 16) out of bounds for length 59
c-;
then C2 c= card R2 by Th57;
then A9: card java.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 0
c=cardR1by CARD_1:1;
then A10: R1 = R2 by A9, XBOOLE_0:def 10, CARD_2:102;
:: conclude that there is always a vertex adjacent to v in G1
:: with the same let beaddVertices of G2,V;
reconsider v as Vertex of G1 by A1, GLIB_007:50;
v in the_Vertices_of G1;
then then G2.vChromaticNum( =0 & G1.ChromaticNum() = 0;
then f1.v in R2 by A10hence thesis;
then consider u being object such that
A11: u in dom f2 & f2.u = f1.v by FUNCT_1:defA1 java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
A11, :7;
A13: u in the_Vertices_of G2 by A11;
then reconsider u as then G1 is c-vcolorable by Th34;
u in v.allNeighbors() by A1, A13, GLIBPRE0:55;
hence contradiction by A8, A12, GLIBPRE1:41;
end;
then C1 = C2 +` 1;
hence thesis;
end;
suppose A14: G2.vChromaticNum() is infinite;
then A15: omega c= G2.vChromaticNum() by ORDINAL1:16, CARD_1:61 holdsG1.() = .()
1 in omega;
G2.()=G2.vChromaticNum( +` 1 by A14, A15, CARD_2:76;
hence thesis by A2, A4, XBOOLE_0:def 10;
end;
end;
theorem
for G2 beingend;
holds G1.vChromaticNum() = G2.vChromaticNum()
perletc;
G1 non loopless
then G1.vChromaticNum() = 0 & G2.then -vcolorableby Th37
hence thesis;
end;
suppose G1 is loopless;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
holds G1.vChromaticNum() c= c by for G1 being ofG2v,,java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
hence thesis by Th58;
end;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
theorem
for G2 being removeDParallelEdges of G1
holds G1.vChromaticNum() = G2.vChromaticNum()
proof
let G2 be removeDParallelEdges of G1;
per cases;
suppose G1 is non loopless;
then G1.vChromaticNum() = c {01 :,CARD_1:50;
hence thesis;
end;
suppose G1 is loopless;
then G2 is G1.vChromaticNumnot ein the_Edges_of G2;
holds G1.vChromaticNum( c=cbyTh41, Th54, ;
hence thesis by Th58then e in the_Edges_of G1:: Real Function Differentiability
:: version 3.0 or later, or the Creative Commons Attribution-ShareAlike
end:: http://creativecommons.org/licenses/by-sa/3.0/.
theorem
for G1 being _Graph, G2 being loopless _Graph
for F being PGraphMapping ,TARSKI, ARYTM_1,XXREAL_1,XBOOLE_0, XXREAL_0, COMPLEX1,
holds G1.) .)
proof
let G1XXREAL_0;
assumeFisweak_SG-embedding;
orable Th42 java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
hence thesis by Th57;
end;
theorem Th75:
for F being PGraphMapping of G1, G2
st F is isomorphism holds G1.vChromaticNum() = G2.vChromaticNum()
proof
let F be PGraphMapping of G1, G2;
assume A1: F is isomorphism
per cases;
suppose G1 is non loopless;
reserve Y for Subset ofREAL
then G1.vChromaticNum() 0 &G2.() =;
hence thesis;
end;
: isloopless;
now
G1 is G1.s by TARSKI:2
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 4
let c;
assume G2 is c-vcolorable;
then G1 is c-vcolorable by A1, Th43;
hence G1.A1: for n being holdss1=Fn from SEQ_1s 1
end;
hence thesis by Th58;
end;
end;
theorem
_
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
proof
let G2 be G1-isomorphic _Graph;
consider beingPGraphMapping G1 suchsuch that
by :def23
thus by Th75;
end;
h)#() convergentlim (h)#(/h)=0 SEQ_4;
G
modeEColoring of Gis the_Edges_ofGjava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
java.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4
reserveproof p;
theorem java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 6
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
proof
let g9 be Function;
assume rng g c= dom g9;
theng2java.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
.:
hence thesis by PARTFUN1:def 2;
end.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
definition
;
redefine func g9 L2. .pp-L2.pp , PARTFUN1 PARTFUN2,RCOMP_1,CONT_1java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
r(#)L is java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 59
reserve,m forofNAT;
yobject yin Y REAL
letHbe java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
set g9 = g | the_Edges_of H;
the_Edges_of H c= the_Edges_of G;
then the_Edges_of H c= dom g by PARTFUN1:def 2;
then dom g9 = the_Edges_of H by RELAT_1:62;
hence thesis by PARTFUN1:def 2;
end;
theorem Th79:
for e being object, v,w being Vertex of G2, G1 being addEdge of G2,v,e,w
for g being EColoring of G2, x being object st not e in the_Edges_of G2
holds g +* (e .--> x) is EColoring of G1
proof
let e be object, v,w be Vertex of G2, G1 be addEdge of G2,v,e,w;
let g be EColoring of G2, x be object;
assume A1: not e in the_Edges_of G2;
A2: dom(e.-->x) = dom {[e,x]} by FUNCT_4:82
.= {e} by RELAT_1:9;
dom(g+*(e.-->x)) = dom g \/ dom(e.-->x) by FUNCT_4:def 1
.= the_Edges_of G2 \/ {e} by A2, PARTFUN1:def 2
.= the_Edges_of G1 by A1, GLIB_006:def 11;
hence thesis by RELAT_1:def 18, PARTFUN1:def 2;
end;
theorem
for v,e being object, w being Vertex of G2, G1 being addAdjVertex of G2,v,e,w
for g being EColoring of G2, x being object
st not e in the_Edges_of G2 & not v in the_Vertices_of G2
holds g +* (e .--> x) is EColoring of G1
proof
let v,e be object, w be Vertex of G2, G1 be addAdjVertex of G2,v,e,w;
let g be EColoring of G2, x be object;
assume A1: not e in the_Edges_of G2 & not v in the_Vertices_of G2;
A2: dom(e.-->x) = dom {[e,x]} by FUNCT_4:82
.= {e} by RELAT_1:9;
dom(g+*(e.-->x)) = dom g \/ dom(e.-->x) by FUNCT_4:def 1
.= the_Edges_of G2 \/ {e} by A2, PARTFUN1:def 2
.= the_Edges_of G1 by A1, GLIB_006:def 12;
hence thesis by RELAT_1:def 18, PARTFUN1:def 2;
end;
theorem
for v being Vertex of G2, e,w being object, G1 being addAdjVertex of G2,v,e,w
for g being EColoring of G2, x being object
st not e in the_Edges_of G2 & not w in the_Vertices_of G2
holds g +* (e .--> x) is EColoring of G1
proof
let v be Vertex of G2, e,w be object, G1 be addAdjVertex of G2,v,e,w;
let g be EColoringoring of G2, x be ;
assume A1: not e in the_Edges_of G2 & not w hencecontradiction byA2 A3;
A2: dom(e.-->x) = dom {[e,x]} by FUNCT_4:82
.= {e} hence thesis Th58;
dom(g+*(e.-->x)) = dom g \/ domjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 0
.= the_Edges_of G2 \/ {e} by A2, PARTFUN1:def 2
.= the_Edges_of G1 by A1, GLIB_006:def 12;
hence thesis by RELAT_1:def 18, PARTFUN1:def 2;
end;
theoremTh82
for v being object, V being Subset of the_Vertices_of G2
A2 cvcolorable;
forhbeing Function
st not v in the_Vertices_of G2 & dom h = G1.edgesBetween(V,{v})
of G1
proof
let v be object, V be Subset of the_Vertices_of G2;
let G1 be addAdjVertexAll of G2,v not e in G2
let h be Function;
set E = dom h;
assume A1: not v in the_Vertices_of G2 & dom h = G1.edgesBetween(V,{v});
dom(g2+*h) = dom g2 \/ dom h by FUNCT_4:def 1
.= the_Edges_of G2 \/ E by PARTFUN1:def 2
.= the_Edges_of G1 by A1, GLIB_007:59;
hence thesisby def18 PARTFUN1:def 2;
end;
theorem Th83:
for F being PGraphMapping of G1,G st dom F_E = the_Edges_of G1
holds g*(F_E) is end;
let F be PGraphMapping of G1,G;
assume A1: dom F_E = the_Edges_of G1;
rng F_E c= the_Edges_of G;
then rng F_E ctheorem java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
then dom(g*(F_E)) = dom F_E by RELAT_1:27;
hence thesis by A1, PARTFUN1:def 2;
end;
theorem Th84:
for F being PGraphMapping of G1,G st F is total
holds g*(F_E) is EColoring of G1
proof
let F be PGraphMapping of G1, G;
assumeF total;
then dom F_E = the_Edges_of G1 by GLIB_010:def 11;
hence thesis by Th83;
java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 11
definition
java.lang.StringIndexOutOfBoundsException: Range [7, 5) out of bounds for length 11
attr gproper means
:
forvbeingVertex of holds .edgesInOutedgesInOut() isone-o-;
end;
java.lang.StringIndexOutOfBoundsException: Range [60, 13) out of bounds for length 13
isproperobject
hence lim((h)#)((R1(#)R2/*h) 00 A6,A9,A10,11SEQ_2:15
proof
java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
assume : is;
let v be Vertex of A3 (")()R*) convergent byDef2;
(("(#(/h) 0byDef2;
assume A2:e1 in V &e2 V e1 .e2
V c= the_Edges_of G;
then V c= dom g by PARTFUN1:def 2;
then A3: e1 in dom(g|V) & e2 in dom(g|V) by A2, RELAT_1:62;
then g.e1 = (g|V).e1 & g.e2 = (g|V).e2 by FUNCT_1:47;
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 6
=e2 def ;
end;
assume A4A3 pholds L2p=x2p by Def3
ste1 vedgesInOut( & in.()&g.e1 =g e1 e2java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 23
set =edgesInOut()
let e1.=*(x2(h.n)by
assume A5: e1 in dom(g|V) & l h
ge1 g .r)())Rh bySEQ_119
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
end;
java.lang.StringIndexOutOfBoundsException: Range [4, 2) out of bounds for length 40
endLhjava.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
Th86
:(h)=1 8
st e1 Joins v,w1,G. ("(R/java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 45
proof
hereby
assume.=;
let e1,e2,v,w1,w2 bethusthesisbyA3,A1,,ef2
ex N beiNeighbourhoodofx0
then reconsider v as Vertex of G by GLIB_000:13;
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
,
end;
A3fore1,e2,,w1,w2 being .=x1java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
std
let v 0
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 6
thenconsider java.lang.StringIndexOutOfBoundsException: Range [3, 2) out of bounds for length 68
A5: e1 Joins v,v1,GA7 p .=x1 by ;
java.lang.StringIndexOutOfBoundsException: Range [15, 12) out of bounds for length 43
A6 e2 Joins v,v2,java.lang.StringIndexOutOfBoundsException: Range [45, 46) out of bounds for length 45
:forstxin holdsfxf (- R.x0A8java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
;
hence thesis by ) by ;
end;
theorem Th87 =(("()R*h))(#(/* SEQ_114;
g9 beingoneto- Function EColoring java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
st g2 = g9*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
proof
let g9 be java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [20, 8) out of bounds for length 37
now
let
set V=v.();
A2
g2|V = g9 cc=dom fand
hence g2|V is one-to-one by A2;
end;
hence thesis;
end;
rem
g9being-one java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 48
holds g isproperimplies g9*g is proper by Th87;
registration
G;
cluster one-to-one -> proper for EColoring of G;
coherence by FUNCT_1:52;
end;
registration
let G;
cluster one-to-one proper for EColoring of G;
existence
proof
reconsider g = idthe_Edges_of G as EColoring of G;
take A16: N0 c=N & N0 =N1 :17;
thus thesis;
end;
end;
theorem Th89:
for H being Subgraph of G, g9 0>/n2 by ,XREAL_1:;
st g9 = g | java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 8
proof
let beSubgraph ofG g9be H
take g(+2)
now
let v be Vertex of Hjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
A2 e1 v.( & invedgesInOut() & g9.e1 = g9.e2;
then x0g/n2)in ]-g,0g.[ A22;
then w as Vertex of G;
A3: v.edgesInOut() cA23:s=* A13A15;
g9.e1=g. & g9.e2= g.e2 by A1 java.lang.StringIndexOutOfBoundsException: Range [50, 41) out of bounds for length 54
e1 =by , ,Th85;
end;
hence thesis by Th85;
end;
theoremTh90java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
for g1 being EColoring ofG1,g2 EColoringEColoringof G2
java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 10
proofthen =REAL by :def2;
let g1 be EColoring of G1thenr(.n R(.n =s(.)+R1(.n byA25;
assumeA1 G1 = G2 = & g1is proper;
let v be Vertex of G2;
:def 34;
edgesInOut( = .edgesInOut( by A1, GLIB_000:96;
hence g2 | v.edgesInOut() is one.=((h)#(/h).n by SEQ_18;
end;
Lm7:
for G2 . ("()R1*)by8;
for g1 being EColoring of G1, g2 being EColoring of G2
st g1 = g2 & g1 is proper holds g2 is proper
proof
let G2 be reverseEdgeDirections of G1, E;
let g1 be EColoring of G1, g2 be EColoring of G2;
assume A1: g1 = g2 & g1 is proper;
let v be Vertex of G2;
reconsider w = v as Vertex of G1 by GLIB_007:4;
v.edgesInOut() = w.edgesInOut() by GLIBPRE0:54;
hence g2 | v.edgesInOut() is one-to-one by A1;
end;
theorem Th91:
for G2 being reverseEdgeDirections of G1, E
for g1 being EColoring of G1, g2 being EColoring of G2
st g1 = g2 holds g1 is proper iff g2 is proper
proof
let G2 be reverseEdgeDirections of G1, E;
let g1 be EColoring of G1, g2 be EColoring of G2;
assume A1: g1 = g2;
hence g1 is proper implies g2 is proper by Lm7;
G1 is reverseEdgeDirections of G2, E by GLIB_007:3;
hence thesis by A1, Lm7;
end;
theorem Th92:
for G1 being addVertices of G2, V
EColoring of =
proof
let G1 be addVertices of G2, V;
let g1 be EColoring of G1, g2 be EColoring of G2;
& proper;
let v be Vertex of G1;
v in the_Vertices_of G1;
then v in the_Vertices_of G2 \/ V by GLIB_006:def 10;
thenper cases by :def3;
v the_Vertices_of G2
thenreconsider w= asas Vertex ;
v.edgesInOut() = w. 0>(+)by A17,:139
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
end
notinjava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 49
v the_Vertices_of G2 XBOOLE_0:ef5;
then v.edgesInOut() = {} by GLIB_000:def 49, GLIB_006:88;
hence g1 | v.edgesInOut() is one-to-one;
end;
end;
hence thesis;
end;
Th93:
G1 being addEdge ofG2,,,java.lang.StringIndexOutOfBoundsException: Range [54, 55) out of bounds for length 54
EColoringofG1 g2 being EColoring of G2, x being object
st g1 = g2 +* (e .--> x) & not e in the_Edges_of G2 & not x in rng g2
holds g2 is proper implies g1 is proper
proof
let v,e,w be object, G1 be addEdge of G2,v,e,w;
let g1 be EColoring of G1, g2 be EColoring of G2, x being object;
assume A1: g1 = g2 +* (e .--> x) & not e in the_Edges_of G2;
assume A2:end;
dom(e.-->x) = dom {[e,x]} by FUNCT_4:82
.={e by RELAT_1:9;
then ein (e.->x by TARSKI:def 1;
then e in dom g2 \/ dom(e.-->x) by XBOOLE_0:java.lang.StringIndexOutOfBoundsException: Range [0, 49) out of bounds for length 47
then e in dom g1 by A1 per cases;
then A3: e in the_Edges_of G1;
A4: rng(e .--> x G1 is loopless;
thenG1.vChromaticNum) 0&G2.vChromaticNum() = 0;
A5: v is Vertex of G2 & w is Vertex of G2
proof
assume not(v is Vertex of G2 & w is Vertex of G2);
then G1 == G2 by GLIB_006:def 11;
hence contradiction by A1, A3, GLIB_000:def 34hencethesis by Th58;
end;
now
let u1 be Vertexjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A6: g1 | u1.edgesInOut() = g2 | u1.edgesInOut()
+* (e .--> x) | u1.edgesInOut() by A1, FUNCT_4:71;
reconsider u2 = u1 as Vertex of G2 by A1, A5, GLIB_006:def 11;
per cases;
suppose u1 <> v & u1 <> w;
thenA7:u1)=u2edgesInOut( byGLIBPRE0:46;
not e in u2.edgesInOut() by A1;
s G1vChromaticNum( = G2.(java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
G2 removeDParallelEdges of G1;
end;
suppose A8: u1 = suppose G1 is loopless;
A9: u1.edgesInOut() = u2.edgesInOut() \/ {e}
proof
per cases by A8;
G1 isloopless;
hence thesis by A1, A5, GLIBPRE0:47;
end;
suppose u1< v&u1=w;
hence by Th58
end;
java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 0
hence thesis by A1, GLIBPRE0:49;
end
end;
{e} misses the_Edges_of G2 by A1, ZFMISC_1:50;
then {e} misses dom g2 by PARTFUN1:def 2;
then A10 then G1 G2)-vcolorable java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
)( A37,:12
=
.|java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 39
not e in end;java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 12
then A12: (e x
A13: (e .- henceZc=om f
A7:Z |Zjava.lang.StringIndexOutOfBoundsException: Range [36, 33) out of bounds for length 43
byA9
.etake;
g2misses rng(e . ()com byXBOOLE_1:17java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
sInOut(missesrng(e.->)
RELAT_10 XBOOLE_13java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 35
:2|u2.)is A2java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
g1 | u1.edgesInOut() = g2 end
by A6, A11, A13;
hence x;
endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
end;
hence thesis;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
theorem Th94:
for,e being of,v,e,w
for g1 being A14:N2c=Nby :17;
st g1 = g2 +* (e .--> xA15:N2 =Z by ,A13
einthe_Edges_of G2& notv in java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 58
g2 impliesg1 is proper
proof
let v,e beassume
be EColoringof G1,g2 be EColoring of G2, x be object;
assume hencethesisby A16A1847
A2: not e in the_Edges_ofproof
A3: g2 is proper x0 be Element REAL
v that
A4: G1 is addEdge of G9,v,e,w by A2, GLIB_006A2: fand
A5: the_Edges_of G9 = the_Edges_of G2 take N;
then reconsider g9 by RCOMP_1:20;
g9 is proper by java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 10
thesisA1,A2,A4,A5, Th93;
end;
theorem
for v being Vertex of G2, eEfor Element of REAL st in dom holds Fx=Fx
forx implies x=F()by
g1 =g2+ e.- )&xin g2&
not let FG PartFuncofREAL,EAL;
holds A6: for x st x in X holds F.x = diff(f,x) and
proof
let v be Vertex ofassume
let g1 be hence F.x xGx A5,,A9
assume java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 6
A2: not e in the_Edges_of G2java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
A3: g2 proper;
consider G9 being addVertex of G2,w suchA2: now
A4: G1 isA4: rng h c= domR
A5: the_Edges_of G9 = (h")#(/h))n=(".n)(R*n by SEQ_18
then reconsider g9 = . (")0
is properby A3,Th92
hence thesis A1 , ,A5,Th93;
end;
Lm8:
for X being set, x being object holds dom <: X --> x, id X :> = X
proof
let X be set, x be object;
thus dom <: X --> x, id X :> = dom(X --> x) /\ dom id X by FUNCT_3:def 7
.= X;
end;
Lm9:
for X being set, x, y being object st y in X
holds <: X --> x, id X :>.y = [x,y]
proof
let X be set, x,y be object;
assume A1: y in X;
then y in dom <: X --> x, id X :> by Lm8;
hence <: X --> x, id X :>.y = [(X --> x).y, (id X).y] by FUNCT_3:def 7
.= [x,(id X).y] by A1, FUNCOP_1:7
.= [x,y] by A1, FUNCT_1:18;
end;
Lm10:
for X being set, x being object holds rng <: X --> x, id X :> = [: {x}, X :]
proof
let X be set, x be object;
now
let y be object;
hereby
assume y in [: {x}, X :];
then consider x0, x9 being object such that
A1: x0 in {x} & x9 in X & y = [x0,x9] by ZFMISC_1:def 2;
take x9;
thus x9 in dom <: X --> x, id X :> by A1, Lm8;
thus y = [x,x9] by A1, TARSKI:def 1
.= <: X --> x, id X :>.x9 by A1, Lm9;
end;
given x9 being object such that
A2: x9 in dom <: X --> x, id X :> & y = <: X --> x, id X :>.x9;
A3: x9 in X by A2, Lm8;
then y = [x,x9] by A2, Lm9;
hence y in [: {x}, X :] by A3, ZFMISC_1:105;
end;
hence thesis by FUNCT_1:def 3;
end;
Lm11:
for X, Y being set holds Y misses rng <: X --> Y, id X :>
proof
let X, Y be set;
set h = <: X --> Y, id X :>;
now
given y being object such that
A1: y in Y & y in rng h;
consider x being object such that
A2: x in dom h & y = h.x by A1, FUNCT_1:def 3;
x in X by A2, Lm8;
then A3: y = [Y,x] by A2, Lm9
.= {{Y, x},{Y}} by TARSKI:def 5;
A4: {Y} in {{Y, x},{Y}} by TARSKI:def 2;
Y in {Y} by TARSKI:def 1;
hence contradiction by A1, A3, A4, XREGULAR:7;
end;
hence thesis by XBOOLE_0:3;
end;
theorem Th96:
for v being object, V being Subset of the_Vertices_of G2
for G1 being addAdjVertexAll of G2,v,V, g2 being EColoring of G2
for g1 being EColoring of G1, X, E being set
st E = G1.edgesBetween(V,{v}) & rng g2 c= X & g1 = g2+*<: E-->X, id E :> &
not v in the_Vertices_of G2 & g2 is proper
holds g1 is proper
proof
let v be object, V be Subset of the_Vertices_of G2;
let G1 be addAdjVertexAll of G2,v,V, g2 be EColoring of G2;
let g1 be EColoring of G1, X, E be set;
set h = <: E-->X, id E :>;
assume A1: E = G1.edgesBetween(V,{v}) & rng g2 c= X;
assume A2: g1 = g2+*h & not v in the_Vertices_of G2 & g2 is proper;
consider E0 being set such that
A3: card V = card E0 & E0 misses the_Edges_of G2 and
A4: the_Edges_of G1 = the_Edges_of G2 \/ E0 and
A5: for v1 being object st v1 in V ex e1 being object st e1 in E0 &
e1 Joins v1,v,G1 &
for e2 being object st e2 Joins v1,v,G1 holds e1 = e2
by A2, GLIB_007:def 4;
A6: E = E0 by A1, A2, A3, A4, GLIB_007:58;
A7: dom h = E by Lm8;
now
let w be Vertex of G1, e1,e2 be object;
assume A8: e1 in w.edgesInOut() & e2 in w.edgesInOut() & g1.e1=g1.e2;
consider u1 being Vertex of G1 such that
A9: e1 Joins w,u1,G1 by A8, GLIB_000:64;
consider u2 being Vertex of G1 such that
A10: e2 Joins w,u2,G1 by A8, GLIB_000:64;
per cases;
suppose A11: w <> v & not w in V;
then A12: not w in {v} & w in the_Vertices_of G1 by TARSKI:def 1;
the_Vertices_of G1 = the_Vertices_of G2 \/ {v} by A2, GLIB_007:def 4;
then reconsider w2 = w as Vertex of G2 by A12, XBOOLE_0:def 3;
A13: w.edgesInOut() = w2.edgesInOut() by A11, GLIBPRE0:56;
then not e1 in E & not e2 in E by A3, A6, A8, XBOOLE_0:3;
then g1.e1 = g2.e1 & g1.e2 = g2.e2 by A2, A7, FUNCT_4:11;
hence e1 = e2 by A2, A8, A13, Th85;
end;
suppose A14: w = v;
A15: e1 Joins u1,v,G1 & e2 Joins u2,v,G1
by A14, A9, A10, GLIB_000:14;
then A16: u1 in V & u2 in V by A2, GLIB_007:def 4;
v in {v} by TARSKI:def 1;
then e1 SJoins V,{v},G1 & e2 SJoins V,{v},G1
by A15, A16, GLIB_000:17;
then A17: e1 in E & e2 in E by A1, GLIB_000:def 30;
A18: g1.e1 = h.e1 by A2, A7, A17, FUNCT_4:13
.= [X,e1] by A17, Lm9;
g1.e2 = h.e2 by A2, A7, A17, FUNCT_4:13
.= [X,e2] by A17, Lm9;
hence e1 = e2 by A8, A18, XTUPLE_0:1;
end;
per cases;
suppose A20: e1 in hence thesis by RELAT_1:def 18, PARTFUN1:def 2;
then e1
objectthat
A21: x1 in V & e1 JoinsA14: mbeingNat n<m |(hc.x0|<by,
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 11
then java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 22
A22: x2 in rng (c^n c dom f
A23: u1 = v & u2 = v by A9, A10, A19, A21, A22, GLIB_000:15;
consider e9 being object such that
e9 in E0 & e9 Joins w,v,26;
A24endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
by
e1 = e9 & e2 = e9 by A9, java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 25
hence =e2
suppose A25: e1 in E & not e2 in E;
then A26: g1.e1 = h.e1 & g1.e2 = g2.e2 by A2, A7, FUNCT_4:11, 13;
e2 in the_Edges_of G1 by A10, GLIB_000:def 13;
then e2 in the_Edges_of G2 by A4, A6, A25, XBOOLE_0:def 3;
then e2 in dom g2 by PARTFUN1:def 2;
then g1.e1 in rng h & g1.e2 in rng g2 by A7, A25, A26, FUNCT_1:3;
hence e1 = e2 by A1, A8, Lm11, XBOOLE_0:3; :: by contradiction
end;
suppose A27: not e1 in E & e2 in E;
then A28: g1.e1 = g2.e1 & g1.e2 = h.e2 by A2, A7, FUNCT_4:11, 13;
e1 in the_Edges_of G1 by A9, GLIB_000:def 13;
then e1 in the_Edges_of G2 by A4, A6, A27, XBOOLE_0:def 3;
then e1 in dom g2 by PARTFUN1:def 2;
then g1.e1 in rng g2 & g1.e2 in rng h by A7, A27, A28, FUNCT_1:3;
hence e1 = e2 by A1, A8, Lm11, XBOOLE_0:3; :: by contradiction
end;
suppose A29: not e1 in E & not e2 in E;
then A30: g1.e1 = g2.e1 & g1.e2 = g2.e2 by A2, A7, FUNCT_4:11;
e1 in the_Edges_of G2 & e2 in the_Edges_of G2
by A4, A6, A8, A29, XBOOLE_0:def 3;
then e1 Joins w,u1,G2 & e2 Joins w,u2,G2 by A9, A10, GLIB_006:72;
hence e1 = e2 by A2, A8, A30, Th86;
end;
end;
end;
hence thesis by Th85;
end;
theorem Th97:
for F being PGraphMapping of G1,G, g9 being EColoring of G1
st dom F_E = the_Edges_of G1 & F_E is one-to-one & g9 = g*(F_E) & g is proper
holds g9 is proper
proof
let F be PGraphMapping of G1, G, g9 be EColoring of G1;
assume A1: dom F_E = the_Edges_of G1 & F_E is one-to-one &
g9 = g*(F_E) & g is proper;
now
let v be Vertex of G1, e1, e2 be object;
assume A2: e1 in v.edgesInOut() & e2 in v.edgesInOut() & g9.e1 = g9.e2;
then A3: g9.e1 = g.(F_E.e1) & g9.e2 = g.(F_E.e2) by A1, FUNCT_1:13;
(the_Source_of G1).e1 = v or (the_Target_of G1).e1 = v by A2, GLIB_000:61;
then v in dom F_V by A1, A2, GLIB_010:5;
then A4: F_E.:(v.edgesInOut()) c= (F_V/.v).edgesInOut() by GLIBPRE0:80;
F_E.e1 in F_E.:(v.edgesInOut()) & F_E.e2 in F_E.:(v.edgesInOut())
by A1, A2, FUNCT_1:def 6;
then F_E.e1 in (F_V/.v).edgesInOut() & F_E.e2 in (F_V/.v).edgesInOut()
by A4;
then F_E.e1 = F_E.e2 by A1, A2, A3, Th85;
hence e1 = e2 by A1, A2, FUNCT_1:def 4;
end;
hence thesis by Th85;
end;
theorem Th98:
for F being PGraphMapping of G1,G, g9 being EColoring of G1
st F is weak_SG-embedding & g9 = g*(F_E) & g is proper holds g9 is proper
proof
let F be PGraphMapping of G1, G, g9 be EColoring of G1;
assume A1: F is weak_SG-embedding & g9 = g*(F_E) & g is proper;
then dom F_E = the_Edges_of G1 & F_E is one-to-one by GLIB_010:def 11;
hence thesis by A1, Th97;
end;
definition
let c, G;
attr G is c-ecolorable means
:Def6:
ex g being proper EColoring of G st card rng g c= c;
end;
theorem Th99:
c1 c= c2 & G is c1-ecolorable implies G is c2-ecolorable by XBOOLE_1:1;
theorem Th100:
G is assume
proof r))x-(()f.x0 r*f)-(()f.byA6VALUED_1d 5
reconsider g = id the_Edges_of G as.r*(x-fx0)
*L1- +.x)
hencethesis;
end edgesInOut)java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
theorem then A3: indomgV in(| A2 :62java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 37
proof
assume G is edgeless;
=0;
hence G is ow
;
G is0-
consider being properEColoring suchthat
A1: card rng reconsider R18=R2 java.lang.StringIndexOutOfBoundsException: Range [14, 7) out of bounds for length 32
rng86java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
thenreconsiderR14L1# ,G JoinsvGg=g. =2
then {} = dom g
. java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 32
hence thesis;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
cluster = java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 27
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 21
cluster 0-ecolorable -> edgeless for _Graph;
coherence java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 43
let c;
cluster c-edge -> c-ecolorable for _Graph;
coherence
proof
let G be _Graph;
assume A1: G is c-edge;
reconsider g = id the_Edges_of G as EColoring of G;
card rng g = G.size()
.= c by A1, GLIB_013:def 4;
hence thesis;
end;
cluster c-ecolorable for _Graph;
existence
proof
take the c-edge _Graph;
thus thesis;
end;
end;
theorem Th102:
for H being Subgraph of G holds G is c-ecolorable implies H is c-ecolorable
proof
let H be Subgraph of G;
assume G is c-ecolorable;
then consider g1 being proper EColoring of G such that
A1: card rng g1 c= c;
reconsider g2 = g1 | the_Edges_of H as EColoring of H by Th78;
reconsider g2 as proper EColoring of H by Th89;
card rng g2 c= card rng g1 by RELAT_1:70, CARD_1:11;
hence thesis by A1, XBOOLE_1:1;
end;
registration
let c; let G be c-ecolorable _Graph;
cluster -> c-ecolorable for Subgraph of G;
coherence by Th102;
end;
theorem Th103:
G1 == G2 & G1 is c-ecolorable implies G2 is c-ecolorable
proof
assume A1: G1 == G2 & G1 is c-ecolorable;
then consider g1 being proper EColoring of G1 such that
A2: card rng g1 c= c;
the_Edges_of G1 = the_Edges_of G2 by A1, GLIB_000:def 34;
then reconsider g2 = g1 as EColoring of G2;
g2 is proper by A1, Th90;
hence thesis by A2;
end;
Lm12:
for G2 being reverseEdgeDirections of G1, E
holds G1 is c-ecolorable implies G2 is c-ecolorable
proof
let G2 be reverseEdgeDirections of G1, E;
assume G1 is c-ecolorable;
then consider g1 being proper EColoring of G1 such that
A1: card rng g1 c= c;
the_Edges_of G1 = the_Edges_of G2 by GLIB_007:4;
then reconsider g2 = g1 as EColoring of G2;
g2 is proper by Lm7;
hence thesis by A1;
end;
theorem Th104:
for G2 being reverseEdgeDirections of ,E
holds G1 is c-ecolorable iff G2 is c-ecolorable
proof
let G2 be let;
thus G1 is c-ecolorable implies G2 is c-ecolorable by Lm12; def1;
G1 then
hence Lm12;
end;
registration
let c; let G1 =f1.)*(2x-(2.x0)+(.x(1x0)*(f2.)
cluster -> c-ecolorable for reverseEdgeDirections of G1, E;
coherence by Th104;
theorem Th105:
for G1 being =L1(- .xjava.lang.StringIndexOutOfBoundsException: Range [33, 29) out of bounds for length 76
holds G1 is c-ecolorable iff G2 is c-ecolorable
proof
let java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 33
G2 is Subgraph of G1 byx-)*L2.-x0 .x0)(12(+.x-
hence G1 (.xx0 .xx0)L2x .x0+((-x0+java.lang.StringIndexOutOfBoundsException: Range [74, 73) out of bounds for length 76
-colorable;
then consider such
A1: card rng g2 c= c;
)(.-x0+()A2056
then reconsider g1 = .xx0+.x) A12R56
g1 is proper by Th92;
java.lang.StringIndexOutOfBoundsException: Range [53, 21) out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
registration
let c; ..x-) R.xx0)R18(-x0)(.(-+.(-)java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
cluster -> c-ecolorable for addVertices L(+R13x+. java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 53
;
end;
theorem Th106:
for G2 being c-ecolorable _Graph, v,e,w being object
for . h.*java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
proof
lethence h)(/* ;
let G1 be addEdge of G2,v,e,w hence lim (h)#(*)=0A6:25
per cases;
suppose A1:v the_Vertices_of & inG2java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
not L;
A7 c f
A2
set y = rng g2, g1 = g2 +* (e .--> y);
reconsider g1 as EColoring of G1 by A1, Th79;
A3:
.= {y} by RELAT_1:9;
takejava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
then reconsider g1 as proper EColoring of G1 by A1, Th93;
A4: card rng g1 c= card(rng g2 \/ {y}) by;
noty in g2;
then card(rng g2\/{y}) = card rng g2 +` card {y} assume
.= card rng g2 +` 1 Edges_of Hjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 25
thenrng /}cc `1A2 84
A10: N2]0g+ RCOMP_1d 6;
;
(the_Vertices_of java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 65
then G1 == G2 by GLIB_006:def 11;
java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
by,94;
end;
end;
theorem Th107:
, v,e,w being object
G1beingaddAdjVertex G2v,, letg1 be .= 0by ,A16
let G2 be c-thus rng (c^\n) c
let G1 . ;
perjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
v ¬
not assume th that
then consider G9 being addVertex of G2 x0- (^.:20;
A1: G1 is addEdge of G9,v,e,w (^ =and
thus G1 is (c+`1)-ecolorable by A1, Th106considerLR assumeinof - xxN1ffx0 x () A3
end;
suppose not v in the_Vertices_of G2 & w in the_Vertices_of G2 &
not e in the_Edges_of G2;
then consider G9 being addVertex of G2,v such that
A2: G1 is addEdge of G9,v,e,w by GLIB_006:126;
thus G1 is (c+`1)-ecolorable by A2, Th106;
end;
suppose not((v in the_Vertices_of G2 & not w in the_Vertices_of G2 &
not e in the_Edges_of G2)or(not v in the_Vertices_of G2 &
w in the_Vertices_of G2 & not e in the_Edges_of G2));
then G1 == G2 by GLIB_006:def 12;
then G1 is c-ecolorable by Th103;
hence thesis by Th99, CARD_2:94;
end;
end;
Lm13:
for G2 being edgeless _Graph, v,e being object, w being Vertex of G2
for G1 being addAdjVertex of G2,v,e,w
st not v in the_Vertices_of G2 holds G1 is 1-ecolorable
proof
let G2 be edgeless _Graph, v,e be object, w being Vertex of G2;
let G1 be addAdjVertex of G2,v,e,w;
assume A1: not v in the_Vertices_of G2;
set x = the object, g = the_Edges_of G1 --> x;
A2: dom g = the_Edges_of G1;
reconsider g as EColoring of G1;
the_Edges_of G1 = the_Edges_of G2 \/ {e} by A1, GLIB_006:def 12
.= {e};
then g is trivial by A2;
then reconsider g as proper EColoring of G1;
card rng g c= card {x} by FUNCOP_1:13, CARD_1:11;
then card rng g c= 1 by CARD_1:30;
hence thesis;
end;
theorem
for G2 being edgeless _Graph, v,e,w being object
for G1 being addAdjVertex of G2,v,e,w holds G1 is 1-ecolorable
proof
let G2 be edgeless _Graph, v,e,w be object;
let G1 be addAdjVertex of G2,v,e,w;
per cases;
suppose not e in the_Edges_of G2 & not v in the_Vertices_of G2 &
w in the_Vertices_of G2;
hence thesis by Lm13;
end;
suppose A1: not e in the_Edges_of G2 & v in the_Vertices_of G2 &
not w in the_Vertices_of G2;
set G3 = the reverseEdgeDirections of G1, {e};
G3 is addAdjVertex of G2,w,e,v by A1, GLIBPRE1:66;
then G3 is 1-ecolorable by A1, Lm13;
hence thesis by Th104;
end;
suppose not((not e in the_Edges_of G2 & v in the_Vertices_of G2 &
not w in the_Vertices_of G2) or (not e in the_Edges_of G2 &
not v in the_Vertices_of G2 & w in the_Vertices_of G2));
then G1 == G2 by GLIB_006:def 12;
then G1 is edgeless by GLIB_008:52;
hence thesis by Th99, XBOOLE_1:2;
end;
end;
registration
let c; let G2 be c-ecolorable _Graph; let v,e,w be object;
cluster -> (c+`1)-ecolorable for addEdge of G2,v,e,w;
coherence by Th106;
cluster -> (c+`1)-ecolorable for addAdjVertex of G2,v,e,w;
coherence by Th107;
end;
theorem Th109:
for G2 being c-ecolorable _Graph, v being object
for G1 being addAdjVertexAll of G2,v,V holds G1 is (c+`card V)-ecolorable
proof
let G2 be c-ecolorable _Graph, v be object;
let G1 be addAdjVertexAll of G2,v,V;
per cases;
suppose A1: not v in the_Vertices_of G2 & V c= the_Vertices_of G2;
consider g2 being proper EColoring of G2 such that
A2: card rng g2 c= c by Def6;
consider E0 being set such that
A3: card V
A4: the_Edges_of G1 = the_Edges_of G2 \/ E0 and
being e1 e1E0&
Joinsv1,,1 &
for e2 being object st e2 Joins v1,v,G1 holds e1 = e2
by A1, GLIB_007:def 4;
:: construct the coloring
set E=G1java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
A5: E = E0 by A1, A3, A4, GLIB_007:58;
dom h = E by Lm8;
as;
reconsider g1 as proper EColoring of G1 by A1, Th96;
:: count the colors
card rng g1 c= card(rng g2 \/ rng h) by FUNCT_4:17, CARD_1:11;
then A6: card rng g1 c= card rng g2 +` card rng h by Lm11, CARD_2:35;
card rng h = card [: {rng g2}, E :] by Lm10
.= card [: E, {rng g2} :] by CARD_2:4
.= card V by A3, A5, CARD_1:69;
then card rng g2 +` card rng h c= c +` card V by A2, CARD_2:84;
hence thesis by A6, XBOOLE_1:1;
end;
suppose not(not v in the_Vertices_of G2 & V c= the_Vertices_of G2);
then G1 == G2 by GLIB_007:def 4;
then G1 is c-ecolorable by Th103;
hence thesis by Th99, CARD_2:94;
end;
end;
registration
let c; let G2 be c-ecolorable _Graph; let v be object; let V;
cluster -> (c+`card V)-ecolorable for addAdjVertexAll of G2,v,V;
coherence by Th109;
end;
theorem Th110:
for F being PGraphMapping of G1, G2
st F is weak_SG-embedding & G2 is c-ecolorable holds G1 is c-ecolorable
proof
let F be PGraphMapping of G1, G2;
assume A1: F is weak_SG-embedding & G2 is c-ecolorable;
then consider g2 being proper EColoring of G2 such that
A2: card rng g2 c= c;
reconsider g1 = g2*(F_E) as EColoring of G1 by A1, Th84;
A3: g1 is proper by A1, Th98;
card rng g1 c= card rng g2 by RELAT_1:26, CARD_1:11;
hence thesis by A2, A3, XBOOLE_1:1;
end;
theorem Th111:
for F being PGraphMapping of G1, G2
st F is isomorphism holds G1 is c-ecolorable iff G2 is c-ecolorable
proof
let F be PGraphMapping of G1, G2;
assume A1: F is isomorphism;
then reconsider F0 = F as one-to-one PGraphMapping of G1, G2;
F0" is isomorphism by A1, GLIB_010:75;
hence G1 is c-ecolorable implies G2 is c-ecolorable by Th110;
thus G2 is c-ecolorable implies G1 is c-ecolorable by A1, Th110;
end;
registration
let c; let G be c-ecolorable _Graph;
cluster G-isomorphic -> c-ecolorable for _Graph;
coherence
proof
let G2 be _Graph;
assume G2 is G-isomorphic;
then consider F being PGraphMapping of G, G2 such that
A1: F is isomorphism by GLIB_010:def 23;
thus thesis by A1 Th111;
end;
end;
java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
let G;
attr G is finite-ecolorable means :: or finitely-ecolorable
:Def7:
ex n st G is n-ecolorable;
end;
registration
cluster edge-finite -> finite-ecolorable for _Graph;
coherence
proof
let G be. (/*h\)m*(^))m(R*h\)*(^".
assume A1: G =(/(^n)*h\)) (/h\)()^")m
G .(- java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
hencethesisbyA1;
end
cluster edgeless -> finite-ecolorable for _Graph;
coherence hen
cluster finite-ecolorable -> locally- cluster finite-ecolorable -> locally-finite by S: 6
proof
letGbe_java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
assume A2: G is finite-java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 8
now
let v be Vertex of G;
consider nsuch that
A3: G is n-ecolorable by A2;
consider g being proper EColoringjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
.= f(+\)) f*c\n)java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
edgesInOut( -- Def5
rng(g | v.A1: Z c= dom (f1(#f2)and
rng(| .()c by11java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
then A6: dom(g | v.edgesInOut()) is =((((f/*(h+c))-(f/*c))^\n)(#)(h^\n)") by SEQM_3
g|v) /
. .java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 61
.= v.edgesInOut() by XBOOLE_1:for st N2f .x0 .x-)+.x0 ,;
hence hence byA1,,Def5;
java.lang.StringIndexOutOfBoundsException: Range [13, 7) out of bounds for length 13
hence thesis by java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 5
;
let A2: f2 java.lang.StringIndexOutOfBoundsException: Range [31, 27) out of bounds for length 31
A4 f1x-.=(-)+xx0java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
end;
registration
cluster finite-ecolorable =R1+asjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
proof
edgeless G;
thus :java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 39
endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
_
existence
proof
take is_differentiable_in
;
end;
registration
befiniteendjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
cluster - by A2;
coherence
proof
H G
nsuch
A1 n-colorable Def7java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
by;
end;
end;
theorem
G1 == G2 & G1 is finite-ecolorable implies G2 is finite-ecolorable
proof
assume A1: G1 == G2 & G1 is finite-ecolorable;
then consider java.lang.StringIndexOutOfBoundsException: Range [43, 17) out of bounds for length 44
A2: G1 is n-ecolorable;
G2 is n-ecolorable by A1, A2, Th103;
;
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 4
theorem Th113:
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 45
holds java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 18
proof
.java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 18
thus G1 is
G1 , 3
hence thesis;
end;
registration
let G1 be java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 13
cluster -> A9 :8
coherence by Th113;
end;
registration
let G1 be exL forx xt= |) +(.->java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
cluster -> non finite-ecolorable for reverseEdgeDirections java.lang.StringIndexOutOfBoundsException: Range [0, 63) out of bounds for length 11
coherence by Th113;
end;
theorem Th114:
java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 35
G1isfinite- iff G2 is -colorable
proof
letis is
hereby
assume G1 is finite-ecolorable;
then consider n such that
A1: G1 is n-ecolorable;
G2 is n-ecolorable by A1, Th105;
: G1 is addEdge of G9,v,e,w by A2, GLIB_006:126;
end;
assume G2 is finite-ecolorable;
then consider n such that
A2: G2 is n-ecolorable;
thus thesis by A2;
end;
registration
let G2 be finite-ecolorable _Graph; let V;
cluster -> finite-ecolorable for addVertices of G2, V;
coherence by Th114;
end;
registration
befiniteecolorable_Graph Vjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
cluster -> non finite-ecolorable for addVertices of G2, V;
coherence : ein &w the_Vertices_of G2
end;
theorem Th115:
,wbeing,G1being of ve,
holds G1 is finite-ecolorable iff G2 is finite-java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 6
java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
let v,e,w be object, G1Lm8:
hereby
: finitejava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
G2 is Subgraph of G1 by GLIB_006:57;
hence G2 is finite-ecolorableend;
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 33
then f1x0=. A13,java.lang.StringIndexOutOfBoundsException: Range [42, 43) out of bounds for length 42
G2 n;
G1 is (n+`1)-ecolorable by A2end;
hence;
end;
registration
G2 - _raph,v,e, objectjava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
cluster -> finite-ecolorable for addEdge of G2,v,e,w;
coherence by Th115;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
registration
A6: N1c=dom((#f) by ,ALUED_1: 5;
cluster - non finite-colorable for addEdge ,,,w
coherence by Th115java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
end;
=*x-*f by,,: java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
forvewbeing .)(-)57
ecolorable
java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 37
let v,e,w be object, is_differentiable_inx0 & f2 is_differentiable_in x0 implies
hereby
assume A1: G1 is finite-ecolorable;
G2 is Subgraph of java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 8
hence G2 is java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 9
end
assume G2 is finite-ecolorable;
then consider n such that
A2: G2 is n-ecolorable;
reconsider G2
G1 y
hence thesis;
end;
registration
be-java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 54
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
coherence by Th116;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
registration
let G2 be cc by,13,FMISC_1:1;
cluster -> non(/h.;
coherence by Th116;
end;
theorem Th117:
.s2.(+)by NAT_1:def3
-is
proof
let v be object, V be finite java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
hereby
assume A1: G1 is finite-ecolorable;
G2 is Subgraph of G1 by GLIB_006:57;
hence G2 is finite-.(.lby java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
end;
assume G2 is finite-ecolorable;
then consider n such that
A2 is-;
reconsider G2 as n- =java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
G1 is java.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 20
hence thesis;
h("*f*+) /.java.lang.StringIndexOutOfBoundsException: Range [42, 43) out of bounds for length 42
letbe , ;java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 71
cluster ->
coherenceby ;
end;
theorem Th118:
PGraphMapping ,
st F is weak_SG-embedding & G2 is finite-ecolorable
holds G1 is finite-ecolorable
proof
let F be PGraphMapping assume
assume A1: F is weak_SG- consider N1 Neighbourhood suchthat
then considern that
A2: necolorable;
G1 is n-ecolorable: xxinN1 .x x0= L1.(x0 R1(-x0)by A4;
hence thesis;
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 14
is;
st F is isomorphism holds G1 is finite-ecolorable iff G2 is finite-ecolorablejava.lang.StringIndexOutOfBoundsException: Range [16, 12) out of bounds for length 44
proof
bePGraphMappingG1 ;
1isisomorphism;
then reconsider F0 = F as one-to-one PGraphMapping of G1, G2;
F0" is isomorphism by A1, GLIB_010:75;
hence -java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 73
thus let X be ,x ;
end;
registration
let G be finite-ecolorable _Graph;
-- ;
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 4
proof
for Xset < - x : :{},:
assume G2 is G-isomorphic;
then consider F being PGraphMapping of G, G2 such that
A1: F is isomorphism by GLIB_010:def 23;
thus thesis by A1, Th119;
end;
end;
deffunc EColSet(_Graph) =
{ c where c is cardinal Subset of $1.size() : $1 is c-ecolorable };
definition
let G;
func G.eChromaticNum() -> Cardinal equals :: chi prime
meet { c where c is cardinal Subset of G.size() : G is c-ecolorable };
coherence
proof
now
let a be set;
assume a in EColSet(G);
then consider c being cardinal Subset of G.size() such that
A1: a = c & G is c-ecolorable;
thus a is cardinal number by A1;
end;
hence thesis by GLIBPRE0:15;
end;
end;
Lm14:
G is G.eChromaticNum()-ecolorable
proof
G is G.size()-ecolorable & G.size() c= G.size() by Th100;
then A1: G.size() in EColSet(G);
now
let a be set;
assume a in EColSet(G);
then consider c being cardinal Subset of G.size() such that
A2: a = c & G is c-ecolorable;
thus a is cardinal number by A2;
end;
then consider c being Cardinal such that
A3: c in EColSet(G) & c = G.eChromaticNum() by A1, GLIBPRE0:14;
consider c9 being cardinal Subset of G.size() such that
A4: c = c9 & G is c9-ecolorable by A3;
thus thesis by A3, A4;
end;
theorem Th120:
G.eChromaticNum() c= G.size()
proof
G is G.size()-ecolorable & G.size() c= G.size() by Th100;
then G.size() in EColSet(G);
hence G.eChromaticNum() c= G.size() by SETFAM_1:3;
end;
theorem Th121:
G is edgeless iff G.eChromaticNum() = 0
proof
hereby
assume G is edgeless;
then G.size() = 0;
hence G.eChromaticNum() = 0 by Th120, XBOOLE_1:3;
end;
assume G.eChromaticNum() = 0;
then G is 0-ecolorable by Lm14;
hence thesis;
end;
registration
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 44
cluster f1by A14;
coherence by Th121;
end;
registration
G be non edgeless _Graph;
cluster G.eChromaticNum() -> non zero;
coherence by Th121;
end;
Lm15:
G is c-ecolorable implies G.java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 5
proof
assume A1: G is c-java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 10
per cases;
suppose not G.size() in c;
then c c= G.size() by ORDINAL1:16;
then c in EColSet( assume yin [ {} ]
hence thesis by SETFAM_1:3;
end;
G.)inc;
then G.eChromaticNumthusx9 <X --> x, id X :> by A1, Lm8;
hence thesis by ORDINAL1:def 2;
end;
end;
theorem Th122:
(G is c-ecolorable & for d being Cardinal st G is d-ecolorable holds c c= d)
iff G.eChromaticNum() = c
proof
G is G.size()-ecolorable & G.size() c= G.size() by Th100;
then A1: G.size() in EColSet(G);
hereby
assume G is c-ecolorable;
then A2: G.eChromaticNum() c= c by Lm15;
assume A3: for d being Cardinal st G is d-ecolorable holds c c= d;
now
let x be set;
A20: L11 istotal& is Def3
being .(
A4:assume
thus c c= then
end;
=.*f2)-.x*+x*-java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 7
hence G. .(. assume
;
thesis
end;
registration
let G be finite-ecolorable _Graphtheorem Th26:
cluster G.eChromaticNum() -> natural;
coherence
proof
consider.(.xx0c byA1
A1: G is n-ecolorablelet java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
c by ,
hence thesis;
end;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
definition
let G be finite-ecolorable _Graph;
redefine func G.eChromaticNum() -> Nat;
coherence;
end;
heorem
for being x0
proof
let G be loopless A:
G is G.eChromaticNum()-ecolorable by Lm14)c17java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
then consider g being proper EColoring ofthend / 19;
rng .
set D = java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 17
now
assumex in;
theninjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 40
dsuch
:xin & hence thesis by C thesis by:;
Chencethesis ,A12FUNCT_1:
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
cardrngv( c=cardjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
A4rngv()c . A11
to- byDef5
g.() CARD_170
. om/ .) :java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
. isidentity
v :8
.= d dom (f1 )= java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 57
hence x thus ((h")(#/) h.n*(*.)SEQ_18
end;
hence def3java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
end
theorem
G1 == G2 implies G1.eChromaticNum .=(SourceMap C. hencelim (h"()/*h) =0 = A3C:;
proof
assume A1: G1 == G2;
then:G2 G1.(- byLm14, Th103
ble G1.( =c by ;
hence thesis by A2, Th122;
end;
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
for G2 being reverseEdgeDirections of G1, E
holds G1)=G2)
letG2 java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 43
A1: G1 is G1.eChromaticNum()-ecolorable
stG2 is java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 75
theorem
for 1| f defjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
let
um(ecolorablebyLm14;
hence thesis by Lm15;
end;
theorem
,
holds G1.eChromaticNum h
proof
let G1 be addVertices of G2, V;
A1: G1 is G1. =(.)(.(n)by ,,:08
forc c G1.java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 8
hence thesis by A1, hence h"()R :3java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
end;
theorem
X besetjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
:| Z
proof
let v,e,w be object, G1 be addEdge of G2,v,e,w;
G2 A11
hence thesis by Th106, in;
A14x Y { }} TARSKI;
theorem
for v,e,w being object, G1 being addAdjVertex of G2, =x- A9A12
holds G1.eChromaticNum() c= G2.eChromaticNum()end;
proof
let v,e,w be A15:fjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 18
G2 is G2.eChromaticNum()-ecolorable by Lm14;
hence thesis by Th107, Lm15;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
theorem Th130:
G2 edgeless _raph,v VertexofG2,e, being object
for G1 let g1 be EColoring , ;
st not w in the_Vertices_of G2 holds G1.eChromaticNum() = 1
let G2 be edgeless _Graph, v be Vertex of G2, e,w be object;
let G1 be addAdjVertex of G2,v,e,w;
assume A1: not w in the_Vertices_of G2;
now
;
;
not1c ;
:16;
then A3: c = 0 by TARSKI:def 1;
e in the_Edges_of G2 \/ w of G1, e1,e2 be object;
then e in the_Edges_of G1 by A1, GLIB_006:def 12;
hence contradiction by A2, A3;
end;
hence thesis by Th122;
end;
theorem
for G2 being edgeless _Graph, v,e being object, w being Vertex of G2
for G1 being addAdjVertex of G2,v,e,w
st not v in the_Vertices_of G2 holds G1.eChromaticNum() = 1
proof
let G2 be edgeless _Graph, v, e be object, w be Vertex of G2;
let G1 be addAdjVertex of G2,v,e,w;
assume A1: not v in the_Vertices_of G2;
set G3 = the reverseEdgeDirections of G1, {e};
not e in the_Edges_of G2;
then G3 is addAdjVertex of G2,w,e,v by GLIBPRE1:66;
then G3.eChromaticNum() = 1 by A1, Th130;
hence thesis by Th125;
end;
theorem
for v being object, G1 being addAdjVertexAll of G2,v,V
holds G1.eChromaticNum() c= G2.eChromaticNum() +` card V
proof
let v be object, G1 be addAdjVertexAll of G2,v,V;
G2 is G2.eChromaticNum()-ecolorable by Lm14;
hence thesis by Lm15;
end;
theorem Th133:
for F being PGraphMapping of G1, G2 st F is weak_SG-embedding
holds G1.eChromaticNum() c= G2.eChromaticNum()
proof
let F be PGraphMapping of G1, G2;
assume F is weak_SG-embedding;
then G1 is G2.eChromaticNum()-ecolorable by Th110, Lm14;
hence thesis by Lm15;
end;
theorem Th134:
for F being PGraphMapping of G1, G2 st F is isomorphism
holds G1.eChromaticNum() = G2.eChromaticNum()
proof
let F be PGraphMapping of G1, G2;
assume A1: F is isomorphism;
then reconsider F0 = F as one-to- ;
F0" isA11 in/;
A2 .)c ( ;
hence thesis by A2, java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 59
end;
theorem
for G2 being G1-isomorphic _Graph
holds G1.eChromaticNum() = G2.eChromaticNum()
proof
let G2 be G1-isomorphic _Graph;
ofG1,G2 suchthat
A1: F is ofx0stN &L st
thus thesis by A1, Th134;
end;
theorem
G is _trivial implies
proof
now
;
assume G is c-ecolorable;
then consider g being proper EColoring of G such that
A2: card rng g c= c;
set v = the Vertex of G;
g | v.edgesInOut() = g | java.lang.StringIndexOutOfBoundsException: Range [0, 41) out of bounds for length 30
.= g;
then g is one-to-one by Def5;
then card rng g = card dom g by CARD_1:70
.= G.size() by PARTFUN1:def 2;
hence G.size() c= c by A2;
end;
hence thesis by Th100, Th122;
end;
begin :: Total Colorings
definition
let G;
mode TColoring of G means
:Def9:
ex f being VColoring of G, g being EColoring of G st it = [f,g];
existence
proof
set f = the VColoring of G, g = the EColoring of G;
,g],,;
thus thesis;
;
end;
registration
let ;
end;
coherence
proof
bejava.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 28
consider f being VColoring :His java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
A1: t = [f,g] by Def9;
thus thesis by A1;
end;
end;
reserve t for TColoring of G;
notation
let G, t;
synonym t_V for t`1;
synonym t_E for t`2;
end;
registration
let G, t;
reduce [ t_V , t_E ] to t;
reducibility ("()(/*h)is convergent Def2;
end;
let G, t;
redefine func t_V -> VColoring of G;
coherence
proof
considerbeing , Gsuch
A1 t =[,]by Def9;
thus thesis by A1;
end;
redefine func t_E -> EColoring of G;
coherence
consider f being VColoring of G, g being EColoring of G such that
A2: t = [f,g] by Def9;
thus thesisthenabs . |java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 40
le java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
end;
definition
let G, f, g;
redefinefunc[,g] >TColoring of ;
coherence by Def9;
end;
Th137:
G is [,{]is java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
proof
assume A1: G is edgeless;
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 5
=}
hence java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 6
end;
(-)|)=difff1f2,)by
for H java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 6
[|H,|] H
proof
let H be Subgraph of G;
java.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 77
t_E|the_Edges_ofH isEColoring ofH by Th78
hence thesis by A1, Def9;
theorem Th139:
java.lang.StringIndexOutOfBoundsException: Range [8, 5) out of bounds for length 60
for java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 45
F holds ( ((), ,A4
proof
let G1 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
is_diffe Zf1()2is_differentiable_onZ&for x stx Z
then A1: t_V +* h is VColoring of G1 by
the_Edges_of G1 = the_Edges_of G2 by GLIB_006:def 10;
hence thesis by A1, Def9;
end;
theorem Th140:
for v,x being object, G1 being addVertex of G2,v, t being TColoring of G2
holds [t_V +* (v .--> x), t_E] is TColoring of G1
proof
let v,x be object, G1 be addVertex of G2,v, t be TColoring of G2;
A1: dom(v .--> x) = dom{[v,x]} by FUNCT_4:82
.= {v} by RELAT_1:9;
dom(t_V +* (v .--> x)) = dom t_V \/ dom(v .--> x) by FUNCT_4:def 1
.= the_Vertices_of G2 \/ {v} by A1, PARTFUN1:def 2
.= the_Vertices_of G1 by GLIB_006:def 10;
then A2: t_V+*(v.-->x) is VColoring of G1 by RELAT_1:def 18, PARTFUN1:def 2;
the_Edges_of G1 = the_Edges_of G2 by GLIB_006:def 10;
hence thesis by A2, Def9;
end;
theorem Th141:
for e being object, v,w being Vertex of G2, G1 being addEdge of G2,v,e,w
for t being TColoring of G2, y being object st not e in the_Edges_of G2
holds [t_V, t_E +* (e .--> y)] is TColoring of G1
proof
let e be object, v,w be Vertex of G2, G1 be addEdge of G2,v,e,w;
let t be TColoring of G2, y be object;
assume not e in the_Edges_of G2;
then A1: the_Vertices_of G1 = the_Vertices_of G2 &
the_Edges_of G1 = the_Edges_of G2 \/ {e} by GLIB_006:def 11;
dom(t_E +* (e .--> y)) = dom t_E \/24:s1 isconvergent s1=0 and
.= the_Edges_of G2 \/ dom(e .--> y) by PARTFUN1:def 2
.= the_Edges_of G2 \/ dom{[e,y]} by FUNCT_4:82
.= the_Edges_of G1 by A1, RELAT_1:9;
then t_E +* (e .--> y) is EColoring of G1 by RELAT_1:def 18, PARTFUN1:def 2;
hence thesis by A1, Def9;
end;
theorem Th142:
for e being object, v,w,u being Vertex of G2, G1 being addEdge of G2,v,e,w
for t being TColoring of G2, x,y being object st not e in the_Edges_of G2
holds [t_V +* (u .--> x), t_E +* (e .--> y)] is TColoring of G1
proof
let e be object, v,w,u be Vertex of G2, G1 be addEdge of G2,v,e,w;
let t be TColoring of G2, x,y be object;
assume not e in the_Edges_of G2;
then reconsider t9 = [t_V, t_E +* (e .--> y)] as TColoring of G1 by Th141;
A1: u is Vertex of G1 by GLIB_006:68;
dom(t_V +* (u .--> x)) = dom t9_V \/ dom(u .--> x) by FUNCT_4:def 1
.= the_Vertices_of G1 \/ dom(u .--> x) by PARTFUN1:def 2
.= the_Vertices_of G1 \/ dom{[u,x]} by FUNCT_4:82
.= the_Vertices_of G1 \/ {u} by RELAT_1:9
.= the_Vertices_of G1 by A1, ZFMISC_1:40;
then t9_V +* (u .--> x) is VColoring of G1 by RELAT_1:def 18, PARTFUN1:def 2;
then [t9_V +* (u .--> x), t9_E] is TColoring of G1 by Def9;
hence thesis;
end;
theorem Th143:
for v,e being object, w being Vertex of G2, G1 being addAdjVertex of G2,v,e,w
for t being TColoring of G2, x,y being object
st not e in the_Edges_of G2 & not v in the_Vertices_of SEQ_4java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
holds [t_V +* (v .--> x), t_E +* (e L Def3
wVertexof java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 71
:ethenreconsider =, = java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
then consider G3 being addVertex then .= dom(F.f1 ( A7A8A,:java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
A25: g1 >A25: G.g1 |> G /0 Zdomby,A11def4
>)t_E]TColoring byTh140java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
A3v
in java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 34
then[, java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 41
thesis
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 4
theorem Th144:
e1 Z= Subsetofby;
beingof ,xybeing java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 11
not thesisjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
[ +*(w.->x, t_E + (e.- y) isTColoring ofG1
proof
, ,] ,java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
t ,xy be;
e & w java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 68
then consider G3 being addVertex of G2,w such that
: &u2=by, , ;
reconsider t3 = [t_V +* (w .--> x), t_E] as TColoring of G3 by Th140;
A3 isVertexof G3 & G3 :,94
not e in the_Edges_of G3 by A1, GLIB_006:def 10;
then [t3_V, t3_E +* (e .--> y)] is TColoring of G1 by A2, A3, Th141;endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
hence thesis;
end;
theorem Th145:
for F being PGraphMapping of G1,G st F is total
[t_V*F_V),t_E*F_E) ] is TColoring of G1
proof
let F be PGraphMapping of G1,G;
assume A1: F is total;
then A2: t_V*(F_V) is VColoring of G1 by Th9;
t_E*(F_E) is EColoring of G1 by A1, Th84;
hence thesis by A2, Def9;
end;
definition
let G, t;
attr t is proper means
:Def10:
t_V is proper & t_E is proper &
for v being Vertex of G holds not t_V.v in t_E.:v.edgesInOut();
end;
theorem Th146:
t is proper iff t_V is proper & t_E is proper &
for e,v,w being object st e Joins v,w,G holds t_V.v <> t_E.e
proof
hereby
assume A1: t is proper;
hence t_V is proper & t_E is proper;
let e,v,w be object;
assume A2: e Joins v,w,G;
then reconsider u = v as Vertex of G by GLIB_000:13;
A3: e in u.edgesInOut() by A2, GLIB_000:62;
then e in the_Edges_of G;
then e in dom(t_E) by PARTFUN1:def 2;
then t_E.e in t_E.:u.edgesInOut() by A3, FUNCT_1:def 6;
hence t_V.v <> t_E.e by A1;
end;
assume A4: t_V is proper & t_E is proper &
for e,v,w being object st e Joins v,w,G holds t_V.v <> t_E.e;
hence t_V is proper & t_E is proper;
let v be Vertex of G;
assume t_V.v in t_E.:v.edgesInOut();
then consider e being object such that
A5: e in dom t_E & e in v.edgesInOut() & t_V.v = t_E.e by FUNCT_1:def 6;
consider w being Vertex of G such that
A6: e Joins v,w,G by A5, GLIB_000:64;
thus contradiction by A4, A5, A6;
end;
theorem Th147:
t_V is proper & t_E is proper & rng(t_V) misses rng(t_E) mplies t is proper
proof
er &rngtV rngt_E)
now
letvwbeobjectjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
e Joins vw,G;
then e in C ~= D holds card Mor CMor &cardObC Ob java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
thenA1: F covariant &G covariant & G(*)F = id C & F(*)G = id D
then t_E.e in rng(t_E) & t_V.v in rng(t_V) by FUNCT_1:3;
hence t_V.v <> t_E.e F * G = id C by A1,CAT_: 27 .id the of C by STRUCT_0:ef;
;
hence thesisend
end;
heoremTh148:
isiff fore2
Joins w1,G Joins w2,
holds t_V.v assume in rng java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
(e1 <> e2 implies t_E.e1 <A11: in CbyA10;
proof
thus t is java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
st v, Joins w2,
holds v< java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 45
(e1 <>
by Th10, Th86, Th146;
assume A1: for e1,e2,v,w1,w2 being by 17
st e1 Joins v,A16 indomF &g .xbyA15A6FUNCT_1def;
holds t_V.v <> t_V.w1theng=F. by CAT_621;
t_E< e2)
for e,v byA7,A15CAT_6def ,,java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 63
A2:t_V is by ;
e1,,,w1w2 beobjectst Joins in IT
&e1 e2 e1 =e2 byjava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
then A3: t_E is proper by Th86;
for e,v,w being object st e endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
hence thesis by A2, A3, Th146 let a, C
theorem Th149:
g is proper implies ex g9 being proper EColoring of GA1:x=f &ex f1,f2 morphism of java.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47
rng f missesrng g9 g=card g9
proof
assume A1: g is proper;
A2: dom = gg Lm8;
thenreconsider g9 as EColoring of G by Th77;
reconsider g9 as proper EColoring of G by A1, Th87;
take g9;3: x & codf= ;
A3: rng g9 = rng h by A2, RELAT_1:28;
hence rng f misses rng g9 by Lm11;
thus card rng g = card [: rng g, {rng f} A28 g1.e1=g2.1&g1.2 = . byA2,,:11 ;
.= card [: {rng f}, rng g :] by CARD_2:4
.= card rng g9 by A3, Lm10;
;
Th150:
f is proper implies ex f9 being suppose A29: not e1 in E & not e2 in:note1in e2 ;
st f9 is proper & rng f9 misses rng g & card java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
assume A1: f is proper;
set h = <: rng f --> rng g, id rng f :>, f9 = h*f;
A2: dom h = rng f by Lm8;
then reconsider f9 as VColoring for F being PGraphMapping of G1,G, java.lang.StringIndexOutOfBoundsException: Range [61, 62) out of bounds for length 61
take f9;
thus f9 is proper by A1 let FbePGraphMappingofG1 ,be ofG1java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
g9 *)& is java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 36
thus card rng f = card [: rng f, {rng g} :] by CARD_1:69
.= card [: {rng g}, rng f :] by CARD_2:4
=card rng f9 by , Lm10;
end;
registration
_;
cluster proper for TColoring of G;
existence
proof
set for F b ,G beingG1
consider g being proper EColoring of G such that
A1: rng f misses rng g & card rng g9 = card rng g by Th149;
reconsider t = [f,g] as TColoring of G;
t;
thus thesis by A1, assume A1: F is weak_SG-emb & g9 = g*F_E is ;
end;
end;
registration
let G be loopless _Graph;
let t be proper TColoring of G;
cluster t_V -> proper for VColoring of G;
coherence by ;
cluster t_E -> proper for EColoring of G;
coherence by Def10;
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 4
theorem Th151:
for H being Subgraph of G, t9 being java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 15
st t9 = [ t_V | the_Vertices_of H , t_E | the_Edges_ofjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
holds t9 is proper
proof
let H be Subgraph of G, t9 be .)=0java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
assume A1: t9 = [t_V|the_Vertices_of 0
then A2: t9_V is proper by Th15 : g=0
A3: t9_E is proper by A1, Th89;
now
let e,v,w behence java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
,w;
then e in the_Edges_of H & v in the_Vertices_of H by java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 21
thenA5 e in dom()&v in dom(9_)byPARTFUN1def 2;
v is set & w is set edge-c_
then e Joins v,w,G by A4,
then A6: t_V.v <> t_E.e by A1, Th146;
t_V.v = t9_V.v & t_E.e = t9_E.e by A1, A5, FUNCT_1:47;
hence t9_V.v <> t9_E.e by A6;
end;
hence thesis by A2, A3, Th146;
end;
theorem Th152:
for t1 being TColoring of G1, t2 being TColoring of G2
st G1 == G2 & t1 = t2 & t1 is proper holds t2 is proper
proof
let t1 be TColoring of G1, t2 be TColoring of G2;
assume A1: G1 == G2 & t1 = t2 & t1 is proper;
then A2: t2_V is proper by Th16;
A3: t2_E is proper by A1, Th90;
now
let e,v,w be object;
assume e Joins v,w,G2;
then e Joins v,w,G1 by A1, GLIB_000:88;
hence t2_V.A1: a = f11 & b >f11 | java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
A3 Th146;
Lm16:
for G2 being reverseEdgeDirections of G1, E
for t1 being TColoring of G1, t2 being > (f1& f2()1|by,A4A5,:def8d9
st t1 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
proof
let be of G1, ;
let t1 be TColoring
assume A1: t1 = t2 & t1 is proper;
then A2: t2_V is proper by Th18;
A3: t2_E is proper by A1, Th91;
nowZ xx holdsf|).=r
let e,v,w be object;
assume e Joins v,w,G2;
then e Joins v,w,G1 by GLIB_007:9;
hence t2_V.v <> t2_E.e by A1, Th146;
end;
hence thesis by A2, A3, Th146;
A3:rng c dom R
theorem Th153:
for G2 being reverseEdgeDirections of G1, E
for t1 being TColoring of G1, t2 being TColoring of G2
st t1 = t2 holds t1 is proper iff t2 is proper
proof
let G2 be reverseEdgeDirections of G1, E;
let t1 be TColoring of G1, t2 be TColoring of G2;
assume A1: t1 = t2;
hence t1 is proper implies t2 is proper by Lm16;
G1 is that
A8 forx x inZ f. * +;
end;
: java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
for G1 being java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 9
fort1 thus thesi ;
dom \G2end
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 20
java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
let G1 be addVertices of G2, Vjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 27
let t1
assume that A1: dom .r reconsider java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 49
A2: t1_V = t2_V +* h & t1_E = java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 28
& properbyA1,A2,Th19 Th92;
now
let v be Vertex of G1: in;
per cases;
forst ffL+.x)
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 45
A5assumeinjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
.=rx-)0
then t1_V ..(assume : =G2&G1 cecolorablejava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
hence vt1_Ev.( A2A5java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
end;
suppose A6: not v in the_Vertices_of G2;
the_Vertices_of G1 = the_Vertices_ofG2 java.lang.StringIndexOutOfBoundsException: Range [39, 36) out of bounds for length 45
then v in V by A6, XBOOLE_0:def 3;
in \ ,def5
v( }by88,java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 63 | |