MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch16.A695LogicPaper.GeneralSecurityTotal

theorem MindFormal.A695LogicPaper.GeneralSecurity.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) (E : StateExperiment Ω (A595Paper.viewCount RandomInput.Symbol + 4) 2 Unit Unit (PageFamily.Coord (A595Paper.viewCount RandomInput.Symbol + 4))) (C : PrivatePaper.ProgramCoefficients P σs E (IntegerProgram.StrategyInput.initialTape estimate Q (SecurityProgram.bitCount Q) attempts) RandomInput.drawView RandomInput.bitGlyph (A595Paper.Command.write 1 ((IntegerProgram.StrategyInput.initialTape estimate Q (SecurityProgram.bitCount Q) attempts).view 1)) RandomInput.table) (hzero : ∀ᵐ (ω : Ω) ∂E.ground.μ, PrivatePaper.generalProgramReady P σs E (IntegerProgram.StrategyInput.initialTape estimate Q (SecurityProgram.bitCount Q) attempts) RandomInput.drawView RandomInput.bitGlyph (A595Paper.Command.write 1 ((IntegerProgram.StrategyInput.initialTape estimate Q (SecurityProgram.bitCount Q) attempts).view 1)) RandomInput.table 0 ω) (hH : ↑(IntegerProgram.StrategyInput.deadline estimate Q (SecurityProgram.bitCount Q) attempts) ≤ E.horizon) (hQ : 1 ≤ Q) (hr : 0 < attempts) (information : { info : MeasurableSpace Ω // info ≤ ↑E.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)), E.ground.μ[({ω : Ω | plannedAcceptance estimate Q (SecurityProgram.bitCount Q) attempts P σs E ω = some k} ∩ {ω : Ω | opponent ω = b}).indicator fun (x : Ω) => 1 | ↑information] =ᵐ[E.ground.μ] fun (ω : Ω) => E.ground.μ[{ω : Ω | plannedAcceptance estimate Q (SecurityProgram.bitCount Q) attempts P σs E ω = some k}.indicator fun (x : Ω) => 1 | ↑information] ω * E.ground.μ[{ω : Ω | opponent ω = b}.indicator fun (x : Ω) => 1 | ↑information] ω) (actual loss : Ω → ℝ) (ha : MeasureTheory.Integrable actual E.ground.μ) (hl : MeasureTheory.Integrable loss E.ground.μ) (hactual : ∀ (ω : Ω), L ≤ actual ω ∧ actual ω ≤ U) (initBad paperBad : Set Ω) (hinitm : MeasurableSet initBad) (hpaperm : MeasurableSet paperBad) (εinit εpaper Cproc : ℝ) (hinit : ∀ (B : Set Ω), MeasurableSet B → E.ground.μ.real (B ∩ initBad) ≤ εinit * E.ground.μ.real B) (hpaper : ∀ (B : Set Ω), MeasurableSet B → E.ground.μ.real (B ∩ paperBad) ≤ εpaper * E.ground.μ.real B) (hread : ∀ ω ∉ initBad ∪ paperBad, actual ω = SecurityProgram.actionPayment (nativeAction estimate Q (SecurityProgram.bitCount Q) attempts E) opponent pay L ω) (hcost : E.ground.μ[loss | ↑information] ≤ᵐ[E.ground.μ] fun (x : Ω) => Cproc) :
(fun (x : Ω) => Security.value pay - 2 * εpay - (U - L) * (↑m / ↑Q + εinit + PrivateSecurity.executionPrice estimate Q attempts P σs + εpaper + SecurityProgram.rejectionPrice Q attempts) - Cproc) ≤ᵐ[E.ground.μ] E.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.