Statement maps for interactive verifiers #
Pullback of a public-coin interactive verifier V along a statement map g : StmtIn' → StmtIn.
The derived verifier V.comap g runs the challenge samplers of V unchanged and applies V.decide
to g x.
Main definitions #
Cslib.Interactive.Verifier.comap: run an interactive verifier through a statement mapg.
Main results #
Cslib.Interactive.Verifier.Sound.comap: soundness transfers with the same error whenever false statements map to false statements (∀ x, g x ∈ langIn → x ∈ langIn').Cslib.Interactive.Verifier.KnowledgeSound.comap: straight-line knowledge soundness transfers for the relation "wis a witness ofg x", runningEatg xwith no hypothesis ong.
def Cslib.Interactive.Verifier.comap {ιV : Type} {oV : OracleSpec ιV} {s : Spec} {StmtIn StmtIn' StmtOut : Type} (V : Verifier oV s StmtIn StmtOut) (g : StmtIn' → StmtIn) :
Verifier oV s StmtIn' StmtOut
Run a verifier for statements StmtIn on statements StmtIn', through a statement map g:
same challenge samplers, and the decision of V at g x.
theorem Cslib.Interactive.Verifier.Sound.comap {ιP ιV : Type} {oP : OracleSpec ιP} {oV : OracleSpec ιV} {s : Spec} {StmtIn StmtIn' StmtOut : Type} {W : World oP oV} {V : Verifier oV s StmtIn StmtOut} {langIn : Set StmtIn} {langOut : Set StmtOut} {ε : ENNReal} (h : Sound W V langIn langOut ε) {g : StmtIn' → StmtIn} {langIn' : Set StmtIn'} (hg : ∀ (x : StmtIn'), g x ∈ langIn → x ∈ langIn') :
Soundness transfers along a statement map that sends false statements to false statements, with the same error.
theorem Cslib.Interactive.Verifier.KnowledgeSound.comap {s : Spec} {StmtIn StmtIn' StmtOut WitIn WitOut : Type} {V : Verifier OracleSpec.empty s StmtIn StmtOut} {relIn : StmtIn → WitIn → Prop} {relOut : StmtOut → WitOut → Prop} {E : StmtIn → s.Transcript → WitOut → WitIn} {ε : ENNReal} (h : V.KnowledgeSound relIn relOut E ε) (g : StmtIn' → StmtIn) :
(V.comap g).KnowledgeSound (fun (x : StmtIn') (w : WitIn) => relIn (g x) w) relOut (fun (x : StmtIn') => E (g x)) ε
Knowledge soundness transfers along a statement map for the relation "w is a witness of
g x", with the extractor of V run on g x and the same error. No condition on g.