# HG changeset patch # User Cezary Kaliszyk # Date 1266225086 -3600 # Node ID b102e14448515bae5d45faf2aaaadd3cec9baa56 # Parent 3c8ad149a4d3f7a6461c5aaa8ac8a94192e974d2 remove one-line wrapper. diff -r 3c8ad149a4d3 -r b102e1444851 Quot/quotient_def.ML --- a/Quot/quotient_def.ML Fri Feb 12 16:27:25 2010 +0100 +++ b/Quot/quotient_def.ML Mon Feb 15 10:11:26 2010 +0100 @@ -20,16 +20,6 @@ open Quotient_Info; open Quotient_Term; -(* wrapper for define *) -fun define name mx attr rhs lthy = -let - val ((rhs, (_ , thm)), lthy') = - Local_Theory.define ((name, mx), (attr, rhs)) lthy -in - ((rhs, thm), lthy') -end - - (** Interface and Syntax Setup **) (* The ML-interface for a quotient definition takes @@ -58,7 +48,7 @@ val (_, prop') = LocalDefs.cert_def lthy prop val (_, newrhs) = Primitive_Defs.abs_def prop' - val ((trm, thm), lthy') = define qconst_bname mx attr newrhs lthy + val ((trm, (_ , thm)), lthy') = Local_Theory.define ((qconst_bname, mx), (attr, newrhs)) lthy (* data storage *) fun qcinfo phi = transform_qconsts phi {qconst = trm, rconst = rhs, def = thm}