Literal base-Q+1 counter traversal, including rejected tuples. The table arithmetic below is evaluated on these data rather than chosen from an existential security optimizer.
Equations
- One or more equations did not get rendered due to their size.
- MindFormal.A695LogicPaper.SecurityProgram.counterTuples Q 0 = [Fin.elim0]
Instances For
Equations
- MindFormal.A695LogicPaper.SecurityProgram.firstCounts m Q = Fin.cons Q fun (x : Fin m) => 0
Instances For
def
MindFormal.A695LogicPaper.SecurityProgram.keepBetter
{m n : ℕ}
(pay : Fin (m + 1) → Fin (n + 1) → ℚ)
(Q : ℕ)
(best trial : Fin (m + 1) → ℕ)
:
Strict improvement retains the first encountered maximizer. The sum test rejects a counter tuple; no admissible candidate is pruned.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
MindFormal.A695LogicPaper.SecurityProgram.computedGrid
{m n : ℕ}
(pay : Fin (m + 1) → Fin (n + 1) → ℚ)
(Q : ℕ)
:
Security.Grid m Q
Equations
Instances For
theorem
MindFormal.A695LogicPaper.SecurityProgram.computedGrid_dominates
{m n Q : ℕ}
(pay : Fin (m + 1) → Fin (n + 1) → ℚ)
(hQ : 1 ≤ Q)
(u : Security.Grid m Q)
:
Security.worst (fun (i : Fin (m + 1)) (b : Fin (n + 1)) => ↑(pay i b)) (Security.gridMixture u) ≤ Security.worst (fun (i : Fin (m + 1)) (b : Fin (n + 1)) => ↑(pay i b)) (Security.gridMixture (computedGrid pay Q))
Exact rational arithmetic computes the optimizer; the real-valued proof reuses only the already verified TV rounding estimate.
theorem
MindFormal.A695LogicPaper.SecurityProgram.computed_security
{m n Q : ℕ}
(pay : Fin (m + 1) → Fin (n + 1) → ℚ)
(hQ : 1 ≤ Q)
{R : ℝ}
(hR : 0 ≤ R)
(oscillation : ∀ (b : Fin (n + 1)) (i j : Fin (m + 1)), |↑(pay i b) - ↑(pay j b)| ≤ R)
:
(Security.value fun (i : Fin (m + 1)) (b : Fin (n + 1)) => ↑(pay i b)) - R * (↑m / ↑Q) ≤ Security.worst (fun (i : Fin (m + 1)) (b : Fin (n + 1)) => ↑(pay i b)) (Security.gridMixture (computedGrid pay Q))