equal
deleted
inserted
replaced
91 val spec = |
91 val spec = |
92 mk_Trueprop_eq (mk_side @{const_name HOL.equal}, mk_side @{const_name HOL.eq}) |
92 mk_Trueprop_eq (mk_side @{const_name HOL.equal}, mk_side @{const_name HOL.eq}) |
93 |> Syntax.check_term lthy; |
93 |> Syntax.check_term lthy; |
94 val ((_, (_, raw_def)), lthy') = |
94 val ((_, (_, raw_def)), lthy') = |
95 Specification.definition (NONE, (Attrib.empty_binding, spec)) lthy; |
95 Specification.definition (NONE, (Attrib.empty_binding, spec)) lthy; |
96 val thy_ctxt = Proof_Context.init_global (Proof_Context.theory_of lthy); (* FIXME? *) |
96 val thy_ctxt = Proof_Context.init_global (Proof_Context.theory_of lthy'); |
97 val def = singleton (Proof_Context.export lthy' thy_ctxt) raw_def; |
97 val def = singleton (Proof_Context.export lthy' thy_ctxt) raw_def; |
98 in |
98 in |
99 (def, lthy') |
99 (def, lthy') |
100 end; |
100 end; |
101 |
101 |