Created
March 17, 2015 06:20
-
-
Save Phasip/cb531f887deeff5f5146 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
theory Loop_Counter_Test begin | |
functions: inc/1 | |
rule Start: [ Fr(x) ] --[ ]-> [ A(x,x) ] | |
rule Loop: [ A(x,y) ] --[ Loop(x,y) ]-> [ A(x,inc(y)) ] | |
lemma Exists: | |
exists-trace | |
"Ex #i x y. Loop(x,inc(y)) @ #i" | |
lemma Loop_inc [reuse]: | |
"All x y #j. Loop(x,inc(y)) @ #j ==> | |
(Ex #i. Loop(x,y) @ #i & #i = #j)" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment