clarified signature;
authorwenzelm
Sat, 31 May 2025 11:29:10 +0200
changeset 82673 55260840696f
parent 82672 779a25d9a807
child 82674 f4441890dee0
child 82676 33dba4986b9f
clarified signature;
src/Pure/raw_simplifier.ML
--- a/src/Pure/raw_simplifier.ML	Fri May 30 08:02:55 2025 +0200
+++ b/src/Pure/raw_simplifier.ML	Sat May 31 11:29:10 2025 +0200
@@ -603,7 +603,7 @@
     else rrule_eq_True ctxt thm name lhs elhs rhs thm
   end;
 
-fun extract_rews sym thm ctxt =
+fun extract_rews {sym} thm ctxt =
   let
     val mk = #mk (get_mk_rews ctxt);
     val (rews, ctxt') = mk thm ctxt;
@@ -611,11 +611,11 @@
   in (map (rpair (Thm.get_name_hint thm)) rews', ctxt') end;
 
 fun extract_safe_rrules thm ctxt =
-  extract_rews false thm ctxt |>> maps (orient_rrule ctxt);
+  extract_rews {sym = false} thm ctxt |>> maps (orient_rrule ctxt);
 
 fun mk_rrules ctxt thm =
   let
-    val rews = #1 (extract_rews false thm ctxt);
+    val rews = #1 (extract_rews {sym = false} thm ctxt);
     val raw_rrules = maps (mk_rrule ctxt) rews;
   in map mk_rrule2 raw_rrules end;
 
@@ -633,18 +633,18 @@
 in
 
 fun add_simps thms ctxt =
-  comb_simps insert_rrule (mk_rrule ctxt) false thms ctxt;
+  comb_simps insert_rrule (mk_rrule ctxt) {sym = false} thms ctxt;
 
 fun add_flipped_simps thms ctxt =
-  comb_simps insert_rrule (mk_rrule ctxt) true thms ctxt;
+  comb_simps insert_rrule (mk_rrule ctxt) {sym = true} thms ctxt;
 
 fun add_simp thm = add_simps [thm];
 
 fun del_simps thms ctxt =
-  comb_simps (del_rrule true) (map mk_rrule2 o mk_rrule ctxt) false thms ctxt;
+  comb_simps (del_rrule true) (map mk_rrule2 o mk_rrule ctxt) {sym = false} thms ctxt;
 
 fun del_simps_quiet thms ctxt =
-  comb_simps (del_rrule false) (map mk_rrule2 o mk_rrule ctxt) false thms ctxt;
+  comb_simps (del_rrule false) (map mk_rrule2 o mk_rrule ctxt) {sym = false} thms ctxt;
 
 fun del_simp thm = del_simps [thm];