author | blanchet |
Sun, 02 Feb 2014 20:53:51 +0100 | |
changeset 55255 | eceebcea3e00 |
parent 55253 | cfd276a7dbeb |
child 55256 | 6c317e374614 |
permissions | -rw-r--r-- |
55202
824c48a539c9
renamed many Sledgehammer ML files to clarify structure
blanchet
parents:
55194
diff
changeset
|
1 |
(* Title: HOL/Tools/Sledgehammer/sledgehammer_isar_preplay.ML |
54712 | 2 |
Author: Steffen Juilf Smolka, TU Muenchen |
50923 | 3 |
Author: Jasmin Blanchette, TU Muenchen |
4 |
||
54763 | 5 |
Preplaying of Isar proofs. |
50923 | 6 |
*) |
7 |
||
55202
824c48a539c9
renamed many Sledgehammer ML files to clarify structure
blanchet
parents:
55194
diff
changeset
|
8 |
signature SLEDGEHAMMER_ISAR_PREPLAY = |
50923 | 9 |
sig |
54828 | 10 |
type play_outcome = Sledgehammer_Reconstructor.play_outcome |
55223
3c593bad6b31
generalized preplaying infrastructure to store various results for various methods
blanchet
parents:
55221
diff
changeset
|
11 |
type proof_method = Sledgehammer_Isar_Proof.proof_method |
55212 | 12 |
type isar_step = Sledgehammer_Isar_Proof.isar_step |
55202
824c48a539c9
renamed many Sledgehammer ML files to clarify structure
blanchet
parents:
55194
diff
changeset
|
13 |
type isar_proof = Sledgehammer_Isar_Proof.isar_proof |
824c48a539c9
renamed many Sledgehammer ML files to clarify structure
blanchet
parents:
55194
diff
changeset
|
14 |
type label = Sledgehammer_Isar_Proof.label |
52556
c8357085217c
completely rewrote SH compress; added two parameters for experimentation/fine grained control
smolkas
parents:
52454
diff
changeset
|
15 |
|
55212 | 16 |
val trace : bool Config.T |
52556
c8357085217c
completely rewrote SH compress; added two parameters for experimentation/fine grained control
smolkas
parents:
52454
diff
changeset
|
17 |
|
55213 | 18 |
type isar_preplay_data = |
55255 | 19 |
{preplay_step: Time.time -> proof_method -> isar_step -> play_outcome, |
20 |
set_preplay_outcomes: label -> (proof_method * play_outcome Lazy.lazy) list -> unit, |
|
55243 | 21 |
preplay_outcome: label -> proof_method -> play_outcome Lazy.lazy, |
54831 | 22 |
overall_preplay_outcome: isar_proof -> play_outcome} |
52556
c8357085217c
completely rewrote SH compress; added two parameters for experimentation/fine grained control
smolkas
parents:
52454
diff
changeset
|
23 |
|
55253 | 24 |
val preplay_data_of_isar_proof : bool -> Proof.context -> string -> string -> Time.time -> |
55213 | 25 |
isar_proof -> isar_preplay_data |
54504 | 26 |
end; |
50923 | 27 |
|
55202
824c48a539c9
renamed many Sledgehammer ML files to clarify structure
blanchet
parents:
55194
diff
changeset
|
28 |
structure Sledgehammer_Isar_Preplay : SLEDGEHAMMER_ISAR_PREPLAY = |
50923 | 29 |
struct |
30 |
||
31 |
open Sledgehammer_Util |
|
54828 | 32 |
open Sledgehammer_Reconstructor |
55202
824c48a539c9
renamed many Sledgehammer ML files to clarify structure
blanchet
parents:
55194
diff
changeset
|
33 |
open Sledgehammer_Isar_Proof |
50923 | 34 |
|
54763 | 35 |
val trace = Attrib.setup_config_bool @{binding sledgehammer_preplay_trace} (K false) |
50924 | 36 |
|
55194 | 37 |
fun preplay_trace ctxt assmsp concl result = |
51879 | 38 |
let |
39 |
val ctxt = ctxt |> Config.put show_markup true |
|
55194 | 40 |
val assms = op @ assmsp |
55251 | 41 |
val time = Pretty.str ("[" ^ string_of_play_outcome result ^ "]") |
42 |
val assms = Pretty.enum " and " "using " " shows " (map (Display.pretty_thm ctxt) assms) |
|
43 |
val concl = Syntax.pretty_term ctxt concl |
|
54761
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
44 |
in |
55251 | 45 |
tracing (Pretty.string_of (Pretty.blk (2, Pretty.breaks [time, assms, concl]))) |
54761
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
46 |
end |
51879 | 47 |
|
50923 | 48 |
fun take_time timeout tac arg = |
54761
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
49 |
let val timing = Timing.start () in |
54828 | 50 |
(TimeLimit.timeLimit timeout tac arg; Played (#cpu (Timing.result timing))) |
51 |
handle TimeLimit.TimeOut => Play_Timed_Out timeout |
|
50923 | 52 |
end |
53 |
||
54 |
fun resolve_fact_names ctxt names = |
|
51179
0d5f8812856f
split isar_step into isar_step, fix, assms; made isar_proof explicit; register fixed variables in ctxt and auto_fix terms to avoid superfluous annotations
smolkas
parents:
51178
diff
changeset
|
55 |
(names |
54761
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
56 |
|>> map string_of_label |
55194 | 57 |
|> pairself (maps (thms_of_name ctxt))) |
51179
0d5f8812856f
split isar_step into isar_step, fix, assms; made isar_proof explicit; register fixed variables in ctxt and auto_fix terms to avoid superfluous annotations
smolkas
parents:
51178
diff
changeset
|
58 |
handle ERROR msg => error ("preplay error: " ^ msg) |
50923 | 59 |
|
54700 | 60 |
fun thm_of_proof ctxt (Proof (fixed_frees, assms, steps)) = |
50923 | 61 |
let |
54761
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
62 |
val thy = Proof_Context.theory_of ctxt |
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
63 |
|
54700 | 64 |
val concl = |
65 |
(case try List.last steps of |
|
66 |
SOME (Prove (_, [], _, t, _, _)) => t |
|
67 |
| _ => raise Fail "preplay error: malformed subproof") |
|
54761
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
68 |
|
51178 | 69 |
val var_idx = maxidx_of_term concl + 1 |
54761
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
70 |
fun var_of_free (x, T) = Var ((x, var_idx), T) |
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
71 |
val subst = map (`var_of_free #> swap #> apfst Free) fixed_frees |
51178 | 72 |
in |
51179
0d5f8812856f
split isar_step into isar_step, fix, assms; made isar_proof explicit; register fixed variables in ctxt and auto_fix terms to avoid superfluous annotations
smolkas
parents:
51178
diff
changeset
|
73 |
Logic.list_implies (assms |> map snd, concl) |
54761
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
74 |
|> subst_free subst |
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
75 |
|> Skip_Proof.make_thm thy |
51178 | 76 |
end |
77 |
||
55194 | 78 |
fun tac_of_method meth type_enc lam_trans ctxt (local_facts, global_facts) = |
79 |
Method.insert_tac local_facts THEN' |
|
54766
6ac273f176cd
store alternative proof methods in Isar data structure
blanchet
parents:
54765
diff
changeset
|
80 |
(case meth of |
55194 | 81 |
Meson_Method => Meson.meson_tac ctxt global_facts |
82 |
| Metis_Method => Metis_Tactic.metis_tac [type_enc] lam_trans ctxt global_facts |
|
52592
8a25b17e3d79
optimize isar-proofs by trying different proof methods
smolkas
parents:
52575
diff
changeset
|
83 |
| _ => |
55194 | 84 |
Method.insert_tac global_facts THEN' |
54766
6ac273f176cd
store alternative proof methods in Isar data structure
blanchet
parents:
54765
diff
changeset
|
85 |
(case meth of |
55194 | 86 |
Simp_Method => Simplifier.asm_full_simp_tac ctxt |
54838
16511f84913c
reconstruct SPASS-Pirate steps of the form 'x ~= C x' (or more complicated)
blanchet
parents:
54831
diff
changeset
|
87 |
| Simp_Size_Method => |
16511f84913c
reconstruct SPASS-Pirate steps of the form 'x ~= C x' (or more complicated)
blanchet
parents:
54831
diff
changeset
|
88 |
Simplifier.asm_full_simp_tac (Simplifier.add_simp @{thm size_ne_size_imp_ne} ctxt) |
54765 | 89 |
| Auto_Method => K (Clasimp.auto_tac ctxt) |
90 |
| Fastforce_Method => Clasimp.fast_force_tac ctxt |
|
91 |
| Force_Method => Clasimp.force_tac ctxt |
|
92 |
| Arith_Method => Arith_Data.arith_tac ctxt |
|
93 |
| Blast_Method => blast_tac ctxt |
|
55219 | 94 |
| Algebra_Method => Groebner.algebra_tac [] [] ctxt |
55202
824c48a539c9
renamed many Sledgehammer ML files to clarify structure
blanchet
parents:
55194
diff
changeset
|
95 |
| _ => raise Fail "Sledgehammer_Isar_Preplay: tac_of_method")) |
52592
8a25b17e3d79
optimize isar-proofs by trying different proof methods
smolkas
parents:
52575
diff
changeset
|
96 |
|
54761
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
97 |
(* main function for preplaying Isar steps; may throw exceptions *) |
55255 | 98 |
fun raw_preplay_step debug type_enc lam_trans ctxt timeout meth |
55223
3c593bad6b31
generalized preplaying infrastructure to store various results for various methods
blanchet
parents:
55221
diff
changeset
|
99 |
(Prove (_, xs, _, t, subproofs, (fact_names, _))) = |
54761
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
100 |
let |
54763 | 101 |
val goal = |
54761
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
102 |
(case xs of |
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
103 |
[] => t |
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
104 |
| _ => |
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
105 |
(* proof obligation: !!thesis. (!!x. A x ==> thesis) ==> thesis |
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
106 |
(cf. "~~/src/Pure/Isar/obtain.ML") *) |
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
107 |
let |
54813 | 108 |
(* FIXME: generate fresh name *) |
109 |
val thesis = Free ("thesis", HOLogic.boolT) |
|
54761
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
110 |
val thesis_prop = thesis |> HOLogic.mk_Trueprop |
54813 | 111 |
val frees = map Free xs |
50923 | 112 |
|
54761
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
113 |
(* !!x1..xn. t ==> thesis (xs = [x1, .., xn]) *) |
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
114 |
val inner_prop = fold_rev Logic.all frees (Logic.mk_implies (t, thesis_prop)) |
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
115 |
in |
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
116 |
(* !!thesis. (!!x1..xn. t ==> thesis) ==> thesis *) |
50923 | 117 |
Logic.all thesis (Logic.mk_implies (inner_prop, thesis_prop)) |
54761
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
118 |
end) |
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
119 |
|
55194 | 120 |
val facts = |
121 |
resolve_fact_names ctxt fact_names |
|
122 |
|>> append (map (thm_of_proof ctxt) subproofs) |
|
123 |
||
55170 | 124 |
val ctxt' = ctxt |> silence_reconstructors debug |
54761
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
125 |
|
54817 | 126 |
fun prove () = |
127 |
Goal.prove ctxt' [] [] goal (fn {context = ctxt, ...} => |
|
128 |
HEADGOAL (tac_of_method meth type_enc lam_trans ctxt facts)) |
|
129 |
handle ERROR msg => error ("Preplay error: " ^ msg) |
|
54761
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
130 |
|
54828 | 131 |
val play_outcome = take_time timeout prove () |
54761
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
132 |
in |
54828 | 133 |
(if Config.get ctxt trace then preplay_trace ctxt facts goal play_outcome else (); |
134 |
play_outcome) |
|
54761
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
135 |
end |
52556
c8357085217c
completely rewrote SH compress; added two parameters for experimentation/fine grained control
smolkas
parents:
52454
diff
changeset
|
136 |
|
55213 | 137 |
type isar_preplay_data = |
55252 | 138 |
{set_preplay_outcomes: label -> (proof_method * play_outcome Lazy.lazy) list -> unit, |
55243 | 139 |
preplay_outcome: label -> proof_method -> play_outcome Lazy.lazy, |
55255 | 140 |
preplay_step: Time.time -> proof_method -> isar_step -> play_outcome, |
54831 | 141 |
overall_preplay_outcome: isar_proof -> play_outcome} |
52556
c8357085217c
completely rewrote SH compress; added two parameters for experimentation/fine grained control
smolkas
parents:
52454
diff
changeset
|
142 |
|
54761
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
143 |
fun enrich_context_with_local_facts proof ctxt = |
52556
c8357085217c
completely rewrote SH compress; added two parameters for experimentation/fine grained control
smolkas
parents:
52454
diff
changeset
|
144 |
let |
c8357085217c
completely rewrote SH compress; added two parameters for experimentation/fine grained control
smolkas
parents:
52454
diff
changeset
|
145 |
val thy = Proof_Context.theory_of ctxt |
c8357085217c
completely rewrote SH compress; added two parameters for experimentation/fine grained control
smolkas
parents:
52454
diff
changeset
|
146 |
|
c8357085217c
completely rewrote SH compress; added two parameters for experimentation/fine grained control
smolkas
parents:
52454
diff
changeset
|
147 |
fun enrich_with_fact l t = |
54761
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
148 |
Proof_Context.put_thms false (string_of_label l, SOME [Skip_Proof.make_thm thy t]) |
52556
c8357085217c
completely rewrote SH compress; added two parameters for experimentation/fine grained control
smolkas
parents:
52454
diff
changeset
|
149 |
|
c8357085217c
completely rewrote SH compress; added two parameters for experimentation/fine grained control
smolkas
parents:
52454
diff
changeset
|
150 |
val enrich_with_assms = fold (uncurry enrich_with_fact) |
c8357085217c
completely rewrote SH compress; added two parameters for experimentation/fine grained control
smolkas
parents:
52454
diff
changeset
|
151 |
|
54700 | 152 |
fun enrich_with_proof (Proof (_, assms, isar_steps)) = |
52556
c8357085217c
completely rewrote SH compress; added two parameters for experimentation/fine grained control
smolkas
parents:
52454
diff
changeset
|
153 |
enrich_with_assms assms #> fold enrich_with_step isar_steps |
c8357085217c
completely rewrote SH compress; added two parameters for experimentation/fine grained control
smolkas
parents:
52454
diff
changeset
|
154 |
and enrich_with_step (Let _) = I |
c8357085217c
completely rewrote SH compress; added two parameters for experimentation/fine grained control
smolkas
parents:
52454
diff
changeset
|
155 |
| enrich_with_step (Prove (_, _, l, t, subproofs, _)) = |
54761
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
156 |
enrich_with_fact l t #> fold enrich_with_proof subproofs |
52556
c8357085217c
completely rewrote SH compress; added two parameters for experimentation/fine grained control
smolkas
parents:
52454
diff
changeset
|
157 |
in |
c8357085217c
completely rewrote SH compress; added two parameters for experimentation/fine grained control
smolkas
parents:
52454
diff
changeset
|
158 |
enrich_with_proof proof ctxt |
50923 | 159 |
end |
160 |
||
54828 | 161 |
fun merge_preplay_outcomes _ Play_Failed = Play_Failed |
162 |
| merge_preplay_outcomes Play_Failed _ = Play_Failed |
|
54831 | 163 |
| merge_preplay_outcomes (Play_Timed_Out t1) (Play_Timed_Out t2) = |
164 |
Play_Timed_Out (Time.+ (t1, t2)) |
|
54828 | 165 |
| merge_preplay_outcomes (Played t1) (Play_Timed_Out t2) = Play_Timed_Out (Time.+ (t1, t2)) |
166 |
| merge_preplay_outcomes (Play_Timed_Out t1) (Played t2) = Play_Timed_Out (Time.+ (t1, t2)) |
|
167 |
| merge_preplay_outcomes (Played t1) (Played t2) = Played (Time.+ (t1, t2)) |
|
54827 | 168 |
|
54761
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
169 |
(* Given a proof, produces an imperative preplay interface with a shared table mapping from labels |
0ef52f40d419
use consistent condition for setting 'metis_new_skolem' (in preplaying and in output printing) + tuning
blanchet
parents:
54712
diff
changeset
|
170 |
to preplay results. The preplay results are caluclated lazyly and cached to avoid repeated |
52556
c8357085217c
completely rewrote SH compress; added two parameters for experimentation/fine grained control
smolkas
parents:
52454
diff
changeset
|
171 |
calculation. |
c8357085217c
completely rewrote SH compress; added two parameters for experimentation/fine grained control
smolkas
parents:
52454
diff
changeset
|
172 |
|
54763 | 173 |
Precondition: The proof must be labeled canonically; cf. |
55213 | 174 |
"Slegehammer_Isar_Proof.relabel_isar_proof_canonically". *) |
55253 | 175 |
fun preplay_data_of_isar_proof debug ctxt type_enc lam_trans preplay_timeout proof = |
176 |
let |
|
177 |
val ctxt = enrich_context_with_local_facts proof ctxt |
|
52556
c8357085217c
completely rewrote SH compress; added two parameters for experimentation/fine grained control
smolkas
parents:
52454
diff
changeset
|
178 |
|
55255 | 179 |
fun preplay_step timeout meth = |
180 |
try (raw_preplay_step debug type_enc lam_trans ctxt timeout meth) |
|
181 |
#> the_default Play_Failed |
|
55223
3c593bad6b31
generalized preplaying infrastructure to store various results for various methods
blanchet
parents:
55221
diff
changeset
|
182 |
|
55253 | 183 |
val preplay_tab = Unsynchronized.ref Canonical_Label_Tab.empty |
184 |
||
185 |
fun set_preplay_outcomes l meths_outcomes = |
|
186 |
preplay_tab := Canonical_Label_Tab.map_entry l (fold (AList.update (op =)) meths_outcomes) |
|
187 |
(!preplay_tab) |
|
52556
c8357085217c
completely rewrote SH compress; added two parameters for experimentation/fine grained control
smolkas
parents:
52454
diff
changeset
|
188 |
|
55253 | 189 |
fun preplay_outcome l meth = |
190 |
(case Canonical_Label_Tab.lookup (!preplay_tab) l of |
|
191 |
SOME meths_outcomes => |
|
192 |
(case AList.lookup (op =) meths_outcomes meth of |
|
193 |
SOME outcome => outcome |
|
194 |
| NONE => raise Fail "Sledgehammer_Isar_Preplay: missing method") |
|
195 |
| NONE => raise Fail "Sledgehammer_Isar_Preplay: missing label") |
|
52556
c8357085217c
completely rewrote SH compress; added two parameters for experimentation/fine grained control
smolkas
parents:
52454
diff
changeset
|
196 |
|
55253 | 197 |
fun result_of_step (Prove (_, _, l, _, _, (_, meth :: _))) = |
198 |
Lazy.force (preplay_outcome l meth) |
|
199 |
| result_of_step _ = Played Time.zeroTime |
|
54763 | 200 |
|
55253 | 201 |
fun overall_preplay_outcome (Proof (_, _, steps)) = |
202 |
fold_isar_steps (merge_preplay_outcomes o result_of_step) steps (Played Time.zeroTime) |
|
55252 | 203 |
|
55253 | 204 |
fun reset_preplay_outcomes (step as Prove (_, _, l, _, _, (_, meths))) = |
205 |
preplay_tab := Canonical_Label_Tab.update (l, map (fn meth => |
|
55255 | 206 |
(meth, Lazy.lazy (fn () => preplay_step preplay_timeout meth step))) meths) |
55253 | 207 |
(!preplay_tab) |
208 |
| reset_preplay_outcomes _ = () |
|
55252 | 209 |
|
55253 | 210 |
val _ = fold_isar_steps (K o reset_preplay_outcomes) (steps_of_proof proof) () |
211 |
in |
|
55255 | 212 |
{preplay_step = preplay_step, |
213 |
set_preplay_outcomes = set_preplay_outcomes, |
|
55253 | 214 |
preplay_outcome = preplay_outcome, |
215 |
overall_preplay_outcome = overall_preplay_outcome} |
|
216 |
end |
|
50923 | 217 |
|
54504 | 218 |
end; |