equal
deleted
inserted
replaced
54 val symmetric_fun : thm -> thm |
54 val symmetric_fun : thm -> thm |
55 val rewrite_rule_aux : (meta_simpset -> thm -> thm option) -> thm list -> thm -> thm |
55 val rewrite_rule_aux : (meta_simpset -> thm -> thm option) -> thm list -> thm -> thm |
56 val rewrite_thm : bool * bool * bool |
56 val rewrite_thm : bool * bool * bool |
57 -> (meta_simpset -> thm -> thm option) |
57 -> (meta_simpset -> thm -> thm option) |
58 -> meta_simpset -> thm -> thm |
58 -> meta_simpset -> thm -> thm |
|
59 val rewrite_cterm : bool * bool * bool |
|
60 -> (meta_simpset -> thm -> thm option) |
|
61 -> meta_simpset -> cterm -> thm |
59 val rewrite_goals_rule_aux: (meta_simpset -> thm -> thm option) -> thm list -> thm -> thm |
62 val rewrite_goals_rule_aux: (meta_simpset -> thm -> thm option) -> thm list -> thm -> thm |
60 val rewrite_goal_rule : bool* bool * bool |
63 val rewrite_goal_rule : bool* bool * bool |
61 -> (meta_simpset -> thm -> thm option) |
64 -> (meta_simpset -> thm -> thm option) |
62 -> meta_simpset -> int -> thm -> thm |
65 -> meta_simpset -> int -> thm -> thm |
63 val equal_abs_elim : cterm -> thm -> thm |
66 val equal_abs_elim : cterm -> thm -> thm |
450 fun rewrite_rule_aux _ [] th = th |
453 fun rewrite_rule_aux _ [] th = th |
451 | rewrite_rule_aux prover thms th = |
454 | rewrite_rule_aux prover thms th = |
452 fconv_rule (rew_conv (true,false,false) prover (Thm.mss_of thms)) th; |
455 fconv_rule (rew_conv (true,false,false) prover (Thm.mss_of thms)) th; |
453 |
456 |
454 fun rewrite_thm mode prover mss = fconv_rule (rew_conv mode prover mss); |
457 fun rewrite_thm mode prover mss = fconv_rule (rew_conv mode prover mss); |
|
458 fun rewrite_cterm mode prover mss = Thm.rewrite_cterm mode mss prover; |
455 |
459 |
456 (*Rewrite the subgoals of a proof state (represented by a theorem) *) |
460 (*Rewrite the subgoals of a proof state (represented by a theorem) *) |
457 fun rewrite_goals_rule_aux _ [] th = th |
461 fun rewrite_goals_rule_aux _ [] th = th |
458 | rewrite_goals_rule_aux prover thms th = |
462 | rewrite_goals_rule_aux prover thms th = |
459 fconv_rule (goals_conv (K true) (rew_conv (true, true, false) prover |
463 fconv_rule (goals_conv (K true) (rew_conv (true, true, false) prover |