src/Pure/old_goals.ML
changeset 27157 0ddb5576b387
parent 26939 1035c89b4c02
child 27233 224c830e7abe
equal deleted inserted replaced
27156:e9f2d5947887 27157:0ddb5576b387
    38   val qed_spec_mp: string -> unit
    38   val qed_spec_mp: string -> unit
    39   val qed_goal_spec_mp: string -> theory -> string -> (thm list -> tactic list) -> unit
    39   val qed_goal_spec_mp: string -> theory -> string -> (thm list -> tactic list) -> unit
    40   val qed_goalw_spec_mp: string -> theory -> thm list -> string
    40   val qed_goalw_spec_mp: string -> theory -> thm list -> string
    41     -> (thm list -> tactic list) -> unit
    41     -> (thm list -> tactic list) -> unit
    42   val no_qed: unit -> unit
    42   val no_qed: unit -> unit
    43   val inst: string -> string -> thm -> thm
       
    44 end;
    43 end;
    45 
    44 
    46 signature OLD_GOALS =
    45 signature OLD_GOALS =
    47 sig
    46 sig
    48   include GOALS
    47   include GOALS
    80   val fes: thm list -> unit
    79   val fes: thm list -> unit
    81   val fe: thm -> unit
    80   val fe: thm -> unit
    82   val fds: thm list -> unit
    81   val fds: thm list -> unit
    83   val fd: thm -> unit
    82   val fd: thm -> unit
    84   val fa: unit -> unit
    83   val fa: unit -> unit
       
    84   val inst: string -> string -> thm -> thm
    85 end;
    85 end;
    86 
    86 
    87 structure OldGoals: OLD_GOALS =
    87 structure OldGoals: OLD_GOALS =
    88 struct
    88 struct
    89 
    89 
   516   bind_thm (name, ObjectLogic.rulify_no_asm (prove_goalw thy defs s p));
   516   bind_thm (name, ObjectLogic.rulify_no_asm (prove_goalw thy defs s p));
   517 
   517 
   518 fun no_qed () = ();
   518 fun no_qed () = ();
   519 
   519 
   520 (*shorthand for instantiating just one variable in the current theory*)
   520 (*shorthand for instantiating just one variable in the current theory*)
   521 fun inst x t = read_instantiate_sg (ML_Context.the_global_context()) [(x,t)];
   521 fun inst x t = Drule.read_instantiate_sg (ML_Context.the_global_context()) [(x,t)];
   522 
   522 
   523 end;
   523 end;
   524 
   524 
   525 structure Goals: GOALS = OldGoals;
   525 structure Goals: GOALS = OldGoals;
   526 open Goals;
   526 open Goals;