text‹
theory introduces the graph to be marked as a relation next on
(addresses). We assume that we have a special node nil (the
address). We have a node root from which we start marking the graph.
also assume that nil is not related by next to any node and any node is
related by next to nil. ›
locale graph = node + fixes"next" :: "('node × 'node) set" assumes next_not_nil_left: "(!! x . (nil, x) ∉ next)" assumes next_not_nil_right: "(!! x . (x, nil) ∉ next)" begin
text‹
lists of nodes we introduce two operations similar to
hd and tl for getting the head and the tail of
list. The new function head applied to a nonempty list
the head of the list, and it reurns nil when
to the empty list. The function tail returns the
of the list when applied to a non-empty list, and
returns the empty list otherwise. › definition "head S ≡ (if S = [] then nil else (hd S))"
definition "tail (S::'a list) ≡ (if S = [] then [] else (tl S))"
definition (in graph) "reach x ≡ {y . (x, y) ∈ next*∧ y ≠ nil}"
theorem (in graph) reach_nil [simp]: "reach nil = {}" apply (simp add: reach_def, safe) apply (drule rtrancl_induct) by auto
theorem (in graph) reach_next: "b ∈ reach a ==> (b, c) ∈ next ==> c ∈ reach a" apply (simp add: reach_def) by auto
definition (in graph) "path S mrk ≡ {x . (∃ s . s ∈ S ∧ (s, x) ∈ next O (next ∩ ((-mrk)×(-mrk)))* )}" end
end
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.9Bemerkung:
(vorverarbeitet am 2026-06-13)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.