Skip to content

Commit 2dee3f5

Browse files
MirceaSttuegel
andauthored
Implication (#2210)
* first draft of new Implication type * addressed PR comments * Test.Kore.Step.ClaimPattern: captures variables * fixed capture issue, fixed test, created Implication test set * small fix * made implementation cleaner * removed redundant comment * addressed most PR comments * ran stylish * addressed recent PR comments * addressed PR comments and refactored code * added mapVariables function to OrPattern * Update comment of kore/src/Kore/Step/Implication.hs Co-authored-by: Thomas Tuegel <[email protected]> * fixed building and test issues * build fix Co-authored-by: Thomas Tuegel <[email protected]>
1 parent 5e0499c commit 2dee3f5

File tree

7 files changed

+620
-4
lines changed

7 files changed

+620
-4
lines changed

kore/src/Kore/Internal/OrPattern.hs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ module Kore.Internal.OrPattern
2222
, toTermLike
2323
, targetBinder
2424
, substitute
25+
, mapVariables
2526
, MultiOr.flatten
2627
, MultiOr.filterOr
2728
, MultiOr.gather
@@ -246,3 +247,10 @@ substitute
246247
-> OrPattern variable
247248
substitute subst =
248249
fromPatterns . fmap (Pattern.substitute subst) . toPatterns
250+
251+
mapVariables
252+
:: (InternalVariable variable1, InternalVariable variable2)
253+
=> AdjSomeVariableName (variable1 -> variable2)
254+
-> OrPattern variable1
255+
-> OrPattern variable2
256+
mapVariables = MultiOr.map . Pattern.mapVariables

0 commit comments

Comments
 (0)