(* 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))"
definition count where "count p = (case worklist_collect_aux (next_tame p) [Seed p] (Tries [] [],1,0) of None → None | Some(t,n,f) → Some(avgmax(stat_of_tries t),n,f))"
(* (total number of entries, number of leaves, max number of enries per leaf), totalnumberofgraphs,numberoffinalgraphs
*) value"count 0"(* (9, 6, 3), 312764, 501 *) value"count 1"(* (1105, 418, 17), 134291356, 27050 *) value"count 2"(* (15991, 5189, 97), 1401437009, 301560 *) value"count 3"(* (1657, 498, 35), 334466383, 19120 *) (* 11 hours *) end (* OLD *) (* 3: (58021, 793) *) (* 4: (5631754, 17486) in 30 *) (* 5: (11444023, 15746) in 50 *) (* 6: (3728798, 2499) in 15 *) (* 7: (766463, 273) in 3 *) (* 8: (1402944, 234) in 6 *) (* sum: 23069034 *)
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.10Bemerkung:
(vorverarbeitet am 2026-07-02)
¤
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.