equal
deleted
inserted
replaced
324 local |
324 local |
325 |
325 |
326 fun guess_morphism_identity (b, rhs) phi1 phi2 = |
326 fun guess_morphism_identity (b, rhs) phi1 phi2 = |
327 let |
327 let |
328 (*FIXME proper concept to identify morphism instead of educated guess*) |
328 (*FIXME proper concept to identify morphism instead of educated guess*) |
329 val name_of_binding = Name_Space.full_name Name_Space.default_naming; |
329 val name_of_binding = Name_Space.full_name Name_Space.global_naming; |
330 val n1 = (name_of_binding o Morphism.binding phi1) b; |
330 val n1 = (name_of_binding o Morphism.binding phi1) b; |
331 val n2 = (name_of_binding o Morphism.binding phi2) b; |
331 val n2 = (name_of_binding o Morphism.binding phi2) b; |
332 val rhs1 = Morphism.term phi1 rhs; |
332 val rhs1 = Morphism.term phi1 rhs; |
333 val rhs2 = Morphism.term phi2 rhs; |
333 val rhs2 = Morphism.term phi2 rhs; |
334 in n1 = n2 andalso Term.aconv_untyped (rhs1, rhs2) end; |
334 in n1 = n2 andalso Term.aconv_untyped (rhs1, rhs2) end; |