equal
deleted
inserted
replaced
18 |
18 |
19 (** prepare types/terms: create inference parameters **) |
19 (** prepare types/terms: create inference parameters **) |
20 |
20 |
21 (* constraints *) |
21 (* constraints *) |
22 |
22 |
23 val const_sorts = |
23 val const_sorts = Config.declare_bool ("const_sorts", \<^here>) (K true); |
24 Config.bool (Config.declare ("const_sorts", \<^here>) (K (Config.Bool true))); |
|
25 |
24 |
26 fun const_type ctxt = |
25 fun const_type ctxt = |
27 try ((not (Config.get ctxt const_sorts) ? Type.strip_sorts) o |
26 try ((not (Config.get ctxt const_sorts) ? Type.strip_sorts) o |
28 Consts.the_constraint (Proof_Context.consts_of ctxt)); |
27 Consts.the_constraint (Proof_Context.consts_of ctxt)); |
29 |
28 |