equal
deleted
inserted
replaced
|
1 (* Title: Pure/ML/ml_final.ML |
|
2 Author: Makarius |
|
3 |
|
4 Final setup of ML environment. |
|
5 *) |
|
6 |
|
7 (*no access to system internals!*) |
|
8 structure PolyML = struct structure IntInf = PolyML.IntInf end; |
|
9 val _ = List.app ML_Name_Space.forget_structure ML_Name_Space.critical_structures; |
|
10 |
|
11 structure Output: OUTPUT = Output; (*seal system channels!*) |
|
12 |
|
13 structure Pure = struct val thy = Thy_Info.pure_theory () end; |
|
14 |
|
15 fun use_thys args = |
|
16 Runtime.toplevel_program (fn () => Thy_Info.use_thys (map (rpair Position.none) args)); |
|
17 val use_thy = use_thys o single; |
|
18 |
|
19 Proofterm.proofs := 0; |
|
20 |
|
21 Context.set_thread_data NONE; |