equal
deleted
inserted
replaced
104 val consolidate: thm list -> unit |
104 val consolidate: thm list -> unit |
105 val peek_status: thm -> {oracle: bool, unfinished: bool, failed: bool} |
105 val peek_status: thm -> {oracle: bool, unfinished: bool, failed: bool} |
106 val future: thm future -> cterm -> thm |
106 val future: thm future -> cterm -> thm |
107 val derivation_closed: thm -> bool |
107 val derivation_closed: thm -> bool |
108 val derivation_name: thm -> string |
108 val derivation_name: thm -> string |
|
109 val derivation_id: thm -> {serial: proof_serial, theory_name: string} option |
109 val raw_derivation_name: thm -> string |
110 val raw_derivation_name: thm -> string |
110 val name_derivation: string * Position.T -> thm -> thm |
111 val name_derivation: string * Position.T -> thm -> thm |
111 val close_derivation: Position.T -> thm -> thm |
112 val close_derivation: Position.T -> thm -> thm |
112 val trim_context: thm -> thm |
113 val trim_context: thm -> thm |
113 val axiom: theory -> string -> thm |
114 val axiom: theory -> string -> thm |
1001 Proofterm.get_name shyps hyps prop (Proofterm.proof_of body); |
1002 Proofterm.get_name shyps hyps prop (Proofterm.proof_of body); |
1002 |
1003 |
1003 (*deterministic name of finished proof*) |
1004 (*deterministic name of finished proof*) |
1004 fun derivation_name (thm as Thm (_, {shyps, hyps, prop, ...})) = |
1005 fun derivation_name (thm as Thm (_, {shyps, hyps, prop, ...})) = |
1005 Proofterm.get_name shyps hyps prop (proof_of thm); |
1006 Proofterm.get_name shyps hyps prop (proof_of thm); |
|
1007 |
|
1008 fun derivation_id (thm as Thm (_, {shyps, hyps, prop, ...})) = |
|
1009 Proofterm.get_id shyps hyps prop (proof_of thm); |
1006 |
1010 |
1007 fun name_derivation name_pos = |
1011 fun name_derivation name_pos = |
1008 solve_constraints #> (fn thm as Thm (der, args) => |
1012 solve_constraints #> (fn thm as Thm (der, args) => |
1009 let |
1013 let |
1010 val thy = theory_of_thm thm; |
1014 val thy = theory_of_thm thm; |