MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch17.SecurityMathematics.Applications

theorem MindFormal.Security.executed_security {A : Type u_1} {B : Type u_2} [Fintype A] [Fintype B] [Nonempty A] [Nonempty B] (pay : A → B → ℝ) (p : A → ℝ) (q : B → ℝ) (hq : FiniteDecision.Probability q) (joint : A → B → ℝ) (independent : ∀ (a : A) (b : B), joint a b = p a * q b) (columns : ∀ (b : B), value pay ≤ column pay p b) :
value pay ≤ ∑ a : A, ∑ b : B, joint a b * pay a b

SD26/27 applied to the executed conditional randomization: any joint opponent choice is allowed, with internal opponent correlation retained. Only its conditional independence from the focal choice is required.

theorem MindFormal.Security.robust_payment {A : Type u_1} {B : Type u_2} [Fintype A] [Fintype B] [Nonempty A] [Nonempty B] (pay estimate : A → B → ℝ) (candidate actual : A → ℝ) (hc : FiniteDecision.Probability candidate) (ha : FiniteDecision.Probability actual) (εpay δalg R εact Cproc cost : ℝ) (tableError : ∀ (a : A) (b : B), |estimate a b - pay a b| ≤ εpay) (algorithm : value estimate - δalg ≤ worst estimate candidate) (range : ∀ (b : B) (a c : A), |pay a b - pay c b| ≤ R) (readError : tv actual candidate ≤ εact) (hR : 0 ≤ R) (processing : cost ≤ Cproc) (q : B → ℝ) (hq : FiniteDecision.Probability q) (joint : A → B → ℝ) (independent : ∀ (a : A) (b : B), joint a b = actual a * q b) :
value pay - 2 * εpay - δalg - R * εact - Cproc ≤ ∑ a : A, ∑ b : B, joint a b * pay a b - cost

SD28 protects actual payment including the complete processing bill. The same bound holds for every joint opponent mixture; a forecast error is absent because every column is priced in the security calculation.

theorem MindFormal.Security.settled_free_test {Z : Type u_1} {R : Type u_2} {A : Type u_3} {B : Type u_4} [MeasurableSpace Z] [Fintype R] [MeasurableSpace R] [MeasurableSingletonClass R] [Fintype A] [Fintype B] [Nonempty A] [Nonempty B] (π : MeasureTheory.Measure Z) [MeasureTheory.IsProbabilityMeasure π] (P : ProbabilityTheory.Kernel Z Z) [ProbabilityTheory.IsMarkovKernel P] (invariant : π.bind ⇑P = π) (K : ProbabilityTheory.Kernel Z R) [ProbabilityTheory.IsMarkovKernel K] (free : R → Bool) (act : R → A) (pay : A → B → ℝ) (positive : 0 < (MarkedMass.ofLaw (π.bind ⇑K) id ⋯).accepted free) :
have M := MarkedMass.ofLaw (π.bind ⇑K) id ⋯; have Mnext := MarkedMass.ofLaw ((π.bind ⇑P).bind ⇑K) id ⋯; Mnext = M ∧ FiniteDecision.Probability (M.price free act) ∧ ((∀ (q : B → ℝ), FiniteDecision.Probability q → value pay ≤ payment pay (M.price free act) q) ↔ worst pay (M.price free act) = value pay) ∧ (worst pay (M.price free act) = value pay ↔ ∀ (b : B), value pay ≤ column pay (M.price free act) b)

SD31 at an invariant encounter law (also applicable to a proved invariant observable quotient). The same native mark kernel is integrated against the actual entering law. Positive free mass is the conditioning hold. No invariant law is constructed and no conditional security is inferred from this marginal test. All no-act/default marks remain in R.