Route each query by the transcript so far

Đang mở
#388 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của trailofbits/constructive-cryptography

Tất cả issue của trailofbits/constructive-cryptography

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.