function (sequential) bubblesort where "bubblesort [] = []" | "bubblesort [x] = [x]" | "bubblesort xs = (case bubble_min xs of y#ys \ y # bubblesort ys)" by pat_completeness auto
termination proof show"wf(measure size)"by simp next fix x1 x2 y :: 'a fix xs ys :: "'a list" show"bubble_min(x1#x2#xs) = y#ys \ (ys, x1#x2#xs) \ measure size" by(auto simp: size_bubble_min dest!: bubble_minD_size split: list.splits if_splits) qed
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 ist noch experimentell.