equal
deleted
inserted
replaced
582 (** Axioms **) |
582 (** Axioms **) |
583 |
583 |
584 fun axiom theory name = |
584 fun axiom theory name = |
585 let |
585 let |
586 fun get_ax thy = |
586 fun get_ax thy = |
587 Symtab.lookup (Theory.axiom_table thy) name |
587 Name_Space.lookup_key (Theory.axiom_table thy) name |
588 |> Option.map (fn prop => |
588 |> Option.map (fn (_, prop) => |
589 let |
589 let |
590 val der = deriv_rule0 (Proofterm.axm_proof name prop); |
590 val der = deriv_rule0 (Proofterm.axm_proof name prop); |
591 val maxidx = maxidx_of_term prop; |
591 val maxidx = maxidx_of_term prop; |
592 val shyps = Sorts.insert_term prop []; |
592 val shyps = Sorts.insert_term prop []; |
593 in |
593 in |
600 | NONE => raise THEORY ("No axiom " ^ quote name, [theory])) |
600 | NONE => raise THEORY ("No axiom " ^ quote name, [theory])) |
601 end; |
601 end; |
602 |
602 |
603 (*return additional axioms of this theory node*) |
603 (*return additional axioms of this theory node*) |
604 fun axioms_of thy = |
604 fun axioms_of thy = |
605 map (fn s => (s, axiom thy s)) (Symtab.keys (Theory.axiom_table thy)); |
605 map (fn (name, _) => (name, axiom thy name)) (Theory.axioms_of thy); |
606 |
606 |
607 |
607 |
608 (* tags *) |
608 (* tags *) |
609 |
609 |
610 val get_tags = #tags o rep_thm; |
610 val get_tags = #tags o rep_thm; |