Documentation
FraudProof
.
Games
.
GameDef
Search
return to top
source
Imports
Init
Imported by
Player
Winner
winning_proposer
winning_chooser
Side
PMoves
PMoves
.
left
PMoves
.
right
ChooserPrimMoves
ChooserSmp
ChooserMoves
source
inductive
Player
:
Type
Proposer :
Player
Chooser :
Player
Instances For
source
@[reducible, inline]
abbrev
Winner
:
Type
Equations
Winner
=
Player
Instances For
source
def
winning_proposer
(
b
:
Bool
)
:
Winner
Equations
winning_proposer
b
=
if
b
=
true
then
Player.Proposer
else
Player.Chooser
Instances For
source
def
winning_chooser
(
b
:
Bool
)
:
Winner
Equations
winning_chooser
b
=
if
b
=
true
then
Player.Chooser
else
Player.Proposer
Instances For
source
inductive
Side
:
Type
Left :
Side
Right :
Side
Instances For
source
@[reducible, inline]
abbrev
PMoves
(
ℍ
:
Type
)
:
Type
Equations
PMoves
ℍ
=
(
ℍ
×
ℍ
)
Instances For
source
def
PMoves
.
left
{
ℍ
:
Type
}
:
PMoves
ℍ
→
ℍ
Equations
e
.
left
=
e
.
fst
Instances For
source
def
PMoves
.
right
{
ℍ
:
Type
}
:
PMoves
ℍ
→
ℍ
Equations
e
.
right
=
e
.
snd
Instances For
source
inductive
ChooserPrimMoves
(
α
:
Type
)
:
Type
Now
{
α
:
Type
}
:
ChooserPrimMoves
α
Continue
{
α
:
Type
}
(
opts
:
α
)
:
ChooserPrimMoves
α
Instances For
source
@[reducible, inline]
abbrev
ChooserSmp
:
Type
Equations
ChooserSmp
=
ChooserPrimMoves
Unit
Instances For
source
@[reducible, inline]
abbrev
ChooserMoves
:
Type
Equations
ChooserMoves
=
ChooserPrimMoves
Side
Instances For