Documentation

CslibFrontier.Crypto.Protocols.VOLE.NativePPT

Strict PPT realization of the native VOLE simulator #

The scalar ring and its encoding are fixed before the input. The public-input encoding is supplied and charged in every callback, along with polynomial-time layout extraction and first-message preprocessing. Extracted wire counts use unary encoding; gate lists use binary wire indices, with bounded list lookups even on malformed inputs. Lists, callback state and the full raw view are charged explicitly. Four fixed callback invocations compose polynomially without a separate iterative storage-growth assumption.

Main definitions #

Main results #

The exact-uniform sampler law is used by Native.receiverView_eq_eval_simulate; runtime alone does not imply that law. Conversely, finite uniformity alone does not certify a strict fair-coin sampler. The tests instantiate both contracts over the two-element field represented by Bool.

This is an original runtime realization of the bounded ideal program, not a certificate for arbitrary higher-order receivers or for a growing family of extension fields.

theorem Cslib.Crypto.Protocols.VOLE.Native.encGate_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget x0 x1 x2 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInSpace x0 encIn Turing.MultiTapeTM.encNat budget) (h1 : Turing.MultiTapeTM.ComputableInSpace x1 encIn Turing.MultiTapeTM.encNat budget) (h2 : Turing.MultiTapeTM.ComputableInSpace x2 encIn Turing.MultiTapeTM.encNat budget) :
Turing.MultiTapeTM.ComputableInSpace (fun (x : γ) => { left := x0 x, right := x1 x, output := x2 x }) encIn encGate budget
@[reducible, inline]

The tuple of the fields of encGate.

Binary wire indices of a single multiplication gate (left, then right and output).

theorem Cslib.Crypto.Protocols.VOLE.Native.encGate_right_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Gate} :
theorem Cslib.Crypto.Protocols.VOLE.Native.encGate_output_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Gate} :
theorem Cslib.Crypto.Protocols.VOLE.Native.encGate_left_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Gate} :
theorem Cslib.Crypto.Protocols.VOLE.Native.encGate_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 T0 S0 x1 T1 S1 x2 T2 S2 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn Turing.MultiTapeTM.encNat T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn Turing.MultiTapeTM.encNat T1 S1) (h2 : Turing.MultiTapeTM.ComputableInO x2 encIn Turing.MultiTapeTM.encNat T2 S2) :
Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { left := x0 x, right := x1 x, output := x2 x }) encIn encGate (fun (x : γ) => T0 x + (T1 x + T2 x)) fun (x : γ) => S0 x + (S1 x + S2 x)
@[reducible, inline]

The tuple of the fields of encInput.

theorem Cslib.Crypto.Protocols.VOLE.Native.encInput_wires_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Input} :
theorem Cslib.Crypto.Protocols.VOLE.Native.encInput_gates_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Input} :
theorem Cslib.Crypto.Protocols.VOLE.Native.encInput_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 T0 S0 : γ → ℕ} {x1 : γ → List Gate} {T1 S1 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn Turing.MultiTapeTM.encUnary T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn (Turing.MultiTapeTM.encList encGate) T1 S1) :
Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { wires := x0 x, gates := x1 x }) encIn encInput (fun (x : γ) => T0 x + T1 x) fun (x : γ) => S0 x + S1 x
theorem Cslib.Crypto.Protocols.VOLE.Native.encInput_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget x0 : γ → ℕ} {x1 : γ → List Gate} (h0 : Turing.MultiTapeTM.ComputableInSpace x0 encIn Turing.MultiTapeTM.encUnary budget) (h1 : Turing.MultiTapeTM.ComputableInSpace x1 encIn (Turing.MultiTapeTM.encList encGate) budget) :
Turing.MultiTapeTM.ComputableInSpace (fun (x : γ) => { wires := x0 x, gates := x1 x }) encIn encInput budget

Gate indices are binary; the wire count is unary and every listed gate is charged.

theorem Cslib.Crypto.Protocols.VOLE.Native.encShare_tags_polyTime {F : Type} (eF : F ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → Share F} :
theorem Cslib.Crypto.Protocols.VOLE.Native.encShare_key_polyTime {F : Type} (eF : F ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → Share F} :
Turing.MultiTapeTM.ComputableInPolyTime g✝ encIn✝ (encShare eF) → Turing.MultiTapeTM.ComputableInPolyTime (fun (c : γ✝) => (g✝ c).key) encIn✝ eF
@[reducible, inline]

The tuple of the fields of encShare.

theorem Cslib.Crypto.Protocols.VOLE.Native.encShare_mk_deg {F : Type} (eF : F ↪ List Bool) :
Turing.MultiTapeTM.ComputableInDegree (fun (p : F × List F) => { key := p.1, tags := p.2 }) (encShareFields eF) (encShare eF) 1 1
theorem Cslib.Crypto.Protocols.VOLE.Native.encShare_mk_inO {F : Type} (eF : F ↪ List Bool) {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → F} {T0 S0 : γ → ℕ} {x1 : γ → List F} {T1 S1 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn eF T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn (Turing.MultiTapeTM.encList eF) T1 S1) :
Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { key := x0 x, tags := x1 x }) encIn (encShare eF) (fun (x : γ) => T0 x + T1 x) fun (x : γ) => S0 x + S1 x
theorem Cslib.Crypto.Protocols.VOLE.Native.encShare_tags_budget {F : Type} (eF : F ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Share F} :
Turing.MultiTapeTM.ComputableInSpace g✝ encIn✝ (encShare eF) S✝ → Turing.MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).tags) encIn✝ (Turing.MultiTapeTM.encList eF) S✝
theorem Cslib.Crypto.Protocols.VOLE.Native.encShare_mk_budget {F : Type} (eF : F ↪ List Bool) {γ : Type} {encIn : γ ↪ List Bool} {budget : γ → ℕ} {x0 : γ → F} {x1 : γ → List F} (h0 : Turing.MultiTapeTM.ComputableInSpace x0 encIn eF budget) (h1 : Turing.MultiTapeTM.ComputableInSpace x1 encIn (Turing.MultiTapeTM.encList eF) budget) :
Turing.MultiTapeTM.ComputableInSpace (fun (x : γ) => { key := x0 x, tags := x1 x }) encIn (encShare eF) budget
theorem Cslib.Crypto.Protocols.VOLE.Native.encShare_key_budget {F : Type} (eF : F ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Share F} :
Turing.MultiTapeTM.ComputableInSpace g✝ encIn✝ (encShare eF) S✝ → Turing.MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).key) encIn✝ eF S✝
theorem Cslib.Crypto.Protocols.VOLE.Native.encShare_mk_polyTime {F : Type} (eF : F ↪ List Bool) {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → F} {x1 : γ → List F} (h0 : Turing.MultiTapeTM.ComputableInPolyTime x0 encIn eF) (h1 : Turing.MultiTapeTM.ComputableInPolyTime x1 encIn (Turing.MultiTapeTM.encList eF)) :
Turing.MultiTapeTM.ComputableInPolyTime (fun (x : γ) => { key := x0 x, tags := x1 x }) encIn (encShare eF)

The key and every receiver tag are explicitly encoded.

theorem Cslib.Crypto.Protocols.VOLE.Native.encView_weights_inO {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) :
Turing.MultiTapeTM.ComputableInO View.weights (encView eF eResult) (Turing.MultiTapeTM.encList eF) (fun (a : View F Result) => ((encView eF eResult) a).length) fun (a : View F Result) => ((encView eF eResult) a).length
theorem Cslib.Crypto.Protocols.VOLE.Native.encView_reply_polyTime {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → View F Result} :
Turing.MultiTapeTM.ComputableInPolyTime g✝ encIn✝ (encView eF eResult) → Turing.MultiTapeTM.ComputableInPolyTime (fun (c : γ✝) => (g✝ c).reply) encIn✝ (Turing.MultiTapeTM.encPair eF eF)
theorem Cslib.Crypto.Protocols.VOLE.Native.encView_corrections_polyTime {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → View F Result} :
def Cslib.Crypto.Protocols.VOLE.Native.encView {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) :
View F Result ↪ List Bool

The complete receiver output, including every correction and transmitted weight.

theorem Cslib.Crypto.Protocols.VOLE.Native.encView_result_inO {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) :
Turing.MultiTapeTM.ComputableInO View.result (encView eF eResult) eResult (fun (a : View F Result) => ((encView eF eResult) a).length) fun (a : View F Result) => ((encView eF eResult) a).length
@[simp]
theorem Cslib.Crypto.Protocols.VOLE.Native.encView_apply {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) (a : View F Result) :
(encView eF eResult) a = (encViewFields eF eResult) (a.share, a.corrections, a.weights, a.reply, a.result)
theorem Cslib.Crypto.Protocols.VOLE.Native.encView_result_budget {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → View F Result} :
Turing.MultiTapeTM.ComputableInSpace g✝ encIn✝ (encView eF eResult) S✝ → Turing.MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).result) encIn✝ eResult S✝
theorem Cslib.Crypto.Protocols.VOLE.Native.encView_weights_polyTime {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → View F Result} :
Turing.MultiTapeTM.ComputableInPolyTime g✝ encIn✝ (encView eF eResult) → Turing.MultiTapeTM.ComputableInPolyTime (fun (c : γ✝) => (g✝ c).weights) encIn✝ (Turing.MultiTapeTM.encList eF)
theorem Cslib.Crypto.Protocols.VOLE.Native.encView_result_length_le {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) (a : View F Result) :
(eResult a.result).length ≤ ((encView eF eResult) a).length
theorem Cslib.Crypto.Protocols.VOLE.Native.encView_reply_budget {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → View F Result} :
Turing.MultiTapeTM.ComputableInSpace g✝ encIn✝ (encView eF eResult) S✝ → Turing.MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).reply) encIn✝ (Turing.MultiTapeTM.encPair eF eF) S✝
theorem Cslib.Crypto.Protocols.VOLE.Native.encView_corrections_budget {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → View F Result} :
Turing.MultiTapeTM.ComputableInSpace g✝ encIn✝ (encView eF eResult) S✝ → Turing.MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).corrections) encIn✝ (Turing.MultiTapeTM.encList eF) S✝
theorem Cslib.Crypto.Protocols.VOLE.Native.encView_share_polyTime {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → View F Result} :
Turing.MultiTapeTM.ComputableInPolyTime g✝ encIn✝ (encView eF eResult) → Turing.MultiTapeTM.ComputableInPolyTime (fun (c : γ✝) => (g✝ c).share) encIn✝ (encShare eF)
theorem Cslib.Crypto.Protocols.VOLE.Native.encView_share_budget {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → View F Result} :
Turing.MultiTapeTM.ComputableInSpace g✝ encIn✝ (encView eF eResult) S✝ → Turing.MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).share) encIn✝ (encShare eF) S✝
theorem Cslib.Crypto.Protocols.VOLE.Native.encView_mk_deg {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) :
Turing.MultiTapeTM.ComputableInDegree (fun (p : Share F × List F × List F × (F × F) × Result) => { share := p.1, corrections := p.2.1, weights := p.2.2.1, reply := p.2.2.2.1, result := p.2.2.2.2 }) (encViewFields eF eResult) (encView eF eResult) 1 1
theorem Cslib.Crypto.Protocols.VOLE.Native.encView_reply_inO {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) :
Turing.MultiTapeTM.ComputableInO View.reply (encView eF eResult) (Turing.MultiTapeTM.encPair eF eF) (fun (a : View F Result) => ((encView eF eResult) a).length) fun (a : View F Result) => ((encView eF eResult) a).length
theorem Cslib.Crypto.Protocols.VOLE.Native.encView_reply_length_le {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) (a : View F Result) :
theorem Cslib.Crypto.Protocols.VOLE.Native.encView_corrections_inO {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) :
Turing.MultiTapeTM.ComputableInO View.corrections (encView eF eResult) (Turing.MultiTapeTM.encList eF) (fun (a : View F Result) => ((encView eF eResult) a).length) fun (a : View F Result) => ((encView eF eResult) a).length
theorem Cslib.Crypto.Protocols.VOLE.Native.encView_fields_deg {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) :
Turing.MultiTapeTM.ComputableInDegree (fun (a : View F Result) => (a.share, a.corrections, a.weights, a.reply, a.result)) (encView eF eResult) (encViewFields eF eResult) 1 1
theorem Cslib.Crypto.Protocols.VOLE.Native.encView_mk_inO {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → Share F} {T0 S0 : γ → ℕ} {x1 : γ → List F} {T1 S1 : γ → ℕ} {x2 : γ → List F} {T2 S2 : γ → ℕ} {x3 : γ → F × F} {T3 S3 : γ → ℕ} {x4 : γ → Result} {T4 S4 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn (encShare eF) T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn (Turing.MultiTapeTM.encList eF) T1 S1) (h2 : Turing.MultiTapeTM.ComputableInO x2 encIn (Turing.MultiTapeTM.encList eF) T2 S2) (h3 : Turing.MultiTapeTM.ComputableInO x3 encIn (Turing.MultiTapeTM.encPair eF eF) T3 S3) (h4 : Turing.MultiTapeTM.ComputableInO x4 encIn eResult T4 S4) :
Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { share := x0 x, corrections := x1 x, weights := x2 x, reply := x3 x, result := x4 x }) encIn (encView eF eResult) (fun (x : γ) => T0 x + (T1 x + (T2 x + (T3 x + T4 x)))) fun (x : γ) => S0 x + (S1 x + (S2 x + (S3 x + S4 x)))
theorem Cslib.Crypto.Protocols.VOLE.Native.encView_weights_budget {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → View F Result} :
Turing.MultiTapeTM.ComputableInSpace g✝ encIn✝ (encView eF eResult) S✝ → Turing.MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).weights) encIn✝ (Turing.MultiTapeTM.encList eF) S✝
@[reducible, inline]
abbrev Cslib.Crypto.Protocols.VOLE.Native.encViewFields {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) :
Share F × List F × List F × (F × F) × Result ↪ List Bool

The tuple of the fields of encView.

theorem Cslib.Crypto.Protocols.VOLE.Native.encView_share_inO {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) :
Turing.MultiTapeTM.ComputableInO View.share (encView eF eResult) (encShare eF) (fun (a : View F Result) => ((encView eF eResult) a).length) fun (a : View F Result) => ((encView eF eResult) a).length
theorem Cslib.Crypto.Protocols.VOLE.Native.encView_mk_budget {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) {γ : Type} {encIn : γ ↪ List Bool} {budget : γ → ℕ} {x0 : γ → Share F} {x1 x2 : γ → List F} {x3 : γ → F × F} {x4 : γ → Result} (h0 : Turing.MultiTapeTM.ComputableInSpace x0 encIn (encShare eF) budget) (h1 : Turing.MultiTapeTM.ComputableInSpace x1 encIn (Turing.MultiTapeTM.encList eF) budget) (h2 : Turing.MultiTapeTM.ComputableInSpace x2 encIn (Turing.MultiTapeTM.encList eF) budget) (h3 : Turing.MultiTapeTM.ComputableInSpace x3 encIn (Turing.MultiTapeTM.encPair eF eF) budget) (h4 : Turing.MultiTapeTM.ComputableInSpace x4 encIn eResult budget) :
Turing.MultiTapeTM.ComputableInSpace (fun (x : γ) => { share := x0 x, corrections := x1 x, weights := x2 x, reply := x3 x, result := x4 x }) encIn (encView eF eResult) budget
theorem Cslib.Crypto.Protocols.VOLE.Native.encView_weights_length_le {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) (a : View F Result) :
theorem Cslib.Crypto.Protocols.VOLE.Native.encView_share_length_le {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) (a : View F Result) :
((encShare eF) a.share).length ≤ ((encView eF eResult) a).length
theorem Cslib.Crypto.Protocols.VOLE.Native.encView_mk_polyTime {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → Share F} {x1 x2 : γ → List F} {x3 : γ → F × F} {x4 : γ → Result} (h0 : Turing.MultiTapeTM.ComputableInPolyTime x0 encIn (encShare eF)) (h1 : Turing.MultiTapeTM.ComputableInPolyTime x1 encIn (Turing.MultiTapeTM.encList eF)) (h2 : Turing.MultiTapeTM.ComputableInPolyTime x2 encIn (Turing.MultiTapeTM.encList eF)) (h3 : Turing.MultiTapeTM.ComputableInPolyTime x3 encIn (Turing.MultiTapeTM.encPair eF eF)) (h4 : Turing.MultiTapeTM.ComputableInPolyTime x4 encIn eResult) :
Turing.MultiTapeTM.ComputableInPolyTime (fun (x : γ) => { share := x0 x, corrections := x1 x, weights := x2 x, reply := x3 x, result := x4 x }) encIn (encView eF eResult)
theorem Cslib.Crypto.Protocols.VOLE.Native.encView_result_polyTime {F Result : Type} (eF : F ↪ List Bool) (eResult : Result ↪ List Bool) {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → View F Result} :
Turing.MultiTapeTM.ComputableInPolyTime g✝ encIn✝ (encView eF eResult) → Turing.MultiTapeTM.ComputableInPolyTime (fun (c : γ✝) => (g✝ c).result) encIn✝ eResult

Weight normalization runs in polynomial time in the unary count and actual list length.

All lookups are polynomial in their binary index's encoded length, including indices beyond the actual lists. Only the semantic bridge imposes valid gate indices.

theorem Cslib.Crypto.Protocols.VOLE.Native.isPPTOn_simulate {F : Type} [CommRing F] [Finite F] {eF : F ↪ List Bool} {I First State Result : Type} (sample : ProbComp F) (receiver : Receiver F I First State Result) (layout : I → Input) (first : I → Share F → List F → First) (eInput : I ↪ List Bool) (eFirst : First ↪ List Bool) (eState : State ↪ List Bool) (eResult : Result ↪ List Bool) (hsample : Probability.IsPPTOn Turing.MultiTapeTM.encUnit eF fun (x : Unit) => sample) (hadd : Turing.MultiTapeTM.ComputableInPolyTime (fun (p : F × F) => p.1 + p.2) (Turing.MultiTapeTM.encPair eF eF) eF) (hsub : Turing.MultiTapeTM.ComputableInPolyTime (fun (p : F × F) => p.1 - p.2) (Turing.MultiTapeTM.encPair eF eF) eF) (hmul : Turing.MultiTapeTM.ComputableInPolyTime (fun (p : F × F) => p.1 * p.2) (Turing.MultiTapeTM.encPair eF eF) eF) (hlayout : Turing.MultiTapeTM.ComputableInPolyTime layout eInput encInput) (hfirst : Turing.MultiTapeTM.ComputableInPolyTime (fun (p : I × Share F × List F) => first p.1 p.2.1 p.2.2) (Turing.MultiTapeTM.encPair eInput (Turing.MultiTapeTM.encPair (encShare eF) (Turing.MultiTapeTM.encList eF))) eFirst) (hinit : Probability.IsPPTOn (Turing.MultiTapeTM.encPair eInput (encShare eF)) eState fun (p : I × Share F) => receiver.init p.1 p.2) (hchallenge : Probability.IsPPTOn (Turing.MultiTapeTM.encPair eInput (Turing.MultiTapeTM.encPair (encShare eF) (Turing.MultiTapeTM.encPair eState eFirst))) (Turing.MultiTapeTM.encPair (Turing.MultiTapeTM.encList eF) eState) fun (p : I × Share F × State × First) => receiver.challenge p.1 p.2.1 p.2.2.1 p.2.2.2) (hreceive : Probability.IsPPTOn (Turing.MultiTapeTM.encPair eInput (Turing.MultiTapeTM.encPair (encShare eF) (Turing.MultiTapeTM.encPair eState (Turing.MultiTapeTM.encPair eF eF)))) eState fun (p : I × Share F × State × F × F) => receiver.receive p.1 p.2.1 p.2.2.1 p.2.2.2) (hterminal : Probability.IsPPTOn (Turing.MultiTapeTM.encPair eInput (Turing.MultiTapeTM.encPair (encShare eF) eState)) eResult fun (p : I × Share F × State) => receiver.terminal p.1 p.2.1 p.2.2) :
Probability.IsPPTOn eInput (encView eF eResult) (simulate sample receiver layout first)

A fixed ring's certified sampler and four certified callbacks give one strict fair-coin machine over the complete encoded input. Layout extraction and first-message preprocessing are charged, including their output growth; a runtime circuit cannot be hidden in a fixed callback when invoking this theorem for a varying circuit input. The certificate is total even on malformed layouts. It assumes no efficient realization of arbitrary strategy trees.