MindFormal v1.0.0One Mind

MindFormal.Tools.A695LogicPaper.CalibratedGrid

theorem MindFormal.A695LogicPaper.SecurityProgram.calibrated_computed_security {m n Q : ℕ} (pay : Fin (m + 1) → Fin (n + 1) → ℝ) (estimate : Fin (m + 1) → Fin (n + 1) → ℚ) (hQ : 1 ≤ Q) (ε R : ℝ) (hR : 0 ≤ R) (tableError : ∀ (i : Fin (m + 1)) (b : Fin (n + 1)), |↑(estimate i b) - pay i b| ≤ ε) (oscillation : ∀ (b : Fin (n + 1)) (i j : Fin (m + 1)), |↑(estimate i b) - ↑(estimate j b)| ≤ R) :
Security.value pay - 2 * ε - R * (↑m / ↑Q) ≤ Security.worst pay (Security.gridMixture (computedGrid estimate Q))

The table is a read/calibration premise, not an optimizer premise. The two passages between the true and represented tables are both charged.

theorem MindFormal.A695LogicPaper.SecurityProgram.interval_oscillation {A : Type u_1} {B : Type u_2} (pay : A → B → ℝ) (L U : ℝ) (h : ∀ (a : A) (b : B), L ≤ pay a b ∧ pay a b ≤ U) (b : B) (a c : A) :
|pay a b - pay c b| ≤ U - L