Skip to content

Commit dfed7ee

Browse files
committed
Fix broken parts of basis
1 parent 8d1203f commit dfed7ee

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

Diff for: basis/ListProgScript.sml

+9-2
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,16 @@ val result = translate TL_DEF;
6363
val result = translate LAST_DEF;
6464

6565
val _ = next_ml_names := ["getItem"];
66-
val result = translate getItem_def;
66+
val result = translate mllistTheory.getItem_def;
6767

68-
val result = translate (EL |> REWRITE_RULE[GSYM nth_def]);
68+
Triviality nth_thm:
69+
mllist$nth l 0 = HD l ∧
70+
mllist$nth l (SUC n) = mllist$nth (TL l) n
71+
Proof
72+
gvs [mllistTheory.nth_def,listTheory.EL]
73+
QED
74+
75+
val result = translate nth_thm;
6976
val nth_side_def = theorem"nth_side_def";
7077

7178
val result = translate (TAKE_def |> REWRITE_RULE[GSYM take_def]);

Diff for: characteristic/cfLetAutoLib.sml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1692,7 +1692,7 @@ fun xlet_simp_spec asl app_info let_pre app_spec =
16921692
(final_spec, frame_hpl)
16931693
end
16941694
handle HOL_ERR{message = msg, origin_function = fname,
1695-
origin_structure = sname} => raise (ERR "xlet_simp_spec" msg);
1695+
origin_structure = sname, ...} => raise (ERR "xlet_simp_spec" msg);
16961696

16971697
(* [xlet_mk_post_conditions] *)
16981698
fun xlet_mk_post_condition asl frame_hpl app_spec =
@@ -1921,7 +1921,7 @@ fun xlet_auto_spec (opt_spec : thm option) (g as (asl, w)) =
19211921
(* [xlet_auto] *)
19221922
fun xlet_auto (g as (asl, w)) =
19231923
xlet_auto_spec NONE g
1924-
handle HOL_ERR {origin_structure = _, origin_function = fname, message = msg}
1924+
handle HOL_ERR {message = msg, ...}
19251925
=> raise (ERR "xlet_auto" msg);
19261926

19271927
end

0 commit comments

Comments
 (0)