equal
deleted
inserted
replaced
164 let |
164 let |
165 val ctxt = ProofContext.init_global thy |
165 val ctxt = ProofContext.init_global thy |
166 |> Proof_Syntax.strip_sorts_consttypes |
166 |> Proof_Syntax.strip_sorts_consttypes |
167 |> ProofContext.set_defsort []; |
167 |> ProofContext.set_defsort []; |
168 val parse = if T = propT then Syntax.parse_prop else Syntax.parse_term; |
168 val parse = if T = propT then Syntax.parse_prop else Syntax.parse_term; |
169 in parse ctxt s |> TypeInfer.constrain T |> Syntax.check_term ctxt end; |
169 in parse ctxt s |> Type_Infer.constrain T |> Syntax.check_term ctxt end; |
170 |
170 |
171 |
171 |
172 (**** theory data ****) |
172 (**** theory data ****) |
173 |
173 |
174 (* theory data *) |
174 (* theory data *) |