# HG changeset patch # User wenzelm # Date 1441224884 -7200 # Node ID 50e793295ce147d423482c4a33dad187b8238878 # Parent 3d88cd531abe8f4b49a2fea829e4b0ccf65626d0 trim context for persistent storage; diff -r 3d88cd531abe -r 50e793295ce1 src/Pure/raw_simplifier.ML --- a/src/Pure/raw_simplifier.ML Wed Sep 02 22:02:31 2015 +0200 +++ b/src/Pure/raw_simplifier.ML Wed Sep 02 22:14:44 2015 +0200 @@ -640,7 +640,7 @@ val a = the (cong_name (head_of lhs)) handle Option.Option => raise SIMPLIFIER ("Congruence must start with a constant or free variable", [thm]); val (xs, weak) = congs; - val xs' = AList.update (op =) (a, thm) xs; + val xs' = AList.update (op =) (a, Thm.trim_context thm) xs; val weak' = if is_full_cong thm then weak else a :: weak; in ((xs', weak'), procs, mk_rews, termless, subgoal_tac, loop_tacs, solvers) end); @@ -1148,7 +1148,7 @@ (case cong_name h of SOME a => (case AList.lookup (op =) (fst congs) a of - NONE => appc () + NONE => appc () | SOME cong => (*post processing: some partial applications h t1 ... tj, j <= length ts, may be a redex. Example: map (%x. x) = (%xs. xs) wrt map_cong*)