Commit 43f248cf authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent cf15c169
......@@ -161,14 +161,20 @@ PathCorrect(p) ==
[] OTHER -> {p[1],p[2]} \in Edges /\ PathCorrect(Tail(p))
\* PathMinimal verifies that path p has minimal length in between p0 and pEND.
PathMinimal(p) ==
PathMinimal(p) == ~ \E pp \in Seq(Nodes) :
/\ pp /= << >>
/\ Len(pp) < Len(p)
/\ pp[1] = p[1]
/\ pp[Len(pp)-1] = p[Len(p)-1]
/\ PathCorrect(pp)
Correct == Terminated => (\A n \in Nodes :
LET p == ParentPath(n)
IN
/\ p[Len(p)-1] = root \* not NoRoute
/\ PathIsValid(p)
/\ PathIsMinimal(p))
/\ PathCorrect(p)
/\ PathMinimal(p))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment