src/Pure/Isar/expression.ML
changeset 54566 5f3e9baa8f13
parent 53041 d51bac27d4a0
child 54740 91f54d386680
     1.1 --- a/src/Pure/Isar/expression.ML	Sat Nov 23 17:07:11 2013 +0100
     1.2 +++ b/src/Pure/Isar/expression.ML	Sat Nov 23 17:07:36 2013 +0100
     1.3 @@ -676,8 +676,11 @@
     1.4      val conjuncts =
     1.5        (Drule.equal_elim_rule2 OF [body_eq, rewrite_rule [pred_def] (Thm.assume (cert statement))])
     1.6        |> Conjunction.elim_balanced (length ts);
     1.7 +
     1.8 +    val (_, axioms_ctxt) = defs_ctxt
     1.9 +      |> Assumption.add_assumes (maps (#hyps o Thm.crep_thm) (defs @ conjuncts));
    1.10      val axioms = ts ~~ conjuncts |> map (fn (t, ax) =>
    1.11 -      Element.prove_witness defs_ctxt t
    1.12 +      Element.prove_witness axioms_ctxt t
    1.13         (rewrite_goals_tac defs THEN compose_tac (false, ax, 0) 1));
    1.14    in ((statement, intro, axioms), defs_thy) end;
    1.15