quotient_def.ML
changeset 505 6cdba30c6d66
parent 496 8f1bf5266ebc
child 531 3feed4dbfa45
equal deleted inserted replaced
504:bb23a7393de3 505:6cdba30c6d66
    95                    |> Syntax.check_term lthy 
    95                    |> Syntax.check_term lthy 
    96 
    96 
    97   val ((trm, thm), lthy') = define qconst_bname mx attr absrep_trm lthy
    97   val ((trm, thm), lthy') = define qconst_bname mx attr absrep_trm lthy
    98 
    98 
    99   val qconst_str = Binding.name_of qconst_bname
    99   val qconst_str = Binding.name_of qconst_bname
   100   fun qcinfo phi = qconsts_transfer phi {qconst = trm, rconst = rhs}
   100   fun qcinfo phi = qconsts_transfer phi {qconst = trm, rconst = rhs, def = thm}
   101   val lthy'' = Local_Theory.declaration true
   101   val lthy'' = Local_Theory.declaration true
   102                  (fn phi => qconsts_update_gen qconst_str (qcinfo phi)) lthy'
   102                  (fn phi => qconsts_update_gen qconst_str (qcinfo phi)) lthy'
   103 in
   103 in
   104   ((trm, thm), lthy'')
   104   ((trm, thm), lthy'')
   105 end
   105 end