equal
deleted
inserted
replaced
193 (* proofs *) |
193 (* proofs *) |
194 |
194 |
195 datatype zproof_name = |
195 datatype zproof_name = |
196 ZAxiom of string |
196 ZAxiom of string |
197 | ZOracle of string |
197 | ZOracle of string |
198 | ZBox of serial |
198 | ZBox of {theory_name: string, serial: serial} |
199 | ZThm of {theory_name: string, thm_name: Thm_Name.T * Position.T, serial: int}; |
199 | ZThm of {theory_name: string, thm_name: Thm_Name.T * Position.T, serial: serial}; |
200 |
200 |
201 type zproof_const = (zproof_name * zterm) * (ztyp ZTVars.table * zterm ZVars.table); |
201 type zproof_const = (zproof_name * zterm) * (ztyp ZTVars.table * zterm ZVars.table); |
202 |
202 |
203 datatype zproof = |
203 datatype zproof = |
204 ZDummy (*dummy proof*) |
204 ZDummy (*dummy proof*) |
913 fun zproof_name i = ZThm {theory_name = thy_name, thm_name = thm_name, serial = i}; |
913 fun zproof_name i = ZThm {theory_name = thy_name, thm_name = thm_name, serial = i}; |
914 in box_proof {unconstrain = false} zproof_name thy end; |
914 in box_proof {unconstrain = false} zproof_name thy end; |
915 |
915 |
916 fun add_box_proof unconstrain thy hyps concl prf zboxes = |
916 fun add_box_proof unconstrain thy hyps concl prf zboxes = |
917 let |
917 let |
918 val (zbox, prf') = box_proof unconstrain ZBox thy hyps concl prf; |
918 val thy_name = Context.theory_long_name thy; |
|
919 fun zproof_name i = ZBox {theory_name = thy_name, serial = i}; |
|
920 val (zbox, prf') = box_proof unconstrain zproof_name thy hyps concl prf; |
919 val zboxes' = add_zboxes zbox zboxes; |
921 val zboxes' = add_zboxes zbox zboxes; |
920 in (prf', zboxes') end; |
922 in (prf', zboxes') end; |
921 |
923 |
922 end; |
924 end; |
923 |
925 |