Skip to content

Commit

Permalink
More rebind fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
myreen committed Oct 16, 2023
1 parent 81833bf commit 67dfc72
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion compiler/repl/evaluate_initScript.sml
Expand Up @@ -682,7 +682,7 @@ Proof
\\ Cases_on ‘op’ \\ gs []
QED

Theorem do_app_ok = SIMP_RULE (srw_ss()) [LET_THM] do_app_ok;
Theorem do_app_ok[allow_rebind] = SIMP_RULE (srw_ss()) [LET_THM] do_app_ok;

Theorem evaluate_ok_Op:
op ≠ Opapp ∧ op ≠ Eval ⇒ ^(get_goal "App")
Expand Down
4 changes: 2 additions & 2 deletions translator/okasaki-examples/LazyPairingHeapScript.sml
Expand Up @@ -112,11 +112,11 @@ decide_tac);
(* Remove the size constraints *)

val merge_def = SIMP_RULE (srw_ss()) [merge_size_lem, LET_THM] merge_def;
val _ = save_thm ("merge_def[compute]",merge_def);
val _ = save_thm ("merge_def[compute,allow_rebind]",merge_def);

val merge_ind =
SIMP_RULE (srw_ss()) [merge_size_lem, LET_THM] (fetch "-" "merge_ind");
val _ = save_thm ("merge_ind",merge_ind);
val _ = save_thm ("merge_ind[allow_rebind]",merge_ind);

val merge_thm = Q.prove(`
merge get_key leq a b =
Expand Down
2 changes: 0 additions & 2 deletions translator/other-examples/auxiliary/slr_parser_genScript.sml
Expand Up @@ -78,8 +78,6 @@ val addRule = Define `
if (x = NONE) then NONE
else SOME (Node l (REVERSE (THE x))))`

val stackSyms = Define `stackSyms stl = (REVERSE (MAP FST (MAP FST stl)))`

val findItemInRules = Define `
(findItemInRules (item l1 (r1,[])) [] = F) /\
(findItemInRules (item l1 (r1,[])) ((rule l2 r2)::rst) = T) /\
Expand Down

0 comments on commit 67dfc72

Please sign in to comment.