src/Pure/Proof/extraction.ML
changeset 37237 957753a47670
parent 37233 b78f31ca4675
child 37310 96e2b9a6f074
equal deleted inserted replaced
37236:739d8b9c59da 37237:957753a47670
   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 *)