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