src/Pure/Thy/export_theory.ML
changeset 77730 4a174bea55e2
parent 75858 657b2de27454
child 77869 1156aa9db7f5
equal deleted inserted replaced
77729:0ad86d5b3bc3 77730:4a174bea55e2
   262         val used_typargs = fold (Name.declare o #1) typargs used;
   262         val used_typargs = fold (Name.declare o #1) typargs used;
   263         val sorts = Name.invent used_typargs Name.aT (length extra_shyps) ~~ extra_shyps;
   263         val sorts = Name.invent used_typargs Name.aT (length extra_shyps) ~~ extra_shyps;
   264       in ((sorts @ typargs, args, prop), proof) end;
   264       in ((sorts @ typargs, args, prop), proof) end;
   265 
   265 
   266     fun standard_prop_of thm =
   266     fun standard_prop_of thm =
   267       standard_prop Name.context (Thm.extra_shyps thm) (Thm.full_prop_of thm);
   267       standard_prop Name.context (Sortset.dest (Thm.extra_shyps thm)) (Thm.full_prop_of thm);
   268 
   268 
   269     val encode_prop =
   269     val encode_prop =
   270       let open XML.Encode Term_XML.Encode
   270       let open XML.Encode Term_XML.Encode
   271       in triple (list (pair string sort)) (list (pair string typ)) encode_term end;
   271       in triple (list (pair string sort)) (list (pair string typ)) encode_term end;
   272 
   272