src/Pure/Isar/class.ML
changeset 25094 ba43514068fd
parent 25083 765528b4b419
child 25096 b8950f7cf92e
equal deleted inserted replaced
25093:41ec22a00c41 25094:ba43514068fd
   518     val tac = ALLGOALS (ProofContext.fact_tac facts);
   518     val tac = ALLGOALS (ProofContext.fact_tac facts);
   519     val prfx = class_prefix class;
   519     val prfx = class_prefix class;
   520   in
   520   in
   521     thy
   521     thy
   522     |> fold_map (get_remove_global_constraint o fst o snd) params
   522     |> fold_map (get_remove_global_constraint o fst o snd) params
   523     ||> prove_interpretation tac ((false, prfx), []) (Locale.Locale class) (inst, defs)
   523     ||> prove_interpretation tac ((false, prfx), []) (Locale.Locale class)
       
   524           (inst, map (fn def => (("", []), def)) defs)
   524     |-> (fn cs => fold (Sign.add_const_constraint o apsnd SOME) cs)
   525     |-> (fn cs => fold (Sign.add_const_constraint o apsnd SOME) cs)
   525   end;
   526   end;
   526 
   527 
   527 fun intro_classes_tac facts st =
   528 fun intro_classes_tac facts st =
   528   let
   529   let