(* Author: Tobias Nipkow *) (* FIXME dead code!? *)
theory ArchStat imports TameEnum ArchCompAux begin
definition stat :: "nat fgraph list ==> nat * nat * nat * nat * nat"where "stat A = (length A, foldl (λx y. if x<y then y else x) 0 (map length A), foldl (+) 0 (map length A), foldl (λx y. if x<y then y else x) 0 (map nof_vertices A), foldl (+) 0 (map nof_vertices A) )"
type_synonym config = "(nat,nat fgraph)tries * nat * nat" fun insert_mod :: "graph ==> config ==> config"where "insert_mod x (t,tot,fins) = (if final x then let fg = fgraph x; h = hash fg; ys = Tries.lookup t h; t' = if (∃y:set ys. iso_test fg y) then t else Tries.update t h (fg#ys) in (t', tot+1, fins+1) else (t,tot+1,fins))"
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.