Skip to content

Commit 4e7f20a

Browse files
committed
Prove IsTypeRep AST_DEC_v in decProg
1 parent 10b7961 commit 4e7f20a

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

compiler/bootstrap/translation/decProgScript.sml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,20 @@ val _ = register_type ``:locs``;
3434
val _ = register_type ``:exp``;
3535
val _ = register_type ``:dec``;
3636

37+
Theorem IsTypeRep_AST_DEC_v:
38+
IsTypeRep AST_DEC_v AST_DEC_TYPE
39+
Proof
40+
irule_at Any (fetch_v_fun “:ast$dec” |> snd |> hd)
41+
\\ irule_at Any (fetch_v_fun “:'a list” |> snd |> hd)
42+
\\ rpt (irule_at Any (fetch_v_fun “:ast$exp” |> snd |> hd))
43+
\\ rpt (irule_at Any (fetch_v_fun “:'a # 'b” |> snd |> hd))
44+
\\ rpt (irule_at Any (fetch_v_fun “:ast$exp” |> snd |> hd))
45+
\\ rpt (irule_at Any (fetch_v_fun “:ast$pat” |> snd |> hd))
46+
\\ rpt (irule_at Any (fetch_v_fun “:ast$lit” |> snd |> hd))
47+
\\ rpt (irule_at Any (fetch_v_fun “:word8” |> snd |> hd))
48+
\\ rpt (irule_at Any (fetch_v_fun “:word64” |> snd |> hd))
49+
\\ rpt (irule_at Any (fetch_v_fun “:string” |> snd |> hd))
50+
\\ fs []
51+
QED
52+
3753
val _ = export_theory();

compiler/repl/repl_init_envProgScript.sml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ val env = get_ml_prog_state () |> get_env
2121

2222
Triviality declare_env_thm:
2323
declare_env_rel ^s ^env
24-
(^s with eval_state := SOME (EvalDecs (eval_state_var with env_id_counter := (0,1,0))))
24+
(^s with eval_state := SOME (EvalDecs (eval_state_var with env_id_counter := (0,1,1))))
2525
(Env ^env (0,0))
2626
Proof
2727
fs [semanticPrimitivesTheory.declare_env_def,ml_progTheory.declare_env_rel_def]

0 commit comments

Comments
 (0)