equal
deleted
inserted
replaced
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 |