A tailored game description as a game description #
TailoredGameData.toGameData turns a tailored game description into a HaltingGameValue.GameData
with the same game: the questions are the same vertices, the answers the bit vectors of length
Λ named by the numbers below 2 ^ Λ (bit i of the number is coordinate i, vecEquiv), the
weights the same list, and the acceptance table every tuple the canonical decider accepts
(acceptsN, the decider on numbers). So the machinery written for game descriptions applies to
tailored ones: the quantum value is the same (quantumValue_toGameData), and it is r.e. from
below along a computable family (ValueApprox.rePred_lt_quantumValue), because the conversion is
primitive recursive (primrec_toGameData).
Answers as numbers #
The bit vectors of length L as the numbers below 2 ^ L: coordinate i is bit i.
Equations
Instances For
The answer length and the canonical decider, on numbers #
The answer length Λ, computed by a fold over the vertices.
Equations
- g.ansLenL = List.foldr max 0 (List.map g.lenAt (List.range (g.nV + 1)))
Instances For
The readable part of an answer given as a number.
Instances For
The full answer, given as a number.
Instances For
The parity of a list of bits, by a fold.
Equations
- TailoredGameValue.TailoredGameData.parityB l = List.foldr (fun (b acc : Bool) => !decide (b = acc)) false l
Instances For
Satisfaction of a linear constraint, as a Boolean function.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The canonical decider on numbers: answers given as numbers, read as bit vectors.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A tailored game description as a game description.
Instances For
The canonical decider on numbers is the canonical decider #
The same game #
The answers of the game description, as bit vectors.
Instances For
The game description has the quantum value of the tailored one.
The conversion is primitive recursive #
The per-constraint test of acceptsN, as a function of the description, the tuple and the
constraint entry.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The conversion is primitive recursive.