Route each query by the transcript so far

Aperta
#388 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Ambito
backend

Direzione di ricerca

Start in src/RandomSystems/Typed/ and read the existing Program and TypedConverter routing definitions, then compare the stateless router (#220), transcript converter (#231), and companion issue #368. The issue names the required laws and acceptance cases; done means those laws are added and both acceptance cases hold. Expect to work across formal definitions and proofs.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Background

A stateless router (#220) sends an outside query $u$ to one inside query $\mathrm{req}(u)$ and maps the reply by $\mathrm{ans}(u,\cdot)$. Some converters do the same with a request and an answer that read their own outside transcript $h$ so far:

u\ \longmapsto\ \mathrm{req}(h,u),\qquad
y\ \longmapsto\ v=\mathrm{ans}(h,u,y),\qquad
h\ \leftarrow\ h\cdot(u,v).

The state is the transcript, as for a converter that answers from its transcript (#231). The stateless router is the case where neither map reads $h$.

Over a function $f$ of the inside queries such a router is deterministic, so its transcript probabilities are indicators:

\Pr\big[(\mathrm{route}_{\mathrm{req},\mathrm{ans}}\bullet[f])\ \text{gives}\ h\big]
=\Big[\,h\ \text{admitted}\ \land\ \forall\,\mathit{pre}\cdot(u,v)\ \text{prefix of}\ h:\ \
v=\mathrm{ans}\big(\mathit{pre},u,f(\mathrm{req}(\mathit{pre},u))\big)\Big].

TypedSystem.ofFunction_mass is the case of a router that ignores its transcript.

Proposed change

Add Program.routingByTranscript and TypedConverter.routingByTranscript request answer hB in src/RandomSystems/Typed/. It makes one inside query per outside query, so an inside interface that admits every nonempty history within the outside bound certifies it. Add its laws:

  • routingByTranscript_smul_ofProbAutomaton: attached to an automaton, it is the automaton on the transcript beside the inside state;
  • routingByTranscript_transcript, with the relation RoutedBy: a possible transcript of the router over $X$ is routed, exchange by exchange, from a possible transcript of $X$ (the companion of #368);
  • routingByTranscript_smul_ofFunction_mass, with its one-step form routingByTranscript_smul_ofFunction_snoc: the probability above.
Acceptance criteria

Take a router that asks one inside port at its first query and another port afterwards. Attached to an automaton, it is the automaton on its transcript. Over a fixed function, the transcript that carries the function's replies has probability one, and every other transcript of the same queries has probability zero.

Lingua principale
Lean
Stelle
3
Fork
0
Merge medio
1g 7h
PR unite (30g)
123

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di trailofbits/constructive-cryptography

Tutte le issue di trailofbits/constructive-cryptography

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.