src/Pure/Proof/proof_syntax.ML
changeset 16182 a5c77d298ad7
parent 15574 b1d1b5bfc464
child 16195 0eb3c15298cd
equal deleted inserted replaced
16181:22324687e2d2 16182:a5c77d298ad7
   221       map fst (Symtab.dest tab);
   221       map fst (Symtab.dest tab);
   222     val axm_names = map fst (List.concat (map (Symtab.dest o #axioms o rep_theory) thys));
   222     val axm_names = map fst (List.concat (map (Symtab.dest o #axioms o rep_theory) thys));
   223     val sg = sign_of thy |>
   223     val sg = sign_of thy |>
   224       add_proof_syntax |>
   224       add_proof_syntax |>
   225       add_proof_atom_consts
   225       add_proof_atom_consts
   226         (map (add_prefix "thm") thm_names @ map (add_prefix "axm") axm_names)
   226         (map (add_prefix "axm") axm_names @ map (add_prefix "thm") thm_names)
   227   in
   227   in
   228     (cterm_of sg (term_of_proof prf'),
   228     (cterm_of sg (term_of_proof prf'),
   229      proof_of_term thy tab true o Thm.term_of)
   229      proof_of_term thy tab true o Thm.term_of)
   230   end;
   230   end;
   231 
   231 
   235     val thm_names = filter_out (equal "") (map fst (List.concat (map thms_of thys)));
   235     val thm_names = filter_out (equal "") (map fst (List.concat (map thms_of thys)));
   236     val axm_names = map fst (List.concat (map (Symtab.dest o #axioms o rep_theory) thys));
   236     val axm_names = map fst (List.concat (map (Symtab.dest o #axioms o rep_theory) thys));
   237     val sg = sign_of thy |>
   237     val sg = sign_of thy |>
   238       add_proof_syntax |>
   238       add_proof_syntax |>
   239       add_proof_atom_consts
   239       add_proof_atom_consts
   240         (map (add_prefix "thm") thm_names @ map (add_prefix "axm") axm_names)
   240         (map (add_prefix "axm") axm_names @ map (add_prefix "thm") thm_names)
   241   in
   241   in
   242     (fn T => fn s => Thm.term_of (read_cterm sg (s, T)))
   242     (fn T => fn s => Thm.term_of (read_cterm sg (s, T)))
   243   end;
   243   end;
   244 
   244 
   245 fun read_proof thy =
   245 fun read_proof thy =