Skip to content

Commit

Permalink
Fix rebinds
Browse files Browse the repository at this point in the history
  • Loading branch information
myreen committed Oct 17, 2023
1 parent 8bccfa7 commit 626c628
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions compiler/bootstrap/translation/arm8ProgScript.sml
Expand Up @@ -472,8 +472,8 @@ val res = translate def;
val _ = translate (valid_immediate_def |> SIMP_RULE bool_ss
[IN_INSERT,NOT_IN_EMPTY]|> econv)

Theorem arm8_config_v_thm = translate (arm8_config_def |> SIMP_RULE bool_ss
[IN_INSERT,NOT_IN_EMPTY]|> econv)
Theorem arm8_config_v_thm[allow_rebind] =
translate (arm8_config_def |> SIMP_RULE bool_ss [IN_INSERT,NOT_IN_EMPTY]|> econv)

val () = Feedback.set_trace "TheoryPP.include_docs" 0;

Expand Down
4 changes: 2 additions & 2 deletions compiler/bootstrap/translation/mipsProgScript.sml
Expand Up @@ -381,8 +381,8 @@ val res = CONJUNCTS d1 |> map SPEC_ALL |> map translate;

val res = translate def;

Theorem mips_config_v_thm = translate (mips_config_def |> SIMP_RULE bool_ss
[IN_INSERT,NOT_IN_EMPTY]|> econv)
Theorem mips_config_v_thm[allow_rebind] = translate
(mips_config_def |> SIMP_RULE bool_ss [IN_INSERT,NOT_IN_EMPTY]|> econv);

val () = Feedback.set_trace "TheoryPP.include_docs" 0;

Expand Down
3 changes: 2 additions & 1 deletion compiler/bootstrap/translation/riscvProgScript.sml
Expand Up @@ -364,7 +364,8 @@ val res = CONJUNCTS d1 |> map SPEC_ALL |> map translate;

val res = translate def;

Theorem riscv_config_v_thm = translate (riscv_config_def |> SIMP_RULE bool_ss [IN_INSERT, NOT_IN_EMPTY]|> econv);
Theorem riscv_config_v_thm[allow_rebind] = translate
(riscv_config_def |> SIMP_RULE bool_ss [IN_INSERT, NOT_IN_EMPTY]|> econv);

val () = Feedback.set_trace "TheoryPP.include_docs" 0;

Expand Down
2 changes: 1 addition & 1 deletion compiler/bootstrap/translation/to_target32ProgScript.sml
Expand Up @@ -295,7 +295,7 @@ val monadic_enc32_enc_sec_hash_32_ls_side_def = Q.prove(`
simp[Once (fetch "-" "monadic_enc32_enc_sec_hash_32_ls_side_def")]>>
metis_tac[monadic_enc32_enc_line_hash_32_ls_side_def]);

Theorem monadic_enc32_enc_secs_32_side_def = Q.prove(`
Theorem monadic_enc32_enc_secs_32_side_def[allow_rebind] = Q.prove(`
monadic_enc32_enc_secs_32_side a b c ⇔ T`,
EVAL_TAC>>
rw[]>>
Expand Down
2 changes: 1 addition & 1 deletion compiler/bootstrap/translation/x64ProgScript.sml
Expand Up @@ -500,7 +500,7 @@ val res = CONJUNCTS d1 |> map SPEC_ALL |> map translate;

val res = translate def;

Theorem x64_config_v_thm = translate (x64_config_def |> gconv);
Theorem x64_config_v_thm[allow_rebind] = translate (x64_config_def |> gconv);

val () = Feedback.set_trace "TheoryPP.include_docs" 0;

Expand Down

0 comments on commit 626c628

Please sign in to comment.