src/Tools/misc_legacy.ML
changeset 39288 f1ae2493d93f
parent 37781 2fbbf0a48cef
child 42284 326f57825e1a
equal deleted inserted replaced
39287:d30be6791038 39288:f1ae2493d93f
    28   let
    28   let
    29     val ctxt = ProofContext.init_global thy
    29     val ctxt = ProofContext.init_global thy
    30       |> ProofContext.allow_dummies
    30       |> ProofContext.allow_dummies
    31       |> ProofContext.set_mode ProofContext.mode_schematic;
    31       |> ProofContext.set_mode ProofContext.mode_schematic;
    32     val parse = if T = propT then Syntax.parse_prop else Syntax.parse_term;
    32     val parse = if T = propT then Syntax.parse_prop else Syntax.parse_term;
    33   in parse ctxt s |> Type_Infer.constrain T |> Syntax.check_term ctxt end;
    33   in parse ctxt s |> Type.constraint T |> Syntax.check_term ctxt end;
    34 
    34 
    35 
    35 
    36 (**** METAHYPS -- tactical for using hypotheses as meta-level assumptions
    36 (**** METAHYPS -- tactical for using hypotheses as meta-level assumptions
    37        METAHYPS (fn prems => tac prems) i
    37        METAHYPS (fn prems => tac prems) i
    38 
    38