diff --git a/tools/asmrefine/FieldAccessors.thy b/tools/asmrefine/FieldAccessors.thy index 6cdb76316..a7a40e9cf 100644 --- a/tools/asmrefine/FieldAccessors.thy +++ b/tools/asmrefine/FieldAccessors.thy @@ -5,9 +5,9 @@ *) theory FieldAccessors - -imports "CLib.LemmaBucket_C" - + imports + Lib.Lib + CLib.LemmaBucket_C begin lemma h_val_mono: @@ -53,10 +53,10 @@ lemma heap_update_rotate: heap_update_list_rotate) lemma c_guard_align_of: - "\ align_of TYPE('a :: c_type) + size_of TYPE('a) < 2 ^ word_bits; - align_of TYPE('a) \ 0 \ \ - c_guard (Ptr (of_nat (align_of TYPE('a))) :: 'a ptr)" + "\ align_of TYPE('a :: c_type) + size_of TYPE('a) < 2 ^ word_bits; align_of TYPE('a) \ 0 \ \ + c_guard (Ptr (of_nat (align_of TYPE('a))) :: 'a ptr)" unfolding c_guard_def + supply word_neq_0_conv[simp del] apply (simp add: ptr_aligned_def unat_of_nat c_null_guard_def) apply (clarsimp simp: intvl_def word_bits_conv take_bit_nat_eq_self) apply (drule trans[rotated], rule sym, rule Abs_fnat_hom_add) diff --git a/tools/asmrefine/GraphRefine.thy b/tools/asmrefine/GraphRefine.thy index 3f8d20c52..a6ff07c9d 100644 --- a/tools/asmrefine/GraphRefine.thy +++ b/tools/asmrefine/GraphRefine.thy @@ -9,6 +9,7 @@ theory GraphRefine imports TailrecPre GraphLangLemmas + Lib.Lib "CLib.LemmaBucket_C" ExtraSpecs begin