Skip to content

Commit c047937

Browse files
committed
Further clean-ups, and resolved a duplicate name
1 parent 0de3952 commit c047937

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

List_Extra.thy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,11 +1271,11 @@ lemma distinct_b_lists: "distinct xs \<Longrightarrow> distinct (b_lists n xs)"
12711271
using length_n_lists_elem apply blast
12721272
done
12731273

1274-
definition blists :: "nat \<Rightarrow> 'a set \<Rightarrow> 'a list set" where
1275-
"blists n A = {xs\<in>lists A. length xs \<le> n}"
1274+
definition bounded_lists :: "nat \<Rightarrow> 'a set \<Rightarrow> 'a list set" where
1275+
"bounded_lists n A = {xs\<in>lists A. length xs \<le> n}"
12761276

1277-
lemma blists_b_lists [code]: "blists n (set xs) = set (b_lists n xs)"
1278-
apply (auto simp add: blists_def in_blistsI in_listsI)
1277+
lemma bounded_lists_b_lists [code]: "bounded_lists n (set xs) = set (b_lists n xs)"
1278+
apply (auto simp add: bounded_lists_def in_blistsI in_listsI)
12791279
apply (meson b_lists_in_lists in_lists_conv_set)
12801280
apply (meson length_b_lists_elem)
12811281
done

Relation_Lib.thy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ theory Relation_Lib
44
imports
55
Countable_Set_Extra Positive Infinity Enum_Type Record_Default_Instance Def_Const
66
Relation_Extra Partial_Fun Partial_Inj Finite_Fun Finite_Inj Total_Fun List_Extra
7-
Tabulate_Command
7+
Bounded_List Tabulate_Command
88
begin
99

1010
text \<open> This theory marks the boundary between reusable library utilities and the creation of the

Sequence_Toolkit.thy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ lemma iseq_iff [simp]: "xs \<in> iseq(A) \<longleftrightarrow> (xs \<in> seq A \
7979
subsection \<open> Bounded sequences \<close>
8080

8181
definition bseq :: "\<nat> \<Rightarrow> 'a set \<Rightarrow> 'a list set" ("bseq[_]") where
82-
"bseq n A = blists n A"
82+
"bseq n A = bounded_lists n A"
8383

8484
(* Proof that this corresponds to the Z definition required *)
8585

0 commit comments

Comments
 (0)