Step the run of a program body against a probabilistic system
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 43/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- backend-api-design
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Lean
- Star
- 3
- Fork
- 0
- Merge trung bình
- 1 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 123
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của trailofbits/constructive-cryptography
-
Automate monoidal whiskering and unitor normalization in cc_normalizeCó thể đã có người làm @MarcIlunga đã nhận hôm nay. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
trailofbits/constructive-cryptography#480 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add MR16 Lemma 5, indifferentiability composition, and specificationCó thể đã có người làm @MarcIlunga đã nhận hôm nay. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
trailofbits/constructive-cryptography#473 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-format
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
trailofbits/constructive-cryptography#471 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
trailofbits/constructive-cryptography#465 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-format
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 8/100
trailofbits/constructive-cryptography#462 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của trailofbits/constructive-cryptography
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
uxlfoundation/oneDNN#6604 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[Bug]: RoundToNearest truncates in plugins compiled with spcomp 1.13Có thể đã có người làm @fmu1337 đã nhận hôm nay. Đang mởBug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
alliedmodders/sourcemod#2627 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
marketcalls/openalgo#2502 ·
Maintainer thường phản hồi trong vòng 1 ngày