Route each query by the transcript so far

Aberta
#388 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Domínio
backend

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Lean
Estrelas
3
Forks
0
Merge médio
1d 2h
PRs com merge (30d)
159

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de trailofbits/constructive-cryptography

Todas as issues de trailofbits/constructive-cryptography

Issues semelhantes

Mais issues de Backend & API Design

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.