Party.lean
Protocol parties and alternating epoch ownership
Trusted in part. The theorems of Computational/ use every definition in this file except Party.: read them. Party. and the theorems here are checked by Lean. See Computational/.
Defines the two participants (Party), partner swap (Party.), and alternating epoch ownership (Party., Party.: A sends in odd epochs, B in even epochs) shared by the CKA and SM games (ACD19 §3.2.1, §4.1.1).
@[expose] public sectionnamespace CryptoGamesinductive Party
inductive Party
| A
| B
deriving DecidableEq, Reprnamespace Party4 declarations not shown (lines 43–46): theorems, which Lean checks, or definitions that no headline statement uses
CryptoGames., CryptoGames., CryptoGames., CryptoGames.
def sendsIn
1 declaration not shown (lines 53–59): theorems, which Lean checks, or definitions that no headline statement uses
CryptoGames.
end Partyend CryptoGames