Step the run of a program body against a probabilistic system
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
- 43/100
- Tipo de issue
- Funcionalidade
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Domínio
- backend-api-design
Direção de pesquisa
Start in src/RandomSystems/Typed/DSL/ and read the existing Program definitions and proofs for probabilistic invocation and combination. Define Program.probRun and establish the listed equations, then check the acceptance cases: ordered stateful calls, a three-query loop, and a combined step that negates a forwarded reply.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Background
An invocation of a program against a probabilistic step is a mixture over the runs of its body (Program.probInvoke, Program.probCombine). For a body built from returns and calls, the run follows the statements:
\mathrm{run}(\mathbf{return}\ a)\ \text{from}\ r=\delta_{(r,a)},\qquad
\mathrm{run}(\mathbf{call}\ j(x);\ k)\ \text{from}\ r=\ (r',y)\leftarrow\mathrm{step}(r,j,x);\ \ \mathrm{run}(k\,y)\ \text{from}\ r'.
Without these equations, a statement about one invocation of a converter against a system is proved by unfolding the invocation.
Two cases recur. A call followed by a return is the image of one step. When the step answers the port $j$ by a function $g$ and keeps its state, a call at $j$ is computed, and so is a loop that makes one such call per element of a list:
\mathrm{run}\big(\mathbf{for}\ a\in xs:\ y\leftarrow j(q(a,c));\ c\leftarrow\mathrm{upd}(a,c,y);\ \ \mathit{finish}(c)\big)
=\mathrm{run}\big(\mathit{finish}(\mathrm{fold}_{a\in xs}\ \mathrm{upd}(a,c,g(q(a,c))))\big).
Proposed change
In src/RandomSystems/Typed/DSL/, add Program.probRun with
Program.probInvoke_eq_probRunandProgram.probCombine_val_eq_probRun: an invocation, and a combined step, is the run of the body;Program.probRun_returnProgandProgram.probRun_callProg: the two equations above;Program.probRun_callProg_returnProgandProgram.probCombine_of_callProg_returnProg: a call followed by a return;Program.probRun_callProg_of_singleandProgram.probRun_forEach_callProg: a call, and a loop of calls, at a port that a function answers.
Acceptance criteria
Run a body with two calls against an arbitrary step: the result is the two steps in order, the second from the state the first left, then the return. Run a loop over three queries against a fixed function, collecting the answers: the result is the list of the function's three values. Compute the combined step of a converter that forwards its query and negates the reply as the image of one inside step.
- 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
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de trailofbits/constructive-cryptography
-
RFC: Budget-free dependent Interface, cumulative CR18 Systems/Converters, and endomorphism FiltersAberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 12/100
trailofbits/constructive-cryptography#504 ·
Mantenedores costumam responder em até 1 dia
-
needs-format
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 12/100
trailofbits/constructive-cryptography#471 ·
Mantenedores costumam responder em até 1 dia
-
Exclude all approximate ideal witnesses with separating testsTalvez já em andamento @MarcIlunga assumiu há 1 dia. Aberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 15/100
trailofbits/constructive-cryptography#449 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 12/100
trailofbits/constructive-cryptography#430 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 15/100
trailofbits/constructive-cryptography#429 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de trailofbits/constructive-cryptography
Issues semelhantes
-
oncoref MappingProxyType in proteome.layers breaks deepcopy in reference_coverage._inventoryTalvez já em andamento @iskandr assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
HE-Arc/le-panier-du-coin#49 ·
Mantenedores costumam responder em até 1 dia
-
Modern `HttpServletMcpTransport` does not check `Mcp-Name` when `params.name` or `params.uri` is not a JSON stringTalvez já em andamento @starryeye assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
modelcontextprotocol/java-sdk#1352 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
ClockGU/clockwork-backend#189 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100