Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add lowercase rewrite tactics #1239

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/1/Rewrite.sig
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,19 @@ sig
val ONCE_ASM_REWRITE_RULE : thm list -> thm -> thm

val PURE_REWRITE_TAC : thm list -> tactic
val pure_rewrite_tac : thm list -> tactic
val REWRITE_TAC : thm list -> tactic
val rewrite_tac : thm list -> tactic
val PURE_ONCE_REWRITE_TAC : thm list -> tactic
val pure_once_rewrite_tac : thm list -> tactic
val ONCE_REWRITE_TAC : thm list -> tactic
val once_rewrite_tac : thm list -> tactic
val PURE_ASM_REWRITE_TAC : thm list -> tactic
val pure_asm_rewrite_tac : thm list -> tactic
val ASM_REWRITE_TAC : thm list -> tactic
val asm_rewrite_tac : thm list -> tactic
val PURE_ONCE_ASM_REWRITE_TAC : thm list -> tactic
val pure_once_asm_rewrite_tac : thm list -> tactic
val ONCE_ASM_REWRITE_TAC : thm list -> tactic
val once_asm_rewrite_tac : thm list -> tactic

Expand Down
5 changes: 5 additions & 0 deletions src/1/Rewrite.sml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ and ONCE_REWRITE_TAC thl =
GEN_REWRITE_TAC Conv.ONCE_DEPTH_CONV (implicit_rewrites()) thl;

val rewrite_tac = REWRITE_TAC and once_rewrite_tac = ONCE_REWRITE_TAC
val pure_rewrite_tac = PURE_REWRITE_TAC and pure_once_rewrite_tac = PURE_ONCE_REWRITE_TAC


(* Rewrite a goal with the help of its assumptions *)
Expand All @@ -203,6 +204,10 @@ and PURE_ONCE_ASM_REWRITE_TAC thl :tactic =
and ONCE_ASM_REWRITE_TAC thl :tactic =
Tactical.ASSUM_LIST (fn asl => ONCE_REWRITE_TAC (asl @ thl));

val pure_asm_rewrite_tac = PURE_ASM_REWRITE_TAC
val pure_once_asm_rewrite_tac = PURE_ONCE_ASM_REWRITE_TAC


val asm_rewrite_tac = ASM_REWRITE_TAC
val once_asm_rewrite_tac = ONCE_ASM_REWRITE_TAC

Expand Down