(16steps total)
PrintForm
Definitions
Lemmas
graph
1
3
Sections
Graphs
Doc
At:
dfs
accum
member
2
1
1.
the_graph:
Graph
2.
the_obj:
GraphObject(the_graph)
3.
l:
Vertices(the_graph) List
4.
u:
Vertices(the_graph)
5.
v:
Vertices(the_graph) List
6.
s:traversal(the_graph).
s':traversal(the_graph). (
i:Vertices(the_graph). (i
v)
(inl(i)
s')
(inl(i)
s)
(inr(i)
s)) & l_disjoint(Vertices(the_graph)+Vertices(the_graph);s';s) & no_repeats(Vertices(the_graph)+Vertices(the_graph);s') & paren(Vertices(the_graph);s') & list_accum(s',j.dfs(the_obj;s';j);s;v) = (s' @ s)
7.
s:
traversal(the_graph)
8.
s1:
traversal(the_graph)
9.
(inl(u)
s1)
(inl(u)
s)
(inr(u)
s)
10.
l_disjoint(Vertices(the_graph)+Vertices(the_graph);s1;s)
11.
no_repeats(Vertices(the_graph)+Vertices(the_graph);s1)
12.
paren(Vertices(the_graph);s1)
13.
dfs(the_obj;s;u) = (s1 @ s)
14.
s':
traversal(the_graph)
15.
i:Vertices(the_graph). (i
v)
(inl(i)
s')
(inl(i)
dfs(the_obj;s;u))
(inr(i)
dfs(the_obj;s;u))
16.
l_disjoint(Vertices(the_graph)+Vertices(the_graph);s';dfs(the_obj;s;u))
17.
no_repeats(Vertices(the_graph)+Vertices(the_graph);s')
18.
paren(Vertices(the_graph);s')
19.
list_accum(s',j.dfs(the_obj;s';j);dfs(the_obj;s;u);v) = (s' @ dfs(the_obj;s;u))
20.
i:
Vertices(the_graph)
21.
(i
[u / v])
(inl(i)
s' @ s1)
(inl(i)
s)
(inr(i)
s)
By:
RWO
Thm*
x:T, l1,l2:T List. (x
l1 @ l2)
(x
l1)
(x
l2) 0
THEN
RWO
Thm*
l:T List, a,x:T. (x
[a / l])
x = a
(x
l) -1
THEN
Analyze -1
Generated subgoals:
1
21.
i = u
(inl(i)
s')
(inl(i)
s1)
(inl(i)
s)
(inr(i)
s)
1
step
 
2
21.
(i
v)
(inl(i)
s')
(inl(i)
s1)
(inl(i)
s)
(inr(i)
s)
3
steps
About:
(16steps total)
PrintForm
Definitions
Lemmas
graph
1
3
Sections
Graphs
Doc