diff options
author | mark <> | 2012-02-24 12:07:26 +0000 |
---|---|---|
committer | mark <> | 2012-02-24 12:07:26 +0000 |
commit | cf0c3e813e4601f7462268703efd5b14424bd6c3 (patch) | |
tree | 5ed504ddfb01b33857d9d235c35787e7f996fc54 /hol-light/TacticRecording/xtactics.ml | |
parent | 4ed83bcb88f220cc08c3223bd4f274eaa5f31e0c (diff) |
Remove option aspect of 'finfo' datatype, and rename datatype to 'mldata'.
Add wrapper function for :thm -> thm list.
Promote more objects.
Diffstat (limited to 'hol-light/TacticRecording/xtactics.ml')
-rw-r--r-- | hol-light/TacticRecording/xtactics.ml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/hol-light/TacticRecording/xtactics.ml b/hol-light/TacticRecording/xtactics.ml index 79b81648..fb7028c7 100644 --- a/hol-light/TacticRecording/xtactics.ml +++ b/hol-light/TacticRecording/xtactics.ml @@ -381,9 +381,11 @@ let (xTAC_PROOF : goal * xtactic -> thm) = let xprove(t,tac) = let th = xTAC_PROOF(([],t),tac) in let t' = concl th in - if t' = t then th else - try EQ_MP (ALPHA t' t) th - with Failure _ -> failwith "prove: justification generated wrong theorem";; + let th' = + if t' = t then th else + try EQ_MP (ALPHA t' t) th + with Failure _ -> failwith "prove: justification generated wrong theorem" in + mk_xthm (th', ("<tactic-proof>",[])) (* ------------------------------------------------------------------------- *) (* Subgoal package for xgoals. *) @@ -439,7 +441,7 @@ let xtop_goal() = let xtop_thm() = let (_,[],f)::_ = !current_xgoalstack in - f null_inst [];; + mk_xthm (f null_inst [], ("<tactic-proof>",[]));; (* ------------------------------------------------------------------------- *) (* Install the goal-related printers. *) |