src/ZF/constructor.ML
changeset 202 4e68398cdc06
parent 6 8ce8c4d13d4d
child 231 cb6a24451544
equal deleted inserted replaced
201:9e41c6cec27c 202:4e68398cdc06
   146 		   (([big_case_name], flatten_typ sign big_case_typ) :: 
   146 		   (([big_case_name], flatten_typ sign big_case_typ) :: 
   147 		    (big_rec_name ins rec_names, rec_styp) :: 
   147 		    (big_rec_name ins rec_names, rec_styp) :: 
   148 		    flat (map #3 rec_specs));
   148 		    flat (map #3 rec_specs));
   149 
   149 
   150 val con_thy = extend_theory thy (big_rec_name ^ "_Constructors")
   150 val con_thy = extend_theory thy (big_rec_name ^ "_Constructors")
   151     ([], [], [], [], const_decs, ext) axpairs;
   151     ([], [], [], [], [], const_decs, ext) axpairs;
   152 
   152 
   153 (*1st element is the case definition; others are the constructors*)
   153 (*1st element is the case definition; others are the constructors*)
   154 val con_defs = map (get_axiom con_thy o #1) axpairs;
   154 val con_defs = map (get_axiom con_thy o #1) axpairs;
   155 
   155 
   156 (** Prove the case theorem **)
   156 (** Prove the case theorem **)