Re: [isabelle-dev] NEWS: Thm.cterm_of and Thm.ctyp_of operate on local context

2015-04-02 Thread Peter Lammich
On Do, 2015-04-02 at 00:16 +0200, Makarius wrote: * The main operations to certify logical entities are Thm.ctyp_of and Thm.cterm_of with a local context; Does this mean that you added functionality concerning the local context to the Isabelle kernel, which formerly did not know anything

Re: [isabelle-dev] NEWS: Thm.cterm_of and Thm.ctyp_of operate on local context

2015-04-02 Thread Makarius
On Thu, 2 Apr 2015, Peter Lammich wrote: On Do, 2015-04-02 at 00:16 +0200, Makarius wrote: * The main operations to certify logical entities are Thm.ctyp_of and Thm.cterm_of with a local context; Does this mean that you added functionality concerning the local context to the Isabelle kernel,

Re: [isabelle-dev] NEWS: Thm.cterm_of and Thm.ctyp_of operate on local context

2015-04-02 Thread Makarius
On Thu, 2 Apr 2015, Peter Lammich wrote: So what is the reason not to put it in more_thm.ML? There, it would not affect the kernel itself, and still appear as Thm.cterm_of to the user. The kernel is not affected by a line like this: val cterm_of = global_cterm_of o Proof_Context.theory_of;

Re: [isabelle-dev] NEWS: Thm.cterm_of and Thm.ctyp_of operate on local context

2015-04-02 Thread Peter Lammich
No, there is no fundamental change. Certification is a matter of the background theory of the context (the expansion of abbreviations is merely a historical accident). The change mainly avoids awkward use of Proof_Context.theory_of in regular Isabelle/ML sources -- it used to cause