Skip to content

Commit

Permalink
remove or fix lemmas that are now dead
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwight Guth committed Mar 25, 2024
1 parent 9ce02c7 commit 7662f4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion kevm-pyk/src/kevm_pyk/kproj/evm-semantics/lemmas/lemmas.k
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module LEMMAS [symbolic]
// Word Reasoning
// ########################

rule 0 <=Int #sizeWordStack ( _ , N ) => true requires 0 <=Int N [simplification, smt-lemma]
rule 0 <=Int size( _:List ) => true [simplification, smt-lemma]

// bool2Word range & simplification
rule 0 <=Int bool2Word(_B) => true [simplification]
Expand Down
6 changes: 2 additions & 4 deletions kevm-pyk/src/kevm_pyk/kproj/evm-semantics/optimizations.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ requires "lemmas/int-simplification.k"
module EVM-OPTIMIZATIONS-LEMMAS
imports EVM
rule #sizeWordStack(WS , N) => #sizeWordStack(WS, 0) +Int N requires N =/=Int 0 [simplification]
rule #sizeWordStack(WS [ I := _ ], N) => #sizeWordStack(WS, N) requires I <Int #sizeWordStack(WS) [simplification]
rule 0 <=Int #sizeWordStack(_ , 0) => true [simplification]
rule #sizeWordStack(_ , 0) <Int N => false requires N <=Int 0 [simplification]
rule 0 <=Int size(_:List) => true [simplification]
rule size(_:List) <Int N => false requires N <=Int 0 [simplification]
endmodule
Expand Down

0 comments on commit 7662f4b

Please sign in to comment.