src/HOLCF/Tools/domain/domain_axioms.ML
changeset 29585 c23295521af5
parent 28965 1de908189869
child 30131 6be1be402ef0
child 30240 5b25fee0362c
equal deleted inserted replaced
29584:88ba5e5ac6d8 29585:c23295521af5
   109     [take_def, finite_def])
   109     [take_def, finite_def])
   110 end; (* let *)
   110 end; (* let *)
   111 
   111 
   112 fun infer_props thy = map (apsnd (FixrecPackage.legacy_infer_prop thy));
   112 fun infer_props thy = map (apsnd (FixrecPackage.legacy_infer_prop thy));
   113 
   113 
   114 fun add_axioms_i x = snd o PureThy.add_axioms (map Thm.no_attributes x);
   114 fun add_axioms_i x = snd o PureThy.add_axioms (map (Thm.no_attributes o apfst Binding.name) x);
   115 fun add_axioms_infer axms thy = add_axioms_i (infer_props thy axms) thy;
   115 fun add_axioms_infer axms thy = add_axioms_i (infer_props thy axms) thy;
   116 
   116 
   117 fun add_defs_i x = snd o (PureThy.add_defs false) (map Thm.no_attributes x);
   117 fun add_defs_i x = snd o (PureThy.add_defs false) (map (Thm.no_attributes o apfst Binding.name) x);
   118 fun add_defs_infer defs thy = add_defs_i (infer_props thy defs) thy;
   118 fun add_defs_infer defs thy = add_defs_i (infer_props thy defs) thy;
   119 
   119 
   120 in (* local *)
   120 in (* local *)
   121 
   121 
   122 fun add_axioms (comp_dnam, eqs : eq list) thy' = let
   122 fun add_axioms (comp_dnam, eqs : eq list) thy' = let