set V = {0,1};
set E = {0};
set S = 0 .--> 0;
set T = 0 .--> 1;
A1:
dom (0 .--> 1) = {0}
;
reconsider T = 0 .--> 1 as Function of {0},{0,1} by A1, A2, FUNCT_2:3;
dom (0 .--> 0) = {0}
;
then reconsider S = 0 .--> 0 as Function of {0},{0,1} by A3, FUNCT_2:3;
set G = createGraph ({0,1},{0},S,T);
A4:
the_Edges_of (createGraph ({0,1},{0},S,T)) = {0}
;
A5:
(the_Target_of (createGraph ({0,1},{0},S,T))) . 0 = 1
by FUNCOP_1:72;
A6:
(the_Source_of (createGraph ({0,1},{0},S,T))) . 0 = 0
;
now for W being Walk of createGraph ({0,1},{0},S,T) holds not W is Cycle-like given W being
Walk of
createGraph (
{0,1},
{0},
S,
T)
such that A7:
W is
Cycle-like
;
contradictionnow contradictionper cases
( len W = 3 or len W <> 3 )
;
suppose A8:
len W = 3
;
contradictionset e =
W . (1 + 1);
set v1 =
W . 1;
set v2 =
W . (1 + 2);
A9:
W . (1 + 1) Joins W . 1,
W . (1 + 2),
createGraph (
{0,1},
{0},
S,
T)
by A8, GLIB_001:def 3, JORDAN12:2;
W . 1
= W . (1 + 2)
by A7, A8, GLIB_001:118;
then A10:
( (
(the_Source_of (createGraph ({0,1},{0},S,T))) . (W . (1 + 1)) = W . 1 &
(the_Target_of (createGraph ({0,1},{0},S,T))) . (W . (1 + 1)) = W . 1 ) or (
(the_Source_of (createGraph ({0,1},{0},S,T))) . (W . (1 + 1)) = W . 1 &
(the_Target_of (createGraph ({0,1},{0},S,T))) . (W . (1 + 1)) = W . 1 ) )
by A9, GLIB_000:def 13;
W . (1 + 1) in the_Edges_of (createGraph ({0,1},{0},S,T))
by A9, GLIB_000:def 13;
then
( (
W . 1
= 0 &
W . 1
= 1 ) or (
W . 1
= 1 &
W . 1
= 0 ) )
by A5, A10, TARSKI:def 1;
hence
contradiction
;
verum end; end; end; hence
contradiction
;
verum end;
then A15:
createGraph ({0,1},{0},S,T) is acyclic
;
set W1 = (createGraph ({0,1},{0},S,T)) .walkOf (0,0,1);
set W2 = ((createGraph ({0,1},{0},S,T)) .walkOf (0,0,1)) .reverse() ;
take
createGraph ({0,1},{0},S,T)
; ( not createGraph ({0,1},{0},S,T) is _trivial & createGraph ({0,1},{0},S,T) is _finite & createGraph ({0,1},{0},S,T) is Tree-like )
reconsider a0 = 0 , a1 = 1 as Vertex of (createGraph ({0,1},{0},S,T)) by TARSKI:def 2;
hence
( not createGraph ({0,1},{0},S,T) is _trivial & createGraph ({0,1},{0},S,T) is _finite )
by GLIB_000:def 19; createGraph ({0,1},{0},S,T) is Tree-like
0 in the_Edges_of (createGraph ({0,1},{0},S,T))
by TARSKI:def 1;
then
0 Joins 0 ,1, createGraph ({0,1},{0},S,T)
by A6, A5, GLIB_000:def 13;
then A17:
(createGraph ({0,1},{0},S,T)) .walkOf (0,0,1) is_Walk_from 0 ,1
by GLIB_001:15;
then A18:
((createGraph ({0,1},{0},S,T)) .walkOf (0,0,1)) .reverse() is_Walk_from 1, 0
by GLIB_001:23;
now for u, v being Vertex of (createGraph ({0,1},{0},S,T)) ex W being Walk of createGraph ({0,1},{0},S,T) st W is_Walk_from u,vlet u,
v be
Vertex of
(createGraph ({0,1},{0},S,T));
ex W being Walk of createGraph ({0,1},{0},S,T) st W is_Walk_from u,vnow ex W being Walk of createGraph ({0,1},{0},S,T) st W is_Walk_from u,vper cases
( ( u = 0 & v = 0 ) or ( u = 0 & v = 1 ) or ( u = 1 & v = 0 ) or ( u = 1 & v = 1 ) )
by TARSKI:def 2;
suppose
(
u = 0 &
v = 0 )
;
ex W being Walk of createGraph ({0,1},{0},S,T) st W is_Walk_from u,vthen
(createGraph ({0,1},{0},S,T)) .walkOf a0 is_Walk_from u,
v
by GLIB_001:13;
hence
ex
W being
Walk of
createGraph (
{0,1},
{0},
S,
T) st
W is_Walk_from u,
v
;
verum end; suppose
(
u = 1 &
v = 1 )
;
ex W being Walk of createGraph ({0,1},{0},S,T) st W is_Walk_from u,vthen
(createGraph ({0,1},{0},S,T)) .walkOf a1 is_Walk_from u,
v
by GLIB_001:13;
hence
ex
W being
Walk of
createGraph (
{0,1},
{0},
S,
T) st
W is_Walk_from u,
v
;
verum end; end; end; hence
ex
W being
Walk of
createGraph (
{0,1},
{0},
S,
T) st
W is_Walk_from u,
v
;
verum end;
then
createGraph ({0,1},{0},S,T) is connected
;
hence
createGraph ({0,1},{0},S,T) is Tree-like
by A15; verum