src/Pure/thm.ML
changeset 59884 bbf49d7dfd6f
parent 59787 6e2a20486897
child 59917 9830c944670f
equal deleted inserted replaced
59883:12a89103cae6 59884:bbf49d7dfd6f
   588 (** Axioms **)
   588 (** Axioms **)
   589 
   589 
   590 fun axiom theory name =
   590 fun axiom theory name =
   591   let
   591   let
   592     fun get_ax thy =
   592     fun get_ax thy =
   593       Name_Space.lookup_key (Theory.axiom_table thy) name
   593       Name_Space.lookup (Theory.axiom_table thy) name
   594       |> Option.map (fn (_, prop) =>
   594       |> Option.map (fn prop =>
   595            let
   595            let
   596              val der = deriv_rule0 (Proofterm.axm_proof name prop);
   596              val der = deriv_rule0 (Proofterm.axm_proof name prop);
   597              val maxidx = maxidx_of_term prop;
   597              val maxidx = maxidx_of_term prop;
   598              val shyps = Sorts.insert_term prop [];
   598              val shyps = Sorts.insert_term prop [];
   599            in
   599            in