@@ -298,7 +298,7 @@ instance Goal OnePathRule where
298
298
(withDebugProofState . transitionRuleTemplate)
299
299
TransitionRuleTemplate
300
300
{ simplifyTemplate = simplify _Unwrapped
301
- , removeDestinationTemplate = removeDestination _Unwrapped
301
+ , checkImplicationTemplate = checkImplication _Unwrapped
302
302
, isTriviallyValidTemplate = isTriviallyValid _Unwrapped
303
303
, deriveParTemplate = deriveParOnePath
304
304
, deriveSeqTemplate = deriveSeqOnePath
@@ -358,7 +358,7 @@ instance Goal AllPathRule where
358
358
(withDebugProofState . transitionRuleTemplate)
359
359
TransitionRuleTemplate
360
360
{ simplifyTemplate = simplify _Unwrapped
361
- , removeDestinationTemplate = removeDestination _Unwrapped
361
+ , checkImplicationTemplate = checkImplication _Unwrapped
362
362
, isTriviallyValidTemplate = isTriviallyValid _Unwrapped
363
363
, deriveParTemplate = deriveParAllPath
364
364
, deriveSeqTemplate = deriveSeqAllPath
@@ -567,7 +567,7 @@ data TransitionRuleTemplate monad goal =
567
567
TransitionRuleTemplate
568
568
{ simplifyTemplate
569
569
:: goal -> Strategy.TransitionT (Rule goal) monad goal
570
- , removeDestinationTemplate
570
+ , checkImplicationTemplate
571
571
:: (forall x. x -> ProofState goal x)
572
572
-> goal
573
573
-> Strategy.TransitionT (Rule goal) monad (ProofState goal goal)
@@ -602,8 +602,8 @@ logTransitionRule rule prim proofState = case proofState of
602
602
logWith goal = case prim of
603
603
Simplify ->
604
604
whileSimplify goal $ rule prim proofState
605
- RemoveDestination ->
606
- whileRemoveDestination goal $ rule prim proofState
605
+ CheckImplication ->
606
+ whileCheckImplication goal $ rule prim proofState
607
607
(DeriveSeq rules) ->
608
608
whileDeriveSeq rules goal $ rule prim proofState
609
609
(DerivePar rules) ->
@@ -623,7 +623,7 @@ transitionRuleTemplate
623
623
transitionRuleTemplate
624
624
TransitionRuleTemplate
625
625
{ simplifyTemplate
626
- , removeDestinationTemplate
626
+ , checkImplicationTemplate
627
627
, isTriviallyValidTemplate
628
628
, deriveParTemplate
629
629
, deriveSeqTemplate
@@ -654,12 +654,12 @@ transitionRuleTemplate
654
654
Profile. timeStrategy " Goal.SimplifyRemainder"
655
655
$ GoalRemainder <$> simplifyTemplate goal
656
656
657
- transitionRuleWorker RemoveDestination (Goal goal) =
658
- Profile. timeStrategy " Goal.RemoveDestination "
659
- $ removeDestinationTemplate Goal goal
660
- transitionRuleWorker RemoveDestination (GoalRemainder goal) =
661
- Profile. timeStrategy " Goal.RemoveDestinationRemainder "
662
- $ removeDestinationTemplate GoalRemainder goal
657
+ transitionRuleWorker CheckImplication (Goal goal) =
658
+ Profile. timeStrategy " Goal.CheckImplication "
659
+ $ checkImplicationTemplate Goal goal
660
+ transitionRuleWorker CheckImplication (GoalRemainder goal) =
661
+ Profile. timeStrategy " Goal.CheckImplicationRemainder "
662
+ $ checkImplicationTemplate GoalRemainder goal
663
663
664
664
transitionRuleWorker TriviallyValid (Goal goal)
665
665
| isTriviallyValidTemplate goal =
@@ -712,7 +712,7 @@ onePathFirstStep axioms =
712
712
, CheckGoalRemainder
713
713
, Simplify
714
714
, TriviallyValid
715
- , RemoveDestination
715
+ , CheckImplication
716
716
, DeriveSeq axioms
717
717
, Simplify
718
718
, TriviallyValid
@@ -733,7 +733,7 @@ onePathFollowupStep claims axioms =
733
733
, CheckGoalRemainder
734
734
, Simplify
735
735
, TriviallyValid
736
- , RemoveDestination
736
+ , CheckImplication
737
737
, DeriveSeq claims
738
738
, Simplify
739
739
, TriviallyValid
@@ -764,7 +764,7 @@ allPathFirstStep axiomGroups =
764
764
, CheckGoalRemainder
765
765
, Simplify
766
766
, TriviallyValid
767
- , RemoveDestination
767
+ , CheckImplication
768
768
]
769
769
<> groupStrategy axiomGroups <>
770
770
[ ResetGoal
@@ -783,7 +783,7 @@ allPathFollowupStep claims axiomGroups =
783
783
, CheckGoalRemainder
784
784
, Simplify
785
785
, TriviallyValid
786
- , RemoveDestination
786
+ , CheckImplication
787
787
, DeriveSeq claims
788
788
, Simplify
789
789
, TriviallyValid
@@ -795,7 +795,7 @@ allPathFollowupStep claims axiomGroups =
795
795
]
796
796
797
797
-- | Remove the destination of the goal.
798
- removeDestination
798
+ checkImplication
799
799
:: forall goal m
800
800
. MonadSimplify m
801
801
=> MonadCatch m
@@ -804,16 +804,16 @@ removeDestination
804
804
-> (forall x . x -> ProofState goal x )
805
805
-> goal
806
806
-> Strategy. TransitionT (Rule goal ) m (ProofState goal goal )
807
- removeDestination lensRulePattern mkState goal =
807
+ checkImplication lensRulePattern mkState goal =
808
808
goal
809
- & Lens. traverseOf lensRulePattern (Compose . removeDestinationWorker )
809
+ & Lens. traverseOf lensRulePattern (Compose . checkImplicationWorker )
810
810
& getCompose
811
811
& lift
812
812
where
813
- removeDestinationWorker
813
+ checkImplicationWorker
814
814
:: RulePattern VariableName
815
815
-> m (ProofState goal (RulePattern VariableName ))
816
- removeDestinationWorker (snd . Step. refreshRule mempty -> rulePattern) =
816
+ checkImplicationWorker (snd . Step. refreshRule mempty -> rulePattern) =
817
817
do
818
818
removal <- removalPatterns destination configuration existentials
819
819
when (isTop removal) (succeed . mkState $ rulePattern)
0 commit comments