equal
deleted
inserted
replaced
1 --- hol-light/statements.ml 1970-01-01 01:00:00.000000000 +0100 |
1 --- hol-light/statements.ml 1970-01-01 01:00:00.000000000 +0100 |
2 +++ hol-light-patched/statements.ml 2025-01-18 11:12:11.185279392 +0100 |
2 +++ hol-light-patched/statements.ml 2025-01-18 11:12:11.185279392 +0100 |
3 @@ -0,0 +1,15 @@ |
3 @@ -0,0 +1,6 @@ |
4 +let name2pairs acc (name, th) = |
|
5 + let acc = |
|
6 + if is_conj (concl th) then |
|
7 + let fold_fun (no, acc) th = (no + 1, (name ^ "_conjunct" ^ (string_of_int no), th) :: acc) in |
|
8 + snd (List.fold_left fold_fun (0, acc) (CONJUNCTS th)) |
|
9 + else acc |
|
10 + in (name, th) :: acc |
|
11 +;; |
|
12 +let dump_theorems () = |
4 +let dump_theorems () = |
13 + let oc = open_out "theorems" in |
5 + let oc = open_out "theorems" in |
14 + let all_thms = List.fold_left name2pairs [] !theorems in |
6 + output_value oc (map (fun (a,b) -> (a, dest_thm b)) !theorems); |
15 + output_value oc (map (fun (a,b) -> (a, dest_thm b)) all_thms); |
|
16 + close_out oc |
7 + close_out oc |
17 +;; |
8 +;; |
18 +dump_theorems ();; |
9 +dump_theorems ();; |
19 --- hol-light/stage1.ml 1970-01-01 01:00:00.000000000 +0100 |
10 --- hol-light/stage1.ml 1970-01-01 01:00:00.000000000 +0100 |
20 +++ hol-light-patched/stage1.ml 2025-01-18 11:12:11.185279392 +0100 |
11 +++ hol-light-patched/stage1.ml 2025-01-18 11:12:11.185279392 +0100 |