(* Author: Lawrence C Paulson and Thomas M Rasmussen and Norbert Voelker
*)
section‹Permuted Lists›
theory List_Permutation imports Permutations begin
text‹ Note that multisets already provide the notion of permutated list andhence
this theory mostly echoes material already logically present intheory 🚫‹Permutations›; it should be seldom needed. ›
subsection‹An existing notion›
abbreviation (input) perm :: ‹'a list \ 'a list ==> bool› (infixr‹<~~>› 50) where‹xs <~~> ys ≡ mset xs = mset ys›
subsection‹Nontrivial conclusions›
proposition perm_swap: ‹xs[i := xs ! j, j := xs ! i] <~~> xs› if‹i < length xs›‹j < length xs› using that by (simp add: mset_swap)
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.