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

Connect Floyd–Hoare (aka axiomatic) to game-theoretic semantics #181

Open
shingarov opened this issue Dec 15, 2023 · 0 comments
Open

Connect Floyd–Hoare (aka axiomatic) to game-theoretic semantics #181

shingarov opened this issue Dec 15, 2023 · 0 comments

Comments

@shingarov
Copy link
Owner

In refinement calculus 1, Floyd–Hoare "function-boundary" pre/postconditions are equivalent to intermittent assert/assume invariants. One generalization of this view is "assigning blame", or "who loses the game", if invariant is broken.

As one illustration, let's say Kasparov calls Karpov with argument x, and somewhere in Karpov's definitional code there is an intermittent assumption:

Karpov(x):
    ...
    assume(x>0)
    ...

Then if Kasparov calls Karpov(-1), Kasparov loses the game.

In the current codebase, only the assert side is implemented (and only in the "core OCaml" toy-language). This Issue calls to extend the implementation to the assume side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant