src/Pure/theory.ML
changeset 67380 8bef51521f21
parent 65508 a72ab197e681
child 67384 e32b0eb63666
equal deleted inserted replaced
67379:c2dfc510a38c 67380:8bef51521f21
     9   val parents_of: theory -> theory list
     9   val parents_of: theory -> theory list
    10   val ancestors_of: theory -> theory list
    10   val ancestors_of: theory -> theory list
    11   val nodes_of: theory -> theory list
    11   val nodes_of: theory -> theory list
    12   val setup: (theory -> theory) -> unit
    12   val setup: (theory -> theory) -> unit
    13   val local_setup: (Proof.context -> Proof.context) -> unit
    13   val local_setup: (Proof.context -> Proof.context) -> unit
       
    14   val get_pure: unit -> theory
       
    15   val install_pure: theory -> unit
    14   val get_markup: theory -> Markup.T
    16   val get_markup: theory -> Markup.T
    15   val check: Proof.context -> string * Position.T -> theory
    17   val check: Proof.context -> string * Position.T -> theory
    16   val axiom_table: theory -> term Name_Space.table
    18   val axiom_table: theory -> term Name_Space.table
    17   val axiom_space: theory -> Name_Space.T
    19   val axiom_space: theory -> Name_Space.T
    18   val axioms_of: theory -> (string * term) list
    20   val axioms_of: theory -> (string * term) list
    43 fun nodes_of thy = thy :: ancestors_of thy;
    45 fun nodes_of thy = thy :: ancestors_of thy;
    44 
    46 
    45 fun setup f = Context.>> (Context.map_theory f);
    47 fun setup f = Context.>> (Context.map_theory f);
    46 fun local_setup f = Context.>> (Context.map_proof f);
    48 fun local_setup f = Context.>> (Context.map_proof f);
    47 
    49 
       
    50 val pure: theory Single_Assignment.var = Single_Assignment.var "pure";
       
    51 fun get_pure () = the (Single_Assignment.peek pure);
       
    52 fun install_pure thy = Single_Assignment.assign pure thy;
       
    53 
    48 
    54 
    49 
    55 
    50 (** datatype thy **)
    56 (** datatype thy **)
    51 
    57 
    52 type wrapper = (theory -> theory option) * stamp;
    58 type wrapper = (theory -> theory option) * stamp;