src/Pure/Proof/proof_checker.ML
changeset 80299 a397fd0c451a
parent 80295 8a9588ffc133
child 80306 c2537860ccf8
equal deleted inserted replaced
80298:f3bfec3b02f0 80299:a397fd0c451a
    91                 val thm = Thm.unconstrainT (Drule.implies_intr_hyps (lookup name));
    91                 val thm = Thm.unconstrainT (Drule.implies_intr_hyps (lookup name));
    92                 val prop = Thm.prop_of thm;
    92                 val prop = Thm.prop_of thm;
    93                 val _ =
    93                 val _ =
    94                   if is_equal prop prop' then ()
    94                   if is_equal prop prop' then ()
    95                   else
    95                   else
    96                     error ("Duplicate use of theorem name " ^ quote name ^ "\n" ^
    96                     error ("Duplicate use of theorem name " ^
       
    97                       quote (Global_Theory.print_thm_name thy thm_name) ^ "\n" ^
    97                       Syntax.string_of_term_global thy prop ^ "\n\n" ^
    98                       Syntax.string_of_term_global thy prop ^ "\n\n" ^
    98                       Syntax.string_of_term_global thy prop');
    99                       Syntax.string_of_term_global thy prop');
    99               in thm_of_atom thm Ts end
   100               in thm_of_atom thm Ts end
   100 
   101 
   101           | thm_of _ _ (PAxm (name, _, SOME Ts)) =
   102           | thm_of _ _ (PAxm (name, _, SOME Ts)) =