Step the run of a program body against a probabilistic system
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 43/100
- Type d'issue
- Fonctionnalité
- Clarté
- Clairement spécifiée
- Activité
- Active
- Domaine
- backend-api-design
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Lean
- Étoiles
- 3
- Forks
- 0
- Merge moyen
- 1 j 7 h
- PR mergées (30 j)
- 123
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de trailofbits/constructive-cryptography
-
Automate monoidal whiskering and unitor normalization in cc_normalizePeut-être pris @MarcIlunga l’a pris aujourd’hui. Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
trailofbits/constructive-cryptography#480 ·
Les mainteneurs répondent en général sous 1 jour
-
Add MR16 Lemma 5, indifferentiability composition, and specificationPeut-être pris @MarcIlunga l’a pris aujourd’hui. Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 12/100
trailofbits/constructive-cryptography#473 ·
Les mainteneurs répondent en général sous 1 jour
-
needs-format
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 12/100
trailofbits/constructive-cryptography#471 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 15/100
trailofbits/constructive-cryptography#465 ·
Les mainteneurs répondent en général sous 1 jour
-
needs-format
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 8/100
trailofbits/constructive-cryptography#462 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de trailofbits/constructive-cryptography
Issues similaires
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 72/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
uxlfoundation/oneDNN#6604 · 1 commentaire ·
Les mainteneurs répondent en général sous 2 jours
-
[Bug]: RoundToNearest truncates in plugins compiled with spcomp 1.13Peut-être pris @fmu1337 l’a pris aujourd’hui. OuverteBug
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
alliedmodders/sourcemod#2627 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
marketcalls/openalgo#2502 ·
Les mainteneurs répondent en général sous 1 jour