src/Pure/Proof/extraction.ML
changeset 33388 d64545e6cba5
parent 33337 9c3b9bf81e8b
child 33522 737589bb9bb8
equal deleted inserted replaced
33387:acea2f336721 33388:d64545e6cba5
   298       ExtractionData.get thy;
   298       ExtractionData.get thy;
   299     val procs = maps (fst o snd) types;
   299     val procs = maps (fst o snd) types;
   300     val rtypes = map fst types;
   300     val rtypes = map fst types;
   301     val eqns = Net.merge (K false) (#net realizes_eqns, #net typeof_eqns);
   301     val eqns = Net.merge (K false) (#net realizes_eqns, #net typeof_eqns);
   302     val thy' = add_syntax thy;
   302     val thy' = add_syntax thy;
   303     val rd = ProofSyntax.read_proof thy' false
   303     val rd = Proof_Syntax.read_proof thy' false;
   304   in fn (thm, (vs, s1, s2)) =>
   304   in fn (thm, (vs, s1, s2)) =>
   305     let
   305     let
   306       val name = Thm.get_name thm;
   306       val name = Thm.get_name thm;
   307       val _ = name <> "" orelse error "add_realizers: unnamed theorem";
   307       val _ = name <> "" orelse error "add_realizers: unnamed theorem";
   308       val prop = Pattern.rewrite_term thy'
   308       val prop = Pattern.rewrite_term thy'