diff options
| author | Maxime Dénès | 2017-04-27 17:30:54 +0200 |
|---|---|---|
| committer | Maxime Dénès | 2017-04-27 17:30:54 +0200 |
| commit | 338f8df5ea59a46b60fcfbe50e122fd6eee0dc52 (patch) | |
| tree | ac27debb6849cab3e637205578901a92b70a51df /proofs/refiner.ml | |
| parent | 0bfd1f2a461ec989dbe812b10d8ee39d296bc777 (diff) | |
| parent | 6d4f2222aa7ff6039f9f386cbc38201a0cd60c08 (diff) | |
Merge PR#568: Remove tactic compatibility layer
Diffstat (limited to 'proofs/refiner.ml')
| -rw-r--r-- | proofs/refiner.ml | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/proofs/refiner.ml b/proofs/refiner.ml index 5c7659ac0e..bc12b3ba71 100644 --- a/proofs/refiner.ml +++ b/proofs/refiner.ml @@ -162,31 +162,11 @@ let tclMAP tacfun l = (* PROGRESS tac ptree applies tac to the goal ptree and fails if tac leaves the goal unchanged *) -let tclWEAK_PROGRESS tac ptree = - let rslt = tac ptree in - if Goal.V82.weak_progress rslt ptree then rslt - else user_err ~hdr:"Refiner.WEAK_PROGRESS" (str"Failed to progress.") - -(* PROGRESS tac ptree applies tac to the goal ptree and fails if tac leaves -the goal unchanged *) let tclPROGRESS tac ptree = let rslt = tac ptree in if Goal.V82.progress rslt ptree then rslt else user_err ~hdr:"Refiner.PROGRESS" (str"Failed to progress.") -(* Same as tclWEAK_PROGRESS but fails also if tactics generates several goals, - one of them being identical to the original goal *) -let tclNOTSAMEGOAL (tac : tactic) goal = - let same_goal gls1 evd2 gl2 = - Goal.V82.same_goal gls1.sigma gls1.it evd2 gl2 - in - let rslt = tac goal in - let {it=gls;sigma=sigma} = rslt in - if List.exists (same_goal goal sigma) gls - then user_err ~hdr:"Refiner.tclNOTSAMEGOAL" - (str"Tactic generated a subgoal identical to the original goal.") - else rslt - (* Execute tac, show the names of new hypothesis names created by tac in the "as" format and then forget everything. From the logical point of view [tclSHOWHYPS tac] is therefore equivalent to idtac, |
