equal
deleted
inserted
replaced
119 partiality_as_none (static_value_exn cookie thy some_target postproc consts t); |
119 partiality_as_none (static_value_exn cookie thy some_target postproc consts t); |
120 |
120 |
121 |
121 |
122 (* evaluation for truth or nothing *) |
122 (* evaluation for truth or nothing *) |
123 |
123 |
124 structure Truth_Result = Proof_Data ( |
124 structure Truth_Result = Proof_Data |
|
125 ( |
125 type T = unit -> truth |
126 type T = unit -> truth |
126 fun init _ () = error "Truth_Result" |
127 fun init _ () = error "Truth_Result" |
127 ); |
128 ); |
128 val put_truth = Truth_Result.put; |
129 val put_truth = Truth_Result.put; |
129 val truth_cookie = (Truth_Result.get, put_truth, Long_Name.append this "put_truth"); |
130 val truth_cookie = (Truth_Result.get, put_truth, Long_Name.append this "put_truth"); |
345 |
346 |
346 (** using external SML files as substitute for proper definitions -- only for polyml! **) |
347 (** using external SML files as substitute for proper definitions -- only for polyml! **) |
347 |
348 |
348 local |
349 local |
349 |
350 |
350 structure Loaded_Values = Theory_Data( |
351 structure Loaded_Values = Theory_Data |
|
352 ( |
351 type T = string list |
353 type T = string list |
352 val empty = [] |
354 val empty = [] |
353 val merge = merge (op =) |
355 fun merge data : T = Library.merge (op =) data |
354 val extend = I |
356 val extend = I |
355 ); |
357 ); |
356 |
358 |
357 fun notify_val (string, value) = |
359 fun notify_val (string, value) = |
358 let |
360 let |