The value of the associated test, challenge by challenge #
For the associated test assocTest g of MIPRE/Tailored/Sofic/Assoc.lean:
qw g x y, the weight of the challenge at the question pair(x, y)(the game's convention when every weight vanishes: weight1at(0, 0)), andqwTot g > 0their total; every sum over the challenges is theqw-weighted sum over the pairs(x, y),x, y ≤ nV(sum_challenges), so the value and the significance are such sums (value_eq,sig_eq).- The per-point consequences of passing the challenge at
(x, y)(Checks 1–3, I:2086):Jmoves the point,J²,[J, X],X²,[X, X']fix it for the variablesX, X'atxand aty, and each readable variableXfixes it orJ Xdoes. Hence the number of points where one of these fails is at most the number of points failing the challenge (card_J_fixed_leand the following).
Weights #
The weight of the challenge at (x, y).
Equations
- MIPRE.Tailored.Sofic.qw g x y = if (MIPRE.Tailored.Sofic.wts g).totalWeight = 0 then if x = 0 ∧ y = 0 then 1 else 0 else (MIPRE.Tailored.Sofic.wts g).questionWeight x y
Instances For
The total weight of the challenges.
Equations
- MIPRE.Tailored.Sofic.qwTot g = ∑ x ∈ Finset.range (g.nV + 1), ∑ y ∈ Finset.range (g.nV + 1), MIPRE.Tailored.Sofic.qw g x y
Instances For
theorem
MIPRE.Tailored.Sofic.qwTot_eq_of_ne
(g : TailoredGameValue.TailoredGameData)
(h : (wts g).totalWeight ≠ 0)
:
theorem
MIPRE.Tailored.Sofic.sum_challenges
(g : TailoredGameValue.TailoredGameData)
(Ψ : List SubgroupTestValue.Word × List (List (ℕ × Bool)) → ℝ)
:
Every weighted sum over the challenges is the qw-weighted sum over the question pairs.
theorem
MIPRE.Tailored.Sofic.value_eq
(g : TailoredGameValue.TailoredGameData)
(σ : SubgroupTestValue.FiniteAction (nGen g))
:
The value of the associated test as a sum over the question pairs.
The significance in the associated test as a sum over the question pairs.
Words and their permutations #
theorem
MIPRE.Tailored.Sofic.letterPerm_flip
{n : ℕ}
(σ : SubgroupTestValue.FiniteAction n)
(l : SubgroupTestValue.Letter)
:
theorem
MIPRE.Tailored.Sofic.wordPerm_invW
{n : ℕ}
(σ : SubgroupTestValue.FiniteAction n)
(u : SubgroupTestValue.Word)
:
Passing a challenge #
theorem
MIPRE.Tailored.Sofic.fixed_of_passes
{g : TailoredGameValue.TailoredGameData}
{n : ℕ}
(σ : SubgroupTestValue.FiniteAction n)
{x y : ℕ}
{q : Fin σ.N}
(h : σ.Passes (words g x y) (clauses g x y) q)
{wb : SubgroupTestValue.Word × Bool}
(hwb : wb ∈ fixedLits g x y)
:
Passing a challenge gives every fixed literal (Checks 1 and 2).
theorem
MIPRE.Tailored.Sofic.read_of_passes
{g : TailoredGameValue.TailoredGameData}
{n : ℕ}
(σ : SubgroupTestValue.FiniteAction n)
{x y : ℕ}
{q : Fin σ.N}
(h : σ.Passes (words g x y) (clauses g x y) q)
{X : SubgroupTestValue.Word}
(hX : X ∈ readVars g x y)
:
Passing a challenge gives every readable literal (Check 3).