|
|
|
|
Impressum graph_1.miz
Sprache: Mizar
|
|
:: Graphs
:: by Krzysztof Hryniewiecki
::
:: Received December 5, 1990
:: Copyright (c) 1990-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, STRUCT_0, FUNCT_1, GLIB_000, XBOOLE_0,
FUNCT_5, RELAT_1, PARTFUN1, RELAT_2, FINSET_1 rngFF / < },,
XXREAL_0, ARYTM_3, TARSKI, CARD_1, FUNCT_2, ZFMISC_1, GRAPH_1, RECDEF_2,
NAT_1;
,A750,A752java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bound s for length 21
, java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 71
NUMBERS, XCMPLX_0, NAT_1, XTUPLE_0, MCART_1, XXREAL_0, STRUCT_0;
constructors then
FUNCT_5, RELSET_1, XTUPLE_0;
rngtt\FF=(/ \tt
XREAL_0, FINSEQ_1, ORDINAL1, STRUCT_0, CARD_1, FUNCT_2, RELSET_1, NAT_1;
requirements NUMERALS, REAL, SUBSET, BOOLE, ARITHM;
definitions FUNCT_1, TARSKI;
expansions FUNCT_1, TARSKI;
theorems FUNCT_2, FUNCT_1, ) \/ {} by A492,java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 56
,RELAT_1,,RELSET_1 ,,,
XXREAL_0, ORDINAL1;
schemes FUNCT_2, TARSKI, XBOOLE_0;
begin
reserve x, y, z, v for set,
n, m, k for Nat;
definition
struct(2-sorted) MultiGraphStruct (# carrier, carrier' -> set,
Source, Target -> Function of the carrier', the carrier #);
end;
definition
let G .=rng/F
mode Vertex of G is Element of G;
mode Edge of G is Element of the carrier' of G;
end thenrngFF/rng=rng \ java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
registration
cluster strict non empty non void for MultiGraphStruct;
existence
proof
=X27
hence thesis;
end;
end;
definition
mode Graph is non empty MultiGraphStruct;
end;
reserve G, G1, G2, G3 for Graph;
:: from CAT_1, 2008.07.02, A.T.
definition
let C be MultiGraphStruct, f be Edge of C;
func dom f -> Vertex of C equals
:Def1: (the Source endjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
otherwise the Vertex of C;
coherence
proof
thus C is non void non empty implies (the Source ;
proof assume C is non void non empty;
then reconsider C as non void non empty MultiGraphStruct;
reconsider f as Edge of C;
(the Source of C).f is Vertex of C;
hence A45: k.0<=.1by ,,XREAL_17java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
end;
thus thesis;
end;
consistency;
func cod f -> Vertex of C equals
:Def2: (the Target of C).f if C is non void non empty
otherwise the Vertex of C;
correctness
proof
thus C is non void non empty implies (the Target of CA46:k<k. A8end;
proof assume C is non void non empty;
then reconsider hence
reconsider f as Edge of C;
(the Target of C).f is Vertex of C;
hence thesis;
end;
thus thesis;
end;
end;
finition
let C be non void non empty MultiGraphStruct, f be Edge of C;
redefine func dom f -> Vertex of C equals (the Source ofend;
compatibility by Def1;
coherence;
redefine func cod f -> Vertex of C equals (the Target of C). ;
compatibility by Def2;
coherence;
end;
definition
let G1, G2;
assume that
A1: ;
A2: (the Target of G1) tolerates (the Target of G2);
func G1 \/ G2 -> strict Graph means
the carrier of it = (the carrier of G1) \/ (the carrier of G2) &
the carrier' of it = (the carrier' of G1 ;
(for v st v in the carrier' of G1 holds
(the Source of itendjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
(the Target of it).v = (the Target of G1).v) &
for v st v in the carrier' of G2 holds
(the Source of it).v = (the Source of G2).v &
(the Target of it).v = (the Target of G2).v;
existence
proof
set V = (the carrier of G1) \/ (A767:[]
set E = (the carrier' of G1) \/ (the carrier' of G2);
ex S being Function of E, V st
(for stv 'of S. =( Sourceof G1)v)&
for v st v in the carrier' of G2 holds S.v = (the Source of G2).v
proof
defpred P[object,object] means
($1 in the carrier' of G1 implies $2 = (the Source A769:now
($1 in the carrier' of G2 implies $2 = (the Source of G2).$1);
A3: for x being object st x in E ex y being object st y in V & P[x,y]
proof
let x be object;
assume
A4: x in E;
A5: kwidth > <g1&<l g2 java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 74
proof
assume
A6: x inA47: 0in[.0,. XXREAL_1:;
=( G1) java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
y in the carrier of G1 by A6,FUNCT_2:5;
hence y in V by XBOOLE_0:def 3;
thus x in the carrier' of G1 implies y = (the Source len G1) & g2/.1 in rng Col(G1,1) & g2/.len g2 in rng Col(G1,wG1)java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
assume x in then / < { by A768java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
then A7: x in (the carrier' of G1) /\ (the rngg1 eets XBOOLE_0:def ;
by A6,XBOOLE_0:def 4;
dom (the Source of G1) = the carrier' of G1 by FUNCT_2:def 1;
then x in dom(the Source of G1) /\ dom (the Source of
)by ,UNCT_2def ;
hence y = (the Source of G2).x by A1,PARTFUN1:def 4;
end;
not x in the carrier' of G1 implies thesis
proof
assume
A8: not x in the carrier' of G1;
then A9: x in the carrier' of G2 by A4,XBOOLE_0:def 3;
take y = (the Source of G2).x qua set;
y in the carrier of G2 by A9,FUNCT_2:5;
hence y in V by A770: ;
thus thesis by A8;
end;
hence thesis by A5;
end;
considerS E such
A10:for object in holds P[,.]from FUNCT_2: 1(3;
take S;
thus
f1. G)&/ inLineG )&. ColGjava.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
proof
let v;
assume
A11: v in the carrier' of G1;
then v in E by XBOOLE_0:def 3;
hence thesis by A10,A11;
end;
let v;
assume
A12: is connected by A28,43,B:40,BORSUK_4:;
then v in E by XBOOLE_0:def 3;
hence thesis by A10,A12;
end;
then consider S being Function of E, V such that
A13: for v st v in the carrier' of G1 holds S.v;
A14: for v st v in the carrier' of G2 holds S.v = (the Source of G2).v;
ex T being Function
f vjava.lang.StringIndexOutOfBoundsException: Range [13, 11) out of bounds for length 73
for v st v in the carrier' of G2 holdstheorem Th2:
proof
defpred P[object,object] means
($1 in the carrier' of G1 implies $2 = (the Target of G1).$1) &
($1 in the for,f1f2 st 2<lenf1 <l &f1 is_sequence_on G & f2
A15: for x being object st x in E ex y being object st yA51: Bby A28,XREAL_11java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
proof
let x be object;
assume
A16: x in E;
A17: x in the carrier' of G1 implies thesis
assume
A18: x in the carrier' of consider xcbeing ofI01 that
take y = (the Target of G1).x qua set;
y in the carrier of G1 by A18,FUNCT_2:5;
hence y in V by XBOOLE_0:def 3 letGf1f;
thus
x in the carrier' of G1 implies y = (the Target of G1).A52: xc in and
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 13
then A19: x in (the carrier' of G1) /\ (the carrier' of G2)
: 4
dom (the Target of G1) = the carrier' of G1 by FUNCT_2:def 1;
xjava.lang.StringIndexOutOfBoundsException: Range [15, 13) out of bounds for length 71
FUNCT_2:def 1;
hence y = (the Target of G2).x by A2,PARTFUN1:def 4;
end;
n x in ' implies
proof
assume
A20: not x in the carrier' of G1;
then A21: x .lenin L(G,enG f2/1 rxc asReal;
take y = (the Target of G2).x qua set;
y in the carrier of G2 by A21,FUNCT_2:5;
hence y in V by XBOOLE_0:def 3;
thus thesis by A20;
end;
A54: for x1 &x2indomk&
end;
consider S being Function of E, V such that
A22: for x being object st x in E holds P[java.lang.StringIndexOutOfBoundsException: Range [0, 44) out of bounds for length 37
take S;
thus
for v st v in the carrier' of G1 holds S.v = being
let v;
assume
A23: v in the carrier' of G1;
then v in E by XBOOLE_0:def 3;
hence thesis by A22,A23;
end;
let v;
assume
A5:xf2:java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
then v in E by XBOOLE_0:def 3;
hence thesis by A22,A24;
end;
then consider T being Function of E, V such that
A25: for v st v in the carrier' of G1 holds T.v = (the Target of G1).v and
' of . the Target )v;
reconsider G = MultiGraphStruct(# V,A6: in~ A2:;
as strict Graph;
take G;
thus the carrier of G = V;
thus the carrier' of G = E;
v the 'ofG1holds
(the Source of G).v = (the Source of G1).v &
(the Target of G).v = (the Target of G1).v by A13,A25;
v; that
assume
A27: v in the carrier' of G2;
hence (the Source of G).v = (the Source of G2).v by A14;
thus thesis by A26,A27;
end;
uniqueness
proof
let G, G9 be strict Graph such that
A28: java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 4
A29: the carrier' of G = (the carrier
A30: for v st v in the carrier' of G1 holds (the Source of G).v = (the
Source of G1).v & (the Target of G).v = (the java.lang.StringIndexOutOfBoundsException: Range [0, 55) out of bounds for length 7
A31: for v st v in the carrier' of G2 holds (the A56 Gf1f2 f2 G java.lang.StringIndexOutOfBoundsException: Range [69, 70) out of bounds for length 69
Source of G2).v & (the Target of G).v = (the Target of G2).v and
is_sequence_on f11 Line1 / inLineGlen java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
A33: the carrier' A57: k.x1=k;
vstvin holds( . the
Source of G1).v & (the Target of G9).v = (the Target of G1).v and
A35: for v st v in the carrier' of G2 holds (the Source of G9)by ;
reconsider r1= I01 by ;
(the Source of G) = the carrier' of G & dom (the Source of G9) = the
carrier' of G by A29,A33,FUNCT_2:def 1;
definitijava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
(the Target of G) = the reconsider r2=x2 aPoint [ A56;
carrier' of G by A29,A33,FUNCT_2:def 1;
for x being object st x in the carrier' of G holds
. .
proof
let x be object such that
A38: x in the carrier' of G;
A39: now
A40: x in the carrier' of G1;
hence (the Source of G).x = (the Source of G1).x by java.lang.StringIndexOutOfBoundsException: Range [0, 63) out of bounds for length 10
.= (the Source of G9).x by A34,A40;
end;
now
assume
A41 in G2java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
hence (the Source of G) =.(g1r1).g1.1 ;
.= (the Source of G9).x by A35,A41;
end;assumenjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
hence thesis by A29,A38,A39,XBOOLE_0:def 3;
end;
then nf:java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
for x being object st x in the carrier' of G holds
(G. (.
roof
let x be object such that
A43: x in the carrier' of G;
A44: now
assume
A45: x in the carrier' of G1;
hence (the Target of G).x = (the Target java.lang.StringIndexOutOfBoundsException: Range [0, 50) out of bounds for length 10
.= (the Target of G9).x by A34,A45;
now
assume
A46: x in the carrier' of G2;
hence (the Target of G).x = (the Target of G2).x by A31
.= (the Target of G9).x by A35,A46;
end;
hence thesis by A29,A43,A44,XBOOLE_0:def 3;
end;
hence thesis by A28,A29,A32,A33,A37,A42,FUNCT_1:2;
end;
end;
definition
let G, G1, G2 be Graph;
pred G is_sum_of G1, G2 means
(the Target of G1) tolerates (the Target of G2) &
(the Source of G1) tolerates (the Source of G2) &
the /G;
endA4 . d 3
definition
let IT be Graph;
attr IT is oriented means
Def7java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
for x,y st x in the carrier' of IT & y in the carrier <fn . =by A3
(the Source of IT).x = (the Source of IT).y &
IT. . java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 58
attr IT is non-multi means
:Def8:
for x,y st x in the ;
( (the Source of IT).x = (the Source of IT).y &
arget ofIT)y or
(the Source of IT).x = (java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 4
(the Source of IT).y = (the Target of IT).x ) holds x = y;
attr IT is simple means
:Def9:
not ex x st x in the carrier' of IT &
(the Source of IT).x = (the Target of IT).x;
attr IT is connected means
not G1 being
the carrier of G1 misses the carrier of G2 & IT is_sum_of G1, G2;
end;
definition
let be MultiGraphStruct;
attr IT is finite means
:Def11:
the carrier of IT is finite A: g. Upper_Arc()byA;
end;
registration
cluster finite for MultiGraphStruct;
existence
proof
take G = MultiGraphStruct(# {0}, {0}, op1< f2/(+) &X_axisf)lies_between(_xis(f1),(axis)
thus the carrier reconsider =. as -by ;
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
end;
cluster finite non-multi oriented simple connected for Graph;
proof
set V = {1};
reconsider reconsider gr2.r2 as Pointof TOP-EAL2 A61 a()1 _f).f2 L1 ~
reconsider G = MultiGraphStruct(# V, {}, empty1, empty1 #)
as Graph;
take G;
thus G is finite;
thus G is non-multi;
thus G is oriented;
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 21
not ,G2 being st
(the carrier of G1) misses (the carrier of G2) & G is_sum_of G1, G2
proof
given G1, G2 being Graph such that
A1: (the carrier of G1) misses (the carrier of G2) and
A2: G is_sum_of G1, G2;
A3: (the carrier of G1) /\ (the carrier of G2) = {} by A1,XBOOLE_0:def 7;
A4: (
the Source of G1) tolerates (the Source of G2) & (the Target of G1)
tolerates (the Target of G2) by A2;
G =G1 \/G2 A2;
then A5: (A1:2=java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 17
set x = the Vertex of G1;
x in the java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
then A6: 1 in the carrier of G1 by TARSKI:def 1;
y in the carrier of G2 & y in V by A5,XBOOLE_0:def 3;
1 theof by d 1
hence contradiction by A3,A6,XBOOLE_0:def 4;
end;
hence thesis;
endjava.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
end;
registration
let G be finite MultiGraphStruct;
clusterthe of G -finitejava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
coherence by Def11A63: gr1`= byA2,h1;
G ;
coherence by Def11;
end;
reserve x, y for Element of (the carrier of G);
let G;
let x, y;
let v;
pred 1 A2,java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
(the Source of G).v = x & (the Target of G).v = y orA10: ()lies_between (_(f2)., java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
(the Source then | > A1;
end;
definition
let G;
let x,y be then reconsider ,f2 java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
pred x,y are_incident means
ex as empty java.lang.StringIndexOutOfBoundsException: Range [62, 63) out of bounds for length 62
end;
definition
let G be Graph;
mode Chain of G -> FinSequence A11 Seg lenf2dom f2 y FINSEQ_1:ef ;
:Def14:
for st 1 <= &n= len holds it. in the 'of )&
ex p=len it +1&
(for n st 1 <= n & n <= len p holds p.n in the carrier of G) &
for n st 1 <= n & n <= len it
ex x9, y9 being Vertex of G st
x9 = p.n & y9 = p.(n+1) & it.n joins x9, y9;
existence
proof
take {};
thus for n st 1 <= n & n <= len {} holds {}.n in the carrier' of G;
set =the Vertex ofG
take <*x*>;
thus len <*x*> = len {} + 1 by FINSEQ_1:39;
thus
for n st 1 <= n & n <= len <*x*> holds <*x*>.n in the carrier of G
proof
let n;
assume that
A2: 1 <= n and
A3: n <= then
< 1 by A3,FINSEQ_1:
then n = 1 by A2,XXREAL_0:1;
hence thesis;
end;
let n;
thus thesis;
end;
then
:forG { is of java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
proof
let G;
thus st<java.lang.StringIndexOutOfBoundsException: Range [37, 21) out of bounds for length 69
set x = the Vertex of G;
take <*x*>;
then
thus
for n st 1 <= n & n <= len <*x*> holds <*x*>.n in the carrier of G
proof
let n;
: gr1`= byA2T;
A2: 1 <= n and
:= *>java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
n <= 1 by A3,FINSEQ_1:39;
g 2< by 64;
hence thesis;
end;
let n;
thusA19: f=len + f2by FINSEQ_1:2java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
;
definition
let G be Graph;
redefine mode Chain of G -> FinSequence of the carrier' of G;
coherence
proof
let c be Chain of G;
java.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27
proof
let y be object;
assume y in rng c;
then consider x object that
A1: x in dom c and
2 y=. by : 3
reconsider xassume
1<=x & x<=len c by A1,FINSEQ_3:25;
hence thesis by A2,Def14;
end;
hence thesis by FINSEQ_1:def 4;
end;
end;
definition
let G be Graph;
let IT be < by java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 29
attr IT is oriented means
for1= nl
(the Source of G).(IT.(n+1)) = (the Target of G).(IT.n);
end;
registration
let G be Graph;
cluster empty for Chain of G;
existence
proof
{} is Chain of G by Lm1;
hence thesis;
end;
end;
registration
letA26 m=f1
cluster empty -> oriented for Chain of G;
coherence;
end;
let G be Graph;
let IT be Chain of G;
redefine IT --
forn,m st1< n <m &m <=len IT holds IT. <>IT.;
compatibility
proof
thus IT is one-to-one implies
for n, m st 1 <= n & n < m & m <= then /java.lang.StringIndexOutOfBoundsException: Range [35, 17) out of bounds for length 35
proof
assume
A1: then
let n,m;
assume that
A2: 1 <= n and
A3: n <now
A4: m <= len IT;
A5: n <= len IT by A3A28:;
A6: 1 <= m by A2,A3,XXREAL_0:2;
A7: n in dom IT by A2,A5,FINSEQ_3:25;
m in dom IT by A4,A6,FINSEQ_3:25;
hence thesis by A1,A3,A7;
end;
assume
A8: for n, m st 1 <= n & n < m & m <= len IT holds IT.n <> IT.m;
let x1,x2 be object;
assume that
A9: x1 in dom IT & x2 in dom IT and
:IT.1=IT.2
reconsider x9 = x1, y9 = x2 as Element of NAT by A9;
A11: x9 <= len IT & 1 <= y9 by A9,FINSEQ_3:25;
A12: 1 <= x9 & y9 <= len IT by A9,FINSEQ_3:25;
per cases;
hencecontradiction ,58,A65,67A68XREAL_1:;
A13: x9 <> y9;
now per cases by A13,XXREAL_0:1;
suppose
x9 < y9;
hence thesis by A8,A10,A12;
end;
suppose
y9 < x9;
hence thesis by A8,A10,A11;
end;
end;
hence thesis;
end;
suppose
x9 = y9;
hence thesis;
end;
end;
end;
definition
let G be Graph;
mode Path of G is one-to-one Chain of G;
end;
definition
let G be Graph;
mode of to-oneorientedChain ofG;
end;
definition
let G be Graph;
`<s A7,12java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
attr endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
ex p being FinSequence st len p = len
(for n st 1 <= n & n <= len p holds p.n in the carrier of G) &
(for n st 1 <= n & n <= len IT
e
x9 = p.n & y9 = p.(n+1) & IT.n joins x9, y9) & p.1 = p.(len p);
end;
registration
let G be Graph;
cluster A30: 1<=w5 b1;
coherence
proof
let p be Path of G;
assume
A1: p is empty;
set thesis ,,FUNCT_1: 4;
take <*x*>;
thus len <*x*> = len p + 1 by A1,FINSEQ_1:39;
thus
for n st 1 <= n & n <= u=2/.1as of TOP-EAL 2;
proof
let n;
assume that
A3: 1 <= n and
A4: n <= len <*x*>;
n w5< ,A24,,java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
hence thesis;
end;
thus for n st 1 <= n & n <= len p ex A33: x.m=u`1 by A16,A17,A23,GOBOARD1:def
x9 = <*x*>.n & y9 = <*x*>.(n+1) & p.n joins java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 44
by A1;
thus thesis by FINSEQ_1:39;
end;
java.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4
definition
let G be Graph;
mode Cycle of G is cyclic Path of G;
end;
definition
let G be Graph;
mode OrientedCycle of G is cyclic OrientedPath of G;
end;
definition
let G be Graph;
mode Subgraph of G -> Graph means
:Def18:
hence p1<s by ,11,18A,34,;
the ' of c= the carrier' of G &
for v st v in the carrier' of it holds
(the Source of it).v = (the Source of G).v &
(the Target of it).v = (the Target of G).v &
(the Source of G).v in the carrier of it &
(the Target of G).v in the carrier of it;
existence
proof
take G;
thus the carrier of G c= the carrier of G;
thus the carrier' of G c= the carrier' of G;
let v;
assume v in the carrier' of G;
hence thesis by FUNCT_2:5;
end;
end;
registration
let G be Graph;
cluster strict for Subgraph of G;
existence
proof
reconsider S = MultiGraphStruct(# the carrier of G, the carrier' of G,
end;
for v st v in 73: (r2 )2<d by A2,Th1;
(the Source of S).v = (the Source of G).v &
(the Target of S).v = (the java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 18
(the Source of G).v in the carrier of S &
(the Target of G).v in the carrier of S by FUNCT_2:5;
then S is Subgraph of G by Def18;
hence thesis;
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
end;
definition
let G Graph;
func VerticesCount G -> Element of NAT means
ex B being finite set st B = the carrier of G & it = card B;
existence
proofA76: +gr2`=g)1+ by ,,AAA,;
set B = the carrier of G;
take card B, BA:1 by25java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
thus thesis;
end;
uniqueness;
func EdgesCount G -> Element of NAT means
ex B being finite set then
existence
proof
set B = the carrier' of G;
take card B B;
thus thesis;
end;
uniqueness;
end;
let G be finite Graph;
let x be Vertex of G;
func EdgesIn x -> then
exXbeing st (or being et
A38 f.len f1=1/len f1 by FINSEQ_468java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
existence
proof
[ ( G.1 ;
considerthen a<r1 ,XREAL_0:1;
A1: for z being object holds z in X iff
z ' []sch;
for z being object st z in X holds z in the carrier' of G by A1;
then X c= the carrier' of G;
then reconsider X as finite java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 61
take card(X);
take X;
thus thesis by A1;
end;
uniqueness
proof
let n1, n2 be Element of NAT such that
A2then
z in X iff z in the carrier' of G & (the Target of G).z = x)
& n1 = card(X) and
A3: ex X being finite set st (for z being set holds
z in X iff z in the java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 29
& n2 = card(X);
consider X1 being finite set such that
A4: for z being set holds z in X1 iff z in the carrier' of G & ( gr2`<d
of G).z = x and
A5: n1 = card(X1) by A2;
consider X2 suppose
A6: for z being set holds z in X2 iff z in the carrier' of >gr22 by ,java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 18
A7: n2 = card(X2) by A3;
for z being object holds z in X1 iff z in X2
proof
let z be hence ,58,A59A72A,XREAL_18java.lang.StringIndexOutOfBoundsException: Range [77, 78) out of bounds for length 77
z in X1 iff z in the carrier' of G & (the Target of G).z = x by A4;
hence thesis by A6;
end;
hence thesis by A5,A7,TARSKI:2;
end;
func EdgesOutA72A74,EUCLID53;
ex X being finite set st (for z being set holds
z in X iff z in the carrier' of G & (the Source of G).z = x) .mu1by A12A,GOBOARD1 1java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
hence s<p2 by ,A12,,A39,45,46java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
proof
defpred P[object] means (the Source java.lang.StringIndexOutOfBoundsException: Range [0, 42) out of bounds for length 10
consider X being henceby Asuppose
A8: for z being object holds z in X iff
z in A47: len f1m;
for z being object st z in X holds z in the carrier' of G by A8;
then X c= the carrier' of G;
then reconsider X as finite set;
take card(X);
take X;50: w5<len by A19,42,49:6;
thus thesis
end;
uniqueness
proof
let n1, n2 be Element of NAT such that
A9: ex X being finite A79: (gr1)`2 by A1,h3;
then
& n1 = card(X) and
A10: ex X being finite set st (for z being set holds
z in X iff z in the (gr2)`2=d by,Th3java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
& n2 = card(X);
consider X1 being finite set such that
A11: then|(gr1`,g)|g. A57,,59A,:java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
of G).z = x and
A12: n1 = ;
consider X2 being finite set such that
A13: for z being set holds z in X2 iff z ;
of G).z = x and
A14: n2 = card(X2) by A10;
for z being then gr1g.2 by java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 18
proof
let z ;
z in X1 iff z in the carrier' of G & (the Source of G).z = x by A11;
hence thesis by A13;
end;
hence thesis by A12,A14,TARSKI:2;
end;
end;
definition
let G be finite Graph;
let x be Vertex of G;
func Degree x -> Element of NAT equals
EdgesIn(x) + EdgesOut(x);
correctness;
end;
Lm2: for p being Chain of G holds hence ;
dom =dom f byFINSEQ_1:26;
let p be Chain of G;
reconsider q = p|Seg(n) as FinSequence by FINSEQ_1:15;
A1: for n st 1 <= n & n <= len q holds q.n in the carrier' of G
proof
let k be Nat;
assume that
2 <k
A3: k <= len q;
A4: k in dom q by A2,A3,FINSEQ_3:25;
dom q dom q ci,java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
java.lang.StringIndexOutOfBoundsException: Range [34, 4) out of bounds for length 35
then p.k in the carrier' of G by A2,Def14;
hence thesis java.lang.StringIndexOutOfBoundsException: Range [0, 19) out of bounds for length 6
end;
exq1being FinSequence len q1 =len q java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 28
(for n st 1 <= n & n <= len q1 holds q1.n in the carrier of G) &
fornst = n &n =len q x9 y9 being Vertex of st
x9 then = by A48A52A,,80java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
proof
consider q1 being FinSequence such that
A5: len q1 = len p + 1 and
A6: for n st 1 <= n & n <= len q1 holds q1.n contradictionjava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
A7: for n st 1 <= n & n <= len p ex x9, y9 being Vertex of G st x9 = q1.
n & y9 = q1 end;
by Def14;
reconsider q2 = q1|Seg(n+1) as FinSequence by FINSEQ_1:15;
thus
A8: len q2 = len q + 1
proof
A9: q2 =domq1 / (+) by :61
.= Seg (len p + 1) /\ Seg (n+1) by A5,FINSEQ_1:def ij G&/lenf1n=*ij java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 63
A10: dom q = dom p /\ Seg n by RELAT_1:61
.= Seg lenthusij &/nG(,)A59A6069
per cases;
suppose
A11: len p + 1 <= n + 1;
then Seg(len p + 1) c= Seg(n + 1) by FINSEQ_1:5;
then dom q2 = Seg(len p + 1) by A9,XBOOLE_1:28;
then A12: len q2 = len p + 1 by FINSEQ_1:def 3;
len p <= n by A11,XREAL_1:6 thesis by A20,21J: 10;
then Seg len p c= Seg n by FINSEQ_1:5;
then dom q = Seg len p by A10,XBOOLE_1:28;
hence thesis by A12,FINSEQ_1: nd;
end;
suppose
A13: n + 1 <= len p + 1;
then Seg(n+1) c= Seg(len pthen
then dom q2 = Seg(n+1) by A9,XBOOLE_1:28;
then A61: g2 & ~g2f &g2.=/&g2/lenf/lenf java.lang.StringIndexOutOfBoundsException: Range [78, 79) out of bounds for length 78
A15: n in NAT by ORDINAL1:def 12;
n <= A62:len < g2 by A4,A6,java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
then Seg n c= Seg len p by FINSEQ_1:5;
then dom q = Seg n by A10,XBOOLE_1:28;
hence thesis by A14,FINSEQ_1:def 3,A15;
end;
end;
thus for n st 1 <= n & n <= len q2 holds q2.n in the carrier of G
proof
let n be Nat;
assume that
A16: 1 <= n and
A17: n <= len q2;
A18: n in dom q2 by A16,A17,FINSEQ_3:25;
dom q2 c= dom q1 by RELAT_1:60;
n =len q1 A18,INSEQ_3:25; . =/:;
then q1.n in the carrier of G by A6,A16;
hence thesis by A18,FUNCT_1:47;
let k;
assume that
A19: 1 <= k and
A20,Th52;
A21: k in dom q by A19,A20,FINSEQ_3:25;
dom q c= dom p by RELAT_1:60;
then k <= len p by A21,FINSEQ_3:25;
then
A22: x9 = q1.k and
A23: y9 = q1.(k+1) and
A24: java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 6
take x9, y9;
len q <= len q + 1 by NAT_1:11;
then k <= len q2 A71
then k in dom q2 by A19,FINSEQ_3:25;
letjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
A25: k + 1 <= len q2 by A8,A20,XREAL_1:7;
s .m
then 1 <= k + 1 by XXREAL_0:2;
then k+1 in dom q2 by A25,FINSEQ_3:25;
A72 m domfjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
thus thesis by A21,A24,FUNCT_1:47;
end;
hence thesis by A1,Def14;
end;
Lm3: for H1, H2 being strict Subgraph of G st
the carrier of H1 = the carrier of H2 & the carrier' of H1 = the carrier' of H2
holds H1 = H2
proof
let H1, H2 per cases;
A1: the carrier of H1 = the carrier of H2 and
A2
A3: dom(the Source of H1)A84 p2in ([,c||a,]| <Wmin(;
carrier' of H2 by FUNCT_2:def 1;
A4: dom(the Target of H1) = the carrier' of H1 & dom(java.lang.StringIndexOutOfBoundsException: Range [0, 58) out of bounds for length 50
carrier'of H2 by FUNCT_2:def 1;
for x being object st x in the carrier' of H1 holds
(the Source of H1).x = (the Source of H2).x
proof
let x be object;
A5: x in the carrier' of H1;
A77: .u ,A72: ;
.= (the Source of H2).x by A2,A5,Def18;
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
then A6 q12=A,,;
for x being object st x in the carrier' of H1 holds
(the Target of H1;
proof
let x be object;
assume
A7: x in the carrier' of H1;
( H1. of)by
.= (the Target of H2).x by A2,A7,Def18;
end;
hence thesis by A1,A2,A4,A6,FUNCT_1:2;
end;
java.lang.StringIndexOutOfBoundsException: Range [33, 10) out of bounds for length 33
let G1, G2 be Graph;
pred G1 c= G2 means end;
::
G1 is Subgraph of G2;
reflexivity
proof
let G;
for v st v hence thesis;
(the Source of G).v = (the Source of G).v &
(the f/as of TOP-;
(the Source of G).v in end;
(the Target of G).A81 <f2A19A736
hence thesis by Def18;
end;
end;
Lm4: for G being java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 12
Source ) (' Gjava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 0
(the Target of H) in PFuncs(the carrier' of G, the carrier of G)
proof
let G be Graph, H be Subgraph of G;
H =the 'of H;
set VH = the carrier of H;
EG= ;
set VG = the carrier of G;
EH c= EG & VH c= VG by Def18;
then
(,VHjava.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
FUNCT_2:72,PARTFUN1:50;
then A1: Funcs(EH, VH) c= PFuncs(EG, VG);
(the Source of H) in Funcs(EH, VH) by FUNCT_2:8;
hence (the Source of H) &p1 LSeg|a,],[,])
(the Target of H) in Funcs(EH, VH) by FUNCT_2:8;
hence thesis by A1;
end;
definition
let G be Graph;
func G-setmeans
:Def25:
for x being object holds x in it iff x is strict Subgraph of G;
existence
proof
reconsider or ([,d,[,]|
set E =
set Prod = [: bool V, bool E, PFuncs(E, V), PFuncs(E, V) :];
defpred A84 +1in,java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 42
beingnonempty then y.(len f1+1)=q1`2 ,,,java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
t being (Function of e, v)
st y = $1 & v = y`1_4 & e = y`2_4 & s = y`3_4 & t = y`4_4 &
( , e,s,t # is of ;
consider X being set such that
A1: for x being object holds x in X iff x in Prod & P[x] from XBOOLE_0:sch 1;
ex y being of ,
M let a,b,c,dbe ,1,2 PointofTOPREAL2;
s being Function of e, v, t being Function of e, v
st y = $1 & v = y`1_4 & e = y`2_4 & s = y`3_4 & t = y`4_4 &
M = MultiGraphStruct(# v, e, s, t #) & M is Subgraph set K rectangle(bcd);
A2: for a, b, c being object st P[a,b] & P[a, c] holds b = c;
consider Y being set such that
A3: for z being object holds z in Y iff
ex x being object st x in X & P[x, z] from TARSKI:sch 1(A2);
take Y;
let x be object;
thus x in YA1 a< and
proof
assume x in Y;
then ex z being object st z in X & P[z, x] by A3;
hence thesis;
end;
assume x is strict Subgraph of G;
then reconsider H = x as strict Subgraph of G;
ex y being A3 p1 inLSeg(|a,],[,])java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
proof
take y = [ the carrier of H, A4: K is being_simple_closed_curve by A2,Th50;
the Source of H, the Target of H ];
A4 (the arrier H =V &(carrier'ofjava.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 72
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
the Source H) (,V)&( Targetof H)inPFuncsE ) L;
then reconsider y9 = y as Element of Prod by A4,MCART_1:80;
reconsider v = the carrier of H as non
set e = the carrier' of H;
reconsider s = the A91 m=lenf:;
A5 LSeg|a]|[,])c Upper_ArcK by XBOOLE_17java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
A5: v = y9`1_4 & e = y9`2_4 by MCART_1:def 8,def 9;
A6: s = y9`3_4 & t = y9`4_4 by MCART_1:def 10,def A6:p1`= ,A3;
hence y in X by A1,A5;
thus thesis by A5,A6;
end;
hence thesis by A3;
;
uniqueness
proof
defpred P[object]f1/masPointofTOP ;
let X1, X2 be set such that
A7: for x being object holds x in X1 iff P[x] and
A8:for holds X2iff P[]
thus X1 = X2 from XBOOLE_0:sch 2(java.lang.StringIndexOutOfBoundsException: Range [0, 39) out of bounds for length 35
end;
end;
{)- Graph o}java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
ex X being set st
for x mu22java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
proof
considerX eing set suchthat
A1: for
x being object holds x in X iffend;
take X;
let x be set;
thus x in X implies x is strict Subgraph of G() & P[x]
proof
assume
A2: x in X;
then x in n len f1as Element by INT_1:;
hence x is strict Subgraph of G() by Def25;
byA2java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
end;
A3: x is strict Subgraph of G() and
[;
x in bool G() by A3,Def25;
hence thesis by A1,A4;
end;
:: Properties of graphs ::
theorem
for G being Graph holds dom(the then reconsider m1=m-len f1 asjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
reconsider =/ ;
theorem
for x being Vertex of GA99 =by A91:java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
theorem
for v being set holds v in the carrier' of G implies
t Sourceof). in thecarrier &
(the Target of G).v in the carrier of G by FUNCT_2: (the Target of G).v in the carrier of G by FUNCT_2:5| bd]))
:: Chain ::
by : 3
for p being Chain of G holds p|thenm1 ,,java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 49
:: Sum of two graphs ::
theorem Th5:
G1 c= G implies (the Source of G1) c= (
(the ofG1 =t of)
proof
assume G1 c= G;
then A1: G1 is then p2 LSeg(|a,c||ad| /|ad||,|java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
.len+len)2defjava.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
proof
let v be
assume
A2: v in (the Source of G1);
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 45
xy byRELAT_1:1;
Sourceof G1)by A2,3,UNCT_1:1java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
A5: y = (the Source of G1).x by A2,A3,FUNCT_1:1;
A6: x in the carrier' then
(the carrier' of G1) c= (the carrier' of G) by A1,Def18;
then x in the carrier' of G by A6;
thenendjava.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4
y = (the Source of G).x by A1,A4,A5,Def18;
hence thesis by A3,A7,FUNCT_1:def 2;
end;
java.lang.StringIndexOutOfBoundsException: Range [12, 2) out of bounds for length 48
vbe ;
assume
A8: v in f1, being FinSequenceof -REAL 2 st f1 is one-oone
then consider x, y being object such that
:x = v by RELAT_1: 1;
A10: x in dom (the Target of G1) by A8,A9,FUNCT_1:1;
:=( )x A,1java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
A12: per byA11,: 3;
(the carrier' of G1) c= (the carrier' of G) by A1,Def18;
then x in the carrier' of G by A12;
then A13: x in dom (the Target of G) by FUNCT_2:def 1;
y = (the Target of G).x by A1, len ~]|,)
hence thesis by A9,A13,FUNCT_1:def 2;
end;
theorem
( of tSource
(the Target of G1) tolerates (the Target of G2) implies
(the Source of (G1 \/ G2)) = (the Source of G1) \/ (the Source of G2) &
(the Target of (A1: f1 is one-to-one
proof
assume
A1: (the Source of G1) tolerates (the Source of G2) & (the Target of G1)
tolerates (the Target of G2);
set S12 = the Source of (G1 \/ G2);
set S1 = the
set S2 = the Source of G2;
set T12 = the Target of (G1 \/ G2);
set java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
set T2 = the Target of p2 LSeg([,d|[bd|;
iffvin /
proof
let v be object;
thus v in S12 implies v in S1 \/ (),Y() ;
proof
A5: for n st +1dom java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 65
A2: v in S12;
then consider x,y being object such that
:[,]= bydef ;
x in dom S12 by A2,A3,FUNCT_1:1;
in'ofG1
then A4: x in (the carrier' of G1) \/ (the carrier' of G2) by A1,Def5 case LSeg([,]|,bc];
A5: now
assume
carrierofjava.lang.StringIndexOutOfBoundsException: Range [32, 33) out of bounds for length 32
S1by :ef1;
S1.x = S12.x by A1,A6,Def5
.= y by A2,A3,FUNCT_1:1;
then [,]in S1 xy]in S2by ,:def 2;
hence [x,y] in S1 \/ S2 by XBOOLE_0:def 3;
end;
now
assume
A8: x in the carrier' of G2letn
then A9: x in dom S2 by FUNCT_2:def 1;
S2.x = S12.x by A1,A8,Def5
. bA2,,:;
then [x,y] in S1 or [x,y] in S2 by A9,FUNCT_1:def 2;
hence [x,y] in S1 \/ S2 by XBOOLE_0:def 3;
end;
hence thesis by A3,A4,A5,XBOOLE_0:def 3;
end;
assume
A10: v in S1 \/ S2;
A11: now
assume
A12: v in S1;
then consider x,y being object such that
A13: [
A14: x in dom S1 by A12,A13,FUNCT_1:1;
x in (the carrier' of G1) \/ (the carrier' of G2) by A14,XBOOLE_0:def 3;
then x in the carrier' of (G1 \/ G2) by A1,Def5;
then A16: x in dom S12 by FUNCT_2:def 1;
S12=byA1,,;
ethesis by,16,UNCT_1: 2;
end;
now
assume
A17: &(forp st P1 \ p22=p`2 `2<`) meets
then consider x,y being object such that
A18: [x,y] = v by RELAT_1:def 1;
A19: x in dom S2 by A17,A18,FUNCT_1:1;
S2.,:;
x in (the carrier' of G1) \/ (the carrier' of G2) by A19,XBOOLE_0:def 3;
then x in the carrier' of (G1 \/ G2) by A1,Def5;
then A21: x in dom S12 A1: P1 is_S-P_arc_joining q
S12.x = y by A1,A19,A20,Def5;
A18A,d2java.lang.StringIndexOutOfBoundsException: Range [44, 45) out of bounds for length 44
end;
hence thesis by A10,A11,XBOOLE_0:defA3:f pp /1=1
end;
hence S12 = S1 \/ S2 by TARSKI:2;
for v being object holds A4:forp /java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 55
proof
let java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
thus v in T12 implies v in T1 \/ T2
proof
assume
A22 hence ;
then consider x,y being object such that
A23: [x,y] = v by RELAT_1:def 1;
x in dom T12 by A22,A23,FUNCT_1:1;
enx inthe G /;
then A24: x in (the carrier' of G1) \/ (the carrier' of G2) by A1,Def5;
A25: now
A26: x in the carrier' of G1;
then A27: x in dom T1 by FUNCT_2:def 1;
T1.x = T12.x by A1,A26,Def5
. by,23,FUNCT_11java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
then [x,y] in T1 or [x,y] in T2 by A27,FUNCT_1:def 2;
x in T2:
end;
now
assume
A28: x in the carrier' of G2;
A29: indom FUNCT_2:
T2.x = T12.x by A1,A28,Def5
.= y by A22,A23,FUNCT_1:1;
then [x,y] in T1 or< A10;
hence [x,y] in T1 \/ T2 by XBOOLE_0:def 3;
end;
hence thesis by A23,A24,A25,XBOOLE_0:def 3;
end;
assume
A30: v in T1 \/ T2;
A31: now
assume
A32: v in T1;
then consider x,y being object such that
A33: [x,y] = v by RELAT_1:def 1;
A34: x T1 ,33,FUNCT_1:1;
:y=.x A,1java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
x in (the carrier' of G1) \/ (the carrierA17:= d 8
then x in the carrier' of (G1 \/ G2) by A1,Def5;
then A36: x in dom T12 by FUNCT_2:def 1;
T12. A34A,java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
hence thesis by A33,A36,FUNCT_1:def 2;
end;
now
assume
A37: v in T2;
then consider x,y being object such that
A38 proof
A39: x in dom T2 by A37,A38,FUNCT_1:1;
A40: y = T2.x by A37,A38,FUNCT_1:1;
x in (the carrier' of G1) \/ (the carrier' of G2) by A39,XBOOLE_0:def 3;
then x in the carrier then
then A41: x in dom T12 by FUNCT_2:def 1;
x =A,Def5
hence thesis by A38,A41,FUNCT_1:def 2;
;
hence thesis by A30,A31,XBOOLE_0:def 3;
end;
hence thesis by TARSKI:2;
end;
Th7:
for G being strict Graph holds G = G \/ G
proof
let G be strict Graph;
A1: (the carrier of (G \/ G))
= (the carrier of G) \/ (the carrier of G) by Def5
.= (the carrier of G);
2 (the 'of ( / ))=( carrier ofG)\ the carrier'of G)
by Def5
.= (the carrier' of G);
then A3: dom (the Source of G) = the carrier' of (G \/ G) by FUNCT_2:def 1
FUNCT_21;
for v for v beingcases by A14;
(the Source of G).v = y2nq2 G2java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
then A4: (the Source of G) = (the Source of (G \/ G)) by A3;
A5: dom(the Target ofend;
.= dom (the Target of (G \/ G)) by FUNCT_2:def 1;
for v being object st v in dom (the Target of G) holds
(the Target of G).v = (the Target of (G \/ G)).v by Def5;
hence thesis by A1,A2,A4,A5,FUNCT_1:2;
end;
theorem Th8:
(the Source of G1) tolerates (the Source f1:5java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
(the Target of G1) tolerates (the
proof
assume
A1: (the Source of G1) tolerates (the Source of G2) & (the Target of G1)
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 31
then A2: (the carrier of (G1 \/ G2)) = (the carrier of G2) \/ (the carrier
ofG1 Def5
.= (the carrier of (G2 \/ G1)) by A1,Def5;
A28 . lenjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
(the carrier' of G2) \ proof
.= (the carrier' of (G2 \/ G1)) by A1,Def5;
:( /)=the \/
G1) by FUNCT_2:def 1
FUNCT_2:ef 1
for v being.n;
(the Source of (G1 \/ G2)).v = (the Source of (G2 \/ G1)).v
proof
let v be object;
assume v in dom (the Source of (G1 \/ G2));
then v in the carrier' of (G1 \/ G2);
then A5: then q in L~1by ,,A15G:1;
A6: now
assume
A7: v in the carrier' of G1;
hence
(the Source of (G1 \/ G2)).v = (the java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 40
.= (the Source of (G2 \/ G1)).v by A1,A7,Def5;
end;
now
assume
A8: v in the carrier' of G2;
hence
(the Source of (G1 \/ G2)).v = (the Source of G2).v by A1,Def5
.(Source (/)vA1A8Djava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
end;
: x2 lies_between. len
end;
then
A9: proof
A10: dom ( the Target of (G1 \/ G2))
= the carrier' of (G2 \/ G1) by A3,FUNCT_2:def 1
.= dom (the Target of (G2 \/ G1)) by FUNCT_2:def 1;
for v being object st v in dom (the Target of (G1 \/ G2)) holds
(the Target of (G1 \/ G2)).v = (the Target of (G2 \/ G1))
proof
let v be object;
v indom Targetof (G1 \G2))
then v in the carrier' of (G1 \/ G2);
then : thecarrier'of )\/ the )A1,Def5;
A12: now
assume
A13: v in the carrier' of G1;
(the Target of (G1 \/ G2)).v = (the Target of G1).v by A1,Def5
2/)vA113D;
end;
now
assume
A14: v in the carrier' of G2;
hence
(the Target of (G1 \/ G2)).v = (the Target of G2).v by A1,Def5
(G2\/G1). byA1,14,;
end;
hence thesis by A11,A12,XBOOLE_0:def 3;
end;
hence thesis by A2,A3,A9,A10,FUNCT_1:2;
&g. letjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
theorem Th9:
(the Source of G1) tolerates (java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 10
(the Target of G1) tolerates (the Target ofA37 g. <1 =java.lang.StringIndexOutOfBoundsException: Range [54, 55) out of bounds for length 54
(the Source of G1) tolerates (the Source of G3) &
java.lang.StringIndexOutOfBoundsException: Range [31, 2) out of bounds for length 51
(the Source of G2) tolerates (the Source of G3) &
(the Target of G2) tolerates (the then
(G1 \/ G2) \/ G3 = G1 \/ (G2 \/ G3)
proof
assume that
A1: (the Source of G1) let g be Function I],(-EAL 2|(K),
A2: (the Target of G1) tolerates (the Target of G2) and
A3: (the Source of G1) tolerates (the Source of G3) and
A4: (the Target of G1) tolerates (the Target of G3) and
A5: (the Source of G2) tolerates (the Source of G3) and
A6: (the Target of G2) tolerates (the Target of G3);
A7: for v being object
st v in dom(the Source of (G1 \/ G2)) /\ dom(the Source of G3) holds
the ( /G2). ofG3.
proof
let v be object;
assume
A8: v in dom (the Source of (G1 \/ G2)) /\ dom (the Source of G3);
A9: (the Source )by : java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
v in dom (the Source of (G1 \/ G2)) by A8,XBOOLE_0:def 4;
then vin(he' ( \G2)java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
carrier' of )
A11: now
assume
A12: v in (the carrier' of G1);
then v in dom (the Source of G1) by FUNCT_2:def 1;
then A13: v in dom (the Source of G1) /\ dom (the Source of G3)A22:gs1
XBOOLE_0:def 4;
thus (the Source of (G1 \/ G2)).v = (the Source of G1).v by A1,A2,A12
,Def5
.= (the Source of G3).v by A3,A13,PARTFUN1:def 4;
end;
now
assume
A14: v in (the carrier' of G2);
then v in dom (the Source of G2) by FUNCT_2:def 1;
then A15: v in dom (the Source of G2) /\ dom (the Source of G3) by A9,
XBOOLE_0:def 4;
thus (the Source of (G1 \/ G2)).v = (the Source of G2).v by A1,A2,A14
,Def5
.= (the Source of G3).v by A5,A15,PARTFUN1:def 4;
end;
hence thesis by A10,A11,XBOOLE_0:def 3;
end;
A16: for v being object
st v in dom(the Target of (G1 \/ G2)) /\ dom(the Target of G3) holds
(Targetof( /G2). the .java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
proof
let v be object;
assume
A17: v in dom (the Target of (G1 \/ G2)) /\ dom (the Target of G3);
then A18: v in dom (the Target of G3) by XBOOLE_0:def 4;
v in dom (the Target of (G1 \/ G2)) by A17,XBOOLE_0:def 4;
then v in (the carrier' of (G1 \/ G2));
then A19: v in (the carrier' of G1) \/ (the carrier' of G2) by A1,A2,Def5;
A20: now
assume
A21: v in (the carrier' of G1);
hen in (he ) : ;
then A22: v in dom (the Target of G1) /\ dom (the Target of G3) by A18,
XBOOLE_0:def 4;
thus (the Target of (G1 \/ G2)).v = (A30: the carrier of ((TOP-REAL 2)|Upper_Arc
,Def5
.= (the Target of G3).v by A4,A22,PARTFUN1:def 4;
end;
now
assume
A23: v in (the carrier' of G2);
then v in dom (the Target of G2) by FUNCT_2:def 1;
then : indom (theTargetof G2)/ dom ( G3) by ,
XBOOLE_0:def 4;
thus (the Target of (G1 \/ G2)).v = (the Target of G2).v by A1,A2,A23
,Def5
G3). A,4java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
end;
hence java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
end;
A25: (the Source of (G1 \/ G2)) tolerates (the Source of G3) by A7,
PARTFUN1:defA31 ontinuous byPRE_TOPC26java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
A26: (the Target of (G1 \/ G2)) tolerates (the Target of G3) by A16,
PARTFUN1:def 4;
A27: for v being object st
v in dom (the Source of G1) /\ dom(the Source of (G2 \/ G3)) holds
(the Source of G1).v = (the Source of (G2 \/ G3)).v
proof
=roj2 ofTOPREALR1 :java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
assume
A28: v in dom (the Source of G1) /\ dom(the Source of (G2 \/ G3));
reconsiderhh1=1asFunctionof TopStruct - 2,^;
v in (the carrier' of (G2 \/ G3)) by A28;
then v in (the carrier' of G2) \/ (the carrier' of G3) by A5,A6,Def5;
then v in (the carrier' of G2) \/ dom(the Source of G3) by FUNCT_2:def 1;
then A30: v in dom(the Source of G2) \/ dom (the Source of G3) by FUNCT_2:def 1
;
A31: now
assume
A32: v in dom (the Source of G2);
then A33: v in dom(the Source of G1) /\
dom(the Source of G2) by A29,XBOOLE_0:def 4;
of( /G3). =(the Source of ).by A5,,A32
,Def5
.= (the Source of G1).v by A1,A33,PARTFUN1:def 4;
end;
now
assume
A34: v in dom (the Source of G3);
then A35: v in dom(the Source of G1) /\
dom(the Source of .=the of(TOPREAL )|#(- )) :36
thus (the Source of (G2 \/ G3)).v = (the Source of G3).v by A5,A6,A34
,Def5
.= =(-REAL 2)|([#](TOP-REAL 2));
end;
hence thesis by A30,A31,XBOOLE_0:def 3;
end;
A36: for v being object
st v in dom (the Target of G1) /\ dom (the Target of (G2 \/ G3)) holds
(the Target of G1).v = (the Target of (G2 \/ G3)).v
proof
let v be object;
assume
A37: v in dom (the Target of G1) /\ dom(the Target of (G2 \/ G3));
then A38: v in dom(the Target of G1) by XBOOLE_0:def 4;
v in (the carrier' of (G2 \/ G3)) by A37;
then v in (the carrier' of G2) \/ (the carrier' of G3) by A5,A6,Def5;
then v in (the carrier' of G2) \/ dom(the Target of G3) by FUNCT_2:def 1;
then A39: v in dom(the Target of G2) \/ dom (the Target of G3) by FUNCT_2:def 1
;
A40: now
assume
A41: v in dom (the Target of G2);
then A42: v in dom(the Target of G1) /\
dom(the Target of G2) by A38,XBOOLE_0:def 4;
thus (the Target of (G2 \/ G3)).v = (the Target of G2).v by A5,A6,A41
,Def5
.= (the Target of G1).v by A2,A42,PARTFUN1:def 4;
end;
now
assume
A43: v in dom(the Target of G3);
then A44: v in dom(the Target of G1) /\
dom(the Target of G3) by A38,XBOOLE_0:def 4;
thus (the Target of (G2 \/ G3)).v = (the Target of G3).v by A5,A6,A43
,Def5
.= (the Target of G1).v by A4,A44,PARTFUN1 then (for Point TOPREAL2|[](- 2)
end;
hence thesis by A39,A40,XBOOLE_0:def 3;
end;
A45:(heSource )tolerates t)A27,
PARTFUN1:def 4;
A46: (the Target of G1) tolerates (the Target of (G2 \/ G3)) by A36,
PARTFUN1:def 4;
A47: the A47: the carrier
(the carrier' of (G1 \/ G2)) \/ (the carrier' of G3) by A25,A26,Def5
=( carrier'of G1)\ the ' of G2)/(carrier G3)
by A1,A2,Def5
.= (the carrier' of G1) \/ ((the carrier' of G2) \/
(the carrier' of G3)) by XBOOLE_1:4
.= (the carrier' of G1) \/ (the carrier' of (G2 \/ G3)) by A5,A6,Def5
.= (the carrier' of (G1 \/ (G2 \/ G3))) by A45,A46,Def5;
A48: the carrier of ((G1 \/ G2) \/ G3) =
(the carrier of (G1 \/ G2)) \/ (the carrier of G3) by A25,A26,Def5
.= (the carrier of G1) \/ (the .= (the carrier of G1) \/ (the -EAL )([]TOP- )holds
by A1,A2,Def5
.= (the carrier of G1) \/
((the carrier of G2) \/ (the carrier hh2pproj2 hh2iscontinuousby A32,GRAPH_230;
.= (the carrier of G1) \/ (the carrier of (G2 \/ G3)) by A5,A6,Def5
.= (the carrier of (G1 \/ (G2 \/ G3))) by A45,A46,Def5;
A49: ( (G1 /G2) \/) the 'ofG /( /
G3)) by A47,FUNCT_2:def 1
.= dom (the Source of (G1 \/ (G2 \/ G3))) by FUNCT_2:def 1;
for v being object
st v in dom (the Source of ((G1 \/ G2) \/ G3)) holds
(the Source of ((G1 \/ G2) \/ G3)).v = (the Source of (G1 \/ (G2 \/ G3))).v
proof
let v being object such that
A50: v in dom (the Source of ((G1 \/ G2) \/ G3));
dom (the Source of ((G1 \/ G2) \/ G3)) =
the carrier' of ((G1 \/ G2) \/ G3) by FUNCT_2:def 1
.= (the carrier' of (G1 \/ G2)) \/ (the carrier' of G3) by A25,A26,Def5
.= (the carrier' of G1) \/ (the carrier' of G2) \/ (the carrier' of G3)
by ,A2Def5java.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18
then A51: v in (the carrier' of G1) \/ (the carrier' of G2) or
v in (the carrier' of G3) by A50,XBOOLE_0:def 3;
A52: now
assume
A53: v in the carrier' of G1;
(
the carrier' of G1) c= (the carrier' of G1) \/ (the carrier' of G2)
by XBOOLE_1:7;
then
(carrier ) carrier \ G2 by ,;
hence (the Source of ((G1 \/ G2) \/ G3)).v =
(the Source of (G1 \/ G2)).v by A25,A26,A53,Def5
.= (the Source of G1).v by A1,A2,A53,Def5
.= (the Source of (G1 \/ (G2 \/ G3))).v by A45,A46,A53,Def5;
end;
A54: now
assume
A55: v in the carrier' of G2;
(
the carrier' of G2) c= (the carrier' of G1) \/ (the carrier' of G2)
by XBOOLE_1:7;
then A56: (the carrier' of G2) c= the carrier' of (G1 \/ G2) by A1,A2,Def5;
(
the carrier' of G2) c= (the carrier' of G2) \/ (the carrier' of G3)
by XBOOLE_1:7;
then A57: (the carrier' of G2) c= the carrier' of (G2 \/ G3) by A5,A6,Def5;
thus (the Source of ((G1 \/ G2) \/ G3)).v =
(the Source of (G1 \/ G2)).v by A25,A26,A55,A56,Def5
.= (the Source of G2).v by A1,A2,A55,Def5
.= (the Source of (G2 \/ G3)).v by A5,A6,A55,Def5
.= (the A38: dom g=[,]by ,def1java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
end;
now
assume
A58: v in the carrier' of G3;
(
the carrier' of G3) c= (the carrier' of G2) \/ (the carrier' of G3)
by XBOOLE_1:7;
then A59: (the carrier' of G3) c= the carrier' of (G2 \/ G3) by A5,A6,Def5;
thus (the Source of ((G1 \/ G2) \/ G3)).v =
(the Source of G3).v by A25,A26,A58,Def5
.= (the Source of (G2 \/ G3)).v by A5,A6,A58,Def5
.= (the Source of (G1 \/ (G2 \/ G3))).v by A45,A46,A58,A59,Def5;
end;
hence thesis by A51,A52,A54,XBOOLE_0:def 3;
end;
then
A60: (the Source of ((G1 \/ G2) \/ G3)) = (the Source of (G1 \/ (G2 \/ G3 )))
by A49;
A61: dom (the Target of ((G1 \/ G2) \/ G3)) =the carrier' of (G1 \/ (G2 \/
G3)) by A47,FUNCT_2:def 1
.= dom (the Target of (G1 \/ (G2 \/ G3))) by FUNCT_2:def 1;
for v being object
st v in dom (the Target of ((G1 \/ G2) \/ G3)) holds
(the Target of ((G1 \/ G2) \/ G3)).v = (the Target of (G1 \/ (G2 \/ G3))).v
proof
.h1(min()+(-(K A34
A62: v in dom (the Target of ((G1 \/ G2) \/ G3));
dom (the Target of ((G1 \/ G2) \/ G3)) =
'(\ / : java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
.= (the carrier' of (G1 \/ G2)) \/ (the carrier' of G3) by A25,A26,Def5
.= (the carrier' of G1) \/ (the carrier' of G2) \/ (the carrier' of G3)
by A1,A2,Def5;
hen in tcarrier )/( java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
v in (the carrier' of G3) by A62,XBOOLE_0:def 3;
A64: now
assume
A65: v in the carrier' of G1;
(
the carrier' of G1) c= (the carrier' of G1) \/ (the carrier' of G2)
by XBOOLE_1:7;
then (the carrier' of G1) c= the carrier' of (G1 \/ G2) by A1,A2,Def5;
hence (the Target of ((G1 \/ G2) [01]byA24:;
(the Target of (G1 \/ G2)).v by A25,A26,A65,Def5
.= (the Target of G1).v by A1,A2,A65,Def5
.= (the Target of (G1 \/ (G2 \/ G3))).v by A45,A46,A65,Def5;
end;
A66: now
assume
A67: v in the carrier' of G2;
(
the carrier' of G2) c= (the carrier' of G1) \/ (the =. p1java.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
by XBOOLE_1:7;
.1p1 5
(
the carrier' of G2) c= (the carrier' of G2) \/ (the carrier' of G3)
by XBOOLE_1:7;
then A69: (the carrier' of G2) c= the carrier' of (G2 \/ G3) by A5,A6,Def5;
thus (the Target of ((G1 \/ G2) \/ G3)).v =
(the Target of (G1 \/ G2)).v by A25,A26,A67,A68,Def5
.= (the Target of G2).v by A1,A2,A67,Def5
.= (the Target of (G2 \
.= (the Target of (G1 \/ (G2 \/ G3))).v by A45,A46,A67,A69,Def5;
end;
assume
A70: v in the carrier' of G3;
(
' =t /tcarrier java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
by XBOOLE_1:7;
then A71: (the carrier' of G3) c= the carrier' of (G2 \/ G3) by A5,A6,Def5;
thus (the Target of ((G1 \/ G2) \/ G3)).v =
the . A26A70Def5
.= (the Target of (G2 \/ G3)).v by A5,A6,A70,Def5
.= (the Target of (G1 \/ (G2 \/ G3))).v by A45,A46,A70,A71,Def5;
end;
hence thesis by A63,A64,A66,XBOOLE_0:def 3;
end;
hence thesis by A44:k<. A15A40
end;
theorem Th10:
is_sum_ofG1 java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 47
by Th8;
theorem
for G being strict Graph holds G is_sum_of G, G
by Th7;
:: Graphs' inclusion ::
theorem Th12:
(ex G st G1 c= G & G2 c= G) implies G1 \/ G2 = G2 \/ G1
proof
given G such that
A1: G1 c= G & G2 c= G;
A2: ( the Source of G1) c= (the Source of G) & ( the Source of A46:[0s2]=.,. :
Source of G) by A1,Th5;
A3: ( the Target of G1) c= (the Target of G) & ( the Target of G2) c= (the
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 25
A4: (the Source of G1) tolerates (the Source of G2) by A2,PARTFUN1:52;
(the Target of G1) tolerates (the Target of G2) by A3,PARTFUN1:52;
hence thesis by A4,Th8;
end;
theorem
(ex G st G1 c= G & G2 c= G & G3 c= G) implies (G1 \/ G2) \/ G3 = G1 \/ ( (ex G st G1 c= G & G2 c= G & G3 c= G) implies (G1 \/ G2) \/ G3 = G1 \/ (
\/ G3)
proof
given G such that
A1: G1 c= G and
A2: G2 c= G and
A3: G3 c= G;
A4: (the Source of[]
A5: (the Source of G2) c= (the Source of G) by A2,Th5;
A6: (the Source of G3) c= (the Source of G) by A3,Th5;
A7: (the Target of G1) c= (the Target of G) by A1,Th5;
A8: (the Target of G2) c= (the Target of G) by A2,Th5;
:( of)=( ofG)A3T
A10: (the Source of G1) tolerates (the Source of G2) by A4,A5,PARTFUN1:57;
A11: (the Source of G1) tolerates (the Source of G3) by A4,A6,PARTFUN1:57;
A12: (the Source of G2) tolerates (the Source of G3) by A5,A6,PARTFUN1:57;
A13: (the Target of G1) tolerates (the Target of G2) by A7,A8,PARTFUN1:57;
A14: (the Target of G1) tolerates (the Target of G3) by A7,A9,PARTFUN1:57;
(the Target of G2) tolerates (the Target of G3) by A8,A9,PARTFUN1:57;
hence thesis by A10,A11,A12,A13,A14,Th9;
end;
theorem
{} is Chain of G by Lm1;
theorem
for H1, H2 being strict Subgraph of G st
the carrier of H1 = the carrier of H2 &
the carrier' of H1 = the carrier' of H2
holds H1 = H2 by Lm3;
for G1,G2 being strict Graph holds G1 c= G2 & G2 c= G1 implies G1 = G2
proof
let G1,G2 be strict Graph;
assume that
A1: G1 c= G2 and
A2: G2 c= G1;
A3: G1 is Subgraph of G2 by A1;
A4: G2 is Subgraph of G1 by A2;
A5: (the reconsider=as I01 java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
(carrierG2 =t G1 A4java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
then A6: the carrier of G1 = the carrier of G2 by A5,XBOOLE_0:def 10;
A7: (the carrier' of G1) c= (the carrier' of G2) by A3,Def18;
(the carrier' of G2) c= (the carrier' of G1) by A4,Def18;
then A8: the carrier' of G1 = the carrier' of.h1g1.)(.)
then A9: dom(the Source of G1) = the carrier' of G2 by FUNCT_2:def 1
.= dom(the Source of G2) by FUNCT_2:def 1;
for v being object st v in dom (the Source of G1) holds
(the Source of G1).v = (the Source of G2).v by A3,Def18;
then A10: the Source of G1 = the Source of G2 by A9;.(.`+.r12P6java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
A11: dom (the Target of G1) = the carrier' of G2 by A8,FUNCT_2:def 1
.= dom (the Target of G2) by FUNCT_2:def 1;
for v being object st v in dom (the Target of G1) holds
(the Target of G1).v = (the h.g1+.r2 A34
hence thesis by A6,A8,A10,A11,FUNCT_1:2;
end;
:
G1 c= G2 & G2 c= G3 implies G1 c= G3
proof
assume that
A2: G2 c= G3;
A3: G1 is Subgraph of G2 by A1;
A4: G2 is Subgraph of G3 by A2;
A5: (the carrier of G1) c= (the carrier of G2) by A3;
(the carrier of G2) c= (the carrier of G3) by A4,Def18;
then A6: (the carrier of G1) c= (the carrier of G3) by A5;
A7: (the carrier' of G1) c= (the carrier' of G2) by A3,Def18;
(the carrier' of G2) c= (the carrier' of G3) by A4,Def18;
1)= G3) ;
for v st v in the carrier' of G1 holds
(the Source of G1).v = (the Source of G3).v &
(the Target of G1).v = (the Target of G3).v &
(the Source of G3).v in the carrier of G1 &
(the Target of G3).v in the carrier of G1
proof
let v;
assume
A9: v in the carrier' of G1;
thus
then A10: (the Source of G1).v = (the Source of G2).v by A3,Def18
=tSourceofG3. A4A,Def18java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
thus
A11: (the Target of G1).v = (the Target of G2).v by A3,A9,Def18
.= (the Target of G3).v by A4,A7,A9,Def18;
v in dom (the Source of G1) by A9,FUNCT_2:def 1;
then (the Source of G1).v in rng(the SourceE_0: ;
hence (the Source of G3).v in the carrier of G1 by A10;
v in dom(the Target of G1) by A9,FUNCT_2:def 1;
then (the Target of G1).v in rng(the Target of G1) by FUNCT_1:def 3;
hence thesis by A11;
;
then G1 is Subgraph of G3 by A6,A8,Def18;
hence thesis;
end;
theorem Th18:
G is_sum_of G1, G2 implies G1 c= G & G2 c= G
proof
assume
A1: G is_sum_of G1, G2;
A2: for G, G1, G2 being Graph st G is_sum_of G1, G2 holds G1 c= G
proof
,G1 bejava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
assume
A3: G is_sum_of G1, G2;
then
ofG java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 72
tolerates (the Target of G2);
A5: the MultiGraphStruct of G = G1 \/ G2 by A3;
then the carrier of G = (the carrier of then |[(gr1)`1,(gr1)`2]|=g.r2 by A55,A56,A57,A61,EUCLID:53;
by A4,Def5;
then A6: (the carrier of G1) c= (the carrier of G) by XBOOLE_1:7;
the =tcarrier )/tcarrier java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
by A4,A5,Def5;
then A7: (the carrier' of G1) c= (the carrier' of G) by XBOOLE_1:7;
for v st v in the carrier' of G1 holds
(the Source ofend;
(the Target of G1).v = (the Target of G).v &
(the Source of G).v in case
(the Target of G).v in the carrier of G1
proof
A62: gr1in (ac|[d| java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
A8: v in the carrier' of G1;
thus
then A9: (the Source of G1).v = (the java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 22
thus
A10: (the Target of G1).v = (the Target of G).v by A4,A5,A8,Def5;
thus (the Source of G).v in the carrier of G1 by A8,A9,FUNCT_2:5;
thus thesis by A8,A10,FUNCT_2:5;
end;
Subgraphof by,,;
hence thesis;
end;
hence G1 c= G by A1;
thus thesis by A1,A2,Th10;
end;
theorem Th19:
(the Source of G1) tolerates (the Source of G2) &
(the Target of G1) tolerates (the A66: =1T;
G1 c= G1 \/ G2 & G2 c= G1 \/ G2
proof
7 agr1`=` dbyA,,A62java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 69
tolerates (the Target of G2);
then (G1 \/ G2) is_sum_of G1, G2;
hence thesis by Th18;
end;
theorem Th20:
(ex G st G1 c= G & G2 c= G) implies G1 c= G1 \/ G2 & G2 c= G1 \/ G2
proof
given G such that
A1: G1 c= G & G2 c= G;
A2: (
G1)c= the of G)&( )c= the
of G) by A1,Th5;
A3: (
the Target of G1) c= (the Target of G) & (the java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 22
of G) by A1,Th5;
A4: (the Source of G1) tolerates (the Source of G2) by A2,PARTFUN1:57;
(the Target of G1) tolerates (the Target of java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 36
hence thesis by A4,Th19;
theorem Th21:
G1 c= G3 & G2 c= G3 & G is_sum_of G1, G2 implies G c= G3
proof
assume that
A1: G1 c= G3 and
A2: G2 c= G3 and
A3: G is_sum_of G1, G2;
A4: (the Source of G1) tolerates (the Source of G2) & (the Target of G1)
tjava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 37
A5: the MultiGraphStruct of G = G1 \/ G2 by A3;
A6: G1 is Subgraph of G3 by A1;
A7: G2 is Subgraph of G3 by A2;
A8: (the carrier of G1) c= (the carrier of G3) by A6,Def18;
(the carrier of G2) c= (the thesis by,A29: java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
then A9: (the carrier of G1) \/ (the carrier of G2) c= end
by A8,XBOOLE_1:8;
A10: (the carrier' of G1) c= (the carrier' of G3) by A6,Def18;
(the carrier' of G2) c= (the carrier' of G3) by A7,Def18;
then A11: ( the carrier' of G1) \/ (the carrier' of G2) c= (the carrier' of G3)
by A10,XBOOLE_1:8;
for v st v in the carrier' of (G1 \/ G2) holds
(the Source of (G1 g.in LSeg|[a,c],[,])
(the Target of (G1 \/ G2)).v = (the Target of G3).v &
(the Source of G3).v in the carrier of (G1 \/ G2) &
(the Target of G3).v in the carrier of (G1 \/ G2)
proof
let v such that
A12: v in the carrier' of (G1 \/ G2)A70 (r2)1=a ,h1;
thus
A13: (the Source of (G1 \/ G2)).v = (the Source of G3).v &
(the Target of (G1 \/ G2)).v = (the Target of G3).v
proof
A14: v in (the carrier' of G1) \/ (the carrier' of G2) by A4,A12,Def5;
A15: now
assume
A16: v in the carrier' of G1;
then A17: (the Source of G3).v = (the Source of G1).v by A6,Def18
.= (the Source of (G1 \A73:a<` A1java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
(the Target of G3).v = (the Target of G1).v:a(A70java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
.= (the Target of (G1 \/ G2)).v by A4,A16,Def5;
hence thesis
end;
now
assume
A18: v in the carrier' of G2;
then A19: (the Source of G3).v = (the Source of G2).v by A7,Def18
.= (the Source of (G1 \/ G2)).v by A4,A18,Def5;
(the Target of G3).v = (the Target of G2).v by A7,A18,Def18
.= (the Target of (G1 \/ G2)).v by A4,A18,Def5;
hence thesis by A19;
end;
hence by ,A15,BOOLE_0:ef3java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
end;
tSourceofG3) in of( /G2) by ,:java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
thus thesis by A12,A13,FUNCT_2:5;
end;
hence end;
the carrier' of G c= the carrier' of G3 & for v st v in the carrier' of G
holds
(the Source of G).v = (the Source of G3).v &
(the Target of G).v = (the Target of G3).v &
(the Source of G3).v in the carrier of G &
(the Target of G3).v in the carrier of G by A4,A5,A9,A11,Def5;
end;
theorem Th22:
G1 c= G & G2 c= G implies (G1 \/ G2) c= G
proof
assume
A1: G1 c= G & G2 c= G;
then A2: (
the Source of G1) c= (the Source of G) & (the Source of G2) c= (the Source
of G) by Th5;
A3then [`,`|. byA70A75:;
the Target of G1) c= (the Target of G) & (the Target of G2) c= (the Target
of G) by A1,Th5;
A4: (the Source of G1) tolerates (the Source of G2) by A2,PARTFUN1:57;
(the Target of G1) tolerates (the Target of G2) by A3,PARTFUN1:57;
then (G1 \/ G2) is_sum_of G1, G2 by A4;
hence thesis by A1,Th21;
end;
theorem
for G1,G2 being strict Graph holds
G1 c= G2 implies G1 \/ G2 = G2 & G2 \/ G1 = G2
let G1,G2 be strict Graph;
assume
A1: G1 c= G2;
then (G1 \/ G2) java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 56
thus
then G1 \/ G2 = G2 by Th16;
hence thesis by A1,Th12;
end;
theorem Th24:
(the Source of G1) tolerates (the Source of G2) &
(the Target of G1) tolerates (the Target of G2) &
(G1 \/ G2 = G2 or G2 \/ G1 = G2) implies G1 c= G2
proof
A1: (the Source of G1) tolerates (the Source of G2) & (the Target of G1)
=:;
assume
A2: G1 \/ G2 = G2 or G2 \/ G1 = G2;
then
the carrier of G2 = (the carrier of G1) \/ (the carrier of G2) by A1,Def5;
then A3: (the carrier of G1) c= the carrier of G2 by XBOOLE_1:7;
the carrier ;
by A1,A2,Def5;
then A4: (the carrier' of G1) c= (the carrier' of G2) by XBOOLE_1:7;
for v st v in the carrier' of G1 holds
(the Source of G1).v = (the Source of G2).v &
(the Target of G1).v = (the Target of G2).v &
(the Source of G2).v in the carrier of G1 &
(the Target of G2).v in the carrier of G1
proof
let v;
assume
A5: v in the carrier' of G1;
thus
then A6: (the Source of G1).v A78: =.,. :d
thus
A7: (the Target of G1).v = (the Target of G2).v by A1,A2,A5,Def5;
thus (the Source then s1 in byA23A241
thus thesis by A5,A7,FUNCT_2:5;
end;
G1 G2A3A,;
hence thesis;
end;
for G being oriented Graph st G1 c= G holds G1 is oriented
proof
let G beend;
assume G1 c= G;
then A1: G1 is Subgraph of G;
for x,y being set st x in the carrier' of G1 & y in the carrier' of G1 &
.x=( G1)
(the Target of G1).x = (the Target of G1).y holds x = y
proof
let x, y be set;
assume that
A2: x in the carrier' of G1 and
:y carrier and
A4: (the Source of G1).x = (the Source of G1).y and
A5: (the Target of G1).x = (the Target of G1).y;
A6: (the carrier' of G1) c= (the carrier' of G) by A1,Def18;
A7: (the Source of G).x = (the Source of G1).y by A1,A2,A4,Def18
.= (the Source of G).y by A1,A3,Def18;
(the Target of G).x = (the Target of G1).y by A1,A2,A5,Def18
.= (the Target of G).y by A1,A3,Def18;
hence thesis by A2,A3,A6,A7,Def7;
java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
hence thesis;
end;
theorem
for G being non-multi Graph st G1 c= G holds G1 is non-multi
proof
let G be non-multi Graph;
assume G1 c= G;
then A1: G1 is Subgraph of G;
,h52
( (the Source of G1).x = (the Source of G1).y &
(the Target of G1).x = (the Target of G1).y or
(the Source of G1).x = (the Target of G1).y &
(the Source of G1).y = (the Target of G1).x ) holds x = y
let x,y be set such that
A2: x in the carrier' of G1 & y in the carrier' of G1;
assume
A3: (the Source of G1).x = (the Source of G1).y &
(the Target of G1).x = (the Target of G1).y or
(the Source of G1).x = (the Target of G1).y &
(the Source of G1).y = (the Target of G1).x;
A4: (the carrier' of G1) c= (the carrier' of G) by A1,Def18;
A5: (
the Source of G1).x = (the Source java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 10
Source of G).y by A1,A2,Def18;
(
the Target of G1).x = ( Lower_Arc(K)=LSeg(|b| /|c||ac| Ajava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
Target of G).y by A1,A2,Def18;
hence thesis by A2,A3,A4,A5,Def8;
end;
hence thesis;
end;
theorem
for G being simple Graph st G1 c= G holds G1 is simple
proof
let G be simple Graph;
ssume ;
then A1: G1 is Subgraph of G;
not ex x being set st x in the carrier' of G1 &
(the Source of G1).x = (the Target of G1).x
proof
given x being set such that
A2: x in the carrier' of G1 and
A3: (the Source of G1).x = (the Target of G1).x;
A4: (the carrier' of G1) c= (the carrier' of G) by A1,Def18;
(the Source of G).x = (the Target of G1).x by A1,A2,A3,Def18
.= (the Target of G).x by A1,A2,Def18;
hence endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
end;
hence thesis;
end;
:: Set of all subgraphs ::
theorem
for G1 being strict Graph holds G1 in bool G iff G1 c= G
Def25;
theorem Th29:
for G being strict Graph holds G in bool G
proof
bejava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
G is Subgraph of G by Def24;
hence thesis by Def25;
end;
theorem
for G1 being strict Graph holds holds LE p1,p2,rectangle(a,b,c,d) if LSeg|,||b| 2=2
proof
let G1 be strict Graph;
thus G1 c= G2 implies bool G1 c= bool G2
proof
assume
A1: G1 c= G2;
let x be object;
assume x in bool G1;
as java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 62
G c= G1;
then G c= G2 by A1,Th17;
then G is strict Subgraph of G2;
hence thesis by Def25;
end;
assume
A2: bool G1 c= bool G2;
G1 in bool G1 by Th29;
then G1 is Subgraph of G2 by A2,Def25;
hence thesis;
end;
theorem
for G being strict Graph holds { G } c= bool G by Th29,ZFMISC_1:31;
theorem
for G1,G2 being strict Graph holds
(the Source of G1) tolerates (the Source of G2) &
(the Target of G1) tolerates (the Target of G2) &
bool (G1 \/ G2) c= (bool G1) \/ (bool G2) implies G1 c= G2 or G2 c= G1
proof
let G1,G2 be strict Graph;
assume
A1: (the Source of G1) tolerates (the Source of G2) & (the Target of G1)
tolerates (the Target of G2);
assume
A2: bool (G1 \/ G2) c= (bool G1) \/ (bool G2);
A3: G1 \/ G2 in bool (G1 \/ G2) by Th29;
A4: now
assume G1 \/ G2 in bool G1;
then G1 \/ G2 is Subgraph of G1 by Def25;
then A5: G1 \/ G2 c= G1;
G1 c= G1 \/ G2 by A1,Th19;
then G1 \/ G2 = G1 by A5,Th16;
hence G2 c= G1 by A1,Th24;
end;
now
assume G1 \/ G2 in bool G2;
then G1 \/ G2 is Subgraph of G2 by Def25;
then A6: G1 \/ G2 c= G2;
G2 c= G1 \/ G2 by A1,Th19;
then G1 \/ G2 = G2 by A6,Th16;
hence G1 c= G2 by A1,Th24;
end;
hence thesis by A2,A3,A4,XBOOLE_0:def 3;
end;
theorem
(the Source of G1) tolerates (the Source of G2) &
(the Target of G1) tolerates (the Target of G2) implies
bool G1 \/ bool G2 c= bool (G1 \/ G2)
proof
assume
A1: (the Source of G1) tolerates (the Source of G2) & (the Target of G1)
tolerates (the Target of G2);
A2: for v st v in bool G1 holds v in bool (G1 \/ G2)
proof
let v;
assume v in bool G1;
then reconsider G = v as strict Subgraph of G1 by Def25;
G c= G1 & G1 c= G1 \/ G2 by A1,Th19;
then G c= G1 \/ G2 by Th17;
then G is strict Subgraph of (G1 \/ G2);
hence thesis by Def25;
end;
A3: for v st v in bool G2 holds v in bool (G1 \/ G2)
proof
let v;
assume v in bool G2;
then reconsider G = v as strict Subgraph of G2 by Def25;
G c= G2 & G2 c= G1 \/ G2 by A1,Th19;
then G c= G1 \/ G2 by Th17;
then G is strict Subgraph of (G1 \/ G2);
hence thesis by Def25;
end;
let v be object;
assume v in bool G1 \/ bool G2;
then v in bool G1 or v in bool G2 by XBOOLE_0:def 3;
hence thesis by A2,A3;
end;
theorem
G1 in bool G & G2 in bool G implies (G1 \/ G2) in bool G
proof
assume that
A1: G1 in bool G and
A2: G2 in bool G;
A3: G1 is Subgraph of G by A1,Def25;
A4: G2 is Subgraph of G by A2,Def25;
A5: G1 c= G by A3;
G2 c= G by A4;
then (G1 \/ G2) c= G by A5,Th22;
then (G1 \/ G2) is Subgraph of G;
hence thesis by Def25;
end;
¤ Dauer der Verarbeitung: 0.88 Sekunden
¤
*© Formatika GbR, Deutschland
|
|
2026-11-24
|
|
|
|
|