diff -r 37d14cbce020 -r 10fd25fba2ba thys2/BasicIdentities.thy --- a/thys2/BasicIdentities.thy Tue Mar 29 10:57:02 2022 +0100 +++ b/thys2/BasicIdentities.thy Wed Mar 30 11:18:51 2022 +0100 @@ -53,6 +53,16 @@ (if x \ acc then rdistinct xs acc else x # (rdistinct xs ({x} \ acc)))" +lemma rdistinct_concat: + shows "set rs \ rset \ rdistinct (rs @ rsa) rset = rdistinct rsa rset" + apply(induct rs) + apply simp+ + done + +lemma rdistinct_concat2: + shows "\r \ set rs. r \ rset \ rdistinct (rs @ rsa) rset = rdistinct rsa rset" + by (simp add: rdistinct_concat subsetI) + lemma distinct_not_exist: shows "a \ set rs \ rdistinct rs rset = rdistinct rs (insert a rset)"