equal
deleted
inserted
replaced
101 | name => name); |
101 | name => name); |
102 val res = Facts.lookup context facts name; |
102 val res = Facts.lookup context facts name; |
103 val _ = Theory.check_thy thy; |
103 val _ = Theory.check_thy thy; |
104 in |
104 in |
105 (case res of |
105 (case res of |
106 NONE => error ("Unknown fact " ^ quote name ^ Position.str_of pos) |
106 NONE => error ("Unknown fact " ^ quote name ^ Position.here pos) |
107 | SOME (static, ths) => |
107 | SOME (static, ths) => |
108 (Context_Position.report_generic context pos (Name_Space.markup (Facts.space_of facts) name); |
108 (Context_Position.report_generic context pos (Name_Space.markup (Facts.space_of facts) name); |
109 if static then () |
109 if static then () |
110 else Context_Position.report_generic context pos (Isabelle_Markup.dynamic_fact name); |
110 else Context_Position.report_generic context pos (Isabelle_Markup.dynamic_fact name); |
111 Facts.select xthmref (map (Thm.transfer thy) ths))) |
111 Facts.select xthmref (map (Thm.transfer thy) ths))) |