diff -r dfde07c7cd6b -r 042e1e7fd505 no_shm_selinux/Static.thy --- a/no_shm_selinux/Static.thy Thu Jan 09 19:09:09 2014 +0800 +++ b/no_shm_selinux/Static.thy Thu Jan 09 22:53:45 2014 +0800 @@ -702,9 +702,9 @@ where "new_proc_fd \ p = next_nat (current_proc_fds \ p)" -definition all_fname_under_dir:: "t_file \ t_state \ t_file set \ t_fname set" +definition all_fname_under_dir:: "t_file \ t_file set \ t_fname set" where - "all_fname_under_dir d \ fs = {fn. \ f. fn # d = f \ f \ (current_files \ \ fs)}" + "all_fname_under_dir d fs = {fn. fn # d \ fs}" fun fname_all_a:: "nat \ t_fname" where @@ -715,17 +715,17 @@ where "fname_length_set fns = length`fns" -definition next_fname:: "t_file \ t_state \ t_file set \ t_fname" +definition next_fname:: "t_file \ t_file set \ t_fname" where - "next_fname pf \ fs = fname_all_a ((Max (fname_length_set (all_fname_under_dir pf \ fs))) + 1)" + "next_fname pf fs = fname_all_a ((Max (fname_length_set (all_fname_under_dir pf fs))) + 1)" -definition new_childf_general:: "t_file \ t_state \ t_file set \ t_file" +definition new_childf_general:: "t_file \ t_file set \ t_file" where - "new_childf_general pf \ fs = next_fname pf \ fs # pf" + "new_childf_general pf fs = next_fname pf fs # pf" definition new_childf:: "t_file \ t_state \ t_file" where - "new_childf pf \ = new_childf_general pf \ {}" + "new_childf pf \ = new_childf_general pf (current_files \)" end