src/HOL/Tools/Quotient/quotient_info.ML
changeset 47842 bdec4a6016c2
parent 47836 5c6955f487e5
child 47963 0516a6c1ea59
child 47981 29e92b644d6c
equal deleted inserted replaced
47841:9667e0dcb5e2 47842:bdec4a6016c2
    69 
    69 
    70 (* FIXME export proper internal update operation!? *)
    70 (* FIXME export proper internal update operation!? *)
    71 
    71 
    72 val quotmaps_attribute_setup =
    72 val quotmaps_attribute_setup =
    73   Attrib.setup @{binding map}
    73   Attrib.setup @{binding map}
    74     ((Args.type_name false --| Scan.lift (@{keyword "="})) --  (* FIXME Args.type_name true (requires "set" type) *)
    74     ((Args.type_name true --| Scan.lift (@{keyword "="})) -- Args.const_proper true >>
    75       Args.const_proper true >>
       
    76       (fn (tyname, relname) =>
    75       (fn (tyname, relname) =>
    77         let val minfo = {relmap = relname}
    76         let val minfo = {relmap = relname}
    78         in Thm.declaration_attribute (fn _ => Quotmaps.map (Symtab.update (tyname, minfo))) end))
    77         in Thm.declaration_attribute (fn _ => Quotmaps.map (Symtab.update (tyname, minfo))) end))
    79     "declaration of map information"
    78     "declaration of map information"
    80 
    79