https://github.com/alcestes/mpstk-crash-stop
Raw File
Tip revision: 3104e4ddfdc03385f68f53325908136c4a18b421 authored by Alceste Scalas on 04 July 2022, 16:43:22 UTC
Update README.md
Tip revision: 3104e4d
rec-two-buyers.ctx
### Recursive two-buyers protocol.
###
### Copyright 2018 Alceste Scalas <alceste.scalas @ imperial.ac.uk>
### Released under the MIT License: https://opensource.org/licenses/MIT

s[alice]: shop⊕query(Str) .
          shop&price(Int) .
          μ(t)(
            bob⊕{
              split(Int) . bob&{yes . shop⊕buy . end,
                                no . t},
              cancel . shop⊕no
            }),

s[shop]: alice&query(Str) . alice⊕price(Int) . alice&{buy.end, no.end},

s[bob]: μ(t)alice&{
          split(Int) . alice⊕{yes.end, no.t},
          cancel.end
        }
back to top