MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch16.A695LogicPaper.DrawGeneralComposition

theorem MindFormal.A695LogicPaper.PrivatePaper.general_private_program_bill {Γ : Type u_1} {Ω : Type u_2} {Y : Type u_3} {I : Type u_4} [Fintype Γ] [MeasurableSpace Ω] [MeasurableSpace Y] [Fintype I] (P : EnvelopeParameters (A595Paper.viewCount Γ)) (σs : ℝ) (hs : P.parameters.σ ≤ σs) (E : StateExperiment Ω (A595Paper.viewCount Γ + 4) 2 Unit Unit (PageFamily.Coord (A595Paper.viewCount Γ + 4))) (initial : A595Paper.Tape Γ) (draw : A595Paper.View Γ) (bit : Bool → Γ) (start : A595Paper.Command Γ) (table : A595Paper.View Γ → A595Paper.Command Γ) (C : ProgramCoefficients P σs E initial draw bit start table) (hzero : ∀ᵐ (ω : Ω) ∂E.ground.μ, generalProgramReady P σs E initial draw bit start table 0 ω) (count ordinary draws : ℕ) (hH : ↑count ≤ E.horizon) (hordinary : ∀ (u : ℕ → Bool), {k ∈ Finset.range count | (idealTape initial draw bit start table u k).view ≠ draw}.card ≤ ordinary) (hdraws : ∀ (u : ℕ → Bool), {k ∈ Finset.range count | (idealTape initial draw bit start table u k).view = draw}.card ≤ draws) (permittedInfo actualInfo : Ω → Y) (hprivate : Measurable permittedInfo) (initBad : Set Ω) (pinit : ℝ) (paperBad : I → Set Ω) (price : Option I → ℝ) {B : Set Ω} (hB : MeasurableSet B) (hinit : E.ground.μ.real (B ∩ initBad) ≤ pinit * E.ground.μ.real B) (hpaper : ∀ (j : Option I), E.ground.μ.real (B ∩ match j with | none => {ω : Ω | actualInfo ω ≠ permittedInfo ω} | some i => paperBad i) ≤ price j * E.ground.μ.real B) :
have faults := fun (j : Option I) => match j with | none => {ω : Ω | actualInfo ω ≠ permittedInfo ω} | some i => paperBad i; have failure := {ω : Ω | (∃ k ≤ count, ¬generalProgramReady P σs E initial draw bit start table k ω) ∨ ∃ k < count, ¬generalProgramStepRecord P σs E initial draw bit start table k ω} ∪ initBad ∪ ⋃ (j : Option I), faults j; E.ground.μ.real (B ∩ failure) ≤ min 1 (pinit + ↑ordinary * ordinaryPrice (A595Paper.viewCount Γ) P.K P.parameters.σ + ↑draws * couplingPrice (A595Paper.viewCount Γ) P σs + ∑ j : Option I, price j) * E.ground.μ.real B ∧ (∀ (word : ℕ → Bool), E.ground.μ.real (B ∩ bitWordEvent (idealBit P σs E) word count) = (1 / 2) ^ count * E.ground.μ.real B) ∧ ∀ ω ∉ failure, actualInfo ω = permittedInfo ω ∧ (∀ k ≤ count, generalProgramReady P σs E initial draw bit start table k ω) ∧ ∀ k < count, generalProgramStepRecord P σs E initial draw bit start table k ω

CRS.4 at the raw implementation-certificate scope. The opponent's permitted information is a read of the pre-battery past (or of an already irrevocable commitment). actualInfo additionally allows an observed paper/timing leak: its disagreement with that permitted read is the none fault and is charged, not ignored. The other supplied prices are exactly initialization and physical mark calibrations. Native acts, writes and full exits are constructed above.