Documentation

MIPRE.Foundations.CL.DetypingProgQueries

Bit-list query formulas for the numbered detyping sampler #

These identities connect the semantic CL construction to the executable router's graph-prefix and content-suffix operations. Prefix validity for forwarded content queries is derived from the original numbered prefix.

theorem MIPRE.CL.Detyping.numbered_marginal_graph {T : Type u_1} [Fintype T] [DecidableEq T] {s ℓ : ℕ} (E : T → T → Prop) [DecidableRel E] (w : Player) (P : T → CLFun 𝔽₂ (Fin s) ℓ) (j : ℕ) (hj : j ≤ 2) (z : Cost.BitStr) (hz : List.length z = graphDim T + s) :

Through the first two levels only graph bits are nonzero.

theorem MIPRE.CL.Detyping.numbered_marginal_content {T : Type u_1} [Fintype T] [DecidableEq T] {s ℓ : ℕ} (E : T → T → Prop) [DecidableRel E] (w : Player) (P : T → CLFun 𝔽₂ (Fin s) ℓ) (hP : ∀ (t : T), (P t).ExactlyOn Finset.univ) (hℓ : 0 < ℓ) (r : ℕ) (z : Cost.BitStr) (hz : List.length z = graphDim T + s) :

Later marginals append the selected typed marginal to the complete graph view.

theorem MIPRE.CL.Detyping.numbered_linear_graph {T : Type u_1} [Fintype T] [DecidableEq T] {s ℓ : ℕ} (E : T → T → Prop) [DecidableRel E] (w : Player) (P : T → CLFun 𝔽₂ (Fin s) ℓ) (k : ℕ) (hk : k < 2) (u y : Cost.BitStr) (hu : List.length u = graphDim T + s) (hy : List.length y = graphDim T + s) :

Graph-level linear queries append a zero content block.

theorem MIPRE.CL.Detyping.numbered_linear_content {T : Type u_1} [Fintype T] [DecidableEq T] {s ℓ : ℕ} (E : T → T → Prop) [DecidableRel E] (w : Player) (P : T → CLFun 𝔽₂ (Fin s) ℓ) (r : ℕ) (u y : Cost.BitStr) (hu : List.length u = graphDim T + s) (hy : List.length y = graphDim T + s) :

Content-level linear queries prepend a zero graph block.

def MIPRE.CL.Detyping.indicatorVec {ι : Type u_2} [DecidableEq ι] (S : Finset ι) :
ι → 𝔽₂
Equations
Instances For

    Graph factors append zero membership bits for the content register.

    theorem MIPRE.CL.Detyping.numbered_factor_content {T : Type u_1} [Fintype T] [DecidableEq T] {s ℓ : ℕ} (E : T → T → Prop) [DecidableRel E] (w : Player) (P : T → CLFun 𝔽₂ (Fin s) ℓ) (r : ℕ) (u : Cost.BitStr) (hu : List.length u = graphDim T + s) :

    Content factors prepend zero membership bits for the graph register.

    theorem MIPRE.CL.Detyping.numbered_selected_prefix {T : Type u_1} [Fintype T] [DecidableEq T] {s ℓ : ℕ} (E : T → T → Prop) [DecidableRel E] (w : Player) (P : T → CLFun 𝔽₂ (Fin s) ℓ) (hP : ∀ (t : T), (P t).ExactlyOn Finset.univ) (hℓ : 0 < ℓ) (r : ℕ) (hr : 1 ≤ r) (u : Cost.BitStr) (hu : ∃ (x : Fin (graphDim T + s) → 𝔽₂), u = toBits ((CLFun.truncate (r + 1) (numbered E w P)).eval x)) {t : T} (ht : select E w.toBool (graphOfBits (List.take (graphDim T) u)) = some t) :
    ∃ (v : Fin s → 𝔽₂), List.drop (graphDim T) u = toBits ((CLFun.truncate (r - 1) (P t)).eval v)

    A selected type receives a prefix that is valid for the original typed sampler.