Route each query by the transcript so far

Abierto
#388 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Lean
Estrellas
3
Forks
0
Merge medio
1 d 7 h
PR fusionados (30 d)
123

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de trailofbits/constructive-cryptography

Todos los issues de trailofbits/constructive-cryptography

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.