Definitions graph 1 3 Sections Graphs Doc

Some definitions of interest.
graphobj Def GraphObject(the_graph) == eq:Vertices(the_graph)Vertices(the_graph)(x,y:Vertices(the_graph). (eq(x,y)) x = y)(eacc:(T:Type. (TVertices(the_graph)T)TVertices(the_graph)T)(T:Type, s:T, x:Vertices(the_graph), f:(TVertices(the_graph)T). L:Vertices(the_graph) List. (y:Vertices(the_graph). x-the_graph- > y (y L)) & eacc(f,s,x) = list_accum(s',x'.f(s',x');s;L))(vacc:(T:Type. (TVertices(the_graph)T)TT)(T:Type, s:T, f:(TVertices(the_graph)T). L:Vertices(the_graph) List. no_repeats(Vertices(the_graph);L) & (y:Vertices(the_graph). (y L)) & vacc(f,s) = list_accum(s',x'.f(s',x');s;L))Top))
Thm* the_graph:Graph. GraphObject(the_graph) Type{i'}
assert Def b == if b True else False fi
Thm* b:. b Prop
edge Def x-the_graph- > y == e:Edges(the_graph). Incidence(the_graph)(e) = < x,y >
Thm* For any graph x,y:V. x-the_graph- > y Prop
gr_v Def Vertices(t) == 1of(t)
Thm* t:Graph. Vertices(t) Type
graph Def Graph == v:Typee:Type(evv)Top
Thm* Graph Type{i'}
iff Def P Q == (P Q) & (P Q)
Thm* A,B:Prop. (A B) Prop
l_member Def (x l) == i:. i < ||l|| & x = l[i] T
Thm* T:Type, x:T, l:T List. (x l) Prop
list_accum Def list_accum(x,a.f(x;a);y;l) == Case of l; nil y ; b.l' list_accum(x,a.f(x;a);f(y;b);l') (recursive)
Thm* T,T':Type, l:T List, y:T', f:(T'TT'). list_accum(x,a.f(x,a);y;l) T'
mkgraphobj Def mkgraphobj(eq, eqw, eacc, eaccw, vacc, vaccw, other) == < eq,eqw,eacc,eaccw,vacc,vaccw,other >
Thm* For any graph eq:(VV), eqw:(x,y:V. eq(x,y) x = y), eacc:(T:Type. (TVT)TVT), eaccw:(T:Type, s:T, x:V, f:(TVT). L:V List. (y:V. x-the_graph- > y (y L)) & eacc(f,s,x) = list_accum(s',x'.f(s',x');s;L)), vacc:(T:Type. (TVT)TT), vaccw:(T:Type, s:T, f:(TVT). L:V List. no_repeats(V;L) & (y:V. (y L)) & vacc(f,s) = list_accum(s',x'.f(s',x');s;L)), other:Top. mkgraphobj(eq, eqw, eacc, eaccw, vacc, vaccw, other) GraphObject(the_graph)
no_repeats Def no_repeats(T;l) == i,j:. i < ||l|| j < ||l|| i = j l[i] = l[j] T
Thm* T:Type, l:T List. no_repeats(T;l) Prop
top Def Top == Void given Void
Thm* Top Type

About:
pairproductproductlistlist_ind
boolifthenelseassertvoidless_thanisectisectapply
functionrecursive_def_noticeuniverseequalmembertopprop
impliesandfalsetrueallexists!abstraction

Definitions graph 1 3 Sections Graphs Doc