File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
88begin
99
1010text \<open> This theory marks the boundary between reusable library utilities and the creation of the
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ lemma iseq_iff [simp]: "xs \<in> iseq(A) \<longleftrightarrow> (xs \<in> seq A \
7979subsection \<open> Bounded sequences \<close>
8080
8181definition 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
You can’t perform that action at this time.
0 commit comments