equal
deleted
inserted
replaced
49 |
49 |
50 fun markup_const ctxt c = |
50 fun markup_const ctxt c = |
51 [Name_Space.markup (Consts.space_of (Proof_Context.consts_of ctxt)) c]; |
51 [Name_Space.markup (Consts.space_of (Proof_Context.consts_of ctxt)) c]; |
52 |
52 |
53 fun markup_free ctxt x = |
53 fun markup_free ctxt x = |
54 [if can Name.dest_skolem x then Markup.skolem else Markup.free] @ |
54 [if Name.is_skolem x then Markup.skolem else Markup.free] @ |
55 (if Variable.is_body ctxt orelse Variable.is_fixed ctxt x |
55 (if Variable.is_body ctxt orelse Variable.is_fixed ctxt x |
56 then [Variable.markup_fixed ctxt x] |
56 then [Variable.markup_fixed ctxt x] |
57 else []); |
57 else []); |
58 |
58 |
59 fun markup_var xi = [Markup.name (Term.string_of_vname xi) Markup.var]; |
59 fun markup_var xi = [Markup.name (Term.string_of_vname xi) Markup.var]; |
662 let |
662 let |
663 val m = |
663 val m = |
664 if Variable.is_fixed ctxt x orelse Syntax.is_pretty_global ctxt |
664 if Variable.is_fixed ctxt x orelse Syntax.is_pretty_global ctxt |
665 then Markup.fixed x else Markup.intensify; |
665 then Markup.fixed x else Markup.intensify; |
666 in |
666 in |
667 if can Name.dest_skolem x |
667 if Name.is_skolem x |
668 then ([m, Markup.skolem], Variable.revert_fixed ctxt x) |
668 then ([m, Markup.skolem], Variable.revert_fixed ctxt x) |
669 else ([m, Markup.free], x) |
669 else ([m, Markup.free], x) |
670 end; |
670 end; |
671 |
671 |
672 fun var_or_skolem s = |
672 fun var_or_skolem s = |