Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
evolveyourmind
· 6y ago · 0 comments
How can I prove dfs graph termination in Agda? I tried passing "visited" subset but nothing
Comments
[–]
Kutta
6y ago
You need something which decreases on each step. You could try to recurse on the number of unvisited nodes in the graph. You can try well-founded recursion if this does not work for some reason.
[–]
evolveyourmind
OP
6y ago
The decreasing number worked, ty. Writing proofs with this will be impossible tho :D