Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #33

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions prover/lang/kore-lang.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ module KORE-HELPERS
syntax Sort ::= getReturnSort(Pattern) [function]
rule getReturnSort( I:Int ) => Int
rule getReturnSort( _ { S } ) => S
rule getReturnSort( plus ( ARGS ) ) => Int
rule getReturnSort( minus ( ARGS ) ) => Int
rule getReturnSort( select ( ARGS ) ) => Int
rule getReturnSort( union ( ARGS ) ) => SetInt
Expand Down Expand Up @@ -285,6 +286,10 @@ module KORE-HELPERS
=> .Patterns
rule getGroundTerms(\and(P, Ps), VARs)
=> getGroundTerms(P, VARs) ++Patterns getGroundTerms(\and(Ps), VARs)
rule getGroundTerms(\or(.Patterns), VARs)
=> .Patterns
rule getGroundTerms(\or(P, Ps), VARs)
=> getGroundTerms(P, VARs) ++Patterns getGroundTerms(\or(Ps), VARs)
rule getGroundTerms(\not(P), VARs)
=> getGroundTerms(P, VARs)
rule getGroundTerms(S:Symbol(ARGS:Patterns) #as APPLY, VARs)
Expand Down Expand Up @@ -483,6 +488,7 @@ Alpha renaming: Rename all bound variables. Free variables are left unchanged.
rule alphaRename(\not(Ps)) => \not(alphaRename(Ps))
rule alphaRename(\and(Ps)) => \and(alphaRenamePs(Ps))
rule alphaRename(\or(Ps)) => \or(alphaRenamePs(Ps))
rule alphaRename(\implies(L,R)) => \implies(alphaRename(L), alphaRename(R))
rule alphaRename(S:Symbol(ARGs)) => S(alphaRenamePs(ARGs))
rule alphaRename(S:Symbol) => S
rule alphaRename(V:Variable) => V
Expand Down
5 changes: 3 additions & 2 deletions prover/strategies/unfolding.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ module STRATEGY-UNFOLDING
syntax Patterns ::= getUnfoldables(Patterns) [function]
rule getUnfoldables(.Patterns) => .Patterns
rule getUnfoldables(R(ARGS), REST)
=> R(ARGS), getUnfoldables(REST)
=> R(ARGS), (getUnfoldables(ARGS)
++Patterns getUnfoldables(REST))
requires isUnfoldable(R)
rule getUnfoldables(S:Symbol, REST)
=> getUnfoldables(REST)
requires notBool isUnfoldable(S)
rule getUnfoldables(S:Symbol(ARGS), REST)
=> getUnfoldables(REST)
=> getUnfoldables(ARGS) ++Patterns getUnfoldables(REST)
requires notBool isUnfoldable(S)
andBool S =/=K sep
rule getUnfoldables(I:Int, REST)
Expand Down