src/Pure/consts.ML
changeset 25116 31551aae280f
parent 25048 5a94a87af697
child 25389 3e58c7cb5a73
equal deleted inserted replaced
25115:ec2498132ac4 25116:31551aae280f
   265 
   265 
   266 fun abbreviate pp tsig naming mode tags (c, raw_rhs) consts =
   266 fun abbreviate pp tsig naming mode tags (c, raw_rhs) consts =
   267   let
   267   let
   268     val cert_term = certify pp tsig false consts;
   268     val cert_term = certify pp tsig false consts;
   269     val expand_term = certify pp tsig true consts;
   269     val expand_term = certify pp tsig true consts;
   270     val force_expand = mode = Syntax.internalM;
   270     val force_expand = mode = PrintMode.internal;
   271 
   271 
   272     val rhs = raw_rhs
   272     val rhs = raw_rhs
   273       |> Term.map_types (Type.cert_typ tsig)
   273       |> Term.map_types (Type.cert_typ tsig)
   274       |> cert_term;
   274       |> cert_term;
   275     val T = Term.fastype_of rhs;
   275     val T = Term.fastype_of rhs;