src/HOLCF/Tools/Domain/domain_axioms.ML
changeset 35657 0537c34c6067
parent 35654 7a15e181bf3b
child 35658 3d8da9fac424
equal deleted inserted replaced
35656:b62731352812 35657:0537c34c6067
    14   val axiomatize_lub_take :
    14   val axiomatize_lub_take :
    15       binding * term -> theory -> thm * theory
    15       binding * term -> theory -> thm * theory
    16 
    16 
    17   val add_axioms :
    17   val add_axioms :
    18       (binding * (typ * typ)) list -> theory ->
    18       (binding * (typ * typ)) list -> theory ->
    19       Domain_Take_Proofs.iso_info list * theory
    19       (Domain_Take_Proofs.iso_info list
       
    20        * Domain_Take_Proofs.take_induct_info) * theory
    20 end;
    21 end;
    21 
    22 
    22 
    23 
    23 structure Domain_Axioms : DOMAIN_AXIOMS =
    24 structure Domain_Axioms : DOMAIN_AXIOMS =
    24 struct
    25 struct
   124     val (take_info2, thy) =
   125     val (take_info2, thy) =
   125         Domain_Take_Proofs.add_lub_take_theorems
   126         Domain_Take_Proofs.add_lub_take_theorems
   126           (map fst dom_eqns ~~ iso_infos) take_info lub_take_thms thy;
   127           (map fst dom_eqns ~~ iso_infos) take_info lub_take_thms thy;
   127 
   128 
   128   in
   129   in
   129     (iso_infos, thy) (* TODO: also return take_info, lub_take_thms *)
   130     ((iso_infos, take_info2), thy) (* TODO: also return take_info, lub_take_thms *)
   130   end;
   131   end;
   131 
   132 
   132 end; (* struct *)
   133 end; (* struct *)