MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch16.A695LogicPaper.NativeSecurityTotal

theorem MindFormal.A695LogicPaper.PrivateSecurity.native_total_security {m n : ℕ} (estimate : Fin (m + 1) → Fin (n + 1) → ℚ) (Q attempts : ℕ) {Ω : Type u_1} [mΩ : MeasurableSpace Ω] (P : PrivatePaper.EnvelopeParameters (A595Paper.viewCount RandomInput.Symbol)) (σs : ℝ) (hs : P.parameters.σ ≤ σs) (ground : EquationGround Ω (PageFamily.Coord (A595Paper.viewCount RandomInput.Symbol + 4))) (complete : CompletedEquationGround ground) (v : Fin (A595Paper.viewCount RandomInput.Symbol + 4) → PageFamily.Values) (hQ : 1 ≤ Q) (hr : 0 < attempts) (information : { info : MeasurableSpace Ω // info ≤ ↑ground.filtration 0 }) (opponent : Ω → Fin (n + 1)) (hopp : Measurable opponent) (pay : Fin (m + 1) → Fin (n + 1) → ℝ) (L U εpay : ℝ) (hp : ∀ (i : Fin (m + 1)) (b : Fin (n + 1)), L ≤ pay i b ∧ pay i b ≤ U) (hestimate : ∀ (i : Fin (m + 1)) (b : Fin (n + 1)), L ≤ ↑(estimate i b) ∧ ↑(estimate i b) ≤ U) (hcal : ∀ (i : Fin (m + 1)) (b : Fin (n + 1)), |↑(estimate i b) - pay i b| ≤ εpay) (hprivate : ∀ k < Q, ∀ (b : Fin (n + 1)), ground.μ[({ω : Ω | plannedAcceptance estimate Q (SecurityProgram.bitCount Q) attempts P σs hs ground complete v ω = some k} ∩ {ω : Ω | opponent ω = b}).indicator fun (x : Ω) => 1 | ↑information] =ᵐ[ground.μ] fun (ω : Ω) => ground.μ[{ω : Ω | plannedAcceptance estimate Q (SecurityProgram.bitCount Q) attempts P σs hs ground complete v ω = some k}.indicator fun (x : Ω) => 1 | ↑information] ω * ground.μ[{ω : Ω | opponent ω = b}.indicator fun (x : Ω) => 1 | ↑information] ω) (actual loss : Ω → ℝ) (ha : MeasureTheory.Integrable actual ground.μ) (hl : MeasureTheory.Integrable loss ground.μ) (hactual : ∀ (ω : Ω), L ≤ actual ω ∧ actual ω ≤ U) (initBad paperBad : Set Ω) (hinitm : MeasurableSet initBad) (hpaperm : MeasurableSet paperBad) (εinit εpaper Cproc : ℝ) (hinit : ∀ (B : Set Ω), MeasurableSet B → ground.μ.real (B ∩ initBad) ≤ εinit * ground.μ.real B) (hpaper : ∀ (B : Set Ω), MeasurableSet B → ground.μ.real (B ∩ paperBad) ≤ εpaper * ground.μ.real B) (hread : ∀ ω ∉ initBad ∪ paperBad, actual ω = SecurityProgram.actionPayment (nativeAction estimate Q (SecurityProgram.bitCount Q) attempts P σs hs ground complete v) opponent pay L ω) (hcost : ground.μ[loss | ↑information] ≤ᵐ[ground.μ] fun (x : Ω) => Cproc) :
(fun (x : Ω) => Security.value pay - 2 * εpay - (U - L) * (↑m / ↑Q + εinit + executionPrice estimate Q attempts P σs + εpaper + SecurityProgram.rejectionPrice Q attempts) - Cproc) ≤ᵐ[ground.μ] ground.μ[fun (ω : Ω) => actual ω - loss ω | ↑information]

CRS.7 at the actual scoring instrument. Initialization and paper-mark calibrations, all native operations and draws, rejection and the actual conditional processing loss are separately charged. Failure outcomes remain inside the same bounded payment interval.