Quot/quotient_def.ML
changeset 670 178acdd3a64c
parent 663 0dd10a900cae
child 705 f51c6069cd17
equal deleted inserted replaced
668:ef5b941f00e2 670:178acdd3a64c
    89 
    89 
    90   val ((trm, thm), lthy') = define qconst_bname mx attr newrhs lthy
    90   val ((trm, thm), lthy') = define qconst_bname mx attr newrhs lthy
    91 
    91 
    92   fun qcinfo phi = qconsts_transfer phi {qconst = trm, rconst = rhs, def = thm}
    92   fun qcinfo phi = qconsts_transfer phi {qconst = trm, rconst = rhs, def = thm}
    93   val lthy'' = Local_Theory.declaration true
    93   val lthy'' = Local_Theory.declaration true
    94    val lthy'' = Local_Theory.declaration true
       
    95                  (fn phi => 
    94                  (fn phi => 
    96                        let
    95                        let
    97                          val qconst_str = Binding.name_of qconst_bname
    96                          val qconst_str = Binding.name_of qconst_bname
    98                        in                      
    97                        in                      
    99                          qconsts_update_gen qconst_str (qcinfo phi)
    98                          qconsts_update_gen qconst_str (qcinfo phi)